From ed62de316a73d8953eca3683faec91748e0fc52b Mon Sep 17 00:00:00 2001 From: hlts2 Date: Fri, 24 May 2024 16:46:54 +0900 Subject: [PATCH 1/5] fix: copy from vald-client-node Signed-off-by: hlts2 --- .fossa.yml | 15 - .github/assets/k8s/mysql/configmap.yaml | 29 - .github/assets/k8s/mysql/deployment.yaml | 72 - .github/assets/k8s/mysql/pv.yaml | 29 - .github/assets/k8s/mysql/pvc.yaml | 26 - .github/assets/k8s/mysql/secret.yaml | 22 - .github/assets/k8s/mysql/svc.yaml | 25 - .github/assets/k8s/redis/deployment.yaml | 65 - .github/assets/k8s/redis/secret.yaml | 22 - .github/assets/k8s/redis/svc.yaml | 28 - .github/dependabot-cli.yaml | 25 +- .github/workflows/backport-deps.yaml | 26 - .github/workflows/e2e.yaml | 2 +- .github/workflows/fossa.yml | 61 + .github/workflows/pr-auto-merge.yaml | 26 - .github/workflows/sync.yaml | 30 - .github/workflows/update-deps.yaml | 12 +- .github/workflows/update-gradle-wrapper.yaml | 91 - .gitignore | 18 +- .npmignore | 12 + .npmrc | 1 + Makefile | 280 +- README.md | 78 +- ...T_JAVA_VERSION => VALD_CLIENT_NODE_VERSION | 0 VALD_SHA | 2 +- buf.gen.yaml | 19 +- buf.work.yaml | 2 +- build.gradle | 167 - copy-client.sh | 151 +- example-ts/.gitignore | 2 + example-ts/example.ts | 143 + example-ts/package-lock.json | 342 + example-ts/package.json | 15 + example-ts/tsconfig.json | 11 + example/.gitignore | 1 + example/example.js | 146 + example/package-lock.json | 342 + example/package.json | 15 + examples/build.gradle | 45 - examples/gradle | 1 - examples/gradlew | 1 - examples/gradlew.bat | 1 - examples/settings.gradle | 10 - .../src/main/java/org/vdaas/vald/Client.java | 122 - gradle/wrapper/gradle-wrapper.jar | Bin 43453 -> 0 bytes gradle/wrapper/gradle-wrapper.properties | 8 - gradlew | 249 - gradlew.bat | 92 - index.d.ts | 9 + index.js | 3 + jest.config.ts | 196 + package-lock.json | 4560 +++++ package.json | 40 + settings.gradle | 10 - src/buf/validate/expression_pb.d.ts | 163 + src/buf/validate/expression_pb.js | 208 + src/buf/validate/priv/private_pb.d.ts | 77 + src/buf/validate/priv/private_pb.js | 137 + src/buf/validate/validate_pb.d.ts | 3718 ++++ src/buf/validate/validate_pb.js | 2880 +++ src/google/api/http_pb.d.ts | 479 + src/google/api/http_pb.js | 269 + src/google/protobuf/any_pb.d.ts | 216 + src/google/protobuf/any_pb.js | 190 + src/google/protobuf/descriptor_pb.d.ts | 2377 +++ src/google/protobuf/descriptor_pb.js | 3149 +++ src/google/protobuf/duration_pb.d.ts | 148 + src/google/protobuf/duration_pb.js | 143 + src/google/protobuf/timestamp_pb.d.ts | 191 + src/google/protobuf/timestamp_pb.js | 171 + src/google/protobuf/wrappers_pb.d.ts | 353 + src/google/protobuf/wrappers_pb.js | 659 + src/google/rpc/status_pb.d.ts | 74 + src/google/rpc/status_pb.js | 91 + .../vald/api/v1/agent/core/AgentGrpc.java | 667 - .../vald/api/v1/agent/core/ValdAgent.java | 62 - .../vald/api/v1/filter/egress/FilterGrpc.java | 409 - .../v1/filter/egress/ValdEgressFilter.java | 56 - .../api/v1/filter/ingress/FilterGrpc.java | 409 - .../v1/filter/ingress/ValdIngressFilter.java | 56 - .../vdaas/vald/api/v1/mirror/MirrorGrpc.java | 323 - .../vdaas/vald/api/v1/mirror/ValdMirror.java | 52 - .../vdaas/vald/api/v1/payload/Control.java | 911 - .../vald/api/v1/payload/ControlOrBuilder.java | 10 - .../vdaas/vald/api/v1/payload/Discoverer.java | 1371 -- .../api/v1/payload/DiscovererOrBuilder.java | 10 - .../org/vdaas/vald/api/v1/payload/Empty.java | 407 - .../vald/api/v1/payload/EmptyOrBuilder.java | 10 - .../org/vdaas/vald/api/v1/payload/Filter.java | 1997 -- .../vald/api/v1/payload/FilterOrBuilder.java | 10 - .../org/vdaas/vald/api/v1/payload/Flush.java | 804 - .../vald/api/v1/payload/FlushOrBuilder.java | 10 - .../org/vdaas/vald/api/v1/payload/Info.java | 15746 ---------------- .../vald/api/v1/payload/InfoOrBuilder.java | 10 - .../org/vdaas/vald/api/v1/payload/Insert.java | 5217 ----- .../vald/api/v1/payload/InsertOrBuilder.java | 10 - .../org/vdaas/vald/api/v1/payload/Mirror.java | 1997 -- .../vald/api/v1/payload/MirrorOrBuilder.java | 10 - .../org/vdaas/vald/api/v1/payload/Object.java | 15678 --------------- .../vald/api/v1/payload/ObjectOrBuilder.java | 10 - .../org/vdaas/vald/api/v1/payload/Remove.java | 4591 ----- .../vald/api/v1/payload/RemoveOrBuilder.java | 10 - .../org/vdaas/vald/api/v1/payload/Search.java | 11110 ----------- .../vald/api/v1/payload/SearchOrBuilder.java | 10 - .../org/vdaas/vald/api/v1/payload/Update.java | 5315 ------ .../vald/api/v1/payload/UpdateOrBuilder.java | 10 - .../org/vdaas/vald/api/v1/payload/Upsert.java | 5315 ------ .../vald/api/v1/payload/UpsertOrBuilder.java | 10 - .../vald/api/v1/payload/ValdPayload.java | 1209 -- .../org/vdaas/vald/api/v1/rpc/BadRequest.java | 1966 -- .../vald/api/v1/rpc/BadRequestOrBuilder.java | 54 - .../org/vdaas/vald/api/v1/rpc/DebugInfo.java | 819 - .../vald/api/v1/rpc/DebugInfoOrBuilder.java | 71 - .../vald/api/v1/rpc/ErrorDetailsProto.java | 239 - .../org/vdaas/vald/api/v1/rpc/ErrorInfo.java | 1251 -- .../vald/api/v1/rpc/ErrorInfoOrBuilder.java | 157 - .../java/org/vdaas/vald/api/v1/rpc/Help.java | 1648 -- .../vdaas/vald/api/v1/rpc/HelpOrBuilder.java | 54 - .../vald/api/v1/rpc/LocalizedMessage.java | 758 - .../api/v1/rpc/LocalizedMessageOrBuilder.java | 54 - .../vald/api/v1/rpc/PreconditionFailure.java | 1895 -- .../v1/rpc/PreconditionFailureOrBuilder.java | 54 - .../vdaas/vald/api/v1/rpc/QuotaFailure.java | 1734 -- .../api/v1/rpc/QuotaFailureOrBuilder.java | 54 - .../vdaas/vald/api/v1/rpc/RequestInfo.java | 758 - .../vald/api/v1/rpc/RequestInfoOrBuilder.java | 54 - .../vdaas/vald/api/v1/rpc/ResourceInfo.java | 1133 -- .../api/v1/rpc/ResourceInfoOrBuilder.java | 108 - .../org/vdaas/vald/api/v1/rpc/RetryInfo.java | 679 - .../vald/api/v1/rpc/RetryInfoOrBuilder.java | 37 - .../vdaas/vald/api/v1/vald/FilterGrpc.java | 1181 -- .../org/vdaas/vald/api/v1/vald/FlushGrpc.java | 323 - .../vdaas/vald/api/v1/vald/InsertGrpc.java | 473 - .../vdaas/vald/api/v1/vald/ObjectGrpc.java | 549 - .../vdaas/vald/api/v1/vald/RemoveGrpc.java | 559 - .../vdaas/vald/api/v1/vald/SearchGrpc.java | 1189 -- .../vdaas/vald/api/v1/vald/UpdateGrpc.java | 473 - .../vdaas/vald/api/v1/vald/UpsertGrpc.java | 473 - .../vdaas/vald/api/v1/vald/ValdFilter.java | 82 - .../org/vdaas/vald/api/v1/vald/ValdFlush.java | 51 - .../vdaas/vald/api/v1/vald/ValdInsert.java | 56 - .../vdaas/vald/api/v1/vald/ValdObject.java | 59 - .../vdaas/vald/api/v1/vald/ValdRemove.java | 59 - .../vdaas/vald/api/v1/vald/ValdSearch.java | 80 - .../vdaas/vald/api/v1/vald/ValdUpdate.java | 56 - .../vdaas/vald/api/v1/vald/ValdUpsert.java | 56 - .../kotlin/org/vdaas/vald/client/E2ETests.kt | 872 - src/vald/v1/agent/core/agent_pb.d.ts | 26 + .../v1/agent/core/agent_pb.grpc-client.d.ts | 121 + .../v1/agent/core/agent_pb.grpc-client.js | 106 + src/vald/v1/agent/core/agent_pb.js | 63 + src/vald/v1/agent/core/index.d.ts | 7 + src/vald/v1/agent/core/index.js | 2 + src/vald/v1/payload/index.d.ts | 5 + src/vald/v1/payload/index.js | 1 + src/vald/v1/payload/payload_pb.d.ts | 2477 +++ src/vald/v1/payload/payload_pb.js | 4435 +++++ src/vald/v1/vald/filter_pb.d.ts | 26 + src/vald/v1/vald/filter_pb.grpc-client.d.ts | 227 + src/vald/v1/vald/filter_pb.grpc-client.js | 169 + src/vald/v1/vald/filter_pb.js | 79 + src/vald/v1/vald/index.d.ts | 31 + src/vald/v1/vald/index.js | 14 + src/vald/v1/vald/insert_pb.d.ts | 26 + src/vald/v1/vald/insert_pb.grpc-client.d.ts | 89 + src/vald/v1/vald/insert_pb.grpc-client.js | 88 + src/vald/v1/vald/insert_pb.js | 61 + src/vald/v1/vald/object_pb.d.ts | 26 + src/vald/v1/vald/object_pb.grpc-client.d.ts | 103 + src/vald/v1/vald/object_pb.grpc-client.js | 97 + src/vald/v1/vald/object_pb.js | 63 + src/vald/v1/vald/remove_pb.d.ts | 26 + src/vald/v1/vald/remove_pb.grpc-client.d.ts | 105 + src/vald/v1/vald/remove_pb.grpc-client.js | 97 + src/vald/v1/vald/remove_pb.js | 63 + src/vald/v1/vald/search_pb.d.ts | 26 + src/vald/v1/vald/search_pb.grpc-client.d.ts | 224 + src/vald/v1/vald/search_pb.grpc-client.js | 171 + src/vald/v1/vald/search_pb.js | 72 + src/vald/v1/vald/update_pb.d.ts | 26 + src/vald/v1/vald/update_pb.grpc-client.d.ts | 89 + src/vald/v1/vald/update_pb.grpc-client.js | 88 + src/vald/v1/vald/update_pb.js | 61 + src/vald/v1/vald/upsert_pb.d.ts | 26 + src/vald/v1/vald/upsert_pb.grpc-client.d.ts | 89 + src/vald/v1/vald/upsert_pb.grpc-client.js | 88 + src/vald/v1/vald/upsert_pb.js | 61 + tests/e2e.test.ts | 901 + tests/wordvecs1000.d.ts | 9 + tsconfig.json | 11 + version/GRADLE_VERSION | 1 - version/GRPC_JAVA_VERSION | 1 - version/JAVA_VERSION | 1 - version/JAVA_VERSION_LTS_LATEST | 1 - version/PROTOBUF_VERSION | 1 - 195 files changed, 32488 insertions(+), 95485 deletions(-) delete mode 100755 .fossa.yml delete mode 100644 .github/assets/k8s/mysql/configmap.yaml delete mode 100644 .github/assets/k8s/mysql/deployment.yaml delete mode 100644 .github/assets/k8s/mysql/pv.yaml delete mode 100644 .github/assets/k8s/mysql/pvc.yaml delete mode 100644 .github/assets/k8s/mysql/secret.yaml delete mode 100644 .github/assets/k8s/mysql/svc.yaml delete mode 100644 .github/assets/k8s/redis/deployment.yaml delete mode 100644 .github/assets/k8s/redis/secret.yaml delete mode 100644 .github/assets/k8s/redis/svc.yaml delete mode 100644 .github/workflows/backport-deps.yaml create mode 100644 .github/workflows/fossa.yml delete mode 100644 .github/workflows/pr-auto-merge.yaml delete mode 100644 .github/workflows/sync.yaml delete mode 100644 .github/workflows/update-gradle-wrapper.yaml create mode 100644 .npmignore create mode 100644 .npmrc rename version/VALD_CLIENT_JAVA_VERSION => VALD_CLIENT_NODE_VERSION (100%) delete mode 100644 build.gradle create mode 100644 example-ts/.gitignore create mode 100644 example-ts/example.ts create mode 100644 example-ts/package-lock.json create mode 100644 example-ts/package.json create mode 100644 example-ts/tsconfig.json create mode 100644 example/.gitignore create mode 100644 example/example.js create mode 100644 example/package-lock.json create mode 100644 example/package.json delete mode 100644 examples/build.gradle delete mode 120000 examples/gradle delete mode 120000 examples/gradlew delete mode 120000 examples/gradlew.bat delete mode 100644 examples/settings.gradle delete mode 100644 examples/src/main/java/org/vdaas/vald/Client.java delete mode 100644 gradle/wrapper/gradle-wrapper.jar delete mode 100644 gradle/wrapper/gradle-wrapper.properties delete mode 100755 gradlew delete mode 100644 gradlew.bat create mode 100644 index.d.ts create mode 100644 index.js create mode 100644 jest.config.ts create mode 100644 package-lock.json create mode 100644 package.json delete mode 100644 settings.gradle create mode 100644 src/buf/validate/expression_pb.d.ts create mode 100644 src/buf/validate/expression_pb.js create mode 100644 src/buf/validate/priv/private_pb.d.ts create mode 100644 src/buf/validate/priv/private_pb.js create mode 100644 src/buf/validate/validate_pb.d.ts create mode 100644 src/buf/validate/validate_pb.js create mode 100644 src/google/api/http_pb.d.ts create mode 100644 src/google/api/http_pb.js create mode 100644 src/google/protobuf/any_pb.d.ts create mode 100644 src/google/protobuf/any_pb.js create mode 100644 src/google/protobuf/descriptor_pb.d.ts create mode 100644 src/google/protobuf/descriptor_pb.js create mode 100644 src/google/protobuf/duration_pb.d.ts create mode 100644 src/google/protobuf/duration_pb.js create mode 100644 src/google/protobuf/timestamp_pb.d.ts create mode 100644 src/google/protobuf/timestamp_pb.js create mode 100644 src/google/protobuf/wrappers_pb.d.ts create mode 100644 src/google/protobuf/wrappers_pb.js create mode 100644 src/google/rpc/status_pb.d.ts create mode 100644 src/google/rpc/status_pb.js delete mode 100644 src/main/java/org/vdaas/vald/api/v1/agent/core/AgentGrpc.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/agent/core/ValdAgent.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/filter/egress/FilterGrpc.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/filter/egress/ValdEgressFilter.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/filter/ingress/FilterGrpc.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/filter/ingress/ValdIngressFilter.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/mirror/MirrorGrpc.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/mirror/ValdMirror.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/Control.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/ControlOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/Discoverer.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/DiscovererOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/Empty.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/EmptyOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/Filter.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/FilterOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/Flush.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/FlushOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/Info.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/InfoOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/Insert.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/InsertOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/Mirror.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/MirrorOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/Object.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/ObjectOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/Remove.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/RemoveOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/Search.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/SearchOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/Update.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/UpdateOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/Upsert.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/UpsertOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/payload/ValdPayload.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/BadRequest.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/BadRequestOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/DebugInfo.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/DebugInfoOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/ErrorDetailsProto.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/ErrorInfo.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/ErrorInfoOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/Help.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/HelpOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/LocalizedMessage.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/LocalizedMessageOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/PreconditionFailure.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/PreconditionFailureOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/QuotaFailure.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/QuotaFailureOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/RequestInfo.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/RequestInfoOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/ResourceInfo.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/ResourceInfoOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/RetryInfo.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/RetryInfoOrBuilder.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/vald/FilterGrpc.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/vald/FlushGrpc.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/vald/InsertGrpc.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/vald/ObjectGrpc.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/vald/RemoveGrpc.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/vald/SearchGrpc.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/vald/UpdateGrpc.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/vald/UpsertGrpc.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/vald/ValdFilter.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/vald/ValdFlush.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/vald/ValdInsert.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/vald/ValdObject.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/vald/ValdRemove.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/vald/ValdSearch.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/vald/ValdUpdate.java delete mode 100644 src/main/java/org/vdaas/vald/api/v1/vald/ValdUpsert.java delete mode 100644 src/test/kotlin/org/vdaas/vald/client/E2ETests.kt create mode 100644 src/vald/v1/agent/core/agent_pb.d.ts create mode 100644 src/vald/v1/agent/core/agent_pb.grpc-client.d.ts create mode 100644 src/vald/v1/agent/core/agent_pb.grpc-client.js create mode 100644 src/vald/v1/agent/core/agent_pb.js create mode 100644 src/vald/v1/agent/core/index.d.ts create mode 100644 src/vald/v1/agent/core/index.js create mode 100644 src/vald/v1/payload/index.d.ts create mode 100644 src/vald/v1/payload/index.js create mode 100644 src/vald/v1/payload/payload_pb.d.ts create mode 100644 src/vald/v1/payload/payload_pb.js create mode 100644 src/vald/v1/vald/filter_pb.d.ts create mode 100644 src/vald/v1/vald/filter_pb.grpc-client.d.ts create mode 100644 src/vald/v1/vald/filter_pb.grpc-client.js create mode 100644 src/vald/v1/vald/filter_pb.js create mode 100644 src/vald/v1/vald/index.d.ts create mode 100644 src/vald/v1/vald/index.js create mode 100644 src/vald/v1/vald/insert_pb.d.ts create mode 100644 src/vald/v1/vald/insert_pb.grpc-client.d.ts create mode 100644 src/vald/v1/vald/insert_pb.grpc-client.js create mode 100644 src/vald/v1/vald/insert_pb.js create mode 100644 src/vald/v1/vald/object_pb.d.ts create mode 100644 src/vald/v1/vald/object_pb.grpc-client.d.ts create mode 100644 src/vald/v1/vald/object_pb.grpc-client.js create mode 100644 src/vald/v1/vald/object_pb.js create mode 100644 src/vald/v1/vald/remove_pb.d.ts create mode 100644 src/vald/v1/vald/remove_pb.grpc-client.d.ts create mode 100644 src/vald/v1/vald/remove_pb.grpc-client.js create mode 100644 src/vald/v1/vald/remove_pb.js create mode 100644 src/vald/v1/vald/search_pb.d.ts create mode 100644 src/vald/v1/vald/search_pb.grpc-client.d.ts create mode 100644 src/vald/v1/vald/search_pb.grpc-client.js create mode 100644 src/vald/v1/vald/search_pb.js create mode 100644 src/vald/v1/vald/update_pb.d.ts create mode 100644 src/vald/v1/vald/update_pb.grpc-client.d.ts create mode 100644 src/vald/v1/vald/update_pb.grpc-client.js create mode 100644 src/vald/v1/vald/update_pb.js create mode 100644 src/vald/v1/vald/upsert_pb.d.ts create mode 100644 src/vald/v1/vald/upsert_pb.grpc-client.d.ts create mode 100644 src/vald/v1/vald/upsert_pb.grpc-client.js create mode 100644 src/vald/v1/vald/upsert_pb.js create mode 100644 tests/e2e.test.ts create mode 100644 tests/wordvecs1000.d.ts create mode 100644 tsconfig.json delete mode 100644 version/GRADLE_VERSION delete mode 100644 version/GRPC_JAVA_VERSION delete mode 100644 version/JAVA_VERSION delete mode 100644 version/JAVA_VERSION_LTS_LATEST delete mode 100644 version/PROTOBUF_VERSION diff --git a/.fossa.yml b/.fossa.yml deleted file mode 100755 index a91ab6f9..00000000 --- a/.fossa.yml +++ /dev/null @@ -1,15 +0,0 @@ -# Generated by FOSSA CLI (https://github.com/fossas/fossa-cli) -# Visit https://fossa.com to learn more - -version: 2 -cli: - server: https://app.fossa.com - fetcher: custom - project: vald-client-java - locator: git+github.com/vdaas/vald-client-java -analyze: - modules: - - name: . - type: gradle - target: ':' - path: . diff --git a/.github/assets/k8s/mysql/configmap.yaml b/.github/assets/k8s/mysql/configmap.yaml deleted file mode 100644 index fc1f6576..00000000 --- a/.github/assets/k8s/mysql/configmap.yaml +++ /dev/null @@ -1,29 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: mysql-config -data: - ddl.sql: | - DROP SCHEMA IF EXISTS `vald` ; - CREATE SCHEMA IF NOT EXISTS `vald` DEFAULT CHARACTER SET utf8 ; - - USE `vald` ; - - CREATE TABLE IF NOT EXISTS `vald`.`meta_vector` ( - `uuid` VARCHAR(255) NOT NULL, - `vector` BLOB NOT NULL, - `meta` VARCHAR(1024) NOT NULL, - `id` int NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`uuid`), - UNIQUE INDEX `id_unique` (`id` ASC), - UNIQUE INDEX `meta_unique` (`meta` ASC) - ) - ENGINE = InnoDB; - - CREATE TABLE IF NOT EXISTS `vald`.`pod_ip` ( - `id` int NOT NULL, - `ip` VARCHAR(64) NOT NULL, - PRIMARY KEY (`id`, `ip`), - INDEX `ip_index` (`ip` ASC) - ) - ENGINE = InnoDB; diff --git a/.github/assets/k8s/mysql/deployment.yaml b/.github/assets/k8s/mysql/deployment.yaml deleted file mode 100644 index 81b3cef5..00000000 --- a/.github/assets/k8s/mysql/deployment.yaml +++ /dev/null @@ -1,72 +0,0 @@ -# -# Copyright (C) 2019-2020 Vdaas.org Vald team ( kpango, rinx, kmrmt ) -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app: mysql - name: mysql -spec: - progressDeadlineSeconds: 600 - replicas: 1 - selector: - matchLabels: - app: mysql - strategy: - type: Recreate - template: - metadata: - labels: - app: mysql - spec: - containers: - # - image: mariadb:latest - - image: mysql:latest - imagePullPolicy: Always - env: - - name: MYSQL_ROOT_PASSWORD - valueFrom: - secretKeyRef: - name: mysql-secret - key: password - name: mysql - ports: - - containerPort: 3306 - name: mysql - protocol: TCP - resources: - requests: - cpu: 100m - memory: 100Mi - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File - volumeMounts: - - name: mysql-persistent-storage - mountPath: /var/lib/mysql/ - - name: mysql-initdb - mountPath: /docker-entrypoint-initdb.d/ - volumes: - - name: mysql-persistent-storage - persistentVolumeClaim: - claimName: mysql-pv-claim - - name: mysql-initdb - configMap: - name: mysql-config - dnsPolicy: ClusterFirst - restartPolicy: Always - schedulerName: default-scheduler - securityContext: {} - terminationGracePeriodSeconds: 30 diff --git a/.github/assets/k8s/mysql/pv.yaml b/.github/assets/k8s/mysql/pv.yaml deleted file mode 100644 index eddfdea0..00000000 --- a/.github/assets/k8s/mysql/pv.yaml +++ /dev/null @@ -1,29 +0,0 @@ -# -# Copyright (C) 2019-2020 Vdaas.org Vald team ( kpango, rinx, kmrmt ) -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -apiVersion: v1 -kind: PersistentVolume -metadata: - name: mysql-pv-volume - labels: - type: local -spec: - storageClassName: manual - capacity: - storage: 20Mi - accessModes: - - ReadWriteOnce - hostPath: - path: "/mnt/data" diff --git a/.github/assets/k8s/mysql/pvc.yaml b/.github/assets/k8s/mysql/pvc.yaml deleted file mode 100644 index 2add4695..00000000 --- a/.github/assets/k8s/mysql/pvc.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# -# Copyright (C) 2019-2020 Vdaas.org Vald team ( kpango, rinx, kmrmt ) -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: mysql-pv-claim -spec: - storageClassName: manual - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 20Mi diff --git a/.github/assets/k8s/mysql/secret.yaml b/.github/assets/k8s/mysql/secret.yaml deleted file mode 100644 index d660024c..00000000 --- a/.github/assets/k8s/mysql/secret.yaml +++ /dev/null @@ -1,22 +0,0 @@ -# -# Copyright (C) 2019-2020 Vdaas.org Vald team ( kpango, rinx, kmrmt ) -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -apiVersion: v1 -data: - password: cGFzc3dvcmQ= -kind: Secret -metadata: - name: mysql-secret -type: Opaque diff --git a/.github/assets/k8s/mysql/svc.yaml b/.github/assets/k8s/mysql/svc.yaml deleted file mode 100644 index 1e337261..00000000 --- a/.github/assets/k8s/mysql/svc.yaml +++ /dev/null @@ -1,25 +0,0 @@ -# -# Copyright (C) 2019-2020 Vdaas.org Vald team ( kpango, rinx, kmrmt ) -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -apiVersion: v1 -kind: Service -metadata: - name: mysql -spec: - ports: - - port: 3306 - selector: - app: mysql - clusterIP: None diff --git a/.github/assets/k8s/redis/deployment.yaml b/.github/assets/k8s/redis/deployment.yaml deleted file mode 100644 index 0ee8c78c..00000000 --- a/.github/assets/k8s/redis/deployment.yaml +++ /dev/null @@ -1,65 +0,0 @@ -# -# Copyright (C) 2019-2020 Vdaas.org Vald team ( kpango, rinx, kmrmt ) -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app: redis - name: redis -spec: - progressDeadlineSeconds: 600 - replicas: 1 - revisionHistoryLimit: 2 - selector: - matchLabels: - app: redis - strategy: - rollingUpdate: - maxSurge: 25% - maxUnavailable: 25% - type: RollingUpdate - template: - metadata: - labels: - app: redis - spec: - containers: - - image: redis:latest - imagePullPolicy: Always - name: redis - args: - - "--requirepass $(REDIS_PASSWORD)" - ports: - - containerPort: 6379 - name: redis - protocol: TCP - resources: - requests: - cpu: 100m - memory: 100Mi - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File - env: - - name: REDIS_PASSWORD - valueFrom: - secretKeyRef: - name: redis-secret - key: password - dnsPolicy: ClusterFirst - restartPolicy: Always - schedulerName: default-scheduler - securityContext: {} - terminationGracePeriodSeconds: 30 diff --git a/.github/assets/k8s/redis/secret.yaml b/.github/assets/k8s/redis/secret.yaml deleted file mode 100644 index 882e8b2c..00000000 --- a/.github/assets/k8s/redis/secret.yaml +++ /dev/null @@ -1,22 +0,0 @@ -# -# Copyright (C) 2019-2020 Vdaas.org Vald team ( kpango, rinx, kmrmt ) -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -apiVersion: v1 -data: - password: cGFzc3dvcmQ= -kind: Secret -metadata: - name: redis-secret -type: Opaque diff --git a/.github/assets/k8s/redis/svc.yaml b/.github/assets/k8s/redis/svc.yaml deleted file mode 100644 index 57615463..00000000 --- a/.github/assets/k8s/redis/svc.yaml +++ /dev/null @@ -1,28 +0,0 @@ -# -# Copyright (C) 2019-2020 Vdaas.org Vald team ( kpango, rinx, kmrmt ) -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -apiVersion: v1 -kind: Service -metadata: - name: redis - labels: - app: redis -spec: - ports: - - port: 6379 - targetPort: 6379 - selector: - app: redis - clusterIP: None diff --git a/.github/dependabot-cli.yaml b/.github/dependabot-cli.yaml index 27b0eec1..73ca6e9b 100644 --- a/.github/dependabot-cli.yaml +++ b/.github/dependabot-cli.yaml @@ -1,16 +1,27 @@ job: - package-manager: gradle + package-manager: npm_and_yarn allowed-updates: - update-type: all - ignore-conditions: - - dependency-name: com.google.protobuf:protobuf-java - version-requirement: ">=3.25.1" dependency-groups: - - name: gradle + - name: npm rules: patterns: - "*" source: - directory: / + directory: "/" provider: github - repo: vdaas/vald-client-java + repo: vdaas/vald-client-node +# input: +# job: +# package-manager: npm_and_yarn +# allowed-updates: +# - update-type: all +# dependency-groups: +# - name: npm +# rules: +# patterns: +# - "*" +# source: +# directory: "*" +# provider: github +# repo: vdaas/vald-client-node diff --git a/.github/workflows/backport-deps.yaml b/.github/workflows/backport-deps.yaml deleted file mode 100644 index a0e3fe77..00000000 --- a/.github/workflows/backport-deps.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# -# Copyright (C) 2019-2024 vdaas.org vald team -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# You may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -name: "Run backport deps update PR" -on: - push: - branches: - - main -jobs: - backport: - uses: vdaas/vald-client-ci/.github/workflows/_backport-deps.yaml@feat/ci/backport-deps-update - secrets: - CI_TOKEN: ${{ secrets.DISPATCH_TOKEN }} - GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 3f4954f9..96e3ed0c 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -28,4 +28,4 @@ jobs: - uses: actions/checkout@v3 - uses: vdaas/vald-client-ci/.github/actions/e2e@main with: - client_type: java + client_type: node diff --git a/.github/workflows/fossa.yml b/.github/workflows/fossa.yml new file mode 100644 index 00000000..55676644 --- /dev/null +++ b/.github/workflows/fossa.yml @@ -0,0 +1,61 @@ +name: "Run FOSSA scan" +on: + push: + branches: + - main + pull_request: + types: + - "labeled" + +jobs: + fossa-scan: + name: 'trigger FOSSA scan' + runs-on: ubuntu-latest + container: + image: vdaas/vald-ci-container:nightly + if: github.ref == 'refs/heads/main' || github.event.action == 'labeled' && github.event.label.name == 'actions/fossa' + steps: + - uses: actions/checkout@v2 + - name: 'Install fossa-cli' + run: | + curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash + - name: 'Run for main branch' + if: github.ref == 'refs/heads/main' + run: | + fossa analyze --branch main --revision ${GITHUB_SHA} + env: + FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_SHA: ${{ github.sha }} + - name: 'Run for PRs' + if: github.event_name == 'pull_request' + run: | + curl -s ${PR_INFO_URL} > /tmp/pr_info.json + PR_RESP=`cat /tmp/pr_info.json` + HEAD_BRANCH=$(cat /tmp/pr_info.json | jq -r .head.ref) + if [ -z "$HEAD_BRANCH" ]; then + echo "Cannot get head branch information for PR #${PR_NUM}!" + echo "API response: $PR_RESP" + fossa analyze --revision ${GITHUB_SHA} + else + echo "Head branch for PR #${PR_NUM} is ${HEAD_BRANCH}" + + fossa analyze --branch ${HEAD_BRANCH} --revision ${GITHUB_SHA} + + ESCAPED=`echo -n "${HEAD_BRANCH}" | python3 -c 'import urllib.parse; import sys; print(urllib.parse.quote(sys.stdin.read(), safe=""))'` + + curl --include --verbose --fail \ + -H "Accept: application/json" \ + -H "Content-Type:application/json" \ + -H "Authorization: token ${GITHUB_TOKEN}" \ + --request POST \ + --data "{\"body\": \"**[FOSSA]** The scan result will be available at https://app.fossa.com/projects/custom%2B21465%2Fvald-client-node/refs/branch/${ESCAPED}/${GITHUB_SHA}\"}" \ + $API_URL + fi + env: + FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_SHA: ${{ github.sha }} + PR_INFO_URL: ${{ github.event.pull_request.url }} + API_URL: ${{ github.event.pull_request.comments_url }} + PR_NUM: ${{ github.event.pull_request.number }} diff --git a/.github/workflows/pr-auto-merge.yaml b/.github/workflows/pr-auto-merge.yaml deleted file mode 100644 index 0697842d..00000000 --- a/.github/workflows/pr-auto-merge.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# -# Copyright (C) 2019-2024 vdaas.org vald team -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# You may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -name: "Run automatically merge bot PR" -on: - pull_request: - -jobs: - auto-merge: - uses: vdaas/vald-client-ci/.github/workflows/_pr-auto-merge.yaml@feat/ci/backport-deps-update - with: - client_type: java - secrets: - CI_TOKEN: ${{ secrets.DISPATCH_TOKEN }} diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml deleted file mode 100644 index 37d2ffb9..00000000 --- a/.github/workflows/sync.yaml +++ /dev/null @@ -1,30 +0,0 @@ -# -# Copyright (C) 2019-2024 vdaas.org vald team -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# You may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# DO NOT EDIT -name: "Sync Vald" -on: - workflow_dispatch: - # schedule: - # - cron: "*/10 * * * *" -jobs: - sync: - uses: vdaas/vald-client-ci/.github/workflows/sync.yaml@main - with: - client_type: java - secrets: - CI_USER: ${{ secrets.DISPATCH_USER }} - CI_TOKEN: ${{ secrets.DISPATCH_TOKEN }} - GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} diff --git a/.github/workflows/update-deps.yaml b/.github/workflows/update-deps.yaml index 357e98c7..b8b1f999 100644 --- a/.github/workflows/update-deps.yaml +++ b/.github/workflows/update-deps.yaml @@ -13,18 +13,20 @@ # See the License for the specific language governing permissions and # limitations under the License. # -name: Update Gradle dependencies +name: Update dependencies on: + pull_request: workflow_dispatch: - # schedule: - # - cron: "0 12 * * *" + schedule: + - cron: "0 12 * * *" jobs: update: - uses: vdaas/vald-client-ci/.github/workflows/_update-deps.yaml@feat/ci/backport-deps-update + # uses: vdaas/vald-client-ci/.github/workflows/_update-deps.yaml@main + uses: vdaas/vald-client-ci/.github/workflows/_update-deps.yaml@fix/add-directory-name with: config_file_path: .github/dependabot-cli.yaml - pr_branch_name: chore/update-gradle + pr_branch_name: chore/update-npm secrets: CI_USER: ${{ secrets.DISPATCH_USER }} CI_TOKEN: ${{ secrets.DISPATCH_TOKEN }} diff --git a/.github/workflows/update-gradle-wrapper.yaml b/.github/workflows/update-gradle-wrapper.yaml deleted file mode 100644 index e54ef8c0..00000000 --- a/.github/workflows/update-gradle-wrapper.yaml +++ /dev/null @@ -1,91 +0,0 @@ -# -# Copyright (C) 2019-2024 vdaas.org vald team -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# You may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -name: Update Gradle Wrapper - -on: - workflow_dispatch: - # schedule: - # - cron: "0 0 * * *" - -jobs: - update: - runs-on: ubuntu-latest - env: - GRADLE_VERSION_URL: "https://services.gradle.org/versions/current" - GRADLE_CHECKSUM_URL_PREFIX: "https://services.gradle.org/distributions/gradle" - GRADLE_CHECKSUM_URL_SUFFIX: "bin.zip.sha256" - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - token: ${{ secrets.DISPATCH_TOKEN }} - - name: Set Git config - run: | - git config --global --add safe.directory ${GITHUB_WORKSPACE} - - uses: crazy-max/ghaction-import-gpg@v6 - with: - gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} - git_user_signingkey: true - git_commit_gpgsign: true - - uses: vdaas/vald-client-ci/.github/actions/setup-language@main - with: - client_type: java - - name: Get latest Gradle version and checksum - id: gradle_info - run: | - LATEST_VERSION=$(curl -fsSL "${GRADLE_VERSION_URL}" | jq -r '.version') - CHECKSUM=$(curl -fsSL "${GRADLE_CHECKSUM_URL_PREFIX}-${LATEST_VERSION}-${GRADLE_CHECKSUM_URL_SUFFIX}" | awk '{print $1}') - WRAPPER_ARGS="--gradle-version ${LATEST_VERSION} --distribution-type bin --gradle-distribution-sha256-sum ${CHECKSUM}" - - VERSION=$(make version/gradle) - echo "NEED_UPDATE=$([ "${VERSION}" = "${LATEST_VERSION}" ] && echo false || echo true)" | tee -a $GITHUB_OUTPUT - - echo "LATEST_VERSION=${LATEST_VERSION}" | tee -a $GITHUB_OUTPUT - echo "CHECKSUM=${CHECKSUM}" | tee -a $GITHUB_OUTPUT - echo "WRAPPER_ARGS=${WRAPPER_ARGS}" | tee -a $GITHUB_OUTPUT - - name: Update Gradle Wrapper - if: ${{ steps.gradle_info.outputs.NEED_UPDATE == 'true' }} - run: | - # The first run changes the properfies settings and the second run updates the jar, ..etc. - ./gradlew wrapper ${WRAPPER_ARGS} && ./gradlew wrapper ${WRAPPER_ARGS} - echo "${LATEST_VERSION}" > ./version/GRADLE_VERSION - env: - LATEST_VERSION: ${{ steps.gradle_info.outputs.LATEST_VERSION }} - WRAPPER_ARGS: ${{ steps.gradle_info.outputs.WRAPPER_ARGS }} - - uses: gradle/wrapper-validation-action@v3 - - name: Check difference - id: check_diff - run: | - if git diff --quiet --exit-code; then - echo "Nothing updated" - else - git diff && git status - echo "HAS_GIT_DIFF=true" >> $GITHUB_OUTPUT - fi - - name: Create PR - if: ${{ steps.check_diff.outputs.HAS_GIT_DIFF == 'true' }} - uses: peter-evans/create-pull-request@v6 - with: - author: "${{ secrets.DISPATCH_USER }} " - token: ${{ secrets.DISPATCH_TOKEN }} - committer: "${{ secrets.DISPATCH_USER }} " - commit-message: "automated change" - signoff: true - delete-branch: true - base: main - branch: chore/update-gradle-wrapper - title: "chore(deps): bump Gradle Wrapper to ${{ steps.gradle_info.outputs.LATEST_VERSION }}" - body: "Automated pull request to update Gradle Wrapper." diff --git a/.gitignore b/.gitignore index d08bc7ab..fcc21475 100644 --- a/.gitignore +++ b/.gitignore @@ -1,18 +1,6 @@ +node_modules /vald /vald-origin -# gogoproto -src/main/java/com/google/protobuf/GoGoProtos.java - -wordvecs1000.json - -# Ignore Gradle project-specific cache directory -.gradle - -# Ignore Gradle build output directory -build - -.classpath -.project -.settings -bin +/coverage +/tests/wordvecs1000.json diff --git a/.npmignore b/.npmignore new file mode 100644 index 00000000..d48b444a --- /dev/null +++ b/.npmignore @@ -0,0 +1,12 @@ +.github/ +.fossa +node_modules/ +vald +!src/vald +!src/vald/v1/vald +vald-origin/ +example/ +example-ts/ +tmp/ +jest.config.ts +tests/ diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..b6f27f13 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/Makefile b/Makefile index 00ac56b1..0640e678 100755 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2019-2022 vdaas.org vald team +# Copyright (C) 2019-2020 Vdaas.org Vald team ( kpango, rinx, kmrmt ) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,34 +17,57 @@ REPO ?= vdaas NAME = vald VALDREPO = github.com/$(REPO)/$(NAME) -LANGUAGE = java +LANGUAGE = node PKGNAME = $(NAME)-client-$(LANGUAGE) PKGREPO = github.com/$(REPO)/$(PKGNAME) -VALD_DIR = vald +VALD_DIR = vald-origin VALD_SHA = VALD_SHA -VALD_CLIENT_JAVA_VERSION = version/VALD_CLIENT_JAVA_VERSION +VALD_CLIENT_NODE_VERSION = VALD_CLIENT_NODE_VERSION VALD_CHECKOUT_REF ?= main -PROTOBUF_VERSION = version/PROTOBUF_VERSION -GRPC_JAVA_VERSION = version/GRPC_JAVA_VERSION -JAVA_LTS_LATEST_VERSTION = version/JAVA_VERSION_LTS_LATEST -JAVA_LTS_STABLE_VERSTION = version/JAVA_VERSION_LTS_STABLE PWD := $(eval PWD := $(shell pwd))$(PWD) PROTO_ROOT = $(VALD_DIR)/apis/proto -JAVA_ROOT = src/main/java -API_ROOT = org/vdaas/vald/api +NODE_VERSION := $(eval NODE_VERSION := $(shell cat NODE_VERSION))$(NODE_VERSION) +NODE_ROOT = src +NPM_BIN = $(shell npm prefix) + +BUF_CONFIGS = \ + $(PROTO_ROOT)/buf.yaml \ + $(PROTO_ROOT)/buf.lock + +SHADOW_ROOT = vald +SHADOW_PROTO_ROOT = $(SHADOW_ROOT)/$(SHADOW_ROOT) + +TEST_DATASET_PATH = tests/wordvecs1000.json + +PROTOS = \ + v1/agent/core/agent.proto \ + v1/vald/filter.proto \ + v1/vald/insert.proto \ + v1/vald/object.proto \ + v1/vald/remove.proto \ + v1/vald/search.proto \ + v1/vald/update.proto \ + v1/vald/upsert.proto \ + v1/payload/payload.proto +PROTOS := $(PROTOS:%=$(PROTO_ROOT)/%) +SHADOWS = $(PROTOS:$(PROTO_ROOT)/%.proto=$(SHADOW_PROTO_ROOT)/%.proto) +NODESOURCES = $(PROTOS:$(PROTO_ROOT)/%.proto=$(NODE_ROOT)/$(SHADOW_ROOT)/%_grpc_pb.js) +NODE_IDXDIR = $(dir $(NODESOURCES)) +NODE_IDXJS = $(NODE_IDXDIR:%=%index.js) +NODE_IDXDTS = $(NODE_IDXDIR:%=%index.d.ts) + +PROTO_PATHS = \ + $(PWD) \ + $(PWD)/$(VALD_DIR) \ + $(PWD)/$(PROTO_ROOT) + +BUF_GEN_PATH = $(NPM_BIN)/node_modules/@bufbuild/buf/bin/buf MAKELISTS = Makefile -JAVA_VERSION := $(eval JAVA_VERSION := $(shell cat ./version/JAVA_VERSION))$(JAVA_VERSION) -GRADLE_VERSION := $(eval GRADLE_VERSION := $(shell cat ./version/GRADLE_VERSION))$(GRADLE_VERSION) - -TEST_DATASET_PATH = wordvecs1000.json - -GRADLE_PROPERTIES_FILE = ~/.gradle/gradle.properties - red = /bin/echo -e "\x1b[31m\#\# $1\x1b[0m" green = /bin/echo -e "\x1b[32m\#\# $1\x1b[0m" yellow = /bin/echo -e "\x1b[33m\#\# $1\x1b[0m" @@ -52,21 +75,9 @@ blue = /bin/echo -e "\x1b[34m\#\# $1\x1b[0m" pink = /bin/echo -e "\x1b[35m\#\# $1\x1b[0m" cyan = /bin/echo -e "\x1b[36m\#\# $1\x1b[0m" -define go-get - GO111MODULE=on go get -u $1 -endef - -define go-get-no-mod - GO111MODULE=off go get -u $1 -endef - -define mkdir - mkdir -p $1 -endef - .PHONY: all ## execute clean and proto -all: clear proto clean +all: clean proto .PHONY: help ## print all available commands @@ -84,49 +95,120 @@ help: { lastLine = $$0 }' $(MAKELISTS) | sort -u @printf "\n" -.PHONY: clear -## clear all dependency files -clear: clean - rm -rf $(JAVA_ROOT) - .PHONY: clean -## clean temp files +## clean clean: + rm -rf index.js index.d.ts + rm -rf $(NODE_ROOT) rm -rf $(VALD_DIR) - rm -rf build - ./gradlew clean + rm -rf $(SHADOW_ROOT) + rm -rf node_modules .PHONY: proto ## build proto -proto: $(VALD_DIR) $(JAVA_ROOT) - @$(call green, "generating .java files...") - sed -i '/lint:/a \ ignore: [v1]' $(PROTO_ROOT)/buf.yaml - echo 'build:\n excludes: [v1/agent/sidecar, v1/discoverer, v1/manager]' >> $(PROTO_ROOT)/buf.yaml - ./gradlew bufGenerate \ - bufFormatApply \ - bufFormatCheck \ - bufLint \ - check \ - -x test - cp -r build/bufbuild/generated/main src - $(MAKE) -s build - -.PHONY: build -## build source -build: - ./gradlew clean - ./gradlew build -x bufFormatApply \ - -x bufFormatCheck \ - -x bufLint \ - -x check \ - -x checkKotlinGradlePluginConfigurationErrors \ - -x checkKotlinGradlePluginConfigurationErrors \ - -x test \ - --stacktrace - -$(JAVA_ROOT): - $(call mkdir, $@) - $(call rm, -rf, $@/*) +proto: \ + $(NODESOURCES) \ + $(NODE_IDXJS) \ + $(NODE_IDXDTS) \ + index.js \ + index.d.ts + +$(PROTOS): $(VALD_DIR) +$(SHADOWS): $(PROTOS) +$(SHADOW_PROTO_ROOT)/%.proto: $(PROTO_ROOT)/%.proto + mkdir -p $(dir $@) + cp $< $@ + sed -i -e 's:^import "v1:import "$(SHADOW_ROOT)/v1:' $@ + +$(NODE_ROOT): + mkdir -p $@ + +$(NODE_IDXDIR): \ + $(NODESOURCES) +$(NODE_IDXJS): \ + $(NODE_IDXDIR) \ + $(NODESOURCES) +$(NODE_IDXDTS): \ + $(NODE_IDXDIR) \ + $(NODESOURCES) +$(NODE_ROOT)/$(SHADOW_ROOT)/%/index.js: $(NODE_ROOT)/$(SHADOW_ROOT)/% + rm -rf $@ + for v in $(filter $> $@; \ + if [ ! "$${name}" = "payload" ]; then \ + echo "module.exports.$${name}_grpc = require(\"./$${name}_pb.grpc-client\");" >> $@; \ + fi; \ + done +$(NODE_ROOT)/$(SHADOW_ROOT)/%/index.d.ts: $(NODE_ROOT)/$(SHADOW_ROOT)/% + rm -rf $@ + ss=""; \ + for v in $(filter $> $@; \ + if [ ! "$${name}" = "payload" ]; then \ + echo "import $${name}_grpc = require(\"./$${name}_pb.grpc-client\");" >> $@; \ + fi; \ + ss="$$ss $$name"; \ + done; \ + echo "declare const _default: {" >> $@; \ + for s in $$ss; \ + do \ + echo " $$s: typeof $$s," >> $@; \ + if [ ! "$${s}" = "payload" ]; then \ + echo " $${s}_grpc: typeof $${s}_grpc," >> $@; \ + fi; \ + done + echo "};" >> $@ + echo "export = _default;" >> $@ + +index.js: $(NODE_IDXJS) + rm -rf $@ + for i in $$(find $(NODE_ROOT)/$(SHADOW_ROOT) -type f -name "index.js"); \ + do \ + d=`echo $$i | \ + sed -e "s:/index.js::"`; \ + s=`echo $$d | \ + sed -e "s:$(NODE_ROOT)/$(SHADOW_ROOT)/::" | \ + sed -e "s:/:_:g"`; \ + echo "module.exports.$$s = require(\"./$$d\");" >> $@; \ + done + +index.d.ts: $(NODE_IDXDTS) + rm -rf $@ + ss=""; \ + for i in $$(find $(NODE_ROOT)/$(SHADOW_ROOT) -type f -name "index.js"); \ + do \ + d=`echo $$i | \ + sed -e "s:/index.js::"`; \ + s=`echo $$d | \ + sed -e "s:$(NODE_ROOT)/$(SHADOW_ROOT)/::" | \ + sed -e "s:/:_:g"`; \ + echo "import $$s = require(\"./$$d\");" >> $@; \ + ss="$$ss $$s"; \ + done; \ + echo "declare const _default: {" >> $@; \ + for s in $$ss; \ + do \ + echo " $$s: typeof $$s," >> $@; \ + done + echo "};" >> $@ + echo "export = _default;" >> $@ + +$(NODESOURCES): \ + $(BUF_GEN_PATH) \ + $(NODE_ROOT) \ + $(SHADOWS) +$(NODE_ROOT)/$(SHADOW_ROOT)/%_grpc_pb.js: $(SHADOW_PROTO_ROOT)/%.proto + @$(call green, "generating node files...") + cp -f $(BUF_CONFIGS) $(SHADOW_ROOT) + $(BUF_GEN_PATH) generate --include-imports $(VALD_DIR): git clone https://$(VALDREPO) $(VALD_DIR) @@ -152,22 +234,32 @@ vald/sha/update: $(VALD_DIR) (cd $(VALD_DIR); git rev-parse HEAD | tr -d '\n' > ../$(VALD_SHA)) .PHONY: vald/client/version/print -## print VALD_CLIENT_JAVA_VERSION value +## print VALD_CLIENT_NODE_VERSION value vald/client/version/print: - @cat $(VALD_CLIENT_JAVA_VERSION) + @cat $(VALD_CLIENT_NODE_VERSION) .PHONY: vald/client/version/update -## update VALD_CLIENT_JAVA_VERSION value +## update VALD_CLIENT_NODE_VERSION value vald/client/version/update: $(VALD_DIR) (vald_version=`cat $(VALD_DIR)/versions/VALD_VERSION | sed -e 's/^v//'`; \ - echo "VALD_VERSION: $${vald_version}"; \ - echo "$${vald_version}" > version/VALD_CLIENT_JAVA_VERSION) - sed -i -e "s/^version = ".*"\$$/version = \"`cat version/VALD_CLIENT_JAVA_VERSION`\"/" build.gradle + echo "VALD_VERSION: $${vald_version}"; \ + echo "$${vald_version}" > VALD_CLIENT_NODE_VERSION) + sed -i -e "s/\"version\": \".*\",\$$/\"version\": \"`cat VALD_CLIENT_NODE_VERSION`\",/" package.json .PHONY: test -## Execute test +## Execute test for CI environment test: $(TEST_DATASET_PATH) - ./gradlew test + npm run test + + # verify example codes + npm pack + npm install -g ts-node + (version=$(shell $(MAKE) -s vald/client/version/print); \ + echo "vald-client-node version: $${version}"; \ + cd example-ts && npm install ../vald-client-node-$${version}.tgz -s -f; \ + DIM=300 ts-node example.ts; \ + cd ../example && npm install ../vald-client-node-$${version}.tgz -s -f; \ + DIM=300 node example.js) $(TEST_DATASET_PATH): curl -L https://raw.githubusercontent.com/rinx/word2vecjson/master/data/wordvecs1000.json -o $(TEST_DATASET_PATH) @@ -175,32 +267,32 @@ $(TEST_DATASET_PATH): .PHONY: ci/deps/install ## install deps for CI environment ci/deps/install: - @echo "Nothing to do" + npm install .PHONY: ci/deps/update ## update deps for CI environment ci/deps/update: - @echo "Nothing to do" + npm update .PHONY: ci/package/prepare ## prepare for publich -ci/package/prepare: - ./gradlew clean - ./script/prepare_gradle_properties.sh ${GRADLE_PROPERTIES_FILE} +ci/package/prepare: \ + ci/deps/install .PHONY: ci/package/publish ## publich packages -ci/package/publish: build - ./gradlew publish -Prelease --stacktrace - sleep 120 - ./gradlew closeAndReleaseRepository --stacktrace - -.PHONY: version/java -## Print Java version -version/java: - @echo $(JAVA_VERSION) - -.PHONY: version/gradle -## Print Gradle version -version/gradle: - @echo $(GRADLE_VERSION) +ci/package/publish: + npm publish + +.PHONY: proto/deps/install +## install proto deps +proto/deps/install: \ + $(BUF_GEN_PATH) + +$(BUF_GEN_PATH): + npm install --save-dev @bufbuild/buf @bufbuild/protobuf + +.PHONY: version/node +## Print Node version +version/node: + @echo $(NODE_VERSION) diff --git a/README.md b/README.md index 78eb7675..ca7d6608 100644 --- a/README.md +++ b/README.md @@ -1,76 +1,24 @@ -# vald-client-java +# vald-client-node -[![Maven Central](https://img.shields.io/maven-central/v/org.vdaas.vald/vald-client-java?style=flat-square)](https://search.maven.org/search?q=g:%22org.vdaas.vald%22%20AND%20a:%22vald-client-java%22) +[![vald-client-node](https://img.shields.io/npm/v/vald-client-node/latest?logo=npm&style=flat-square)](https://www.npmjs.com/package/vald-client-node) [![Vald version](https://img.shields.io/github/release/vdaas/vald.svg?style=flat-square)](https://github.com/vdaas/vald/releases/latest) -[![java](https://img.shields.io/badge/java-17-blue)](https://docs.oracle.com/en/java/javase/17/) -[![kotlin](https://img.shields.io/badge/kotlin-1.9.10-orange)](https://kotlinlang.org/docs/home.html) +![node-current](https://img.shields.io/node/v/vald-client-node) +![Build version](https://img.shields.io/badge/build_version-v18-green) +![total downloads](https://img.shields.io/npm/dt/vald-client-node) -A Java gRPC client library for [Vald](https://github.com/vdaas/vald). -## Usage - -### Dependency - -Add `vald-client-java` into your project dependency. - -For Maven `pom.xml`, - -```xml - - org.vdaas.vald - vald-client-java - x.y.z - - - io.grpc - grpc-api - x.y.z - - - io.grpc - grpc-core - x.y.z - - - io.grpc - grpc-stub - x.y.z - - - io.grpc - grpc-protobuf - x.y.z - - - io.grpc - grpc-netty-shaded - x.y.z - +A Node.js gRPC client library for [Vald](https://github.com/vdaas/vald). -``` +## Install -Gradle `build.gradle`, +Using npm, -```groovy -implementation 'org.vdaas.vald:vald-client-java:x.y.z' -implementation 'io.grpc:grpc-api:x.y.z' -implementation 'io.grpc:grpc-core:x.y.z' -implementation 'io.grpc:grpc-stub:x.y.z' -implementation 'io.grpc:grpc-protobuf:x.y.z' -implementation 'io.grpc:grpc-netty-shaded:x.y.z' +```sh +npm install vald-client-node ``` -`io.grpc:grpc-netty-shaded` can be replaced by `io.grpc:grpc-okhttp` or `io.grpc:grpc-netty`. - -### Example - -Please refer the [examples](./examples) directory. - -To run, +## Usage - $ ./gradlew build - $ cd examples - $ ./gradlew shadowJar - $ java -jar build/libs/vald-client-java-example-0.0.1-all.jar +Please see [example/example.js](example/example.js) or [example-ts/example.ts](example-ts/example.ts). -[![FOSSA Status](https://app.fossa.com/api/projects/custom%2B21465%2Fvald-client-java.svg?type=large)](https://app.fossa.com/projects/custom%2B21465%2Fvald-client-java?ref=badge_large) +[![FOSSA Status](https://app.fossa.com/api/projects/custom%2B21465%2Fvald-client-node.svg?type=large)](https://app.fossa.com/projects/custom%2B21465%2Fvald-client-node?ref=badge_large) diff --git a/version/VALD_CLIENT_JAVA_VERSION b/VALD_CLIENT_NODE_VERSION similarity index 100% rename from version/VALD_CLIENT_JAVA_VERSION rename to VALD_CLIENT_NODE_VERSION diff --git a/VALD_SHA b/VALD_SHA index e1209c9e..22a27bef 100644 --- a/VALD_SHA +++ b/VALD_SHA @@ -1 +1 @@ -8a362498886e9cd5e44b20985cd0b2f47b9687aa \ No newline at end of file +529e3d04e54300aa624f27d0659f8aa59ac6fcf7 \ No newline at end of file diff --git a/buf.gen.yaml b/buf.gen.yaml index a6c02dc8..ecf58a82 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,6 +1,17 @@ version: v1 +managed: + enabled: true plugins: - - plugin: buf.build/grpc/java - out: main/java - - plugin: buf.build/protocolbuffers/java:v25.3 - out: main/java + - plugin: buf.build/community/timostamm-protobuf-ts + out: src + # https://github.com/timostamm/protobuf-ts/blob/main/MANUAL.md#the-protoc-plugin + opt: + - add_pb_suffix + - client_grpc1 + - generate_dependencies + - keep_enum_prefix + - ts_nocheck + - use_proto_field_name + - output_javascript + - output_legacy_commonjs + - eslint_disable diff --git a/buf.work.yaml b/buf.work.yaml index 221856c9..00baabc2 100644 --- a/buf.work.yaml +++ b/buf.work.yaml @@ -1,3 +1,3 @@ version: v1 directories: - - vald/apis/proto + - vald diff --git a/build.gradle b/build.gradle deleted file mode 100644 index 1d39cef8..00000000 --- a/build.gradle +++ /dev/null @@ -1,167 +0,0 @@ -buildscript { - ext.kotlin_version = '2.0.0' - repositories { - mavenCentral() - //Needed only for SNAPSHOT versions - //maven { url "http://oss.sonatype.org/content/repositories/snapshots/" } - } - dependencies { - classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0" - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version" - classpath 'build.buf:buf-gradle-plugin:0.9.0' - } -} - -apply plugin: "java" -apply plugin: "kotlin" -apply plugin: "kotlinx-serialization" -apply plugin: "maven-publish" -apply plugin: "signing" -apply plugin: 'io.codearte.nexus-staging' -apply plugin: 'build.buf' - -group = "org.vdaas.vald" -archivesBaseName = "vald-client-java" -version = "1.7.12" -description = "a client library for Vald (https://github.com/vdaas/vald)." - -def isDevBuild -def isSnapshotBuild -def isReleaseBuild -def sonatypeRepositoryUrl -def sonatypeUsername = System.getenv('SONATYPE_USERNAME') -def sonatypePassword = System.getenv('SONATYPE_PASSWORD') -def protoDepsPath = "proto_deps" - -if (hasProperty("release")) { - isReleaseBuild = true - sonatypeRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" -} else if (hasProperty("snapshot")) { - isSnapshotBuild = true - version += "-SNAPSHOT" - sonatypeRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/" -} else { - isDevBuild = true - version += "-SNAPSHOT" -} - -nexusStaging { - packageGroup = "org.vdaas.vald" - stagingProfileId = "24fc47a63d38e2" - numberOfRetries = 100 - delayBetweenRetriesInMillis = 30000 -} - -repositories { - jcenter() - if (isDevBuild) { - mavenLocal() - } else { - mavenCentral() - } -} - -dependencies { - implementation 'io.grpc:grpc-stub:1.64.0' - implementation 'io.grpc:grpc-protobuf:1.64.0' - implementation group: 'com.google.protobuf', name: 'protobuf-java', version: '3.25.1' - implementation 'javax.annotation:javax.annotation-api:1.3.2' - implementation 'build.buf:protovalidate:0.2.1' - - testImplementation 'org.jetbrains.kotlin:kotlin-stdlib:2.0.0' - testImplementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3' - testImplementation 'org.junit.jupiter:junit-jupiter:5.10.2' - testImplementation 'io.grpc:grpc-okhttp:1.64.0' -} - -test { - useJUnitPlatform() - testLogging { - showStandardStreams true - events 'started', 'skipped', 'passed', 'failed' - exceptionFormat 'full' - } -} - -task sourcesJar(type: Jar, dependsOn: classes) { - archiveClassifier = 'sources' - from sourceSets.main.allSource -} - -task javadocJar(type: Jar, dependsOn: javadoc) { - archiveClassifier = 'javadoc' - from javadoc.destinationDir -} - -artifacts { - archives sourcesJar, javadocJar -} - -publishing { - publications { - mavenJava(MavenPublication) { - from components.java - artifact sourcesJar - artifact javadocJar - pom { - name = 'vald-client-java' - packaging = 'jar' - description = "a client library for Vald (https://github.com/vdaas/vald)." - url = 'https://github.com/vdaas/vald-client-java' - - scm { - url = "scm:git@github.com:vdaas/vald-client-java.git" - connection = "scm:git@github.com:vdaas/vald-client-java.git" - developerConnection = "scm:git@github.com:vdaas/vald-client-java.git" - } - licenses { - license { - name = 'Apache 2.0' - url = 'https://www.apache.org/licenses/LICENSE-2.0' - } - } - developers { - developer { - id = 'kpango' - name = 'Yusuke Kato' - email = 'kpango@vdaas.org' - } - developer { - id = 'kmrmt' - name = 'Kosuke Morimoto' - email = 'ksk@vdaas.org' - } - developer { - id = 'kevindiu' - name = 'Kevin Diu' - email = 'kevindiu@vdaas.org' - } - } - } - } - } - - repositories { - maven { - url = sonatypeRepositoryUrl - credentials { - username = sonatypeUsername - password = sonatypePassword - } - } - } -} - -signing { - required { isReleaseBuild } - if(isReleaseBuild) { - sign publishing.publications.mavenJava - } -} - -javadoc { - if(JavaVersion.current().isJava9Compatible()) { - options.addBooleanOption('html5', true) - } -} diff --git a/copy-client.sh b/copy-client.sh index e14bba6a..e20e31cb 100644 --- a/copy-client.sh +++ b/copy-client.sh @@ -16,84 +16,85 @@ # Java -# rm -rf buf.gen.yaml -# rm -rf buf.work.yaml -# rm -rf build.gradle -# rm -rf examples -# rm -rf .fossa.yml -# rm -rf .github -# rm -rf .gitignore -# rm -rf gradle -# rm -rf gradlew -# rm -rf gradlew.bat -# rm -rf Makefile -# rm -rf README.md -# rm -rf settings.gradle -# rm -rf src -# rm -rf VALD_SHA -# rm -rf version +rm -rf buf.gen.yaml +rm -rf buf.work.yaml +rm -rf build.gradle +rm -rf examples +rm -rf .fossa.yml +rm -rf .github +rm -rf .gitignore +rm -rf gradle +rm -rf gradlew +rm -rf gradlew.bat +rm -rf Makefile +rm -rf README.md +rm -rf settings.gradle +rm -rf src +rm -rf VALD_SHA +rm -rf version # -cp -R ../vald-client-java/buf.gen.yaml . -cp -R ../vald-client-java/buf.work.yaml . -cp -R ../vald-client-java/build.gradle . -cp -R ../vald-client-java/examples . -cp -R ../vald-client-java/.fossa.yml . -cp -R ../vald-client-java/.github . -cp -R ../vald-client-java/.gitignore . -cp -R ../vald-client-java/gradle . -cp -R ../vald-client-java/gradlew . -cp -R ../vald-client-java/gradlew.bat . -cp -R ../vald-client-java/LICENSE . -cp -R ../vald-client-java/Makefile . -cp -R ../vald-client-java/README.md . -cp -R ../vald-client-java/settings.gradle . -cp -R ../vald-client-java/src . -cp -R ../vald-client-java/VALD_SHA . -cp -R ../vald-client-java/version . +# cp -R ../vald-client-java/buf.gen.yaml . +# cp -R ../vald-client-java/buf.work.yaml . +# cp -R ../vald-client-java/build.gradle . +# cp -R ../vald-client-java/examples . +# cp -R ../vald-client-java/.fossa.yml . +# cp -R ../vald-client-java/.github . +# cp -R ../vald-client-java/.gitignore . +# cp -R ../vald-client-java/gradle . +# cp -R ../vald-client-java/gradlew . +# cp -R ../vald-client-java/gradlew.bat . +# cp -R ../vald-client-java/LICENSE . +# cp -R ../vald-client-java/Makefile . +# cp -R ../vald-client-java/README.md . +# cp -R ../vald-client-java/settings.gradle . +# cp -R ../vald-client-java/src . +# cp -R ../vald-client-java/VALD_SHA . +# cp -R ../vald-client-java/version . # Node -# rm -rf buf.gen.yaml -# rm -rf buf.work.yaml -# rm -rf example -# rm -rf example-ts -# rm -rf .gitignore -# rm -rf index.d.ts -# rm -rf index.js -# rm -rf jest.config.ts -# rm -rf Makefile -# rm -rf node_modules -# rm -rf .npmignore -# rm -rf .npmrc -# rm -rf package.json -# rm -rf package-lock.json -# rm -rf README.md -# rm -rf src -# rm -rf tests -# rm -rf tsconfig.json -# rm -rf VALD_CLIENT_NODE_VERSION -# rm -rf VALD_SHA -# rm -rf NODE_VERSION -# -# # cp -R ../vald-client-node/buf.gen.yaml . -# # cp -R ../vald-client-node/buf.work.yaml . -# # cp -R ../vald-client-node/example . -# # cp -R ../vald-client-node/example-ts . -# # cp -R ../vald-client-node/.gitignore . -# # cp -R ../vald-client-node/index.d.ts . -# # cp -R ../vald-client-node/index.js . -# # cp -R ../vald-client-node/jest.config.ts . -# # cp -R ../vald-client-node/Makefile . -# # cp -R ../vald-client-node/node_modules . -# # cp -R ../vald-client-node/.npmignore . -# # cp -R ../vald-client-node/.npmrc . -# # cp -R ../vald-client-node/package.json . -# # cp -R ../vald-client-node/package-lock.json . -# # cp -R ../vald-client-node/README.md . -# # cp -R ../vald-client-node/src . -# # cp -R ../vald-client-node/tests . -# # cp -R ../vald-client-node/tsconfig.json . -# # cp -R ../vald-client-node/VALD_CLIENT_NODE_VERSION . -# # cp -R ../vald-client-node/VALD_SHA . +rm -rf buf.gen.yaml +rm -rf buf.work.yaml +rm -rf example +rm -rf example-ts +rm -rf .gitignore +rm -rf index.d.ts +rm -rf index.js +rm -rf jest.config.ts +rm -rf Makefile +rm -rf node_modules +rm -rf .npmignore +rm -rf .npmrc +rm -rf package.json +rm -rf package-lock.json +rm -rf README.md +rm -rf src +rm -rf tests +rm -rf tsconfig.json +rm -rf VALD_CLIENT_NODE_VERSION +rm -rf VALD_SHA +rm -rf NODE_VERSION + +cp -R ../vald-client-node/buf.gen.yaml . +cp -R ../vald-client-node/buf.work.yaml . +cp -R ../vald-client-node/example . +cp -R ../vald-client-node/example-ts . +cp -R ../vald-client-node/.github . +cp -R ../vald-client-node/.gitignore . +cp -R ../vald-client-node/index.d.ts . +cp -R ../vald-client-node/index.js . +cp -R ../vald-client-node/jest.config.ts . +cp -R ../vald-client-node/Makefile . +cp -R ../vald-client-node/node_modules . +cp -R ../vald-client-node/.npmignore . +cp -R ../vald-client-node/.npmrc . +cp -R ../vald-client-node/package.json . +cp -R ../vald-client-node/package-lock.json . +cp -R ../vald-client-node/README.md . +cp -R ../vald-client-node/src . +cp -R ../vald-client-node/tests . +cp -R ../vald-client-node/tsconfig.json . +cp -R ../vald-client-node/VALD_CLIENT_NODE_VERSION . +cp -R ../vald-client-node/VALD_SHA . # # # Python # diff --git a/example-ts/.gitignore b/example-ts/.gitignore new file mode 100644 index 00000000..46322b82 --- /dev/null +++ b/example-ts/.gitignore @@ -0,0 +1,2 @@ +example.js +node_modules diff --git a/example-ts/example.ts b/example-ts/example.ts new file mode 100644 index 00000000..3cc6cf4f --- /dev/null +++ b/example-ts/example.ts @@ -0,0 +1,143 @@ +import * as grpc from "@grpc/grpc-js"; +import { v1_vald, v1_payload } from "vald-client-node"; +import type { Insert_Request, Search_Request, Remove_Request } from "vald-client-node/src/vald/v1/payload/payload_pb"; + +const addr = "localhost:8081"; +const DIM = process.env.DIM || 4; +const ID = "id_1"; + +// sleep +const sleep = async (second: number) => + new Promise((resolve) => { + console.log("Wait for ", second, "s"); + setTimeout(resolve, second * 1000); + }); + +const main = async () => { + const vec: Array = []; + for (let i = 0; i < Number(DIM); i++) { + vec.push(0.1 * (i + 1)); + } + + // insert + const ivec = v1_payload.payload.Object_Vector.create({ + id: ID, + vector: vec, + }); + + const icfg = v1_payload.payload.Insert_Config.create({ + skip_strict_exist_check: false + }) + + const ireq = v1_payload.payload.Insert_Request.create({ + vector: ivec, + config: icfg, + }) + + const iclient = new v1_vald.insert_grpc.InsertClient( + addr, + grpc.credentials.createInsecure() + ); + + const insertFunc = async (req: Insert_Request) => { + return new Promise((resolve, reject) => { + iclient.insert(req, (err, resp) => { + if (err) { + reject(err); + } else { + resolve(resp); + } + }); + }); + }; + await insertFunc(ireq) + .then((res) => { + console.log("insert resp: ", res); + }) + .catch((e) => { + console.log("err: ", e); + process.exit(1); + }); + + const second = 100; + await sleep(second); + + // search + const scfg = v1_payload.payload.Search_Config.create({ + num: 10, + min_num: 1, + radius: -1.0, + epsilon: 0.01, + timeout: BigInt(3000000000), + }) + + const sreq = v1_payload.payload.Search_Request.create({ + vector: vec, + config: scfg, + }) + const sclient = new v1_vald.search_grpc.SearchClient( + addr, + grpc.credentials.createInsecure() + ); + + const searchFunc = async (req: Search_Request) => { + return new Promise((resolve, reject) => { + sclient.search(req, (err, resp) => { + if (err) { + reject(err); + } else { + resolve(resp); + } + }); + }); + }; + await searchFunc(sreq) + .then((res) => { + console.log("search res: ", res, "\n"); + }) + .catch((e) => { + console.log("err: ", e); + process.exit(1); + }); + + // remove + const rcfg = v1_payload.payload.Remove_Config.create({ + skip_strict_exist_check: false + }); + + const robjId = v1_payload.payload.Object_ID.create({ + id: ID, + }); + const rreq = v1_payload.payload.Remove_Request.create({ + id: robjId, + config: rcfg, + }); + + const rclient = new v1_vald.remove_grpc.RemoveClient( + addr, + grpc.credentials.createInsecure() + ); + + const removeFunc = async (req: Remove_Request) => { + return new Promise((resolve, reject) => { + rclient.remove(req, (err, resp) => { + if (err) { + reject(err); + } else { + resolve(resp); + } + }); + }); + }; + await removeFunc(rreq) + .then((res) => { + console.log("remove res: ", res, "\n"); + }) + .catch((e) => { + console.log("err: ", e); + process.exit(1); + }); + process.exit(0); +}; + +main(); diff --git a/example-ts/package-lock.json b/example-ts/package-lock.json new file mode 100644 index 00000000..4556d005 --- /dev/null +++ b/example-ts/package-lock.json @@ -0,0 +1,342 @@ +{ + "name": "example-ts", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "example-ts", + "version": "1.0.0", + "license": "Apache-2.0", + "dependencies": { + "@grpc/grpc-js": "^1.10.6", + "vald-client-node": "^1.7.12" + } + }, + "node_modules/@grpc/grpc-js": { + "version": "1.10.6", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.10.6.tgz", + "integrity": "sha512-xP58G7wDQ4TCmN/cMUHh00DS7SRDv/+lC+xFLrTkMIN8h55X5NhZMLYbvy7dSELP15qlI6hPhNCRWVMtZMwqLA==", + "dependencies": { + "@grpc/proto-loader": "^0.7.10", + "@js-sdsl/ordered-map": "^4.4.2" + }, + "engines": { + "node": ">=12.10.0" + } + }, + "node_modules/@grpc/proto-loader": { + "version": "0.7.12", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.12.tgz", + "integrity": "sha512-DCVwMxqYzpUCiDMl7hQ384FqP4T3DbNpXU8pt681l3UWCip1WUiD5JrkImUwCB9a7f2cq4CUTmi5r/xIMRPY1Q==", + "dependencies": { + "lodash.camelcase": "^4.3.0", + "long": "^5.0.0", + "protobufjs": "^7.2.4", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@js-sdsl/ordered-map": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", + "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/js-sdsl" + } + }, + "node_modules/@protobuf-ts/runtime": { + "version": "2.9.4", + "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime/-/runtime-2.9.4.tgz", + "integrity": "sha512-vHRFWtJJB/SiogWDF0ypoKfRIZ41Kq+G9cEFj6Qm1eQaAhJ1LDFvgZ7Ja4tb3iLOQhz0PaoPnnOijF1qmEqTxg==" + }, + "node_modules/@protobuf-ts/runtime-rpc": { + "version": "2.9.4", + "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime-rpc/-/runtime-rpc-2.9.4.tgz", + "integrity": "sha512-y9L9JgnZxXFqH5vD4d7j9duWvIJ7AShyBRoNKJGhu9Q27qIbchfzli66H9RvrQNIFk5ER7z1Twe059WZGqERcA==", + "dependencies": { + "@protobuf-ts/runtime": "^2.9.4" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" + }, + "node_modules/@types/node": { + "version": "20.12.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.7.tgz", + "integrity": "sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==", + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/escalade": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" + }, + "node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" + }, + "node_modules/protobufjs": { + "version": "7.2.6", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.6.tgz", + "integrity": "sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw==", + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, + "node_modules/vald-client-node": { + "version": "1.7.12", + "resolved": "https://registry.npmjs.org/vald-client-node/-/vald-client-node-1.7.12.tgz", + "integrity": "sha512-ntqRHultpWZBUtSc23Zhxm1x/66tnirencjHh7LMYFYFQolSxBD2dMYU4hghhQfuYfDdVpIBLOwlFVLk95kR/g==", + "dependencies": { + "@grpc/grpc-js": "^1.10.0", + "@protobuf-ts/runtime": "^2.9.3", + "@protobuf-ts/runtime-rpc": "^2.9.3" + }, + "engines": { + "node": ">=18.16.0" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "engines": { + "node": ">=12" + } + } + } +} diff --git a/example-ts/package.json b/example-ts/package.json new file mode 100644 index 00000000..27682ad8 --- /dev/null +++ b/example-ts/package.json @@ -0,0 +1,15 @@ +{ + "name": "example-ts", + "version": "1.0.0", + "description": "", + "main": "example.ts", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "Vald authors (https://vald.vdaas.org)", + "license": "Apache-2.0", + "dependencies": { + "@grpc/grpc-js": "^1.10.6", + "vald-client-node": "^1.7.12" + } +} diff --git a/example-ts/tsconfig.json b/example-ts/tsconfig.json new file mode 100644 index 00000000..574e785c --- /dev/null +++ b/example-ts/tsconfig.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "target": "es2020", + "module": "commonjs", + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + "skipLibCheck": true, + "resolveJsonModule": true + } +} diff --git a/example/.gitignore b/example/.gitignore new file mode 100644 index 00000000..3c3629e6 --- /dev/null +++ b/example/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/example/example.js b/example/example.js new file mode 100644 index 00000000..17519d01 --- /dev/null +++ b/example/example.js @@ -0,0 +1,146 @@ +const grpc = require("@grpc/grpc-js"); +const vald = require("vald-client-node"); + +const insert = vald.v1_vald.insert_grpc; +const search = vald.v1_vald.search_grpc; +const remove = vald.v1_vald.remove_grpc; +const payload = vald.v1_payload.payload; + +const addr = "localhost:8081"; +const DIM = process.env.DIM || 4; +const ID = "id_1"; + +// sleep +const sleep = (second) => + new Promise((resolve) => { + console.log("Wait for ", second, "s"); + setTimeout(resolve, second * 1000); + }); + +const main = async () => { + const vec = []; + for (let i = 0; i < DIM; i++) { + vec.push(0.1 * (i + 1)); + } + + // insert + const ivec = payload.Object_Vector.create({ + id: ID, + vector: vec, + }); + + const icfg = payload.Insert_Config.create({ + skip_strict_exist_check: false, + }); + + const ireq = payload.Insert_Request.create({ + vector: ivec, + config: icfg, + }); + + const iclient = new insert.InsertClient( + addr, + grpc.credentials.createInsecure(), + ); + + const insertFunc = async (req) => { + return new Promise((resolve, reject) => { + iclient.insert(req, (err, resp) => { + if (err) { + reject(err); + } else { + resolve(resp); + } + }); + }); + }; + console.log("Insert start"); + await insertFunc(ireq) + .then((res) => { + console.log("insert res: ", res); + }) + .catch((e) => { + console.log("insert err: ", e); + process.exit(1); + }); + // Wait for createIndex completed + const second = 90; + await sleep(second); + + // search + const scfg = payload.Search_Config.create({ + num: 10, + min_num: 1, + radius: -1, + epsilon: 0.01, + timeout: 3000000000, + }); + + const sreq = payload.Search_Request.create({ + vector: vec, + config: scfg, + }); + + const sclient = new search.SearchClient( + addr, + grpc.credentials.createInsecure(), + ); + + const searchFunc = async (req) => { + return new Promise((resolve, reject) => { + sclient.search(req, (err, resp) => { + if (err) { + reject(err); + } else { + resolve(resp); + } + }); + }); + }; + console.log("Search start"); + await searchFunc(sreq) + .then((res) => { + console.log("search res: ", res); + }) + .catch((e) => { + console.log("err: ", e); + process.exit(1); + }); + + const rcfg = payload.Remove_Config.create({ + skip_strict_exist_check: false, + }); + const robjId = payload.Object_ID.create({ + id: ID, + }); + const rreq = payload.Remove_Request.create({ + id: robjId, + config: rcfg, + }); + const rclient = new remove.RemoveClient( + addr, + grpc.credentials.createInsecure(), + ); + const removeFunc = async (req) => { + return new Promise((resolve, reject) => { + rclient.remove(req, (err, resp) => { + if (err) { + reject(err); + } else { + resolve(resp); + } + }); + }); + }; + await removeFunc(rreq) + .then((res) => { + console.log("remove res: ", res); + }) + .catch((e) => { + console.log("err: ", e); + process.exit(1); + }); + process.exit(0); +}; + +main(); diff --git a/example/package-lock.json b/example/package-lock.json new file mode 100644 index 00000000..874a6bd5 --- /dev/null +++ b/example/package-lock.json @@ -0,0 +1,342 @@ +{ + "name": "example", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "example", + "version": "1.0.0", + "license": "Apache-2.0", + "dependencies": { + "@grpc/grpc-js": "^1.10.6", + "vald-client-node": "^1.7.12" + } + }, + "node_modules/@grpc/grpc-js": { + "version": "1.10.6", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.10.6.tgz", + "integrity": "sha512-xP58G7wDQ4TCmN/cMUHh00DS7SRDv/+lC+xFLrTkMIN8h55X5NhZMLYbvy7dSELP15qlI6hPhNCRWVMtZMwqLA==", + "dependencies": { + "@grpc/proto-loader": "^0.7.10", + "@js-sdsl/ordered-map": "^4.4.2" + }, + "engines": { + "node": ">=12.10.0" + } + }, + "node_modules/@grpc/proto-loader": { + "version": "0.7.12", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.12.tgz", + "integrity": "sha512-DCVwMxqYzpUCiDMl7hQ384FqP4T3DbNpXU8pt681l3UWCip1WUiD5JrkImUwCB9a7f2cq4CUTmi5r/xIMRPY1Q==", + "dependencies": { + "lodash.camelcase": "^4.3.0", + "long": "^5.0.0", + "protobufjs": "^7.2.4", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@js-sdsl/ordered-map": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", + "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/js-sdsl" + } + }, + "node_modules/@protobuf-ts/runtime": { + "version": "2.9.4", + "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime/-/runtime-2.9.4.tgz", + "integrity": "sha512-vHRFWtJJB/SiogWDF0ypoKfRIZ41Kq+G9cEFj6Qm1eQaAhJ1LDFvgZ7Ja4tb3iLOQhz0PaoPnnOijF1qmEqTxg==" + }, + "node_modules/@protobuf-ts/runtime-rpc": { + "version": "2.9.4", + "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime-rpc/-/runtime-rpc-2.9.4.tgz", + "integrity": "sha512-y9L9JgnZxXFqH5vD4d7j9duWvIJ7AShyBRoNKJGhu9Q27qIbchfzli66H9RvrQNIFk5ER7z1Twe059WZGqERcA==", + "dependencies": { + "@protobuf-ts/runtime": "^2.9.4" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" + }, + "node_modules/@types/node": { + "version": "20.12.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.7.tgz", + "integrity": "sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==", + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/escalade": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" + }, + "node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" + }, + "node_modules/protobufjs": { + "version": "7.2.6", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.6.tgz", + "integrity": "sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw==", + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, + "node_modules/vald-client-node": { + "version": "1.7.12", + "resolved": "https://registry.npmjs.org/vald-client-node/-/vald-client-node-1.7.12.tgz", + "integrity": "sha512-ntqRHultpWZBUtSc23Zhxm1x/66tnirencjHh7LMYFYFQolSxBD2dMYU4hghhQfuYfDdVpIBLOwlFVLk95kR/g==", + "dependencies": { + "@grpc/grpc-js": "^1.10.0", + "@protobuf-ts/runtime": "^2.9.3", + "@protobuf-ts/runtime-rpc": "^2.9.3" + }, + "engines": { + "node": ">=18.16.0" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "engines": { + "node": ">=12" + } + } + } +} diff --git a/example/package.json b/example/package.json new file mode 100644 index 00000000..c28215dd --- /dev/null +++ b/example/package.json @@ -0,0 +1,15 @@ +{ + "name": "example", + "version": "1.0.0", + "description": "", + "main": "example.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "Vald authors (https://vald.vdaas.org)", + "license": "Apache-2.0", + "dependencies": { + "@grpc/grpc-js": "^1.10.6", + "vald-client-node": "^1.7.12" + } +} diff --git a/examples/build.gradle b/examples/build.gradle deleted file mode 100644 index dd544aa5..00000000 --- a/examples/build.gradle +++ /dev/null @@ -1,45 +0,0 @@ -buildscript { - repositories { - mavenCentral() - } -} - -plugins { - id 'com.github.johnrengelman.shadow' version '8.1.1' - id 'java' -} - -group = "org.vdaas.vald" -archivesBaseName = "vald-client-java-example" -version = "0.0.1" -description = "an example of the client library for Vald (https://github.com/vdaas/vald)." - -repositories { - mavenCentral() -} - -dependencies { - implementation fileTree(dir: '../build/libs', include: '*.jar') - implementation 'io.grpc:grpc-api:1.58.0' - implementation 'io.grpc:grpc-core:1.58.0' - implementation 'io.grpc:grpc-stub:1.58.0' - implementation 'io.grpc:grpc-protobuf:1.58.0' - implementation 'io.grpc:grpc-netty-shaded:1.58.0' - implementation 'io.envoyproxy.protoc-gen-validate:pgv-java-stub:0.6.13' -} - -task sourcesJar(type: Jar, dependsOn: classes) { - archiveClassifier = 'sources' - from sourceSets.main.allSource -} - -task javadocJar(type: Jar, dependsOn: javadoc) { - archiveClassifier = 'javadoc' - from javadoc.destinationDir -} - -jar { - manifest { - attributes 'Main-Class': 'org.vdaas.vald.Client' - } -} diff --git a/examples/gradle b/examples/gradle deleted file mode 120000 index 3337596a..00000000 --- a/examples/gradle +++ /dev/null @@ -1 +0,0 @@ -../gradle \ No newline at end of file diff --git a/examples/gradlew b/examples/gradlew deleted file mode 120000 index 502f5a2d..00000000 --- a/examples/gradlew +++ /dev/null @@ -1 +0,0 @@ -../gradlew \ No newline at end of file diff --git a/examples/gradlew.bat b/examples/gradlew.bat deleted file mode 120000 index 28401328..00000000 --- a/examples/gradlew.bat +++ /dev/null @@ -1 +0,0 @@ -../gradlew.bat \ No newline at end of file diff --git a/examples/settings.gradle b/examples/settings.gradle deleted file mode 100644 index f29a7cbe..00000000 --- a/examples/settings.gradle +++ /dev/null @@ -1,10 +0,0 @@ -/* - * This file was generated by the Gradle 'init' task. - * - * The settings file is used to specify which projects to include in your build. - * - * Detailed information about configuring a multi-project build in Gradle can be found - * in the user manual at https://docs.gradle.org/5.4.1/userguide/multi_project_builds.html - */ - -rootProject.name = 'vald-client-java-example' diff --git a/examples/src/main/java/org/vdaas/vald/Client.java b/examples/src/main/java/org/vdaas/vald/Client.java deleted file mode 100644 index e5200550..00000000 --- a/examples/src/main/java/org/vdaas/vald/Client.java +++ /dev/null @@ -1,122 +0,0 @@ -package org.vdaas.vald; - -import java.util.Arrays; -import java.util.List; - -import io.grpc.ManagedChannel; -import io.grpc.ManagedChannelBuilder; - -import org.vdaas.vald.api.v1.vald.InsertGrpc; -import org.vdaas.vald.api.v1.vald.SearchGrpc; -import org.vdaas.vald.api.v1.vald.UpdateGrpc; -import org.vdaas.vald.api.v1.vald.RemoveGrpc; - -import org.vdaas.vald.api.v1.payload.Insert; -import org.vdaas.vald.api.v1.payload.Search; -import org.vdaas.vald.api.v1.payload.Update; -import org.vdaas.vald.api.v1.payload.Remove; -import org.vdaas.vald.api.v1.payload.Object; - -public class Client { - ManagedChannel channel; - InsertGrpc.InsertBlockingStub istub; - SearchGrpc.SearchBlockingStub sstub; - UpdateGrpc.UpdateBlockingStub ustub; - RemoveGrpc.RemoveBlockingStub rstub; - - public static Client create(String host, int port) { - Client client = new Client(); - - // Generate channel and stubs - client.channel = ManagedChannelBuilder.forAddress(host, port).usePlaintext().build(); - - client.istub = InsertGrpc.newBlockingStub(client.channel); - client.sstub = SearchGrpc.newBlockingStub(client.channel); - client.ustub = UpdateGrpc.newBlockingStub(client.channel); - client.rstub = RemoveGrpc.newBlockingStub(client.channel); - - return client; - } - - public void close() { - // Close channel - channel.shutdown(); - } - - public Object.Location insert(String id, List vec) { - // Insert - Object.Vector ovec = Object.Vector.newBuilder() - .setId(id) - .addAllVector(vec) - .build(); - Insert.Config icfg = Insert.Config.newBuilder() - .setSkipStrictExistCheck(true) - .build(); - Insert.Request ireq = Insert.Request.newBuilder() - .setVector(ovec) - .setConfig(icfg) - .build(); - return istub.insert(ireq); - } - - public Search.Response search(List vec) { - // Search - Search.Config scfg = Search.Config.newBuilder() - .setNum(10) - .setRadius(-1.0f) - .setEpsilon(0.01f) - .setTimeout(3000000000L) - .build(); - Search.Request sreq = Search.Request.newBuilder() - .addAllVector(vec) - .setConfig(scfg) - .build(); - return sstub.search(sreq); - } - - public Object.Location update(String id, List vec) { - // Update - Object.Vector ovec = Object.Vector.newBuilder() - .setId(id) - .addAllVector(vec) - .build(); - Update.Config ucfg = Update.Config.newBuilder() - .setSkipStrictExistCheck(true) - .build(); - Update.Request ureq = Update.Request.newBuilder() - .setVector(ovec) - .setConfig(ucfg) - .build(); - return ustub.update(ureq); - } - - public Object.Location remove(String id) { - // Remove - Remove.Config rcfg = Remove.Config.newBuilder() - .setSkipStrictExistCheck(true) - .build(); - Remove.Request rreq = Remove.Request.newBuilder() - .setId(Object.ID.newBuilder().setId(id).build()) - .setConfig(rcfg) - .build(); - return rstub.remove(rreq); - } - - public static void main(String[] args) throws Exception { - Client client = Client.create("localhost", 8081); - - Object.Location ires = client.insert("vector_id_1", Arrays.asList(0.1f, 0.2f, 0.3f)); - System.out.println(ires.toString()); - - Search.Response sres = client.search(Arrays.asList(0.1f, 0.2f, 0.3f)); - System.out.println(sres.toString()); - - Object.Location ures = client.update("vector_id_1", Arrays.asList(0.1f, 0.2f, 0.3f)); - System.out.println(ures.toString()); - - Object.Location rres = client.remove("vector_id_1"); - System.out.println(rres.toString()); - - client.close(); - } -} diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index e6441136f3d4ba8a0da8d277868979cfbc8ad796..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 43453 zcma&N1CXTcmMvW9vTb(Rwr$&4wr$(C?dmSu>@vG-+vuvg^_??!{yS%8zW-#zn-LkA z5&1^$^{lnmUON?}LBF8_K|(?T0Ra(xUH{($5eN!MR#ZihR#HxkUPe+_R8Cn`RRs(P z_^*#_XlXmGv7!4;*Y%p4nw?{bNp@UZHv1?Um8r6)Fei3p@ClJn0ECfg1hkeuUU@Or zDaPa;U3fE=3L}DooL;8f;P0ipPt0Z~9P0)lbStMS)ag54=uL9ia-Lm3nh|@(Y?B`; zx_#arJIpXH!U{fbCbI^17}6Ri*H<>OLR%c|^mh8+)*h~K8Z!9)DPf zR2h?lbDZQ`p9P;&DQ4F0sur@TMa!Y}S8irn(%d-gi0*WxxCSk*A?3lGh=gcYN?FGl z7D=Js!i~0=u3rox^eO3i@$0=n{K1lPNU zwmfjRVmLOCRfe=seV&P*1Iq=^i`502keY8Uy-WNPwVNNtJFx?IwAyRPZo2Wo1+S(xF37LJZ~%i)kpFQ3Fw=mXfd@>%+)RpYQLnr}B~~zoof(JVm^^&f zxKV^+3D3$A1G;qh4gPVjhrC8e(VYUHv#dy^)(RoUFM?o%W-EHxufuWf(l*@-l+7vt z=l`qmR56K~F|v<^Pd*p~1_y^P0P^aPC##d8+HqX4IR1gu+7w#~TBFphJxF)T$2WEa zxa?H&6=Qe7d(#tha?_1uQys2KtHQ{)Qco)qwGjrdNL7thd^G5i8Os)CHqc>iOidS} z%nFEDdm=GXBw=yXe1W-ShHHFb?Cc70+$W~z_+}nAoHFYI1MV1wZegw*0y^tC*s%3h zhD3tN8b=Gv&rj}!SUM6|ajSPp*58KR7MPpI{oAJCtY~JECm)*m_x>AZEu>DFgUcby z1Qaw8lU4jZpQ_$;*7RME+gq1KySGG#Wql>aL~k9tLrSO()LWn*q&YxHEuzmwd1?aAtI zBJ>P=&$=l1efe1CDU;`Fd+_;&wI07?V0aAIgc(!{a z0Jg6Y=inXc3^n!U0Atk`iCFIQooHqcWhO(qrieUOW8X(x?(RD}iYDLMjSwffH2~tB z)oDgNBLB^AJBM1M^c5HdRx6fBfka`(LD-qrlh5jqH~);#nw|iyp)()xVYak3;Ybik z0j`(+69aK*B>)e_p%=wu8XC&9e{AO4c~O1U`5X9}?0mrd*m$_EUek{R?DNSh(=br# z#Q61gBzEpmy`$pA*6!87 zSDD+=@fTY7<4A?GLqpA?Pb2z$pbCc4B4zL{BeZ?F-8`s$?>*lXXtn*NC61>|*w7J* z$?!iB{6R-0=KFmyp1nnEmLsA-H0a6l+1uaH^g%c(p{iT&YFrbQ$&PRb8Up#X3@Zsk zD^^&LK~111%cqlP%!_gFNa^dTYT?rhkGl}5=fL{a`UViaXWI$k-UcHJwmaH1s=S$4 z%4)PdWJX;hh5UoK?6aWoyLxX&NhNRqKam7tcOkLh{%j3K^4Mgx1@i|Pi&}<^5>hs5 zm8?uOS>%)NzT(%PjVPGa?X%`N2TQCKbeH2l;cTnHiHppPSJ<7y-yEIiC!P*ikl&!B z%+?>VttCOQM@ShFguHVjxX^?mHX^hSaO_;pnyh^v9EumqSZTi+#f&_Vaija0Q-e*| z7ulQj6Fs*bbmsWp{`auM04gGwsYYdNNZcg|ph0OgD>7O}Asn7^Z=eI>`$2*v78;sj-}oMoEj&@)9+ycEOo92xSyY344^ z11Hb8^kdOvbf^GNAK++bYioknrpdN>+u8R?JxG=!2Kd9r=YWCOJYXYuM0cOq^FhEd zBg2puKy__7VT3-r*dG4c62Wgxi52EMCQ`bKgf*#*ou(D4-ZN$+mg&7$u!! z-^+Z%;-3IDwqZ|K=ah85OLwkO zKxNBh+4QHh)u9D?MFtpbl)us}9+V!D%w9jfAMYEb>%$A;u)rrI zuBudh;5PN}_6J_}l55P3l_)&RMlH{m!)ai-i$g)&*M`eN$XQMw{v^r@-125^RRCF0 z^2>|DxhQw(mtNEI2Kj(;KblC7x=JlK$@78`O~>V!`|1Lm-^JR$-5pUANAnb(5}B}JGjBsliK4& zk6y(;$e&h)lh2)L=bvZKbvh@>vLlreBdH8No2>$#%_Wp1U0N7Ank!6$dFSi#xzh|( zRi{Uw%-4W!{IXZ)fWx@XX6;&(m_F%c6~X8hx=BN1&q}*( zoaNjWabE{oUPb!Bt$eyd#$5j9rItB-h*5JiNi(v^e|XKAj*8(k<5-2$&ZBR5fF|JA z9&m4fbzNQnAU}r8ab>fFV%J0z5awe#UZ|bz?Ur)U9bCIKWEzi2%A+5CLqh?}K4JHi z4vtM;+uPsVz{Lfr;78W78gC;z*yTch~4YkLr&m-7%-xc ztw6Mh2d>_iO*$Rd8(-Cr1_V8EO1f*^@wRoSozS) zy1UoC@pruAaC8Z_7~_w4Q6n*&B0AjOmMWa;sIav&gu z|J5&|{=a@vR!~k-OjKEgPFCzcJ>#A1uL&7xTDn;{XBdeM}V=l3B8fE1--DHjSaxoSjNKEM9|U9#m2<3>n{Iuo`r3UZp;>GkT2YBNAh|b z^jTq-hJp(ebZh#Lk8hVBP%qXwv-@vbvoREX$TqRGTgEi$%_F9tZES@z8Bx}$#5eeG zk^UsLBH{bc2VBW)*EdS({yw=?qmevwi?BL6*=12k9zM5gJv1>y#ML4!)iiPzVaH9% zgSImetD@dam~e>{LvVh!phhzpW+iFvWpGT#CVE5TQ40n%F|p(sP5mXxna+Ev7PDwA zamaV4m*^~*xV+&p;W749xhb_X=$|LD;FHuB&JL5?*Y2-oIT(wYY2;73<^#46S~Gx| z^cez%V7x$81}UWqS13Gz80379Rj;6~WdiXWOSsdmzY39L;Hg3MH43o*y8ibNBBH`(av4|u;YPq%{R;IuYow<+GEsf@R?=@tT@!}?#>zIIn0CoyV!hq3mw zHj>OOjfJM3F{RG#6ujzo?y32m^tgSXf@v=J$ELdJ+=5j|=F-~hP$G&}tDZsZE?5rX ztGj`!S>)CFmdkccxM9eGIcGnS2AfK#gXwj%esuIBNJQP1WV~b~+D7PJTmWGTSDrR` zEAu4B8l>NPuhsk5a`rReSya2nfV1EK01+G!x8aBdTs3Io$u5!6n6KX%uv@DxAp3F@{4UYg4SWJtQ-W~0MDb|j-$lwVn znAm*Pl!?Ps&3wO=R115RWKb*JKoexo*)uhhHBncEDMSVa_PyA>k{Zm2(wMQ(5NM3# z)jkza|GoWEQo4^s*wE(gHz?Xsg4`}HUAcs42cM1-qq_=+=!Gk^y710j=66(cSWqUe zklbm8+zB_syQv5A2rj!Vbw8;|$@C!vfNmNV!yJIWDQ>{+2x zKjuFX`~~HKG~^6h5FntRpnnHt=D&rq0>IJ9#F0eM)Y-)GpRjiN7gkA8wvnG#K=q{q z9dBn8_~wm4J<3J_vl|9H{7q6u2A!cW{bp#r*-f{gOV^e=8S{nc1DxMHFwuM$;aVI^ zz6A*}m8N-&x8;aunp1w7_vtB*pa+OYBw=TMc6QK=mbA-|Cf* zvyh8D4LRJImooUaSb7t*fVfih<97Gf@VE0|z>NcBwBQze);Rh!k3K_sfunToZY;f2 z^HmC4KjHRVg+eKYj;PRN^|E0>Gj_zagfRbrki68I^#~6-HaHg3BUW%+clM1xQEdPYt_g<2K+z!$>*$9nQ>; zf9Bei{?zY^-e{q_*|W#2rJG`2fy@{%6u0i_VEWTq$*(ZN37|8lFFFt)nCG({r!q#9 z5VK_kkSJ3?zOH)OezMT{!YkCuSSn!K#-Rhl$uUM(bq*jY? zi1xbMVthJ`E>d>(f3)~fozjg^@eheMF6<)I`oeJYx4*+M&%c9VArn(OM-wp%M<-`x z7sLP1&3^%Nld9Dhm@$3f2}87!quhI@nwd@3~fZl_3LYW-B?Ia>ui`ELg z&Qfe!7m6ze=mZ`Ia9$z|ARSw|IdMpooY4YiPN8K z4B(ts3p%2i(Td=tgEHX z0UQ_>URBtG+-?0E;E7Ld^dyZ;jjw0}XZ(}-QzC6+NN=40oDb2^v!L1g9xRvE#@IBR zO!b-2N7wVfLV;mhEaXQ9XAU+>=XVA6f&T4Z-@AX!leJ8obP^P^wP0aICND?~w&NykJ#54x3_@r7IDMdRNy4Hh;h*!u(Ol(#0bJdwEo$5437-UBjQ+j=Ic>Q2z` zJNDf0yO6@mr6y1#n3)s(W|$iE_i8r@Gd@!DWDqZ7J&~gAm1#~maIGJ1sls^gxL9LLG_NhU!pTGty!TbhzQnu)I*S^54U6Yu%ZeCg`R>Q zhBv$n5j0v%O_j{QYWG!R9W?5_b&67KB$t}&e2LdMvd(PxN6Ir!H4>PNlerpBL>Zvyy!yw z-SOo8caEpDt(}|gKPBd$qND5#a5nju^O>V&;f890?yEOfkSG^HQVmEbM3Ugzu+UtH zC(INPDdraBN?P%kE;*Ae%Wto&sgw(crfZ#Qy(<4nk;S|hD3j{IQRI6Yq|f^basLY; z-HB&Je%Gg}Jt@={_C{L$!RM;$$|iD6vu#3w?v?*;&()uB|I-XqEKqZPS!reW9JkLewLb!70T7n`i!gNtb1%vN- zySZj{8-1>6E%H&=V}LM#xmt`J3XQoaD|@XygXjdZ1+P77-=;=eYpoEQ01B@L*a(uW zrZeZz?HJsw_4g0vhUgkg@VF8<-X$B8pOqCuWAl28uB|@r`19DTUQQsb^pfqB6QtiT z*`_UZ`fT}vtUY#%sq2{rchyfu*pCg;uec2$-$N_xgjZcoumE5vSI{+s@iLWoz^Mf; zuI8kDP{!XY6OP~q5}%1&L}CtfH^N<3o4L@J@zg1-mt{9L`s^z$Vgb|mr{@WiwAqKg zp#t-lhrU>F8o0s1q_9y`gQNf~Vb!F%70f}$>i7o4ho$`uciNf=xgJ>&!gSt0g;M>*x4-`U)ysFW&Vs^Vk6m%?iuWU+o&m(2Jm26Y(3%TL; zA7T)BP{WS!&xmxNw%J=$MPfn(9*^*TV;$JwRy8Zl*yUZi8jWYF>==j~&S|Xinsb%c z2?B+kpet*muEW7@AzjBA^wAJBY8i|#C{WtO_or&Nj2{=6JTTX05}|H>N2B|Wf!*3_ z7hW*j6p3TvpghEc6-wufFiY!%-GvOx*bZrhZu+7?iSrZL5q9}igiF^*R3%DE4aCHZ zqu>xS8LkW+Auv%z-<1Xs92u23R$nk@Pk}MU5!gT|c7vGlEA%G^2th&Q*zfg%-D^=f z&J_}jskj|Q;73NP4<4k*Y%pXPU2Thoqr+5uH1yEYM|VtBPW6lXaetokD0u z9qVek6Q&wk)tFbQ8(^HGf3Wp16gKmr>G;#G(HRBx?F`9AIRboK+;OfHaLJ(P>IP0w zyTbTkx_THEOs%Q&aPrxbZrJlio+hCC_HK<4%f3ZoSAyG7Dn`=X=&h@m*|UYO-4Hq0 z-Bq&+Ie!S##4A6OGoC~>ZW`Y5J)*ouaFl_e9GA*VSL!O_@xGiBw!AF}1{tB)z(w%c zS1Hmrb9OC8>0a_$BzeiN?rkPLc9%&;1CZW*4}CDDNr2gcl_3z+WC15&H1Zc2{o~i) z)LLW=WQ{?ricmC`G1GfJ0Yp4Dy~Ba;j6ZV4r{8xRs`13{dD!xXmr^Aga|C=iSmor% z8hi|pTXH)5Yf&v~exp3o+sY4B^^b*eYkkCYl*T{*=-0HniSA_1F53eCb{x~1k3*`W zr~};p1A`k{1DV9=UPnLDgz{aJH=-LQo<5%+Em!DNN252xwIf*wF_zS^!(XSm(9eoj z=*dXG&n0>)_)N5oc6v!>-bd(2ragD8O=M|wGW z!xJQS<)u70m&6OmrF0WSsr@I%T*c#Qo#Ha4d3COcX+9}hM5!7JIGF>7<~C(Ear^Sn zm^ZFkV6~Ula6+8S?oOROOA6$C&q&dp`>oR-2Ym3(HT@O7Sd5c~+kjrmM)YmgPH*tL zX+znN>`tv;5eOfX?h{AuX^LK~V#gPCu=)Tigtq9&?7Xh$qN|%A$?V*v=&-2F$zTUv z`C#WyIrChS5|Kgm_GeudCFf;)!WH7FI60j^0o#65o6`w*S7R@)88n$1nrgU(oU0M9 zx+EuMkC>(4j1;m6NoGqEkpJYJ?vc|B zOlwT3t&UgL!pX_P*6g36`ZXQ; z9~Cv}ANFnJGp(;ZhS(@FT;3e)0)Kp;h^x;$*xZn*k0U6-&FwI=uOGaODdrsp-!K$Ac32^c{+FhI-HkYd5v=`PGsg%6I`4d9Jy)uW0y%) zm&j^9WBAp*P8#kGJUhB!L?a%h$hJgQrx!6KCB_TRo%9{t0J7KW8!o1B!NC)VGLM5! zpZy5Jc{`r{1e(jd%jsG7k%I+m#CGS*BPA65ZVW~fLYw0dA-H_}O zrkGFL&P1PG9p2(%QiEWm6x;U-U&I#;Em$nx-_I^wtgw3xUPVVu zqSuKnx&dIT-XT+T10p;yjo1Y)z(x1fb8Dzfn8e yu?e%!_ptzGB|8GrCfu%p?(_ zQccdaaVK$5bz;*rnyK{_SQYM>;aES6Qs^lj9lEs6_J+%nIiuQC*fN;z8md>r_~Mfl zU%p5Dt_YT>gQqfr@`cR!$NWr~+`CZb%dn;WtzrAOI>P_JtsB76PYe*<%H(y>qx-`Kq!X_; z<{RpAqYhE=L1r*M)gNF3B8r(<%8mo*SR2hu zccLRZwGARt)Hlo1euqTyM>^!HK*!Q2P;4UYrysje@;(<|$&%vQekbn|0Ruu_Io(w4#%p6ld2Yp7tlA`Y$cciThP zKzNGIMPXX%&Ud0uQh!uQZz|FB`4KGD?3!ND?wQt6!n*f4EmCoJUh&b?;B{|lxs#F- z31~HQ`SF4x$&v00@(P+j1pAaj5!s`)b2RDBp*PB=2IB>oBF!*6vwr7Dp%zpAx*dPr zb@Zjq^XjN?O4QcZ*O+8>)|HlrR>oD*?WQl5ri3R#2?*W6iJ>>kH%KnnME&TT@ZzrHS$Q%LC?n|e>V+D+8D zYc4)QddFz7I8#}y#Wj6>4P%34dZH~OUDb?uP%-E zwjXM(?Sg~1!|wI(RVuxbu)-rH+O=igSho_pDCw(c6b=P zKk4ATlB?bj9+HHlh<_!&z0rx13K3ZrAR8W)!@Y}o`?a*JJsD+twZIv`W)@Y?Amu_u zz``@-e2X}27$i(2=9rvIu5uTUOVhzwu%mNazS|lZb&PT;XE2|B&W1>=B58#*!~D&) zfVmJGg8UdP*fx(>Cj^?yS^zH#o-$Q-*$SnK(ZVFkw+er=>N^7!)FtP3y~Xxnu^nzY zikgB>Nj0%;WOltWIob|}%lo?_C7<``a5hEkx&1ku$|)i>Rh6@3h*`slY=9U}(Ql_< zaNG*J8vb&@zpdhAvv`?{=zDedJ23TD&Zg__snRAH4eh~^oawdYi6A3w8<Ozh@Kw)#bdktM^GVb zrG08?0bG?|NG+w^&JvD*7LAbjED{_Zkc`3H!My>0u5Q}m!+6VokMLXxl`Mkd=g&Xx z-a>m*#G3SLlhbKB!)tnzfWOBV;u;ftU}S!NdD5+YtOjLg?X}dl>7m^gOpihrf1;PY zvll&>dIuUGs{Qnd- zwIR3oIrct8Va^Tm0t#(bJD7c$Z7DO9*7NnRZorrSm`b`cxz>OIC;jSE3DO8`hX955ui`s%||YQtt2 z5DNA&pG-V+4oI2s*x^>-$6J?p=I>C|9wZF8z;VjR??Icg?1w2v5Me+FgAeGGa8(3S z4vg*$>zC-WIVZtJ7}o9{D-7d>zCe|z#<9>CFve-OPAYsneTb^JH!Enaza#j}^mXy1 z+ULn^10+rWLF6j2>Ya@@Kq?26>AqK{A_| zQKb*~F1>sE*=d?A?W7N2j?L09_7n+HGi{VY;MoTGr_)G9)ot$p!-UY5zZ2Xtbm=t z@dpPSGwgH=QtIcEulQNI>S-#ifbnO5EWkI;$A|pxJd885oM+ zGZ0_0gDvG8q2xebj+fbCHYfAXuZStH2j~|d^sBAzo46(K8n59+T6rzBwK)^rfPT+B zyIFw)9YC-V^rhtK`!3jrhmW-sTmM+tPH+;nwjL#-SjQPUZ53L@A>y*rt(#M(qsiB2 zx6B)dI}6Wlsw%bJ8h|(lhkJVogQZA&n{?Vgs6gNSXzuZpEyu*xySy8ro07QZ7Vk1!3tJphN_5V7qOiyK8p z#@jcDD8nmtYi1^l8ml;AF<#IPK?!pqf9D4moYk>d99Im}Jtwj6c#+A;f)CQ*f-hZ< z=p_T86jog%!p)D&5g9taSwYi&eP z#JuEK%+NULWus;0w32-SYFku#i}d~+{Pkho&^{;RxzP&0!RCm3-9K6`>KZpnzS6?L z^H^V*s!8<>x8bomvD%rh>Zp3>Db%kyin;qtl+jAv8Oo~1g~mqGAC&Qi_wy|xEt2iz zWAJEfTV%cl2Cs<1L&DLRVVH05EDq`pH7Oh7sR`NNkL%wi}8n>IXcO40hp+J+sC!W?!krJf!GJNE8uj zg-y~Ns-<~D?yqbzVRB}G>0A^f0!^N7l=$m0OdZuqAOQqLc zX?AEGr1Ht+inZ-Qiwnl@Z0qukd__a!C*CKuGdy5#nD7VUBM^6OCpxCa2A(X;e0&V4 zM&WR8+wErQ7UIc6LY~Q9x%Sn*Tn>>P`^t&idaOEnOd(Ufw#>NoR^1QdhJ8s`h^|R_ zXX`c5*O~Xdvh%q;7L!_!ohf$NfEBmCde|#uVZvEo>OfEq%+Ns7&_f$OR9xsihRpBb z+cjk8LyDm@U{YN>+r46?nn{7Gh(;WhFw6GAxtcKD+YWV?uge>;+q#Xx4!GpRkVZYu zzsF}1)7$?%s9g9CH=Zs+B%M_)+~*j3L0&Q9u7!|+T`^O{xE6qvAP?XWv9_MrZKdo& z%IyU)$Q95AB4!#hT!_dA>4e@zjOBD*Y=XjtMm)V|+IXzjuM;(l+8aA5#Kaz_$rR6! zj>#&^DidYD$nUY(D$mH`9eb|dtV0b{S>H6FBfq>t5`;OxA4Nn{J(+XihF(stSche7$es&~N$epi&PDM_N`As;*9D^L==2Q7Z2zD+CiU(|+-kL*VG+&9!Yb3LgPy?A zm7Z&^qRG_JIxK7-FBzZI3Q<;{`DIxtc48k> zc|0dmX;Z=W$+)qE)~`yn6MdoJ4co;%!`ddy+FV538Y)j(vg}5*k(WK)KWZ3WaOG!8 z!syGn=s{H$odtpqFrT#JGM*utN7B((abXnpDM6w56nhw}OY}0TiTG1#f*VFZr+^-g zbP10`$LPq_;PvrA1XXlyx2uM^mrjTzX}w{yuLo-cOClE8MMk47T25G8M!9Z5ypOSV zAJUBGEg5L2fY)ZGJb^E34R2zJ?}Vf>{~gB!8=5Z) z9y$>5c)=;o0HeHHSuE4U)#vG&KF|I%-cF6f$~pdYJWk_dD}iOA>iA$O$+4%@>JU08 zS`ep)$XLPJ+n0_i@PkF#ri6T8?ZeAot$6JIYHm&P6EB=BiaNY|aA$W0I+nz*zkz_z zkEru!tj!QUffq%)8y0y`T&`fuus-1p>=^hnBiBqD^hXrPs`PY9tU3m0np~rISY09> z`P3s=-kt_cYcxWd{de@}TwSqg*xVhp;E9zCsnXo6z z?f&Sv^U7n4`xr=mXle94HzOdN!2kB~4=%)u&N!+2;z6UYKUDqi-s6AZ!haB;@&B`? z_TRX0%@suz^TRdCb?!vNJYPY8L_}&07uySH9%W^Tc&1pia6y1q#?*Drf}GjGbPjBS zbOPcUY#*$3sL2x4v_i*Y=N7E$mR}J%|GUI(>WEr+28+V z%v5{#e!UF*6~G&%;l*q*$V?&r$Pp^sE^i-0$+RH3ERUUdQ0>rAq2(2QAbG}$y{de( z>{qD~GGuOk559Y@%$?N^1ApVL_a704>8OD%8Y%8B;FCt%AoPu8*D1 zLB5X>b}Syz81pn;xnB}%0FnwazlWfUV)Z-~rZg6~b z6!9J$EcE&sEbzcy?CI~=boWA&eeIa%z(7SE^qgVLz??1Vbc1*aRvc%Mri)AJaAG!p z$X!_9Ds;Zz)f+;%s&dRcJt2==P{^j3bf0M=nJd&xwUGlUFn?H=2W(*2I2Gdu zv!gYCwM10aeus)`RIZSrCK=&oKaO_Ry~D1B5!y0R=%!i2*KfXGYX&gNv_u+n9wiR5 z*e$Zjju&ODRW3phN925%S(jL+bCHv6rZtc?!*`1TyYXT6%Ju=|X;6D@lq$8T zW{Y|e39ioPez(pBH%k)HzFITXHvnD6hw^lIoUMA;qAJ^CU?top1fo@s7xT13Fvn1H z6JWa-6+FJF#x>~+A;D~;VDs26>^oH0EI`IYT2iagy23?nyJ==i{g4%HrAf1-*v zK1)~@&(KkwR7TL}L(A@C_S0G;-GMDy=MJn2$FP5s<%wC)4jC5PXoxrQBFZ_k0P{{s@sz+gX`-!=T8rcB(=7vW}^K6oLWMmp(rwDh}b zwaGGd>yEy6fHv%jM$yJXo5oMAQ>c9j`**}F?MCry;T@47@r?&sKHgVe$MCqk#Z_3S z1GZI~nOEN*P~+UaFGnj{{Jo@16`(qVNtbU>O0Hf57-P>x8Jikp=`s8xWs^dAJ9lCQ z)GFm+=OV%AMVqVATtN@|vp61VVAHRn87}%PC^RAzJ%JngmZTasWBAWsoAqBU+8L8u z4A&Pe?fmTm0?mK-BL9t+{y7o(7jm+RpOhL9KnY#E&qu^}B6=K_dB}*VlSEiC9fn)+V=J;OnN)Ta5v66ic1rG+dGAJ1 z1%Zb_+!$=tQ~lxQrzv3x#CPb?CekEkA}0MYSgx$Jdd}q8+R=ma$|&1a#)TQ=l$1tQ z=tL9&_^vJ)Pk}EDO-va`UCT1m#Uty1{v^A3P~83_#v^ozH}6*9mIjIr;t3Uv%@VeW zGL6(CwCUp)Jq%G0bIG%?{_*Y#5IHf*5M@wPo6A{$Um++Co$wLC=J1aoG93&T7Ho}P z=mGEPP7GbvoG!uD$k(H3A$Z))+i{Hy?QHdk>3xSBXR0j!11O^mEe9RHmw!pvzv?Ua~2_l2Yh~_!s1qS`|0~0)YsbHSz8!mG)WiJE| z2f($6TQtt6L_f~ApQYQKSb=`053LgrQq7G@98#igV>y#i==-nEjQ!XNu9 z~;mE+gtj4IDDNQJ~JVk5Ux6&LCSFL!y=>79kE9=V}J7tD==Ga+IW zX)r7>VZ9dY=V&}DR))xUoV!u(Z|%3ciQi_2jl}3=$Agc(`RPb z8kEBpvY>1FGQ9W$n>Cq=DIpski};nE)`p3IUw1Oz0|wxll^)4dq3;CCY@RyJgFgc# zKouFh!`?Xuo{IMz^xi-h=StCis_M7yq$u) z?XHvw*HP0VgR+KR6wI)jEMX|ssqYvSf*_3W8zVTQzD?3>H!#>InzpSO)@SC8q*ii- z%%h}_#0{4JG;Jm`4zg};BPTGkYamx$Xo#O~lBirRY)q=5M45n{GCfV7h9qwyu1NxOMoP4)jjZMxmT|IQQh0U7C$EbnMN<3)Kk?fFHYq$d|ICu>KbY_hO zTZM+uKHe(cIZfEqyzyYSUBZa8;Fcut-GN!HSA9ius`ltNebF46ZX_BbZNU}}ZOm{M2&nANL9@0qvih15(|`S~z}m&h!u4x~(%MAO$jHRWNfuxWF#B)E&g3ghSQ9|> z(MFaLQj)NE0lowyjvg8z0#m6FIuKE9lDO~Glg}nSb7`~^&#(Lw{}GVOS>U)m8bF}x zVjbXljBm34Cs-yM6TVusr+3kYFjr28STT3g056y3cH5Tmge~ASxBj z%|yb>$eF;WgrcOZf569sDZOVwoo%8>XO>XQOX1OyN9I-SQgrm;U;+#3OI(zrWyow3 zk==|{lt2xrQ%FIXOTejR>;wv(Pb8u8}BUpx?yd(Abh6? zsoO3VYWkeLnF43&@*#MQ9-i-d0t*xN-UEyNKeyNMHw|A(k(_6QKO=nKMCxD(W(Yop zsRQ)QeL4X3Lxp^L%wzi2-WVSsf61dqliPUM7srDB?Wm6Lzn0&{*}|IsKQW;02(Y&| zaTKv|`U(pSzuvR6Rduu$wzK_W-Y-7>7s?G$)U}&uK;<>vU}^^ns@Z!p+9?St1s)dG zK%y6xkPyyS1$~&6v{kl?Md6gwM|>mt6Upm>oa8RLD^8T{0?HC!Z>;(Bob7el(DV6x zi`I)$&E&ngwFS@bi4^xFLAn`=fzTC;aimE^!cMI2n@Vo%Ae-ne`RF((&5y6xsjjAZ zVguVoQ?Z9uk$2ON;ersE%PU*xGO@T*;j1BO5#TuZKEf(mB7|g7pcEA=nYJ{s3vlbg zd4-DUlD{*6o%Gc^N!Nptgay>j6E5;3psI+C3Q!1ZIbeCubW%w4pq9)MSDyB{HLm|k zxv-{$$A*pS@csolri$Ge<4VZ}e~78JOL-EVyrbxKra^d{?|NnPp86!q>t<&IP07?Z z^>~IK^k#OEKgRH+LjllZXk7iA>2cfH6+(e&9ku5poo~6y{GC5>(bRK7hwjiurqAiZ zg*DmtgY}v83IjE&AbiWgMyFbaRUPZ{lYiz$U^&Zt2YjG<%m((&_JUbZcfJ22(>bi5 z!J?<7AySj0JZ&<-qXX;mcV!f~>G=sB0KnjWca4}vrtunD^1TrpfeS^4dvFr!65knK zZh`d;*VOkPs4*-9kL>$GP0`(M!j~B;#x?Ba~&s6CopvO86oM?-? zOw#dIRc;6A6T?B`Qp%^<U5 z19x(ywSH$_N+Io!6;e?`tWaM$`=Db!gzx|lQ${DG!zb1Zl&|{kX0y6xvO1o z220r<-oaS^^R2pEyY;=Qllqpmue|5yI~D|iI!IGt@iod{Opz@*ml^w2bNs)p`M(Io z|E;;m*Xpjd9l)4G#KaWfV(t8YUn@A;nK^#xgv=LtnArX|vWQVuw3}B${h+frU2>9^ z!l6)!Uo4`5k`<<;E(ido7M6lKTgWezNLq>U*=uz&s=cc$1%>VrAeOoUtA|T6gO4>UNqsdK=NF*8|~*sl&wI=x9-EGiq*aqV!(VVXA57 zw9*o6Ir8Lj1npUXvlevtn(_+^X5rzdR>#(}4YcB9O50q97%rW2me5_L=%ffYPUSRc z!vv?Kv>dH994Qi>U(a<0KF6NH5b16enCp+mw^Hb3Xs1^tThFpz!3QuN#}KBbww`(h z7GO)1olDqy6?T$()R7y%NYx*B0k_2IBiZ14&8|JPFxeMF{vSTxF-Vi3+ZOI=Thq2} zyQgjYY1_7^ZQHh{?P))4+qUiQJLi1&{yE>h?~jU%tjdV0h|FENbM3X(KnJdPKc?~k zh=^Ixv*+smUll!DTWH!jrV*wSh*(mx0o6}1@JExzF(#9FXgmTXVoU+>kDe68N)dkQ zH#_98Zv$}lQwjKL@yBd;U(UD0UCl322=pav<=6g>03{O_3oKTq;9bLFX1ia*lw;#K zOiYDcBJf)82->83N_Y(J7Kr_3lE)hAu;)Q(nUVydv+l+nQ$?|%MWTy`t>{havFSQloHwiIkGK9YZ79^9?AZo0ZyQlVR#}lF%dn5n%xYksXf8gnBm=wO7g_^! zauQ-bH1Dc@3ItZ-9D_*pH}p!IG7j8A_o94#~>$LR|TFq zZ-b00*nuw|-5C2lJDCw&8p5N~Z1J&TrcyErds&!l3$eSz%`(*izc;-?HAFD9AHb-| z>)id`QCrzRws^9(#&=pIx9OEf2rmlob8sK&xPCWS+nD~qzU|qG6KwA{zbikcfQrdH z+ zQg>O<`K4L8rN7`GJB0*3<3`z({lWe#K!4AZLsI{%z#ja^OpfjU{!{)x0ZH~RB0W5X zTwN^w=|nA!4PEU2=LR05x~}|B&ZP?#pNgDMwD*ajI6oJqv!L81gu=KpqH22avXf0w zX3HjbCI!n9>l046)5rr5&v5ja!xkKK42zmqHzPx$9Nn_MZk`gLeSLgC=LFf;H1O#B zn=8|^1iRrujHfbgA+8i<9jaXc;CQBAmQvMGQPhFec2H1knCK2x!T`e6soyrqCamX% zTQ4dX_E*8so)E*TB$*io{$c6X)~{aWfaqdTh=xEeGvOAN9H&-t5tEE-qso<+C!2>+ zskX51H-H}#X{A75wqFe-J{?o8Bx|>fTBtl&tcbdR|132Ztqu5X0i-pisB-z8n71%q%>EF}yy5?z=Ve`}hVh{Drv1YWL zW=%ug_&chF11gDv3D6B)Tz5g54H0mDHNjuKZ+)CKFk4Z|$RD zfRuKLW`1B>B?*RUfVd0+u8h3r-{@fZ{k)c!93t1b0+Q9vOaRnEn1*IL>5Z4E4dZ!7 ztp4GP-^1d>8~LMeb}bW!(aAnB1tM_*la=Xx)q(I0Y@__Zd$!KYb8T2VBRw%e$iSdZ zkwdMwd}eV9q*;YvrBFTv1>1+}{H!JK2M*C|TNe$ZSA>UHKk);wz$(F$rXVc|sI^lD zV^?_J!3cLM;GJuBMbftbaRUs$;F}HDEDtIeHQ)^EJJ1F9FKJTGH<(Jj`phE6OuvE) zqK^K`;3S{Y#1M@8yRQwH`?kHMq4tHX#rJ>5lY3DM#o@or4&^_xtBC(|JpGTfrbGkA z2Tu+AyT^pHannww!4^!$5?@5v`LYy~T`qs7SYt$JgrY(w%C+IWA;ZkwEF)u5sDvOK zGk;G>Mh&elvXDcV69J_h02l&O;!{$({fng9Rlc3ID#tmB^FIG^w{HLUpF+iB`|
NnX)EH+Nua)3Y(c z&{(nX_ht=QbJ%DzAya}!&uNu!4V0xI)QE$SY__m)SAKcN0P(&JcoK*Lxr@P zY&P=}&B3*UWNlc|&$Oh{BEqwK2+N2U$4WB7Fd|aIal`FGANUa9E-O)!gV`((ZGCc$ zBJA|FFrlg~9OBp#f7aHodCe{6= zay$6vN~zj1ddMZ9gQ4p32(7wD?(dE>KA2;SOzXRmPBiBc6g`eOsy+pVcHu=;Yd8@{ zSGgXf@%sKKQz~;!J;|2fC@emm#^_rnO0esEn^QxXgJYd`#FPWOUU5b;9eMAF zZhfiZb|gk8aJIw*YLp4!*(=3l8Cp{(%p?ho22*vN9+5NLV0TTazNY$B5L6UKUrd$n zjbX%#m7&F#U?QNOBXkiiWB*_tk+H?N3`vg;1F-I+83{M2!8<^nydGr5XX}tC!10&e z7D36bLaB56WrjL&HiiMVtpff|K%|*{t*ltt^5ood{FOG0<>k&1h95qPio)2`eL${YAGIx(b4VN*~nKn6E~SIQUuRH zQ+5zP6jfnP$S0iJ@~t!Ai3o`X7biohli;E zT#yXyl{bojG@-TGZzpdVDXhbmF%F9+-^YSIv|MT1l3j zrxOFq>gd2%U}?6}8mIj?M zc077Zc9fq(-)4+gXv?Az26IO6eV`RAJz8e3)SC7~>%rlzDwySVx*q$ygTR5kW2ds- z!HBgcq0KON9*8Ff$X0wOq$`T7ml(@TF)VeoF}x1OttjuVHn3~sHrMB++}f7f9H%@f z=|kP_?#+fve@{0MlbkC9tyvQ_R?lRdRJ@$qcB(8*jyMyeME5ns6ypVI1Xm*Zr{DuS zZ!1)rQfa89c~;l~VkCiHI|PCBd`S*2RLNQM8!g9L6?n`^evQNEwfO@&JJRme+uopQX0%Jo zgd5G&#&{nX{o?TQwQvF1<^Cg3?2co;_06=~Hcb6~4XWpNFL!WU{+CK;>gH%|BLOh7@!hsa(>pNDAmpcuVO-?;Bic17R}^|6@8DahH)G z!EmhsfunLL|3b=M0MeK2vqZ|OqUqS8npxwge$w-4pFVXFq$_EKrZY?BuP@Az@(k`L z`ViQBSk`y+YwRT;&W| z2e3UfkCo^uTA4}Qmmtqs+nk#gNr2W4 zTH%hhErhB)pkXR{B!q5P3-OM+M;qu~f>}IjtF%>w{~K-0*jPVLl?Chz&zIdxp}bjx zStp&Iufr58FTQ36AHU)0+CmvaOpKF;W@sMTFpJ`j;3d)J_$tNQI^c<^1o<49Z(~K> z;EZTBaVT%14(bFw2ob@?JLQ2@(1pCdg3S%E4*dJ}dA*v}_a4_P(a`cHnBFJxNobAv zf&Zl-Yt*lhn-wjZsq<9v-IsXxAxMZ58C@e0!rzhJ+D@9^3~?~yllY^s$?&oNwyH!#~6x4gUrfxplCvK#!f z$viuszW>MFEcFL?>ux*((!L$;R?xc*myjRIjgnQX79@UPD$6Dz0jutM@7h_pq z0Zr)#O<^y_K6jfY^X%A-ip>P%3saX{!v;fxT-*0C_j4=UMH+Xth(XVkVGiiKE#f)q z%Jp=JT)uy{&}Iq2E*xr4YsJ5>w^=#-mRZ4vPXpI6q~1aFwi+lQcimO45V-JXP;>(Q zo={U`{=_JF`EQj87Wf}{Qy35s8r1*9Mxg({CvOt}?Vh9d&(}iI-quvs-rm~P;eRA@ zG5?1HO}puruc@S{YNAF3vmUc2B4!k*yi))<5BQmvd3tr}cIs#9)*AX>t`=~{f#Uz0 z0&Nk!7sSZwJe}=)-R^$0{yeS!V`Dh7w{w5rZ9ir!Z7Cd7dwZcK;BT#V0bzTt>;@Cl z#|#A!-IL6CZ@eHH!CG>OO8!%G8&8t4)Ro@}USB*k>oEUo0LsljsJ-%5Mo^MJF2I8- z#v7a5VdJ-Cd%(a+y6QwTmi+?f8Nxtm{g-+WGL>t;s#epv7ug>inqimZCVm!uT5Pf6 ziEgQt7^%xJf#!aPWbuC_3Nxfb&CFbQy!(8ANpkWLI4oSnH?Q3f?0k1t$3d+lkQs{~(>06l&v|MpcFsyAv zin6N!-;pggosR*vV=DO(#+}4ps|5$`udE%Kdmp?G7B#y%H`R|i8skKOd9Xzx8xgR$>Zo2R2Ytktq^w#ul4uicxW#{ zFjG_RNlBroV_n;a7U(KIpcp*{M~e~@>Q#Av90Jc5v%0c>egEdY4v3%|K1XvB{O_8G zkTWLC>OZKf;XguMH2-Pw{BKbFzaY;4v2seZV0>^7Q~d4O=AwaPhP3h|!hw5aqOtT@ z!SNz}$of**Bl3TK209@F=Tn1+mgZa8yh(Png%Zd6Mt}^NSjy)etQrF zme*llAW=N_8R*O~d2!apJnF%(JcN??=`$qs3Y+~xs>L9x`0^NIn!8mMRFA_tg`etw z3k{9JAjnl@ygIiJcNHTy02GMAvBVqEss&t2<2mnw!; zU`J)0>lWiqVqo|ex7!+@0i>B~BSU1A_0w#Ee+2pJx0BFiZ7RDHEvE*ptc9md(B{&+ zKE>TM)+Pd>HEmdJao7U@S>nL(qq*A)#eLOuIfAS@j`_sK0UEY6OAJJ-kOrHG zjHx`g!9j*_jRcJ%>CE9K2MVf?BUZKFHY?EpV6ai7sET-tqk=nDFh-(65rhjtlKEY% z@G&cQ<5BKatfdA1FKuB=i>CCC5(|9TMW%K~GbA4}80I5%B}(gck#Wlq@$nO3%@QP_ z8nvPkJFa|znk>V92cA!K1rKtr)skHEJD;k8P|R8RkCq1Rh^&}Evwa4BUJz2f!2=MH zo4j8Y$YL2313}H~F7@J7mh>u%556Hw0VUOz-Un@ZASCL)y8}4XXS`t1AC*^>PLwIc zUQok5PFS=*#)Z!3JZN&eZ6ZDP^-c@StY*t20JhCnbMxXf=LK#;`4KHEqMZ-Ly9KsS zI2VUJGY&PmdbM+iT)zek)#Qc#_i4uH43 z@T5SZBrhNCiK~~esjsO9!qBpaWK<`>!-`b71Y5ReXQ4AJU~T2Njri1CEp5oKw;Lnm)-Y@Z3sEY}XIgSy%xo=uek(kAAH5MsV$V3uTUsoTzxp_rF=tx zV07vlJNKtJhCu`b}*#m&5LV4TAE&%KtHViDAdv#c^x`J7bg z&N;#I2GkF@SIGht6p-V}`!F_~lCXjl1BdTLIjD2hH$J^YFN`7f{Q?OHPFEM$65^!u zNwkelo*5+$ZT|oQ%o%;rBX$+?xhvjb)SHgNHE_yP%wYkkvXHS{Bf$OiKJ5d1gI0j< zF6N}Aq=(WDo(J{e-uOecxPD>XZ@|u-tgTR<972`q8;&ZD!cep^@B5CaqFz|oU!iFj zU0;6fQX&~15E53EW&w1s9gQQ~Zk16X%6 zjG`j0yq}4deX2?Tr(03kg>C(!7a|b9qFI?jcE^Y>-VhudI@&LI6Qa}WQ>4H_!UVyF z((cm&!3gmq@;BD#5P~0;_2qgZhtJS|>WdtjY=q zLnHH~Fm!cxw|Z?Vw8*~?I$g#9j&uvgm7vPr#&iZgPP~v~BI4jOv;*OQ?jYJtzO<^y z7-#C={r7CO810!^s(MT!@@Vz_SVU)7VBi(e1%1rvS!?PTa}Uv`J!EP3s6Y!xUgM^8 z4f!fq<3Wer_#;u!5ECZ|^c1{|q_lh3m^9|nsMR1#Qm|?4Yp5~|er2?W^7~cl;_r4WSme_o68J9p03~Hc%X#VcX!xAu%1`R!dfGJCp zV*&m47>s^%Ib0~-2f$6oSgn3jg8m%UA;ArcdcRyM5;}|r;)?a^D*lel5C`V5G=c~k zy*w_&BfySOxE!(~PI$*dwG><+-%KT5p?whOUMA*k<9*gi#T{h3DAxzAPxN&Xws8o9Cp*`PA5>d9*Z-ynV# z9yY*1WR^D8|C%I@vo+d8r^pjJ$>eo|j>XiLWvTWLl(^;JHCsoPgem6PvegHb-OTf| zvTgsHSa;BkbG=(NgPO|CZu9gUCGr$8*EoH2_Z#^BnxF0yM~t`|9ws_xZ8X8iZYqh! zAh;HXJ)3P&)Q0(&F>!LN0g#bdbis-cQxyGn9Qgh`q+~49Fqd2epikEUw9caM%V6WgP)532RMRW}8gNS%V%Hx7apSz}tn@bQy!<=lbhmAH=FsMD?leawbnP5BWM0 z5{)@EEIYMu5;u)!+HQWhQ;D3_Cm_NADNeb-f56}<{41aYq8p4=93d=-=q0Yx#knGYfXVt z+kMxlus}t2T5FEyCN~!}90O_X@@PQpuy;kuGz@bWft%diBTx?d)_xWd_-(!LmVrh**oKg!1CNF&LX4{*j|) zIvjCR0I2UUuuEXh<9}oT_zT#jOrJAHNLFT~Ilh9hGJPI1<5`C-WA{tUYlyMeoy!+U zhA#=p!u1R7DNg9u4|QfED-2TuKI}>p#2P9--z;Bbf4Op*;Q9LCbO&aL2i<0O$ByoI z!9;Ght733FC>Pz>$_mw(F`zU?`m@>gE`9_p*=7o=7av`-&ifU(^)UU`Kg3Kw`h9-1 z6`e6+im=|m2v`pN(2dE%%n8YyQz;#3Q-|x`91z?gj68cMrHl}C25|6(_dIGk*8cA3 zRHB|Nwv{@sP4W+YZM)VKI>RlB`n=Oj~Rzx~M+Khz$N$45rLn6k1nvvD^&HtsMA4`s=MmuOJID@$s8Ph4E zAmSV^+s-z8cfv~Yd(40Sh4JG#F~aB>WFoX7ykaOr3JaJ&Lb49=B8Vk-SQT9%7TYhv z?-Pprt{|=Y5ZQ1?od|A<_IJU93|l4oAfBm?3-wk{O<8ea+`}u%(kub(LFo2zFtd?4 zwpN|2mBNywv+d^y_8#<$r>*5+$wRTCygFLcrwT(qc^n&@9r+}Kd_u@Ithz(6Qb4}A zWo_HdBj#V$VE#l6pD0a=NfB0l^6W^g`vm^sta>Tly?$E&{F?TTX~DsKF~poFfmN%2 z4x`Dc{u{Lkqz&y!33;X}weD}&;7p>xiI&ZUb1H9iD25a(gI|`|;G^NwJPv=1S5e)j z;U;`?n}jnY6rA{V^ zxTd{bK)Gi^odL3l989DQlN+Zs39Xe&otGeY(b5>rlIqfc7Ap4}EC?j<{M=hlH{1+d zw|c}}yx88_xQr`{98Z!d^FNH77=u(p-L{W6RvIn40f-BldeF-YD>p6#)(Qzf)lfZj z?3wAMtPPp>vMehkT`3gToPd%|D8~4`5WK{`#+}{L{jRUMt zrFz+O$C7y8$M&E4@+p+oV5c%uYzbqd2Y%SSgYy#xh4G3hQv>V*BnuKQhBa#=oZB~w{azUB+q%bRe_R^ z>fHBilnRTUfaJ201czL8^~Ix#+qOHSO)A|xWLqOxB$dT2W~)e-r9;bm=;p;RjYahB z*1hegN(VKK+ztr~h1}YP@6cfj{e#|sS`;3tJhIJK=tVJ-*h-5y9n*&cYCSdg#EHE# zSIx=r#qOaLJoVVf6v;(okg6?*L_55atl^W(gm^yjR?$GplNP>BZsBYEf_>wM0Lc;T zhf&gpzOWNxS>m+mN92N0{;4uw`P+9^*|-1~$uXpggj4- z^SFc4`uzj2OwdEVT@}Q`(^EcQ_5(ZtXTql*yGzdS&vrS_w>~~ra|Nb5abwf}Y!uq6R5f&6g2ge~2p(%c< z@O)cz%%rr4*cRJ5f`n@lvHNk@lE1a*96Kw6lJ~B-XfJW%?&-y?;E&?1AacU@`N`!O z6}V>8^%RZ7SQnZ-z$(jsX`amu*5Fj8g!3RTRwK^`2_QHe;_2y_n|6gSaGyPmI#kA0sYV<_qOZc#-2BO%hX)f$s-Z3xlI!ub z^;3ru11DA`4heAu%}HIXo&ctujzE2!6DIGE{?Zs>2}J+p&C$rc7gJC35gxhflorvsb%sGOxpuWhF)dL_&7&Z99=5M0b~Qa;Mo!j&Ti_kXW!86N%n= zSC@6Lw>UQ__F&+&Rzv?gscwAz8IP!n63>SP)^62(HK98nGjLY2*e^OwOq`3O|C92? z;TVhZ2SK%9AGW4ZavTB9?)mUbOoF`V7S=XM;#3EUpR+^oHtdV!GK^nXzCu>tpR|89 zdD{fnvCaN^^LL%amZ^}-E+214g&^56rpdc@yv0b<3}Ys?)f|fXN4oHf$six)-@<;W&&_kj z-B}M5U*1sb4)77aR=@%I?|Wkn-QJVuA96an25;~!gq(g1@O-5VGo7y&E_srxL6ZfS z*R%$gR}dyONgju*D&?geiSj7SZ@ftyA|}(*Y4KbvU!YLsi1EDQQCnb+-cM=K1io78o!v*);o<XwjaQH%)uIP&Zm?)Nfbfn;jIr z)d#!$gOe3QHp}2NBak@yYv3m(CPKkwI|{;d=gi552u?xj9ObCU^DJFQp4t4e1tPzM zvsRIGZ6VF+{6PvqsplMZWhz10YwS={?`~O0Ec$`-!klNUYtzWA^f9m7tkEzCy<_nS z=&<(awFeZvt51>@o_~>PLs05CY)$;}Oo$VDO)?l-{CS1Co=nxjqben*O1BR>#9`0^ zkwk^k-wcLCLGh|XLjdWv0_Hg54B&OzCE^3NCP}~OajK-LuRW53CkV~Su0U>zN%yQP zH8UH#W5P3-!ToO-2k&)}nFe`t+mdqCxxAHgcifup^gKpMObbox9LFK;LP3}0dP-UW z?Zo*^nrQ6*$FtZ(>kLCc2LY*|{!dUn$^RW~m9leoF|@Jy|M5p-G~j%+P0_#orRKf8 zvuu5<*XO!B?1E}-*SY~MOa$6c%2cM+xa8}_8x*aVn~57v&W(0mqN1W`5a7*VN{SUH zXz98DDyCnX2EPl-`Lesf`=AQT%YSDb`$%;(jUTrNen$NPJrlpPDP}prI>Ml!r6bCT;mjsg@X^#&<}CGf0JtR{Ecwd&)2zuhr#nqdgHj+g2n}GK9CHuwO zk>oZxy{vcOL)$8-}L^iVfJHAGfwN$prHjYV0ju}8%jWquw>}_W6j~m<}Jf!G?~r5&Rx)!9JNX!ts#SGe2HzobV5); zpj@&`cNcO&q+%*<%D7za|?m5qlmFK$=MJ_iv{aRs+BGVrs)98BlN^nMr{V_fcl_;jkzRju+c-y?gqBC_@J0dFLq-D9@VN&-`R9U;nv$Hg?>$oe4N&Ht$V_(JR3TG^! zzJsbQbi zFE6-{#9{G{+Z}ww!ycl*7rRdmU#_&|DqPfX3CR1I{Kk;bHwF6jh0opI`UV2W{*|nn zf_Y@%wW6APb&9RrbEN=PQRBEpM(N1w`81s=(xQj6 z-eO0k9=Al|>Ej|Mw&G`%q8e$2xVz1v4DXAi8G};R$y)ww638Y=9y$ZYFDM$}vzusg zUf+~BPX>(SjA|tgaFZr_e0{)+z9i6G#lgt=F_n$d=beAt0Sa0a7>z-?vcjl3e+W}+ z1&9=|vC=$co}-Zh*%3588G?v&U7%N1Qf-wNWJ)(v`iO5KHSkC5&g7CrKu8V}uQGcfcz zmBz#Lbqwqy#Z~UzHgOQ;Q-rPxrRNvl(&u6ts4~0=KkeS;zqURz%!-ERppmd%0v>iRlEf+H$yl{_8TMJzo0 z>n)`On|7=WQdsqhXI?#V{>+~}qt-cQbokEbgwV3QvSP7&hK4R{Z{aGHVS3;+h{|Hz z6$Js}_AJr383c_+6sNR|$qu6dqHXQTc6?(XWPCVZv=)D#6_;D_8P-=zOGEN5&?~8S zl5jQ?NL$c%O)*bOohdNwGIKM#jSAC?BVY={@A#c9GmX0=T(0G}xs`-%f3r=m6-cpK z!%waekyAvm9C3%>sixdZj+I(wQlbB4wv9xKI*T13DYG^T%}zZYJ|0$Oj^YtY+d$V$ zAVudSc-)FMl|54n=N{BnZTM|!>=bhaja?o7s+v1*U$!v!qQ%`T-6fBvmdPbVmro&d zk07TOp*KuxRUSTLRrBj{mjsnF8`d}rMViY8j`jo~Hp$fkv9F_g(jUo#Arp;Xw0M$~ zRIN!B22~$kx;QYmOkos@%|5k)!QypDMVe}1M9tZfkpXKGOxvKXB!=lo`p?|R1l=tA zp(1}c6T3Fwj_CPJwVsYtgeRKg?9?}%oRq0F+r+kdB=bFUdVDRPa;E~~>2$w}>O>v=?|e>#(-Lyx?nbg=ckJ#5U6;RT zNvHhXk$P}m9wSvFyU3}=7!y?Y z=fg$PbV8d7g25&-jOcs{%}wTDKm>!Vk);&rr;O1nvO0VrU&Q?TtYVU=ir`te8SLlS zKSNmV=+vF|ATGg`4$N1uS|n??f}C_4Sz!f|4Ly8#yTW-FBfvS48Tef|-46C(wEO_%pPhUC5$-~Y?!0vFZ^Gu`x=m7X99_?C-`|h zfmMM&Y@zdfitA@KPw4Mc(YHcY1)3*1xvW9V-r4n-9ZuBpFcf{yz+SR{ zo$ZSU_|fgwF~aakGr(9Be`~A|3)B=9`$M-TWKipq-NqRDRQc}ABo*s_5kV%doIX7LRLRau_gd@Rd_aLFXGSU+U?uAqh z8qusWWcvgQ&wu{|sRXmv?sl=xc<$6AR$+cl& zFNh5q1~kffG{3lDUdvEZu5c(aAG~+64FxdlfwY^*;JSS|m~CJusvi-!$XR`6@XtY2 znDHSz7}_Bx7zGq-^5{stTRy|I@N=>*y$zz>m^}^{d&~h;0kYiq8<^Wq7Dz0w31ShO^~LUfW6rfitR0(=3;Uue`Y%y@ex#eKPOW zO~V?)M#AeHB2kovn1v=n^D?2{2jhIQd9t|_Q+c|ZFaWt+r&#yrOu-!4pXAJuxM+Cx z*H&>eZ0v8Y`t}8{TV6smOj=__gFC=eah)mZt9gwz>>W$!>b3O;Rm^Ig*POZP8Rl0f zT~o=Nu1J|lO>}xX&#P58%Yl z83`HRs5#32Qm9mdCrMlV|NKNC+Z~ z9OB8xk5HJ>gBLi+m@(pvpw)1(OaVJKs*$Ou#@Knd#bk+V@y;YXT?)4eP9E5{J%KGtYinNYJUH9PU3A}66c>Xn zZ{Bn0<;8$WCOAL$^NqTjwM?5d=RHgw3!72WRo0c;+houoUA@HWLZM;^U$&sycWrFd zE7ekt9;kb0`lps{>R(}YnXlyGY}5pPd9zBpgXeJTY_jwaJGSJQC#-KJqmh-;ad&F- z-Y)E>!&`Rz!HtCz>%yOJ|v(u7P*I$jqEY3}(Z-orn4 zlI?CYKNl`6I){#2P1h)y(6?i;^z`N3bxTV%wNvQW+eu|x=kbj~s8rhCR*0H=iGkSj zk23lr9kr|p7#qKL=UjgO`@UnvzU)`&fI>1Qs7ubq{@+lK{hH* zvl6eSb9%yngRn^T<;jG1SVa)eA>T^XX=yUS@NCKpk?ovCW1D@!=@kn;l_BrG;hOTC z6K&H{<8K#dI(A+zw-MWxS+~{g$tI7|SfP$EYKxA}LlVO^sT#Oby^grkdZ^^lA}uEF zBSj$weBJG{+Bh@Yffzsw=HyChS(dtLE3i*}Zj@~!_T-Ay7z=B)+*~3|?w`Zd)Co2t zC&4DyB!o&YgSw+fJn6`sn$e)29`kUwAc+1MND7YjV%lO;H2}fNy>hD#=gT ze+-aFNpyKIoXY~Vq-}OWPBe?Rfu^{ps8>Xy%42r@RV#*QV~P83jdlFNgkPN=T|Kt7 zV*M`Rh*30&AWlb$;ae130e@}Tqi3zx2^JQHpM>j$6x`#{mu%tZlwx9Gj@Hc92IuY* zarmT|*d0E~vt6<+r?W^UW0&#U&)8B6+1+;k^2|FWBRP9?C4Rk)HAh&=AS8FS|NQaZ z2j!iZ)nbEyg4ZTp-zHwVlfLC~tXIrv(xrP8PAtR{*c;T24ycA-;auWsya-!kF~CWZ zw_uZ|%urXgUbc@x=L=_g@QJ@m#5beS@6W195Hn7>_}z@Xt{DIEA`A&V82bc^#!q8$ zFh?z_Vn|ozJ;NPd^5uu(9tspo8t%&-U9Ckay-s@DnM*R5rtu|4)~e)`z0P-sy?)kc zs_k&J@0&0!q4~%cKL)2l;N*T&0;mqX5T{Qy60%JtKTQZ-xb%KOcgqwJmb%MOOKk7N zgq})R_6**{8A|6H?fO+2`#QU)p$Ei2&nbj6TpLSIT^D$|`TcSeh+)}VMb}LmvZ{O| ze*1IdCt3+yhdYVxcM)Q_V0bIXLgr6~%JS<<&dxIgfL=Vnx4YHuU@I34JXA|+$_S3~ zy~X#gO_X!cSs^XM{yzDGNM>?v(+sF#<0;AH^YrE8smx<36bUsHbN#y57K8WEu(`qHvQ6cAZPo=J5C(lSmUCZ57Rj6cx!e^rfaI5%w}unz}4 zoX=nt)FVNV%QDJH`o!u9olLD4O5fl)xp+#RloZlaA92o3x4->?rB4`gS$;WO{R;Z3>cG3IgFX2EA?PK^M}@%1%A;?f6}s&CV$cIyEr#q5;yHdNZ9h{| z-=dX+a5elJoDo?Eq&Og!nN6A)5yYpnGEp}?=!C-V)(*~z-+?kY1Q7qs#Rsy%hu_60rdbB+QQNr?S1 z?;xtjUv|*E3}HmuNyB9aFL5H~3Ho0UsmuMZELp1a#CA1g`P{-mT?BchuLEtK}!QZ=3AWakRu~?f9V~3F;TV`5%9Pcs_$gq&CcU}r8gOO zC2&SWPsSG{&o-LIGTBqp6SLQZPvYKp$$7L4WRRZ0BR$Kf0I0SCFkqveCp@f)o8W)! z$%7D1R`&j7W9Q9CGus_)b%+B#J2G;l*FLz#s$hw{BHS~WNLODV#(!u_2Pe&tMsq={ zdm7>_WecWF#D=?eMjLj=-_z`aHMZ=3_-&E8;ibPmM}61i6J3is*=dKf%HC>=xbj4$ zS|Q-hWQ8T5mWde6h@;mS+?k=89?1FU<%qH9B(l&O>k|u_aD|DY*@~(`_pb|B#rJ&g zR0(~(68fpUPz6TdS@4JT5MOPrqDh5_H(eX1$P2SQrkvN8sTxwV>l0)Qq z0pzTuvtEAKRDkKGhhv^jk%|HQ1DdF%5oKq5BS>szk-CIke{%js?~%@$uaN3^Uz6Wf z_iyx{bZ(;9y4X&>LPV=L=d+A}7I4GkK0c1Xts{rrW1Q7apHf-))`BgC^0^F(>At1* za@e7{lq%yAkn*NH8Q1{@{lKhRg*^TfGvv!Sn*ed*x@6>M%aaqySxR|oNadYt1mpUZ z6H(rupHYf&Z z29$5g#|0MX#aR6TZ$@eGxxABRKakDYtD%5BmKp;HbG_ZbT+=81E&=XRk6m_3t9PvD zr5Cqy(v?gHcYvYvXkNH@S#Po~q(_7MOuCAB8G$a9BC##gw^5mW16cML=T=ERL7wsk zzNEayTG?mtB=x*wc@ifBCJ|irFVMOvH)AFRW8WE~U()QT=HBCe@s$dA9O!@`zAAT) zaOZ7l6vyR+Nk_OOF!ZlZmjoImKh)dxFbbR~z(cMhfeX1l7S_`;h|v3gI}n9$sSQ>+3@AFAy9=B_y$)q;Wdl|C-X|VV3w8 z2S#>|5dGA8^9%Bu&fhmVRrTX>Z7{~3V&0UpJNEl0=N32euvDGCJ>#6dUSi&PxFW*s zS`}TB>?}H(T2lxBJ!V#2taV;q%zd6fOr=SGHpoSG*4PDaiG0pdb5`jelVipkEk%FV zThLc@Hc_AL1#D&T4D=w@UezYNJ%0=f3iVRuVL5H?eeZM}4W*bomebEU@e2d`M<~uW zf#Bugwf`VezG|^Qbt6R_=U0}|=k;mIIakz99*>FrsQR{0aQRP6ko?5<7bkDN8evZ& zB@_KqQG?ErKL=1*ZM9_5?Pq%lcS4uLSzN(Mr5=t6xHLS~Ym`UgM@D&VNu8e?_=nSFtF$u@hpPSmI4Vo_t&v?>$~K4y(O~Rb*(MFy_igM7 z*~yYUyR6yQgzWnWMUgDov!!g=lInM+=lOmOk4L`O?{i&qxy&D*_qorRbDwj6?)!ef z#JLd7F6Z2I$S0iYI={rZNk*<{HtIl^mx=h>Cim*04K4+Z4IJtd*-)%6XV2(MCscPiw_a+y*?BKbTS@BZ3AUao^%Zi#PhoY9Vib4N>SE%4>=Jco0v zH_Miey{E;FkdlZSq)e<{`+S3W=*ttvD#hB8w=|2aV*D=yOV}(&p%0LbEWH$&@$X3x~CiF-?ejQ*N+-M zc8zT@3iwkdRT2t(XS`d7`tJQAjRmKAhiw{WOqpuvFp`i@Q@!KMhwKgsA}%@sw8Xo5Y=F zhRJZg)O4uqNWj?V&&vth*H#je6T}}p_<>!Dr#89q@uSjWv~JuW(>FqoJ5^ho0%K?E z9?x_Q;kmcsQ@5=}z@tdljMSt9-Z3xn$k)kEjK|qXS>EfuDmu(Z8|(W?gY6-l z@R_#M8=vxKMAoi&PwnaIYw2COJM@atcgfr=zK1bvjW?9B`-+Voe$Q+H$j!1$Tjn+* z&LY<%)L@;zhnJlB^Og6I&BOR-m?{IW;tyYC%FZ!&Z>kGjHJ6cqM-F z&19n+e1=9AH1VrVeHrIzqlC`w9=*zfmrerF?JMzO&|Mmv;!4DKc(sp+jy^Dx?(8>1 zH&yS_4yL7m&GWX~mdfgH*AB4{CKo;+egw=PrvkTaoBU+P-4u?E|&!c z)DKc;>$$B6u*Zr1SjUh2)FeuWLWHl5TH(UHWkf zLs>7px!c5n;rbe^lO@qlYLzlDVp(z?6rPZel=YB)Uv&n!2{+Mb$-vQl=xKw( zve&>xYx+jW_NJh!FV||r?;hdP*jOXYcLCp>DOtJ?2S^)DkM{{Eb zS$!L$e_o0(^}n3tA1R3-$SNvgBq;DOEo}fNc|tB%%#g4RA3{|euq)p+xd3I8^4E&m zFrD%}nvG^HUAIKe9_{tXB;tl|G<%>yk6R;8L2)KUJw4yHJXUOPM>(-+jxq4R;z8H#>rnJy*)8N+$wA$^F zN+H*3t)eFEgxLw+Nw3};4WV$qj&_D`%ADV2%r zJCPCo%{=z7;`F98(us5JnT(G@sKTZ^;2FVitXyLe-S5(hV&Ium+1pIUB(CZ#h|g)u zSLJJ<@HgrDiA-}V_6B^x1>c9B6%~847JkQ!^KLZ2skm;q*edo;UA)~?SghG8;QbHh z_6M;ouo_1rq9=x$<`Y@EA{C%6-pEV}B(1#sDoe_e1s3^Y>n#1Sw;N|}8D|s|VPd+g z-_$QhCz`vLxxrVMx3ape1xu3*wjx=yKSlM~nFgkNWb4?DDr*!?U)L_VeffF<+!j|b zZ$Wn2$TDv3C3V@BHpSgv3JUif8%hk%OsGZ=OxH@8&4`bbf$`aAMchl^qN>Eyu3JH} z9-S!x8-s4fE=lad%Pkp8hAs~u?|uRnL48O|;*DEU! zuS0{cpk%1E0nc__2%;apFsTm0bKtd&A0~S3Cj^?72-*Owk3V!ZG*PswDfS~}2<8le z5+W^`Y(&R)yVF*tU_s!XMcJS`;(Tr`J0%>p=Z&InR%D3@KEzzI+-2)HK zuoNZ&o=wUC&+*?ofPb0a(E6(<2Amd6%uSu_^-<1?hsxs~0K5^f(LsGqgEF^+0_H=uNk9S0bb!|O8d?m5gQjUKevPaO+*VfSn^2892K~%crWM8+6 z25@V?Y@J<9w%@NXh-2!}SK_(X)O4AM1-WTg>sj1{lj5@=q&dxE^9xng1_z9w9DK>| z6Iybcd0e zyi;Ew!KBRIfGPGytQ6}z}MeXCfLY0?9%RiyagSp_D1?N&c{ zyo>VbJ4Gy`@Fv+5cKgUgs~na$>BV{*em7PU3%lloy_aEovR+J7TfQKh8BJXyL6|P8un-Jnq(ghd!_HEOh$zlv2$~y3krgeH;9zC}V3f`uDtW(%mT#944DQa~^8ZI+zAUu4U(j0YcDfKR$bK#gvn_{JZ>|gZ5+)u?T$w7Q%F^;!Wk?G z(le7r!ufT*cxS}PR6hIVtXa)i`d$-_1KkyBU>qmgz-=T};uxx&sKgv48akIWQ89F{ z0XiY?WM^~;|T8zBOr zs#zuOONzH?svv*jokd5SK8wG>+yMC)LYL|vLqm^PMHcT=`}V$=nIRHe2?h)8WQa6O zPAU}d`1y(>kZiP~Gr=mtJLMu`i<2CspL|q2DqAgAD^7*$xzM`PU4^ga`ilE134XBQ z99P(LhHU@7qvl9Yzg$M`+dlS=x^(m-_3t|h>S}E0bcFMn=C|KamQ)=w2^e)35p`zY zRV8X?d;s^>Cof2SPR&nP3E+-LCkS0J$H!eh8~k0qo$}00b=7!H_I2O+Ro@3O$nPdm ztmbOO^B+IHzQ5w>@@@J4cKw5&^_w6s!s=H%&byAbUtczPQ7}wfTqxxtQNfn*u73Qw zGuWsrky_ajPx-5`R<)6xHf>C(oqGf_Fw|-U*GfS?xLML$kv;h_pZ@Kk$y0X(S+K80 z6^|z)*`5VUkawg}=z`S;VhZhxyDfrE0$(PMurAxl~<>lfZa>JZ288ULK7D` zl9|#L^JL}Y$j*j`0-K6kH#?bRmg#5L3iB4Z)%iF@SqT+Lp|{i`m%R-|ZE94Np7Pa5 zCqC^V3}B(FR340pmF*qaa}M}+h6}mqE~7Sh!9bDv9YRT|>vBNAqv09zXHMlcuhKD| zcjjA(b*XCIwJ33?CB!+;{)vX@9xns_b-VO{i0y?}{!sdXj1GM8+$#v>W7nw;+O_9B z_{4L;C6ol?(?W0<6taGEn1^uG=?Q3i29sE`RfYCaV$3DKc_;?HsL?D_fSYg}SuO5U zOB_f4^vZ_x%o`5|C@9C5+o=mFy@au{s)sKw!UgC&L35aH(sgDxRE2De%(%OT=VUdN ziVLEmdOvJ&5*tCMKRyXctCwQu_RH%;m*$YK&m;jtbdH#Ak~13T1^f89tn`A%QEHWs~jnY~E}p_Z$XC z=?YXLCkzVSK+Id`xZYTegb@W8_baLt-Fq`Tv|=)JPbFsKRm)4UW;yT+J`<)%#ue9DPOkje)YF2fsCilK9MIIK>p*`fkoD5nGfmLwt)!KOT+> zOFq*VZktDDyM3P5UOg`~XL#cbzC}eL%qMB=Q5$d89MKuN#$6|4gx_Jt0Gfn8w&q}%lq4QU%6#jT*MRT% zrLz~C8FYKHawn-EQWN1B75O&quS+Z81(zN)G>~vN8VwC+e+y(`>HcxC{MrJ;H1Z4k zZWuv$w_F0-Ub%MVcpIc){4PGL^I7M{>;hS?;eH!;gmcOE66z3;Z1Phqo(t zVP(Hg6q#0gIKgsg7L7WE!{Y#1nI(45tx2{$34dDd#!Z0NIyrm)HOn5W#7;f4pQci# zDW!FI(g4e668kI9{2+mLwB+=#9bfqgX%!B34V-$wwSN(_cm*^{y0jQtv*4}eO^sOV z*9xoNvX)c9isB}Tgx&ZRjp3kwhTVK?r9;n!x>^XYT z@Q^7zp{rkIs{2mUSE^2!Gf6$6;j~&4=-0cSJJDizZp6LTe8b45;{AKM%v99}{{FfC zz709%u0mC=1KXTo(=TqmZQ;c?$M3z(!xah>aywrj40sc2y3rKFw4jCq+Y+u=CH@_V zxz|qeTwa>+<|H%8Dz5u>ZI5MmjTFwXS-Fv!TDd*`>3{krWoNVx$<133`(ftS?ZPyY z&4@ah^3^i`vL$BZa>O|Nt?ucewzsF)0zX3qmM^|waXr=T0pfIb0*$AwU=?Ipl|1Y; z*Pk6{C-p4MY;j@IJ|DW>QHZQJcp;Z~?8(Q+Kk3^0qJ}SCk^*n4W zu9ZFwLHUx-$6xvaQ)SUQcYd6fF8&x)V`1bIuX@>{mE$b|Yd(qomn3;bPwnDUc0F=; zh*6_((%bqAYQWQ~odER?h>1mkL4kpb3s7`0m@rDKGU*oyF)$j~Ffd4fXV$?`f~rHf zB%Y)@5SXZvfwm10RY5X?TEo)PK_`L6qgBp=#>fO49$D zDq8Ozj0q6213tV5Qq=;fZ0$|KroY{Dz=l@lU^J)?Ko@ti20TRplXzphBi>XGx4bou zEWrkNjz0t5j!_ke{g5I#PUlEU$Km8g8TE|XK=MkU@PT4T><2OVamoK;wJ}3X0L$vX zgd7gNa359*nc)R-0!`2X@FOTB`+oETOPc=ubp5R)VQgY+5BTZZJ2?9QwnO=dnulIUF3gFn;BODC2)65)HeVd%t86sL7Rv^Y+nbn+&l z6BAJY(ETvwI)Ts$aiE8rht4KD*qNyE{8{x6R|%akbTBzw;2+6Echkt+W+`u^XX z_z&x%n '} - case $link in #( - /*) app_path=$link ;; #( - *) app_path=$APP_HOME$link ;; - esac -done - -# This is normally unused -# shellcheck disable=SC2034 -APP_BASE_NAME=${0##*/} -# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) -APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD=maximum - -warn () { - echo "$*" -} >&2 - -die () { - echo - echo "$*" - echo - exit 1 -} >&2 - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -nonstop=false -case "$( uname )" in #( - CYGWIN* ) cygwin=true ;; #( - Darwin* ) darwin=true ;; #( - MSYS* | MINGW* ) msys=true ;; #( - NONSTOP* ) nonstop=true ;; -esac - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD=$JAVA_HOME/jre/sh/java - else - JAVACMD=$JAVA_HOME/bin/java - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD=java - if ! command -v java >/dev/null 2>&1 - then - die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -fi - -# Increase the maximum file descriptors if we can. -if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then - case $MAX_FD in #( - max*) - # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. - # shellcheck disable=SC2039,SC3045 - MAX_FD=$( ulimit -H -n ) || - warn "Could not query maximum file descriptor limit" - esac - case $MAX_FD in #( - '' | soft) :;; #( - *) - # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. - # shellcheck disable=SC2039,SC3045 - ulimit -n "$MAX_FD" || - warn "Could not set maximum file descriptor limit to $MAX_FD" - esac -fi - -# Collect all arguments for the java command, stacking in reverse order: -# * args from the command line -# * the main class name -# * -classpath -# * -D...appname settings -# * --module-path (only if needed) -# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. - -# For Cygwin or MSYS, switch paths to Windows format before running java -if "$cygwin" || "$msys" ; then - APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) - CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) - - JAVACMD=$( cygpath --unix "$JAVACMD" ) - - # Now convert the arguments - kludge to limit ourselves to /bin/sh - for arg do - if - case $arg in #( - -*) false ;; # don't mess with options #( - /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath - [ -e "$t" ] ;; #( - *) false ;; - esac - then - arg=$( cygpath --path --ignore --mixed "$arg" ) - fi - # Roll the args list around exactly as many times as the number of - # args, so each arg winds up back in the position where it started, but - # possibly modified. - # - # NB: a `for` loop captures its iteration list before it begins, so - # changing the positional parameters here affects neither the number of - # iterations, nor the values presented in `arg`. - shift # remove old arg - set -- "$@" "$arg" # push replacement arg - done -fi - - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' - -# Collect all arguments for the java command: -# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, -# and any embedded shellness will be escaped. -# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be -# treated as '${Hostname}' itself on the command line. - -set -- \ - "-Dorg.gradle.appname=$APP_BASE_NAME" \ - -classpath "$CLASSPATH" \ - org.gradle.wrapper.GradleWrapperMain \ - "$@" - -# Stop when "xargs" is not available. -if ! command -v xargs >/dev/null 2>&1 -then - die "xargs is not available" -fi - -# Use "xargs" to parse quoted args. -# -# With -n1 it outputs one arg per line, with the quotes and backslashes removed. -# -# In Bash we could simply go: -# -# readarray ARGS < <( xargs -n1 <<<"$var" ) && -# set -- "${ARGS[@]}" "$@" -# -# but POSIX shell has neither arrays nor command substitution, so instead we -# post-process each arg (as a line of input to sed) to backslash-escape any -# character that might be a shell metacharacter, then use eval to reverse -# that process (while maintaining the separation between arguments), and wrap -# the whole thing up as a single "set" statement. -# -# This will of course break if any of these variables contains a newline or -# an unmatched quote. -# - -eval "set -- $( - printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | - xargs -n1 | - sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | - tr '\n' ' ' - )" '"$@"' - -exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat deleted file mode 100644 index 7101f8e4..00000000 --- a/gradlew.bat +++ /dev/null @@ -1,92 +0,0 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%"=="" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%"=="" set DIRNAME=. -@rem This is normally unused -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if %ERRORLEVEL% equ 0 goto execute - -echo. 1>&2 -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 -echo. 1>&2 -echo Please set the JAVA_HOME variable in your environment to match the 1>&2 -echo location of your Java installation. 1>&2 - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. 1>&2 -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 -echo. 1>&2 -echo Please set the JAVA_HOME variable in your environment to match the 1>&2 -echo location of your Java installation. 1>&2 - -goto fail - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* - -:end -@rem End local scope for the variables with windows NT shell -if %ERRORLEVEL% equ 0 goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -set EXIT_CODE=%ERRORLEVEL% -if %EXIT_CODE% equ 0 set EXIT_CODE=1 -if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% -exit /b %EXIT_CODE% - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 00000000..4ff0f53b --- /dev/null +++ b/index.d.ts @@ -0,0 +1,9 @@ +import v1_payload = require("./src/vald/v1/payload"); +import v1_vald = require("./src/vald/v1/vald"); +import v1_agent_core = require("./src/vald/v1/agent/core"); +declare const _default: { + v1_payload: typeof v1_payload, + v1_vald: typeof v1_vald, + v1_agent_core: typeof v1_agent_core, +}; +export = _default; diff --git a/index.js b/index.js new file mode 100644 index 00000000..b1d837ea --- /dev/null +++ b/index.js @@ -0,0 +1,3 @@ +module.exports.v1_payload = require("./src/vald/v1/payload"); +module.exports.v1_vald = require("./src/vald/v1/vald"); +module.exports.v1_agent_core = require("./src/vald/v1/agent/core"); diff --git a/jest.config.ts b/jest.config.ts new file mode 100644 index 00000000..e512bf48 --- /dev/null +++ b/jest.config.ts @@ -0,0 +1,196 @@ +/* + * For a detailed explanation regarding each configuration property and type check, visit: + * https://jestjs.io/docs/configuration + */ + +export default { + // All imported modules in your tests should be mocked automatically + // automock: false, + + // Stop running tests after `n` failures + // bail: 0, + + // The directory where Jest should store its cached dependency information + // cacheDirectory: "/tmp/jest_0", + + // Automatically clear mock calls and instances between every test + clearMocks: true, + + // Indicates whether the coverage information should be collected while executing the test + collectCoverage: false, + + // An array of glob patterns indicating a set of files for which coverage information should be collected + // collectCoverageFrom: undefined, + + // The directory where Jest should output its coverage files + coverageDirectory: "coverage", + + // An array of regexp pattern strings used to skip coverage collection + // coveragePathIgnorePatterns: [ + // "/node_modules/" + // ], + + // Indicates which provider should be used to instrument code for coverage + coverageProvider: "v8", + + // A list of reporter names that Jest uses when writing coverage reports + // coverageReporters: [ + // "json", + // "text", + // "lcov", + // "clover" + // ], + + // An object that configures minimum threshold enforcement for coverage results + // coverageThreshold: undefined, + + // A path to a custom dependency extractor + // dependencyExtractor: undefined, + + // Make calling deprecated APIs throw helpful error messages + // errorOnDeprecated: false, + + // Force coverage collection from ignored files using an array of glob patterns + // forceCoverageMatch: [], + + // A path to a module which exports an async function that is triggered once before all test suites + // globalSetup: undefined, + + // A path to a module which exports an async function that is triggered once after all test suites + // globalTeardown: undefined, + + // A set of global variables that need to be available in all test environments + // globals: {}, + + // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers. + // maxWorkers: "50%", + + // An array of directory names to be searched recursively up from the requiring module's location + // moduleDirectories: [ + // "node_modules" + // ], + + // An array of file extensions your modules use + // moduleFileExtensions: [ + // "js", + // "jsx", + // "ts", + // "tsx", + // "json", + // "node" + // ], + + // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module + // moduleNameMapper: {}, + + // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader + // modulePathIgnorePatterns: [], + + // Activates notifications for test results + // notify: false, + + // An enum that specifies notification mode. Requires { notify: true } + // notifyMode: "failure-change", + + // A preset that is used as a base for Jest's configuration + // preset: undefined, + + // Run tests from one or more projects + // projects: undefined, + + // Use this configuration option to add custom reporters to Jest + // reporters: undefined, + + // Automatically reset mock state between every test + // resetMocks: false, + + // Reset the module registry before running each individual test + // resetModules: false, + + // A path to a custom resolver + // resolver: undefined, + + // Automatically restore mock state between every test + // restoreMocks: false, + + // The root directory that Jest should scan for tests and modules within + // rootDir: undefined, + + // A list of paths to directories that Jest should use to search for files in + roots: [ + "/tests" + ], + + // Allows you to use a custom runner instead of Jest's default test runner + // runner: "jest-runner", + + // The paths to modules that run some code to configure or set up the testing environment before each test + // setupFiles: [], + + // A list of paths to modules that run some code to configure or set up the testing framework before each test + // setupFilesAfterEnv: [], + + // The number of seconds after which a test is considered as slow and reported as such in the results. + // slowTestThreshold: 5, + + // A list of paths to snapshot serializer modules Jest should use for snapshot testing + // snapshotSerializers: [], + + // The test environment that will be used for testing + // testEnvironment: "jest-environment-node", + + // Options that will be passed to the testEnvironment + // testEnvironmentOptions: {}, + + // Adds a location field to test results + // testLocationInResults: false, + + // The glob patterns Jest uses to detect test files + // testMatch: [ + // "**/__tests__/**/*.[jt]s?(x)", + // "**/?(*.)+(spec|test).[tj]s?(x)" + // ], + + // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped + // testPathIgnorePatterns: [ + // "/node_modules/" + // ], + + // The regexp pattern or array of patterns that Jest uses to detect test files + // testRegex: [], + + // This option allows the use of a custom results processor + // testResultsProcessor: undefined, + + // This option allows use of a custom test runner + // testRunner: "jest-circus/runner", + + // This option sets the URL for the jsdom environment. It is reflected in properties such as location.href + // testURL: "http://localhost", + + // Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout" + // timers: "real", + + // A map from regular expressions to paths to transformers + transform: { + "^.+\\.(ts|tsx)$": "ts-jest" + }, + + // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation + // transformIgnorePatterns: [ + // "/node_modules/", + // "\\.pnp\\.[^\\/]+$" + // ], + + // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them + // unmockedModulePathPatterns: undefined, + + // Indicates whether each individual test should be reported during the run + // verbose: undefined, + + // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode + // watchPathIgnorePatterns: [], + + // Whether to use watchman for file crawling + // watchman: true, +}; diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..8d11daf2 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,4560 @@ +{ + "name": "vald-client-node", + "version": "1.7.12", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "vald-client-node", + "version": "1.7.12", + "license": "Apache-2.0", + "dependencies": { + "@grpc/grpc-js": "^1.10.6", + "@protobuf-ts/runtime": "^2.9.4", + "@protobuf-ts/runtime-rpc": "^2.9.4" + }, + "devDependencies": { + "@bufbuild/buf": "^1.31.0", + "@bufbuild/protobuf": "^1.9.0", + "@types/jest": "^27.5.2", + "jest": "^27.5.1", + "ts-jest": "^27.1.5", + "ts-node": "^10.9.2", + "typescript": "^4.9.5" + }, + "engines": { + "node": ">=18.16.0" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.24.2", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.2.tgz", + "integrity": "sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.24.2", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.24.4", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.4.tgz", + "integrity": "sha512-vg8Gih2MLK+kOkHJp4gBEIkyaIi00jgWot2D9QOmmfLC8jINSOzmCLta6Bvz/JSBCqnegV0L80jhxkol5GWNfQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.5.tgz", + "integrity": "sha512-tVQRucExLQ02Boi4vdPp49svNGcfL2GhdTCT9aldhXgCJVAI21EtRfBettiuLUwce/7r6bFdgs6JFkcdTiFttA==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.24.2", + "@babel/generator": "^7.24.5", + "@babel/helper-compilation-targets": "^7.23.6", + "@babel/helper-module-transforms": "^7.24.5", + "@babel/helpers": "^7.24.5", + "@babel/parser": "^7.24.5", + "@babel/template": "^7.24.0", + "@babel/traverse": "^7.24.5", + "@babel/types": "^7.24.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/@babel/generator": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.5.tgz", + "integrity": "sha512-x32i4hEXvr+iI0NEoEfDKzlemF8AmtOP8CcrRaEcpzysWuoEb1KknpcvMsHKPONoKZiDuItklgWhB18xEhr9PA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.24.5", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", + "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.23.5", + "@babel/helper-validator-option": "^7.23.5", + "browserslist": "^4.22.2", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.24.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.3.tgz", + "integrity": "sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.24.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.24.5.tgz", + "integrity": "sha512-9GxeY8c2d2mdQUP1Dye0ks3VDyIMS98kt/llQ2nUId8IsWqTF0l1LkSX0/uP7l7MCDrzXS009Hyhe2gzTiGW8A==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-module-imports": "^7.24.3", + "@babel/helper-simple-access": "^7.24.5", + "@babel/helper-split-export-declaration": "^7.24.5", + "@babel/helper-validator-identifier": "^7.24.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.5.tgz", + "integrity": "sha512-xjNLDopRzW2o6ba0gKbkZq5YWEBaK3PCyTOY1K2P/O07LGMhMqlMXPxwN4S5/RhWuCobT8z0jrlKGlYmeR1OhQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.5.tgz", + "integrity": "sha512-uH3Hmf5q5n7n8mz7arjUlDOCbttY/DW4DYhE6FUsjKJ/oYC1kQQUvwEQWxRwUpX9qQKRXeqLwWxrqilMrf32sQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.24.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.5.tgz", + "integrity": "sha512-5CHncttXohrHk8GWOFCcCl4oRD9fKosWlIRgWm4ql9VYioKm52Mk2xsmoohvm7f3JoiLSM5ZgJuRaf5QZZYd3Q==", + "dev": true, + "dependencies": { + "@babel/types": "^7.24.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz", + "integrity": "sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.5.tgz", + "integrity": "sha512-3q93SSKX2TWCG30M2G2kwaKeTYgEUp5Snjuj8qm729SObL6nbtUldAi37qbxkD5gg3xnBio+f9nqpSepGZMvxA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", + "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.5.tgz", + "integrity": "sha512-CiQmBMMpMQHwM5m01YnrM6imUG1ebgYJ+fAIW4FZe6m4qHTPaRHti+R8cggAwkdz4oXhtO4/K9JWlh+8hIfR2Q==", + "dev": true, + "dependencies": { + "@babel/template": "^7.24.0", + "@babel/traverse": "^7.24.5", + "@babel/types": "^7.24.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.5.tgz", + "integrity": "sha512-8lLmua6AVh/8SLJRRVD6V8p73Hir9w5mJrhE+IPpILG31KKlI9iz5zmBYKcWPS59qSfgP9RaSBQSHHE81WKuEw==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.24.5", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/@babel/highlight/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/parser": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.5.tgz", + "integrity": "sha512-EOv5IK8arwh3LI47dz1b0tKUb/1uhHAnHJOrjgtQMIpu1uXd9mlFrJg9IUgGUgZ41Ch0K8REPTYpO7B76b4vJg==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.1.tgz", + "integrity": "sha512-Yhnmvy5HZEnHUty6i++gcfH1/l68AHnItFHnaCv6hn9dNh0hQvvQJsxpi4BMBFN5DLeHBuucT/0DgzXif/OyRw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.0.tgz", + "integrity": "sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.23.5", + "@babel/parser": "^7.24.0", + "@babel/types": "^7.24.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.5.tgz", + "integrity": "sha512-7aaBLeDQ4zYcUFDUD41lJc1fG8+5IU9DaNSJAgal866FGvmD5EbWQgnEC6kO1gGLsX0esNkfnJSndbTXA3r7UA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.24.2", + "@babel/generator": "^7.24.5", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.24.5", + "@babel/parser": "^7.24.5", + "@babel/types": "^7.24.5", + "debug": "^4.3.1", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.5.tgz", + "integrity": "sha512-6mQNsaLeXTw0nxYUYu+NSa4Hx4BlF1x1x8/PMFbiR+GBSr+2DkECc69b8hgy2frEodNcvPffeH8YfWd3LI6jhQ==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.24.1", + "@babel/helper-validator-identifier": "^7.24.5", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@bufbuild/buf": { + "version": "1.32.1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.32.1.tgz", + "integrity": "sha512-uPVhqDzYtz9Q7WTodCschf9xXKL5/TQHtU1fKOUmain/dGe66YtSU4LQ0SWmxAQEJIUSmkH4UOPgKEzNMKdWeg==", + "dev": true, + "hasInstallScript": true, + "bin": { + "buf": "bin/buf", + "protoc-gen-buf-breaking": "bin/protoc-gen-buf-breaking", + "protoc-gen-buf-lint": "bin/protoc-gen-buf-lint" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@bufbuild/buf-darwin-arm64": "1.32.1", + "@bufbuild/buf-darwin-x64": "1.32.1", + "@bufbuild/buf-linux-aarch64": "1.32.1", + "@bufbuild/buf-linux-x64": "1.32.1", + "@bufbuild/buf-win32-arm64": "1.32.1", + "@bufbuild/buf-win32-x64": "1.32.1" + } + }, + "node_modules/@bufbuild/buf-darwin-arm64": { + "version": "1.32.1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-arm64/-/buf-darwin-arm64-1.32.1.tgz", + "integrity": "sha512-Duw4StB5sth8s4cQfOa7Be6+OAXfGuuo3ZOkUzJTxWOVH0sWq0nTkO90kXMJOjOkmB/JMnqRQcVAdKuu9u1pcw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@bufbuild/buf-darwin-x64": { + "version": "1.32.1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-x64/-/buf-darwin-x64-1.32.1.tgz", + "integrity": "sha512-3ANVbOoSmfdFxhOvjMDLTr2u35+mdEQcF9Tx39ZEA+Las0WucV6n/bGPwucpH04a9UsW59npNt3IzA4VvUDcyw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@bufbuild/buf-linux-aarch64": { + "version": "1.32.1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-aarch64/-/buf-linux-aarch64-1.32.1.tgz", + "integrity": "sha512-QdGirTSFU/WzI/lBo9ph4ThQJS9S8Zm3l/7hg+07GrF57VqB1pUZvnh2298R10/kLKP6lpMtqeVrjMhIcHtxTw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@bufbuild/buf-linux-x64": { + "version": "1.32.1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-x64/-/buf-linux-x64-1.32.1.tgz", + "integrity": "sha512-6R8whslj+6WQi9nUjVkNx6AW64czFOFD22dLmrB4i3bY/WDku+/5CNHBU/On738pmgujQrEVT4ztB6fVmVtKOg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@bufbuild/buf-win32-arm64": { + "version": "1.32.1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-arm64/-/buf-win32-arm64-1.32.1.tgz", + "integrity": "sha512-QPDxdLRxJpiCTEx7/5bIN3V3EPGvZ1+dyEco6d1qIydDrH9BbCWNy9YLPJOaDxAbewW4lrAX73FmMTTM4tNtbw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@bufbuild/buf-win32-x64": { + "version": "1.32.1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-x64/-/buf-win32-x64-1.32.1.tgz", + "integrity": "sha512-rZSM5id3zko+YQICZB3ypj+AVL0rcN7gra8SN4Ep4aOWAH6gib3RgH51cFcq9VgI1N1xTBy8wZvQMnMLPBn2zg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@bufbuild/protobuf": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.9.0.tgz", + "integrity": "sha512-W7gp8Q/v1NlCZLsv8pQ3Y0uCu/SHgXOVFK+eUluUKWXmsb6VHkpNx0apdOWWcDbB9sJoKeP8uPrjmehJz6xETQ==", + "dev": true + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@grpc/grpc-js": { + "version": "1.10.8", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.10.8.tgz", + "integrity": "sha512-vYVqYzHicDqyKB+NQhAc54I1QWCBLCrYG6unqOIcBTHx+7x8C9lcoLj3KVJXs2VB4lUbpWY+Kk9NipcbXYWmvg==", + "dependencies": { + "@grpc/proto-loader": "^0.7.13", + "@js-sdsl/ordered-map": "^4.4.2" + }, + "engines": { + "node": ">=12.10.0" + } + }, + "node_modules/@grpc/proto-loader": { + "version": "0.7.13", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.13.tgz", + "integrity": "sha512-AiXO/bfe9bmxBjxxtYxFAXGZvMaN5s8kO+jBHAJCON8rJoB5YS/D6X7ZNc6XQkuHNmyl4CYaMI1fJ/Gn27RGGw==", + "dependencies": { + "lodash.camelcase": "^4.3.0", + "long": "^5.0.0", + "protobufjs": "^7.2.5", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.5.1.tgz", + "integrity": "sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/core": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.5.1.tgz", + "integrity": "sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==", + "dev": true, + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/reporters": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^27.5.1", + "jest-config": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-resolve-dependencies": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "jest-watcher": "^27.5.1", + "micromatch": "^4.0.4", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/environment": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", + "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", + "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "@sinonjs/fake-timers": "^8.0.1", + "@types/node": "*", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.5.1.tgz", + "integrity": "sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==", + "dev": true, + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/types": "^27.5.1", + "expect": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.5.1.tgz", + "integrity": "sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-haste-map": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^4.0.1", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^8.1.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/source-map": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz", + "integrity": "sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9", + "source-map": "^0.6.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.5.1.tgz", + "integrity": "sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==", + "dev": true, + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz", + "integrity": "sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==", + "dev": true, + "dependencies": { + "@jest/test-result": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-runtime": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.5.1.tgz", + "integrity": "sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/types": "^27.5.1", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-util": "^27.5.1", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/types": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", + "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@js-sdsl/ordered-map": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", + "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/js-sdsl" + } + }, + "node_modules/@protobuf-ts/runtime": { + "version": "2.9.4", + "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime/-/runtime-2.9.4.tgz", + "integrity": "sha512-vHRFWtJJB/SiogWDF0ypoKfRIZ41Kq+G9cEFj6Qm1eQaAhJ1LDFvgZ7Ja4tb3iLOQhz0PaoPnnOijF1qmEqTxg==" + }, + "node_modules/@protobuf-ts/runtime-rpc": { + "version": "2.9.4", + "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime-rpc/-/runtime-rpc-2.9.4.tgz", + "integrity": "sha512-y9L9JgnZxXFqH5vD4d7j9duWvIJ7AShyBRoNKJGhu9Q27qIbchfzli66H9RvrQNIFk5ER7z1Twe059WZGqERcA==", + "dependencies": { + "@protobuf-ts/runtime": "^2.9.4" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" + }, + "node_modules/@sinonjs/commons": { + "version": "1.8.6", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", + "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", + "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1.7.0" + } + }, + "node_modules/@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", + "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", + "dev": true + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.8", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", + "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.6", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.6.tgz", + "integrity": "sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "27.5.2", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.5.2.tgz", + "integrity": "sha512-mpT8LJJ4CMeeahobofYWIjFo0xonRS/HfxnVEPMPFSQdGUt1uHCnoPT7Zhb+sjDU2wz0oKV0OLUR0WzrHNgfeA==", + "dev": true, + "dependencies": { + "jest-matcher-utils": "^27.0.0", + "pretty-format": "^27.0.0" + } + }, + "node_modules/@types/node": { + "version": "20.12.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz", + "integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==", + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/@types/prettier": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", + "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", + "dev": true + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true + }, + "node_modules/@types/yargs": { + "version": "16.0.9", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.9.tgz", + "integrity": "sha512-tHhzvkFXZQeTECenFoRljLBYPZJ7jAVxqqtEI0qTLOmuultnFp4I9yKE17vTuhf7BkhCu7I4XuemPgikDVuYqA==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true + }, + "node_modules/abab": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", + "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", + "deprecated": "Use your platform's native atob() and btoa() methods instead", + "dev": true + }, + "node_modules/acorn": { + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-globals": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", + "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", + "dev": true, + "dependencies": { + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" + } + }, + "node_modules/acorn-globals/node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true + }, + "node_modules/babel-jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", + "integrity": "sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==", + "dev": true, + "dependencies": { + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", + "integrity": "sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.0.0", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", + "integrity": "sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^27.5.1", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browser-process-hrtime": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", + "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", + "dev": true + }, + "node_modules/browserslist": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.0.tgz", + "integrity": "sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001587", + "electron-to-chromium": "^1.4.668", + "node-releases": "^2.0.14", + "update-browserslist-db": "^1.0.13" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001621", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001621.tgz", + "integrity": "sha512-+NLXZiviFFKX0fk8Piwv3PfLPGtRqJeq2TiNoUff/qB5KJgwecJTvCXDpmlyP/eCI/GUEmp/h/y5j0yckiiZrA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.3.1.tgz", + "integrity": "sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q==", + "dev": true + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cssom": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", + "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", + "dev": true + }, + "node_modules/cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "dev": true, + "dependencies": { + "cssom": "~0.3.6" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cssstyle/node_modules/cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", + "dev": true + }, + "node_modules/data-urls": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", + "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", + "dev": true, + "dependencies": { + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decimal.js": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", + "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", + "dev": true + }, + "node_modules/dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", + "dev": true + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/diff-sequences": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", + "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", + "dev": true, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/domexception": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", + "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", + "deprecated": "Use your platform's native DOMException instead", + "dev": true, + "dependencies": { + "webidl-conversions": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/domexception/node_modules/webidl-conversions": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", + "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.779", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.779.tgz", + "integrity": "sha512-oaTiIcszNfySXVJzKcjxd2YjPxziAd+GmXyb2HbidCeFo6Z88ygOT7EimlrEQhM2U08VhSrbKhLOXP0kKUCZ6g==", + "dev": true + }, + "node_modules/emittery": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", + "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/escalade": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "dev": true, + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", + "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/html-encoding-sniffer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", + "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", + "dev": true, + "dependencies": { + "whatwg-encoding": "^1.0.5" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "dev": true, + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/is-core-module": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "dev": true, + "dependencies": { + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", + "dev": true + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", + "dev": true + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", + "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", + "integrity": "sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==", + "dev": true, + "dependencies": { + "@jest/core": "^27.5.1", + "import-local": "^3.0.2", + "jest-cli": "^27.5.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", + "integrity": "sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "execa": "^5.0.0", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-circus": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.5.1.tgz", + "integrity": "sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==", + "dev": true, + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^0.7.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-cli": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.5.1.tgz", + "integrity": "sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==", + "dev": true, + "dependencies": { + "@jest/core": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "import-local": "^3.0.2", + "jest-config": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "prompts": "^2.0.1", + "yargs": "^16.2.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-cli/node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/jest-cli/node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-config": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.5.1.tgz", + "integrity": "sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.8.0", + "@jest/test-sequencer": "^27.5.1", + "@jest/types": "^27.5.1", + "babel-jest": "^27.5.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.9", + "jest-circus": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-jasmine2": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-diff": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", + "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz", + "integrity": "sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-each": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.5.1.tgz", + "integrity": "sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-jsdom": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz", + "integrity": "sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==", + "dev": true, + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1", + "jsdom": "^16.6.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", + "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", + "dev": true, + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", + "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", + "dev": true, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz", + "integrity": "sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^27.5.1", + "jest-serializer": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "micromatch": "^4.0.4", + "walker": "^1.0.7" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-jasmine2": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz", + "integrity": "sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-leak-detector": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz", + "integrity": "sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==", + "dev": true, + "dependencies": { + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", + "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", + "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-mock": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", + "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz", + "integrity": "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==", + "dev": true, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz", + "integrity": "sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "resolve": "^1.20.0", + "resolve.exports": "^1.1.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz", + "integrity": "sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-snapshot": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runner": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.5.1.tgz", + "integrity": "sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==", + "dev": true, + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-leak-detector": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "source-map-support": "^0.5.6", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.5.1.tgz", + "integrity": "sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==", + "dev": true, + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/globals": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "execa": "^5.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-serializer": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz", + "integrity": "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==", + "dev": true, + "dependencies": { + "@types/node": "*", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", + "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.7.2", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/traverse": "^7.7.2", + "@babel/types": "^7.0.0", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.1.5", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "natural-compare": "^1.4.0", + "pretty-format": "^27.5.1", + "semver": "^7.3.2" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", + "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-validate": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz", + "integrity": "sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "leven": "^3.1.0", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.5.1.tgz", + "integrity": "sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "jest-util": "^27.5.1", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsdom": { + "version": "16.7.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", + "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", + "dev": true, + "dependencies": { + "abab": "^2.0.5", + "acorn": "^8.2.4", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.3.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.1", + "domexception": "^2.0.1", + "escodegen": "^2.0.0", + "form-data": "^3.0.0", + "html-encoding-sniffer": "^2.0.1", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.0", + "parse5": "6.0.1", + "saxes": "^5.0.1", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.0.0", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.5.0", + "ws": "^7.4.6", + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true + }, + "node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/micromatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", + "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", + "dev": true, + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/nwsapi": { + "version": "2.2.10", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.10.tgz", + "integrity": "sha512-QK0sRs7MKv0tKe1+5uZIQk/C8XGza4DAnztJG8iD+TpJIORARrCxczA738awHrZoHeTjSSoHqao2teO0dC/gFQ==", + "dev": true + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", + "dev": true + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pretty-format": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", + "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^17.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/protobufjs": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.3.0.tgz", + "integrity": "sha512-YWD03n3shzV9ImZRX3ccbjqLxj7NokGN0V/ESiBV5xWqrommYHYiihuIyavq03pWSGqlyvYUFmfoMKd+1rPA/g==", + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/psl": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", + "dev": true + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", + "dev": true + }, + "node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "dev": true + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "dev": true + }, + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve.exports": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.1.tgz", + "integrity": "sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "node_modules/saxes": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", + "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", + "dev": true, + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-hyperlinks": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", + "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true + }, + "node_modules/terminal-link": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", + "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", + "dev": true, + "dependencies": { + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/throat": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.2.tgz", + "integrity": "sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ==", + "dev": true + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tough-cookie": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz", + "integrity": "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==", + "dev": true, + "dependencies": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "dev": true, + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ts-jest": { + "version": "27.1.5", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-27.1.5.tgz", + "integrity": "sha512-Xv6jBQPoBEvBq/5i2TeSG9tt/nqkbpcurrEG1b+2yfBrcJelOZF9Ml6dmyMh7bcW9JyFbRYpR5rxROSlBLTZHA==", + "dev": true, + "dependencies": { + "bs-logger": "0.x", + "fast-json-stable-stringify": "2.x", + "jest-util": "^27.0.0", + "json5": "2.x", + "lodash.memoize": "4.x", + "make-error": "1.x", + "semver": "7.x", + "yargs-parser": "20.x" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@types/jest": "^27.0.0", + "babel-jest": ">=27.0.0 <28", + "jest": "^27.0.0", + "typescript": ">=3.8 <5.0" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@types/jest": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + } + } + }, + "node_modules/ts-jest/node_modules/semver": { + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-node": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "dev": true, + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/ts-node/node_modules/acorn-walk": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", + "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dev": true, + "dependencies": { + "is-typedarray": "^1.0.0" + } + }, + "node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, + "node_modules/universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz", + "integrity": "sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.2", + "picocolors": "^1.0.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "dev": true, + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true + }, + "node_modules/v8-to-istanbul": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", + "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/v8-to-istanbul/node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/w3c-hr-time": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", + "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", + "deprecated": "Use your platform's native performance.now() and performance.timeOrigin.", + "dev": true, + "dependencies": { + "browser-process-hrtime": "^1.0.0" + } + }, + "node_modules/w3c-xmlserializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", + "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", + "dev": true, + "dependencies": { + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/webidl-conversions": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", + "dev": true, + "engines": { + "node": ">=10.4" + } + }, + "node_modules/whatwg-encoding": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", + "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", + "dev": true, + "dependencies": { + "iconv-lite": "0.4.24" + } + }, + "node_modules/whatwg-mimetype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", + "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", + "dev": true + }, + "node_modules/whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "dev": true, + "dependencies": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "node_modules/ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "dev": true, + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "dev": true + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "engines": { + "node": ">=12" + } + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "engines": { + "node": ">=6" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 00000000..c5a6594e --- /dev/null +++ b/package.json @@ -0,0 +1,40 @@ +{ + "name": "vald-client-node", + "version": "1.7.12", + "description": "A gRPC client library for Vald", + "main": "index.js", + "types": "index.d.ts", + "devDependencies": { + "@bufbuild/buf": "^1.31.0", + "@bufbuild/protobuf": "^1.9.0", + "@types/jest": "^27.5.2", + "jest": "^27.5.1", + "ts-jest": "^27.1.5", + "ts-node": "^10.9.2", + "typescript": "^4.9.5" + }, + "scripts": { + "test": "jest --runInBand" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/vdaas/vald-client-node.git" + }, + "keywords": [ + "vald" + ], + "author": "Vald authors (https://vald.vdaas.org)", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/vdaas/vald-client-node/issues" + }, + "homepage": "https://github.com/vdaas/vald-client-node", + "dependencies": { + "@grpc/grpc-js": "^1.10.6", + "@protobuf-ts/runtime": "^2.9.4", + "@protobuf-ts/runtime-rpc": "^2.9.4" + }, + "engines": { + "node": ">=18.16.0" + } +} diff --git a/settings.gradle b/settings.gradle deleted file mode 100644 index e31c033d..00000000 --- a/settings.gradle +++ /dev/null @@ -1,10 +0,0 @@ -/* - * This file was generated by the Gradle 'init' task. - * - * The settings file is used to specify which projects to include in your build. - * - * Detailed information about configuring a multi-project build in Gradle can be found - * in the user manual at https://docs.gradle.org/5.4.1/userguide/multi_project_builds.html - */ - -rootProject.name = 'vald-client-java' diff --git a/src/buf/validate/expression_pb.d.ts b/src/buf/validate/expression_pb.d.ts new file mode 100644 index 00000000..3ad3d455 --- /dev/null +++ b/src/buf/validate/expression_pb.d.ts @@ -0,0 +1,163 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "buf/validate/expression.proto" (package "buf.validate", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Copyright 2023 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { IBinaryWriter } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { IBinaryReader } from "@protobuf-ts/runtime"; +import type { PartialMessage } from "@protobuf-ts/runtime"; +import { MessageType } from "@protobuf-ts/runtime"; +/** + * `Constraint` represents a validation rule written in the Common Expression + * Language (CEL) syntax. Each Constraint includes a unique identifier, an + * optional error message, and the CEL expression to evaluate. For more + * information on CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md). + * + * ```proto + * message Foo { + * option (buf.validate.message).cel = { + * id: "foo.bar" + * message: "bar must be greater than 0" + * expression: "this.bar > 0" + * }; + * int32 bar = 1; + * } + * ``` + * + * @generated from protobuf message buf.validate.Constraint + */ +export interface Constraint { + /** + * `id` is a string that serves as a machine-readable name for this Constraint. + * It should be unique within its scope, which could be either a message or a field. + * + * @generated from protobuf field: string id = 1; + */ + id: string; + /** + * `message` is an optional field that provides a human-readable error message + * for this Constraint when the CEL expression evaluates to false. If a + * non-empty message is provided, any strings resulting from the CEL + * expression evaluation are ignored. + * + * @generated from protobuf field: string message = 2; + */ + message: string; + /** + * `expression` is the actual CEL expression that will be evaluated for + * validation. This string must resolve to either a boolean or a string + * value. If the expression evaluates to false or a non-empty string, the + * validation is considered failed, and the message is rejected. + * + * @generated from protobuf field: string expression = 3; + */ + expression: string; +} +/** + * `Violations` is a collection of `Violation` messages. This message type is returned by + * protovalidate when a proto message fails to meet the requirements set by the `Constraint` validation rules. + * Each individual violation is represented by a `Violation` message. + * + * @generated from protobuf message buf.validate.Violations + */ +export interface Violations { + /** + * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected. + * + * @generated from protobuf field: repeated buf.validate.Violation violations = 1; + */ + violations: Violation[]; +} +/** + * `Violation` represents a single instance where a validation rule, expressed + * as a `Constraint`, was not met. It provides information about the field that + * caused the violation, the specific constraint that wasn't fulfilled, and a + * human-readable error message. + * + * ```json + * { + * "fieldPath": "bar", + * "constraintId": "foo.bar", + * "message": "bar must be greater than 0" + * } + * ``` + * + * @generated from protobuf message buf.validate.Violation + */ +export interface Violation { + /** + * `field_path` is a machine-readable identifier that points to the specific field that failed the validation. + * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation. + * + * @generated from protobuf field: string field_path = 1; + */ + field_path: string; + /** + * `constraint_id` is the unique identifier of the `Constraint` that was not fulfilled. + * This is the same `id` that was specified in the `Constraint` message, allowing easy tracing of which rule was violated. + * + * @generated from protobuf field: string constraint_id = 2; + */ + constraint_id: string; + /** + * `message` is a human-readable error message that describes the nature of the violation. + * This can be the default error message from the violated `Constraint`, or it can be a custom message that gives more context about the violation. + * + * @generated from protobuf field: string message = 3; + */ + message: string; + /** + * `for_key` indicates whether the violation was caused by a map key, rather than a value. + * + * @generated from protobuf field: bool for_key = 4; + */ + for_key: boolean; +} +declare class Constraint$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Constraint; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Constraint): Constraint; + internalBinaryWrite(message: Constraint, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.Constraint + */ +export declare const Constraint: Constraint$Type; +declare class Violations$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Violations; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Violations): Violations; + internalBinaryWrite(message: Violations, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.Violations + */ +export declare const Violations: Violations$Type; +declare class Violation$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Violation; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Violation): Violation; + internalBinaryWrite(message: Violation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.Violation + */ +export declare const Violation: Violation$Type; +export {}; diff --git a/src/buf/validate/expression_pb.js b/src/buf/validate/expression_pb.js new file mode 100644 index 00000000..ac120f09 --- /dev/null +++ b/src/buf/validate/expression_pb.js @@ -0,0 +1,208 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "buf/validate/expression.proto" (package "buf.validate", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Copyright 2023 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Violation = exports.Violations = exports.Constraint = void 0; +const runtime_1 = require("@protobuf-ts/runtime"); +const runtime_2 = require("@protobuf-ts/runtime"); +const runtime_3 = require("@protobuf-ts/runtime"); +const runtime_4 = require("@protobuf-ts/runtime"); +// @generated message type with reflection information, may provide speed optimized methods +class Constraint$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.Constraint", [ + { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "expression", kind: "scalar", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.id = ""; + message.message = ""; + message.expression = ""; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string id */ 1: + message.id = reader.string(); + break; + case /* string message */ 2: + message.message = reader.string(); + break; + case /* string expression */ 3: + message.expression = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string id = 1; */ + if (message.id !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.id); + /* string message = 2; */ + if (message.message !== "") + writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.message); + /* string expression = 3; */ + if (message.expression !== "") + writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.expression); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.Constraint + */ +exports.Constraint = new Constraint$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Violations$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.Violations", [ + { no: 1, name: "violations", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Violation } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.violations = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated buf.validate.Violation violations */ 1: + message.violations.push(exports.Violation.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated buf.validate.Violation violations = 1; */ + for (let i = 0; i < message.violations.length; i++) + exports.Violation.internalBinaryWrite(message.violations[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.Violations + */ +exports.Violations = new Violations$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Violation$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.Violation", [ + { no: 1, name: "field_path", kind: "scalar", localName: "field_path", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "constraint_id", kind: "scalar", localName: "constraint_id", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 4, name: "for_key", kind: "scalar", localName: "for_key", T: 8 /*ScalarType.BOOL*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.field_path = ""; + message.constraint_id = ""; + message.message = ""; + message.for_key = false; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string field_path */ 1: + message.field_path = reader.string(); + break; + case /* string constraint_id */ 2: + message.constraint_id = reader.string(); + break; + case /* string message */ 3: + message.message = reader.string(); + break; + case /* bool for_key */ 4: + message.for_key = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string field_path = 1; */ + if (message.field_path !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.field_path); + /* string constraint_id = 2; */ + if (message.constraint_id !== "") + writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.constraint_id); + /* string message = 3; */ + if (message.message !== "") + writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message); + /* bool for_key = 4; */ + if (message.for_key !== false) + writer.tag(4, runtime_1.WireType.Varint).bool(message.for_key); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.Violation + */ +exports.Violation = new Violation$Type(); diff --git a/src/buf/validate/priv/private_pb.d.ts b/src/buf/validate/priv/private_pb.d.ts new file mode 100644 index 00000000..1463488c --- /dev/null +++ b/src/buf/validate/priv/private_pb.d.ts @@ -0,0 +1,77 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "buf/validate/priv/private.proto" (package "buf.validate.priv", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Copyright 2023 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { IBinaryWriter } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { IBinaryReader } from "@protobuf-ts/runtime"; +import type { PartialMessage } from "@protobuf-ts/runtime"; +import { MessageType } from "@protobuf-ts/runtime"; +/** + * Do not use. Internal to protovalidate library + * + * @generated from protobuf message buf.validate.priv.FieldConstraints + */ +export interface FieldConstraints { + /** + * @generated from protobuf field: repeated buf.validate.priv.Constraint cel = 1; + */ + cel: Constraint[]; +} +/** + * Do not use. Internal to protovalidate library + * + * @generated from protobuf message buf.validate.priv.Constraint + */ +export interface Constraint { + /** + * @generated from protobuf field: string id = 1; + */ + id: string; + /** + * @generated from protobuf field: string message = 2; + */ + message: string; + /** + * @generated from protobuf field: string expression = 3; + */ + expression: string; +} +declare class FieldConstraints$Type extends MessageType { + constructor(); + create(value?: PartialMessage): FieldConstraints; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldConstraints): FieldConstraints; + internalBinaryWrite(message: FieldConstraints, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.priv.FieldConstraints + */ +export declare const FieldConstraints: FieldConstraints$Type; +declare class Constraint$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Constraint; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Constraint): Constraint; + internalBinaryWrite(message: Constraint, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.priv.Constraint + */ +export declare const Constraint: Constraint$Type; +export {}; diff --git a/src/buf/validate/priv/private_pb.js b/src/buf/validate/priv/private_pb.js new file mode 100644 index 00000000..d0eb230f --- /dev/null +++ b/src/buf/validate/priv/private_pb.js @@ -0,0 +1,137 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "buf/validate/priv/private.proto" (package "buf.validate.priv", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Copyright 2023 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Constraint = exports.FieldConstraints = void 0; +const runtime_1 = require("@protobuf-ts/runtime"); +const runtime_2 = require("@protobuf-ts/runtime"); +const runtime_3 = require("@protobuf-ts/runtime"); +const runtime_4 = require("@protobuf-ts/runtime"); +// @generated message type with reflection information, may provide speed optimized methods +class FieldConstraints$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.priv.FieldConstraints", [ + { no: 1, name: "cel", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Constraint } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.cel = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated buf.validate.priv.Constraint cel */ 1: + message.cel.push(exports.Constraint.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated buf.validate.priv.Constraint cel = 1; */ + for (let i = 0; i < message.cel.length; i++) + exports.Constraint.internalBinaryWrite(message.cel[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.priv.FieldConstraints + */ +exports.FieldConstraints = new FieldConstraints$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Constraint$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.priv.Constraint", [ + { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "expression", kind: "scalar", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.id = ""; + message.message = ""; + message.expression = ""; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string id */ 1: + message.id = reader.string(); + break; + case /* string message */ 2: + message.message = reader.string(); + break; + case /* string expression */ 3: + message.expression = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string id = 1; */ + if (message.id !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.id); + /* string message = 2; */ + if (message.message !== "") + writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.message); + /* string expression = 3; */ + if (message.expression !== "") + writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.expression); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.priv.Constraint + */ +exports.Constraint = new Constraint$Type(); diff --git a/src/buf/validate/validate_pb.d.ts b/src/buf/validate/validate_pb.d.ts new file mode 100644 index 00000000..c64f6a04 --- /dev/null +++ b/src/buf/validate/validate_pb.d.ts @@ -0,0 +1,3718 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "buf/validate/validate.proto" (package "buf.validate", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Copyright 2023 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { IBinaryWriter } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { IBinaryReader } from "@protobuf-ts/runtime"; +import type { PartialMessage } from "@protobuf-ts/runtime"; +import { MessageType } from "@protobuf-ts/runtime"; +import { Timestamp } from "../../google/protobuf/timestamp_pb"; +import { Duration } from "../../google/protobuf/duration_pb"; +import { Constraint } from "./expression_pb"; +/** + * MessageConstraints represents validation rules that are applied to the entire message. + * It includes disabling options and a list of Constraint messages representing Common Expression Language (CEL) validation rules. + * + * @generated from protobuf message buf.validate.MessageConstraints + */ +export interface MessageConstraints { + /** + * `disabled` is a boolean flag that, when set to true, nullifies any validation rules for this message. + * This includes any fields within the message that would otherwise support validation. + * + * ```proto + * message MyMessage { + * // validation will be bypassed for this message + * option (buf.validate.message).disabled = true; + * } + * ``` + * + * @generated from protobuf field: optional bool disabled = 1; + */ + disabled?: boolean; + /** + * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message. + * These constraints are written in Common Expression Language (CEL) syntax. For more information on + * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md). + * + * + * ```proto + * message MyMessage { + * // The field `foo` must be greater than 42. + * option (buf.validate.message).cel = { + * id: "my_message.value", + * message: "value must be greater than 42", + * expression: "this.foo > 42", + * }; + * optional int32 foo = 1; + * } + * ``` + * + * @generated from protobuf field: repeated buf.validate.Constraint cel = 3; + */ + cel: Constraint[]; +} +/** + * The `OneofConstraints` message type enables you to manage constraints for + * oneof fields in your protobuf messages. + * + * @generated from protobuf message buf.validate.OneofConstraints + */ +export interface OneofConstraints { + /** + * If `required` is true, exactly one field of the oneof must be present. A + * validation error is returned if no fields in the oneof are present. The + * field itself may still be a default value; further constraints + * should be placed on the fields themselves to ensure they are valid values, + * such as `min_len` or `gt`. + * + * ```proto + * message MyMessage { + * oneof value { + * // Either `a` or `b` must be set. If `a` is set, it must also be + * // non-empty; whereas if `b` is set, it can still be an empty string. + * option (buf.validate.oneof).required = true; + * string a = 1 [(buf.validate.field).string.min_len = 1]; + * string b = 2; + * } + * } + * ``` + * + * @generated from protobuf field: optional bool required = 1; + */ + required?: boolean; +} +/** + * FieldRules encapsulates the rules for each type of field. Depending on the + * field, the correct set should be used to ensure proper validations. + * + * @generated from protobuf message buf.validate.FieldConstraints + */ +export interface FieldConstraints { + /** + * `cel` is a repeated field used to represent a textual expression + * in the Common Expression Language (CEL) syntax. For more information on + * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md). + * + * ```proto + * message MyMessage { + * // The field `value` must be greater than 42. + * optional int32 value = 1 [(buf.validate.field).cel = { + * id: "my_message.value", + * message: "value must be greater than 42", + * expression: "this > 42", + * }]; + * } + * ``` + * + * @generated from protobuf field: repeated buf.validate.Constraint cel = 23; + */ + cel: Constraint[]; + /** + * `skipped` is an optional boolean attribute that specifies that the + * validation rules of this field should not be evaluated. If skipped is set to + * true, any validation rules set for the field will be ignored. + * + * ```proto + * message MyMessage { + * // The field `value` must not be set. + * optional MyOtherMessage value = 1 [(buf.validate.field).skipped = true]; + * } + * ``` + * + * @generated from protobuf field: bool skipped = 24; + */ + skipped: boolean; + /** + * If `required` is true, the field must be populated. Field presence can be + * described as "serialized in the wire format," which follows the following rules: + * + * - the following "nullable" fields must be explicitly set to be considered present: + * - singular message fields (may be their empty value) + * - member fields of a oneof (may be their default value) + * - proto3 optional fields (may be their default value) + * - proto2 scalar fields + * - proto3 scalar fields must be non-zero to be considered present + * - repeated and map fields must be non-empty to be considered present + * + * ```proto + * message MyMessage { + * // The field `value` must be set to a non-null value. + * optional MyOtherMessage value = 1 [(buf.validate.field).required = true]; + * } + * ``` + * + * @generated from protobuf field: bool required = 25; + */ + required: boolean; + /** + * If `ignore_empty` is true and applied to a non-nullable field (see + * `required` for more details), validation is skipped on the field if it is + * the default or empty value. Adding `ignore_empty` to a "nullable" field is + * a noop as these unset fields already skip validation (with the exception + * of `required`). + * + * ```proto + * message MyRepeated { + * // The field `value` min_len rule is only applied if the field isn't empty. + * repeated string value = 1 [ + * (buf.validate.field).ignore_empty = true, + * (buf.validate.field).min_len = 5 + * ]; + * } + * ``` + * + * @generated from protobuf field: bool ignore_empty = 26; + */ + ignore_empty: boolean; + /** + * @generated from protobuf oneof: type + */ + type: { + oneofKind: "float"; + /** + * Scalar Field Types + * + * @generated from protobuf field: buf.validate.FloatRules float = 1; + */ + float: FloatRules; + } | { + oneofKind: "double"; + /** + * @generated from protobuf field: buf.validate.DoubleRules double = 2; + */ + double: DoubleRules; + } | { + oneofKind: "int32"; + /** + * @generated from protobuf field: buf.validate.Int32Rules int32 = 3; + */ + int32: Int32Rules; + } | { + oneofKind: "int64"; + /** + * @generated from protobuf field: buf.validate.Int64Rules int64 = 4; + */ + int64: Int64Rules; + } | { + oneofKind: "uint32"; + /** + * @generated from protobuf field: buf.validate.UInt32Rules uint32 = 5; + */ + uint32: UInt32Rules; + } | { + oneofKind: "uint64"; + /** + * @generated from protobuf field: buf.validate.UInt64Rules uint64 = 6; + */ + uint64: UInt64Rules; + } | { + oneofKind: "sint32"; + /** + * @generated from protobuf field: buf.validate.SInt32Rules sint32 = 7; + */ + sint32: SInt32Rules; + } | { + oneofKind: "sint64"; + /** + * @generated from protobuf field: buf.validate.SInt64Rules sint64 = 8; + */ + sint64: SInt64Rules; + } | { + oneofKind: "fixed32"; + /** + * @generated from protobuf field: buf.validate.Fixed32Rules fixed32 = 9; + */ + fixed32: Fixed32Rules; + } | { + oneofKind: "fixed64"; + /** + * @generated from protobuf field: buf.validate.Fixed64Rules fixed64 = 10; + */ + fixed64: Fixed64Rules; + } | { + oneofKind: "sfixed32"; + /** + * @generated from protobuf field: buf.validate.SFixed32Rules sfixed32 = 11; + */ + sfixed32: SFixed32Rules; + } | { + oneofKind: "sfixed64"; + /** + * @generated from protobuf field: buf.validate.SFixed64Rules sfixed64 = 12; + */ + sfixed64: SFixed64Rules; + } | { + oneofKind: "bool"; + /** + * @generated from protobuf field: buf.validate.BoolRules bool = 13; + */ + bool: BoolRules; + } | { + oneofKind: "string"; + /** + * @generated from protobuf field: buf.validate.StringRules string = 14; + */ + string: StringRules; + } | { + oneofKind: "bytes"; + /** + * @generated from protobuf field: buf.validate.BytesRules bytes = 15; + */ + bytes: BytesRules; + } | { + oneofKind: "enum"; + /** + * Complex Field Types + * + * @generated from protobuf field: buf.validate.EnumRules enum = 16; + */ + enum: EnumRules; + } | { + oneofKind: "repeated"; + /** + * @generated from protobuf field: buf.validate.RepeatedRules repeated = 18; + */ + repeated: RepeatedRules; + } | { + oneofKind: "map"; + /** + * @generated from protobuf field: buf.validate.MapRules map = 19; + */ + map: MapRules; + } | { + oneofKind: "any"; + /** + * Well-Known Field Types + * + * @generated from protobuf field: buf.validate.AnyRules any = 20; + */ + any: AnyRules; + } | { + oneofKind: "duration"; + /** + * @generated from protobuf field: buf.validate.DurationRules duration = 21; + */ + duration: DurationRules; + } | { + oneofKind: "timestamp"; + /** + * @generated from protobuf field: buf.validate.TimestampRules timestamp = 22; + */ + timestamp: TimestampRules; + } | { + oneofKind: undefined; + }; +} +/** + * FloatRules describes the constraints applied to `float` values. These + * rules may also be applied to the `google.protobuf.FloatValue` Well-Known-Type. + * + * @generated from protobuf message buf.validate.FloatRules + */ +export interface FloatRules { + /** + * `const` requires the field value to exactly match the specified value. If + * the field value doesn't match, an error message is generated. + * + * ```proto + * message MyFloat { + * // value must equal 42.0 + * float value = 1 [(buf.validate.field).float.const = 42.0]; + * } + * ``` + * + * @generated from protobuf field: optional float const = 1; + */ + const?: number; + /** + * @generated from protobuf oneof: less_than + */ + less_than: { + oneofKind: "lt"; + /** + * `lt` requires the field value to be less than the specified value (field < + * value). If the field value is equal to or greater than the specified value, + * an error message is generated. + * + * ```proto + * message MyFloat { + * // value must be less than 10.0 + * float value = 1 [(buf.validate.field).float.lt = 10.0]; + * } + * ``` + * + * @generated from protobuf field: float lt = 2; + */ + lt: number; + } | { + oneofKind: "lte"; + /** + * `lte` requires the field value to be less than or equal to the specified + * value (field <= value). If the field value is greater than the specified + * value, an error message is generated. + * + * ```proto + * message MyFloat { + * // value must be less than or equal to 10.0 + * float value = 1 [(buf.validate.field).float.lte = 10.0]; + * } + * ``` + * + * @generated from protobuf field: float lte = 3; + */ + lte: number; + } | { + oneofKind: undefined; + }; + /** + * @generated from protobuf oneof: greater_than + */ + greater_than: { + oneofKind: "gt"; + /** + * `gt` requires the field value to be greater than the specified value + * (exclusive). If the value of `gt` is larger than a specified `lt` or + * `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MyFloat { + * // value must be greater than 5.0 [float.gt] + * float value = 1 [(buf.validate.field).float.gt = 5.0]; + * + * // value must be greater than 5 and less than 10.0 [float.gt_lt] + * float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }]; + * + * // value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive] + * float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }]; + * } + * ``` + * + * @generated from protobuf field: float gt = 4; + */ + gt: number; + } | { + oneofKind: "gte"; + /** + * `gte` requires the field value to be greater than or equal to the specified + * value (exclusive). If the value of `gte` is larger than a specified `lt` + * or `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MyFloat { + * // value must be greater than or equal to 5.0 [float.gte] + * float value = 1 [(buf.validate.field).float.gte = 5.0]; + * + * // value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt] + * float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }]; + * + * // value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive] + * float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }]; + * } + * ``` + * + * @generated from protobuf field: float gte = 5; + */ + gte: number; + } | { + oneofKind: undefined; + }; + /** + * `in` requires the field value to be equal to one of the specified values. + * If the field value isn't one of the specified values, an error message + * is generated. + * + * ```proto + * message MyFloat { + * // value must be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; + * } + * ``` + * + * @generated from protobuf field: repeated float in = 6; + */ + in: number[]; + /** + * `in` requires the field value to not be equal to any of the specified + * values. If the field value is one of the specified values, an error + * message is generated. + * + * ```proto + * message MyFloat { + * // value must not be in list [1.0, 2.0, 3.0] + * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; + * } + * ``` + * + * @generated from protobuf field: repeated float not_in = 7; + */ + not_in: number[]; + /** + * `finite` requires the field value to be finite. If the field value is + * infinite or NaN, an error message is generated. + * + * @generated from protobuf field: bool finite = 8; + */ + finite: boolean; +} +/** + * DoubleRules describes the constraints applied to `double` values. These + * rules may also be applied to the `google.protobuf.DoubleValue` Well-Known-Type. + * + * @generated from protobuf message buf.validate.DoubleRules + */ +export interface DoubleRules { + /** + * `const` requires the field value to exactly match the specified value. If + * the field value doesn't match, an error message is generated. + * + * ```proto + * message MyDouble { + * // value must equal 42.0 + * double value = 1 [(buf.validate.field).double.const = 42.0]; + * } + * ``` + * + * @generated from protobuf field: optional double const = 1; + */ + const?: number; + /** + * @generated from protobuf oneof: less_than + */ + less_than: { + oneofKind: "lt"; + /** + * `lt` requires the field value to be less than the specified value (field < + * value). If the field value is equal to or greater than the specified + * value, an error message is generated. + * + * ```proto + * message MyDouble { + * // value must be less than 10.0 + * double value = 1 [(buf.validate.field).double.lt = 10.0]; + * } + * ``` + * + * @generated from protobuf field: double lt = 2; + */ + lt: number; + } | { + oneofKind: "lte"; + /** + * `lte` requires the field value to be less than or equal to the specified value + * (field <= value). If the field value is greater than the specified value, + * an error message is generated. + * + * ```proto + * message MyDouble { + * // value must be less than or equal to 10.0 + * double value = 1 [(buf.validate.field).double.lte = 10.0]; + * } + * ``` + * + * @generated from protobuf field: double lte = 3; + */ + lte: number; + } | { + oneofKind: undefined; + }; + /** + * @generated from protobuf oneof: greater_than + */ + greater_than: { + oneofKind: "gt"; + /** + * `gt` requires the field value to be greater than the specified value + * (exclusive). If the value of `gt` is larger than a specified `lt` or `lte`, + * the range is reversed, and the field value must be outside the specified + * range. If the field value doesn't meet the required conditions, an error + * message is generated. + * + * ```proto + * message MyDouble { + * // value must be greater than 5.0 [double.gt] + * double value = 1 [(buf.validate.field).double.gt = 5.0]; + * + * // value must be greater than 5 and less than 10.0 [double.gt_lt] + * double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }]; + * + * // value must be greater than 10 or less than 5.0 [double.gt_lt_exclusive] + * double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }]; + * } + * ``` + * + * @generated from protobuf field: double gt = 4; + */ + gt: number; + } | { + oneofKind: "gte"; + /** + * `gte` requires the field value to be greater than or equal to the specified + * value (exclusive). If the value of `gte` is larger than a specified `lt` or + * `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MyDouble { + * // value must be greater than or equal to 5.0 [double.gte] + * double value = 1 [(buf.validate.field).double.gte = 5.0]; + * + * // value must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt] + * double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }]; + * + * // value must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive] + * double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }]; + * } + * ``` + * + * @generated from protobuf field: double gte = 5; + */ + gte: number; + } | { + oneofKind: undefined; + }; + /** + * `in` requires the field value to be equal to one of the specified values. + * If the field value isn't one of the specified values, an error message is + * generated. + * + * ```proto + * message MyDouble { + * // value must be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; + * } + * ``` + * + * @generated from protobuf field: repeated double in = 6; + */ + in: number[]; + /** + * `not_in` requires the field value to not be equal to any of the specified + * values. If the field value is one of the specified values, an error + * message is generated. + * + * ```proto + * message MyDouble { + * // value must not be in list [1.0, 2.0, 3.0] + * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; + * } + * ``` + * + * @generated from protobuf field: repeated double not_in = 7; + */ + not_in: number[]; + /** + * `finite` requires the field value to be finite. If the field value is + * infinite or NaN, an error message is generated. + * + * @generated from protobuf field: bool finite = 8; + */ + finite: boolean; +} +/** + * Int32Rules describes the constraints applied to `int32` values. These + * rules may also be applied to the `google.protobuf.Int32Value` Well-Known-Type. + * + * @generated from protobuf message buf.validate.Int32Rules + */ +export interface Int32Rules { + /** + * `const` requires the field value to exactly match the specified value. If + * the field value doesn't match, an error message is generated. + * + * ```proto + * message MyInt32 { + * // value must equal 42 + * int32 value = 1 [(buf.validate.field).int32.const = 42]; + * } + * ``` + * + * @generated from protobuf field: optional int32 const = 1; + */ + const?: number; + /** + * @generated from protobuf oneof: less_than + */ + less_than: { + oneofKind: "lt"; + /** + * `lt` requires the field value to be less than the specified value (field + * < value). If the field value is equal to or greater than the specified + * value, an error message is generated. + * + * ```proto + * message MyInt32 { + * // value must be less than 10 + * int32 value = 1 [(buf.validate.field).int32.lt = 10]; + * } + * ``` + * + * @generated from protobuf field: int32 lt = 2; + */ + lt: number; + } | { + oneofKind: "lte"; + /** + * `lte` requires the field value to be less than or equal to the specified + * value (field <= value). If the field value is greater than the specified + * value, an error message is generated. + * + * ```proto + * message MyInt32 { + * // value must be less than or equal to 10 + * int32 value = 1 [(buf.validate.field).int32.lte = 10]; + * } + * ``` + * + * @generated from protobuf field: int32 lte = 3; + */ + lte: number; + } | { + oneofKind: undefined; + }; + /** + * @generated from protobuf oneof: greater_than + */ + greater_than: { + oneofKind: "gt"; + /** + * `gt` requires the field value to be greater than the specified value + * (exclusive). If the value of `gt` is larger than a specified `lt` or + * `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MyInt32 { + * // value must be greater than 5 [int32.gt] + * int32 value = 1 [(buf.validate.field).int32.gt = 5]; + * + * // value must be greater than 5 and less than 10 [int32.gt_lt] + * int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }]; + * + * // value must be greater than 10 or less than 5 [int32.gt_lt_exclusive] + * int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: int32 gt = 4; + */ + gt: number; + } | { + oneofKind: "gte"; + /** + * `gte` requires the field value to be greater than or equal to the specified value + * (exclusive). If the value of `gte` is larger than a specified `lt` or + * `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MyInt32 { + * // value must be greater than or equal to 5 [int32.gte] + * int32 value = 1 [(buf.validate.field).int32.gte = 5]; + * + * // value must be greater than or equal to 5 and less than 10 [int32.gte_lt] + * int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }]; + * + * // value must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive] + * int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: int32 gte = 5; + */ + gte: number; + } | { + oneofKind: undefined; + }; + /** + * `in` requires the field value to be equal to one of the specified values. + * If the field value isn't one of the specified values, an error message is + * generated. + * + * ```proto + * message MyInt32 { + * // value must be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated int32 in = 6; + */ + in: number[]; + /** + * `not_in` requires the field value to not be equal to any of the specified + * values. If the field value is one of the specified values, an error message + * is generated. + * + * ```proto + * message MyInt32 { + * // value must not be in list [1, 2, 3] + * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated int32 not_in = 7; + */ + not_in: number[]; +} +/** + * Int64Rules describes the constraints applied to `int64` values. These + * rules may also be applied to the `google.protobuf.Int64Value` Well-Known-Type. + * + * @generated from protobuf message buf.validate.Int64Rules + */ +export interface Int64Rules { + /** + * `const` requires the field value to exactly match the specified value. If + * the field value doesn't match, an error message is generated. + * + * ```proto + * message MyInt64 { + * // value must equal 42 + * int64 value = 1 [(buf.validate.field).int64.const = 42]; + * } + * ``` + * + * @generated from protobuf field: optional int64 const = 1; + */ + const?: bigint; + /** + * @generated from protobuf oneof: less_than + */ + less_than: { + oneofKind: "lt"; + /** + * `lt` requires the field value to be less than the specified value (field < + * value). If the field value is equal to or greater than the specified value, + * an error message is generated. + * + * ```proto + * message MyInt64 { + * // value must be less than 10 + * int64 value = 1 [(buf.validate.field).int64.lt = 10]; + * } + * ``` + * + * @generated from protobuf field: int64 lt = 2; + */ + lt: bigint; + } | { + oneofKind: "lte"; + /** + * `lte` requires the field value to be less than or equal to the specified + * value (field <= value). If the field value is greater than the specified + * value, an error message is generated. + * + * ```proto + * message MyInt64 { + * // value must be less than or equal to 10 + * int64 value = 1 [(buf.validate.field).int64.lte = 10]; + * } + * ``` + * + * @generated from protobuf field: int64 lte = 3; + */ + lte: bigint; + } | { + oneofKind: undefined; + }; + /** + * @generated from protobuf oneof: greater_than + */ + greater_than: { + oneofKind: "gt"; + /** + * `gt` requires the field value to be greater than the specified value + * (exclusive). If the value of `gt` is larger than a specified `lt` or + * `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MyInt64 { + * // value must be greater than 5 [int64.gt] + * int64 value = 1 [(buf.validate.field).int64.gt = 5]; + * + * // value must be greater than 5 and less than 10 [int64.gt_lt] + * int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }]; + * + * // value must be greater than 10 or less than 5 [int64.gt_lt_exclusive] + * int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: int64 gt = 4; + */ + gt: bigint; + } | { + oneofKind: "gte"; + /** + * `gte` requires the field value to be greater than or equal to the specified + * value (exclusive). If the value of `gte` is larger than a specified `lt` + * or `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MyInt64 { + * // value must be greater than or equal to 5 [int64.gte] + * int64 value = 1 [(buf.validate.field).int64.gte = 5]; + * + * // value must be greater than or equal to 5 and less than 10 [int64.gte_lt] + * int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }]; + * + * // value must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive] + * int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: int64 gte = 5; + */ + gte: bigint; + } | { + oneofKind: undefined; + }; + /** + * `in` requires the field value to be equal to one of the specified values. + * If the field value isn't one of the specified values, an error message is + * generated. + * + * ```proto + * message MyInt64 { + * // value must be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated int64 in = 6; + */ + in: bigint[]; + /** + * `not_in` requires the field value to not be equal to any of the specified + * values. If the field value is one of the specified values, an error + * message is generated. + * + * ```proto + * message MyInt64 { + * // value must not be in list [1, 2, 3] + * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated int64 not_in = 7; + */ + not_in: bigint[]; +} +/** + * UInt32Rules describes the constraints applied to `uint32` values. These + * rules may also be applied to the `google.protobuf.UInt32Value` Well-Known-Type. + * + * @generated from protobuf message buf.validate.UInt32Rules + */ +export interface UInt32Rules { + /** + * `const` requires the field value to exactly match the specified value. If + * the field value doesn't match, an error message is generated. + * + * ```proto + * message MyUInt32 { + * // value must equal 42 + * uint32 value = 1 [(buf.validate.field).uint32.const = 42]; + * } + * ``` + * + * @generated from protobuf field: optional uint32 const = 1; + */ + const?: number; + /** + * @generated from protobuf oneof: less_than + */ + less_than: { + oneofKind: "lt"; + /** + * `lt` requires the field value to be less than the specified value (field < + * value). If the field value is equal to or greater than the specified value, + * an error message is generated. + * + * ```proto + * message MyUInt32 { + * // value must be less than 10 + * uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; + * } + * ``` + * + * @generated from protobuf field: uint32 lt = 2; + */ + lt: number; + } | { + oneofKind: "lte"; + /** + * `lte` requires the field value to be less than or equal to the specified + * value (field <= value). If the field value is greater than the specified + * value, an error message is generated. + * + * ```proto + * message MyUInt32 { + * // value must be less than or equal to 10 + * uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; + * } + * ``` + * + * @generated from protobuf field: uint32 lte = 3; + */ + lte: number; + } | { + oneofKind: undefined; + }; + /** + * @generated from protobuf oneof: greater_than + */ + greater_than: { + oneofKind: "gt"; + /** + * `gt` requires the field value to be greater than the specified value + * (exclusive). If the value of `gt` is larger than a specified `lt` or + * `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MyUInt32 { + * // value must be greater than 5 [uint32.gt] + * uint32 value = 1 [(buf.validate.field).uint32.gt = 5]; + * + * // value must be greater than 5 and less than 10 [uint32.gt_lt] + * uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }]; + * + * // value must be greater than 10 or less than 5 [uint32.gt_lt_exclusive] + * uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: uint32 gt = 4; + */ + gt: number; + } | { + oneofKind: "gte"; + /** + * `gte` requires the field value to be greater than or equal to the specified + * value (exclusive). If the value of `gte` is larger than a specified `lt` + * or `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MyUInt32 { + * // value must be greater than or equal to 5 [uint32.gte] + * uint32 value = 1 [(buf.validate.field).uint32.gte = 5]; + * + * // value must be greater than or equal to 5 and less than 10 [uint32.gte_lt] + * uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }]; + * + * // value must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive] + * uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: uint32 gte = 5; + */ + gte: number; + } | { + oneofKind: undefined; + }; + /** + * `in` requires the field value to be equal to one of the specified values. + * If the field value isn't one of the specified values, an error message is + * generated. + * + * ```proto + * message MyUInt32 { + * // value must be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated uint32 in = 6; + */ + in: number[]; + /** + * `not_in` requires the field value to not be equal to any of the specified + * values. If the field value is one of the specified values, an error + * message is generated. + * + * ```proto + * message MyUInt32 { + * // value must not be in list [1, 2, 3] + * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated uint32 not_in = 7; + */ + not_in: number[]; +} +/** + * UInt64Rules describes the constraints applied to `uint64` values. These + * rules may also be applied to the `google.protobuf.UInt64Value` Well-Known-Type. + * + * @generated from protobuf message buf.validate.UInt64Rules + */ +export interface UInt64Rules { + /** + * `const` requires the field value to exactly match the specified value. If + * the field value doesn't match, an error message is generated. + * + * ```proto + * message MyUInt64 { + * // value must equal 42 + * uint64 value = 1 [(buf.validate.field).uint64.const = 42]; + * } + * ``` + * + * @generated from protobuf field: optional uint64 const = 1; + */ + const?: bigint; + /** + * @generated from protobuf oneof: less_than + */ + less_than: { + oneofKind: "lt"; + /** + * `lt` requires the field value to be less than the specified value (field < + * value). If the field value is equal to or greater than the specified value, + * an error message is generated. + * + * ```proto + * message MyUInt64 { + * // value must be less than 10 + * uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; + * } + * ``` + * + * @generated from protobuf field: uint64 lt = 2; + */ + lt: bigint; + } | { + oneofKind: "lte"; + /** + * `lte` requires the field value to be less than or equal to the specified + * value (field <= value). If the field value is greater than the specified + * value, an error message is generated. + * + * ```proto + * message MyUInt64 { + * // value must be less than or equal to 10 + * uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; + * } + * ``` + * + * @generated from protobuf field: uint64 lte = 3; + */ + lte: bigint; + } | { + oneofKind: undefined; + }; + /** + * @generated from protobuf oneof: greater_than + */ + greater_than: { + oneofKind: "gt"; + /** + * `gt` requires the field value to be greater than the specified value + * (exclusive). If the value of `gt` is larger than a specified `lt` or + * `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MyUInt64 { + * // value must be greater than 5 [uint64.gt] + * uint64 value = 1 [(buf.validate.field).uint64.gt = 5]; + * + * // value must be greater than 5 and less than 10 [uint64.gt_lt] + * uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }]; + * + * // value must be greater than 10 or less than 5 [uint64.gt_lt_exclusive] + * uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: uint64 gt = 4; + */ + gt: bigint; + } | { + oneofKind: "gte"; + /** + * `gte` requires the field value to be greater than or equal to the specified + * value (exclusive). If the value of `gte` is larger than a specified `lt` + * or `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MyUInt64 { + * // value must be greater than or equal to 5 [uint64.gte] + * uint64 value = 1 [(buf.validate.field).uint64.gte = 5]; + * + * // value must be greater than or equal to 5 and less than 10 [uint64.gte_lt] + * uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }]; + * + * // value must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive] + * uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: uint64 gte = 5; + */ + gte: bigint; + } | { + oneofKind: undefined; + }; + /** + * `in` requires the field value to be equal to one of the specified values. + * If the field value isn't one of the specified values, an error message is + * generated. + * + * ```proto + * message MyUInt64 { + * // value must be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated uint64 in = 6; + */ + in: bigint[]; + /** + * `not_in` requires the field value to not be equal to any of the specified + * values. If the field value is one of the specified values, an error + * message is generated. + * + * ```proto + * message MyUInt64 { + * // value must not be in list [1, 2, 3] + * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated uint64 not_in = 7; + */ + not_in: bigint[]; +} +/** + * SInt32Rules describes the constraints applied to `sint32` values. + * + * @generated from protobuf message buf.validate.SInt32Rules + */ +export interface SInt32Rules { + /** + * `const` requires the field value to exactly match the specified value. If + * the field value doesn't match, an error message is generated. + * + * ```proto + * message MySInt32 { + * // value must equal 42 + * sint32 value = 1 [(buf.validate.field).sint32.const = 42]; + * } + * ``` + * + * @generated from protobuf field: optional sint32 const = 1; + */ + const?: number; + /** + * @generated from protobuf oneof: less_than + */ + less_than: { + oneofKind: "lt"; + /** + * `lt` requires the field value to be less than the specified value (field + * < value). If the field value is equal to or greater than the specified + * value, an error message is generated. + * + * ```proto + * message MySInt32 { + * // value must be less than 10 + * sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; + * } + * ``` + * + * @generated from protobuf field: sint32 lt = 2; + */ + lt: number; + } | { + oneofKind: "lte"; + /** + * `lte` requires the field value to be less than or equal to the specified + * value (field <= value). If the field value is greater than the specified + * value, an error message is generated. + * + * ```proto + * message MySInt32 { + * // value must be less than or equal to 10 + * sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; + * } + * ``` + * + * @generated from protobuf field: sint32 lte = 3; + */ + lte: number; + } | { + oneofKind: undefined; + }; + /** + * @generated from protobuf oneof: greater_than + */ + greater_than: { + oneofKind: "gt"; + /** + * `gt` requires the field value to be greater than the specified value + * (exclusive). If the value of `gt` is larger than a specified `lt` or + * `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MySInt32 { + * // value must be greater than 5 [sint32.gt] + * sint32 value = 1 [(buf.validate.field).sint32.gt = 5]; + * + * // value must be greater than 5 and less than 10 [sint32.gt_lt] + * sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }]; + * + * // value must be greater than 10 or less than 5 [sint32.gt_lt_exclusive] + * sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: sint32 gt = 4; + */ + gt: number; + } | { + oneofKind: "gte"; + /** + * `gte` requires the field value to be greater than or equal to the specified + * value (exclusive). If the value of `gte` is larger than a specified `lt` + * or `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MySInt32 { + * // value must be greater than or equal to 5 [sint32.gte] + * sint32 value = 1 [(buf.validate.field).sint32.gte = 5]; + * + * // value must be greater than or equal to 5 and less than 10 [sint32.gte_lt] + * sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }]; + * + * // value must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive] + * sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: sint32 gte = 5; + */ + gte: number; + } | { + oneofKind: undefined; + }; + /** + * `in` requires the field value to be equal to one of the specified values. + * If the field value isn't one of the specified values, an error message is + * generated. + * + * ```proto + * message MySInt32 { + * // value must be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated sint32 in = 6; + */ + in: number[]; + /** + * `not_in` requires the field value to not be equal to any of the specified + * values. If the field value is one of the specified values, an error + * message is generated. + * + * ```proto + * message MySInt32 { + * // value must not be in list [1, 2, 3] + * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated sint32 not_in = 7; + */ + not_in: number[]; +} +/** + * SInt64Rules describes the constraints applied to `sint64` values. + * + * @generated from protobuf message buf.validate.SInt64Rules + */ +export interface SInt64Rules { + /** + * `const` requires the field value to exactly match the specified value. If + * the field value doesn't match, an error message is generated. + * + * ```proto + * message MySInt64 { + * // value must equal 42 + * sint64 value = 1 [(buf.validate.field).sint64.const = 42]; + * } + * ``` + * + * @generated from protobuf field: optional sint64 const = 1; + */ + const?: bigint; + /** + * @generated from protobuf oneof: less_than + */ + less_than: { + oneofKind: "lt"; + /** + * `lt` requires the field value to be less than the specified value (field + * < value). If the field value is equal to or greater than the specified + * value, an error message is generated. + * + * ```proto + * message MySInt64 { + * // value must be less than 10 + * sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; + * } + * ``` + * + * @generated from protobuf field: sint64 lt = 2; + */ + lt: bigint; + } | { + oneofKind: "lte"; + /** + * `lte` requires the field value to be less than or equal to the specified + * value (field <= value). If the field value is greater than the specified + * value, an error message is generated. + * + * ```proto + * message MySInt64 { + * // value must be less than or equal to 10 + * sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; + * } + * ``` + * + * @generated from protobuf field: sint64 lte = 3; + */ + lte: bigint; + } | { + oneofKind: undefined; + }; + /** + * @generated from protobuf oneof: greater_than + */ + greater_than: { + oneofKind: "gt"; + /** + * `gt` requires the field value to be greater than the specified value + * (exclusive). If the value of `gt` is larger than a specified `lt` or + * `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MySInt64 { + * // value must be greater than 5 [sint64.gt] + * sint64 value = 1 [(buf.validate.field).sint64.gt = 5]; + * + * // value must be greater than 5 and less than 10 [sint64.gt_lt] + * sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }]; + * + * // value must be greater than 10 or less than 5 [sint64.gt_lt_exclusive] + * sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: sint64 gt = 4; + */ + gt: bigint; + } | { + oneofKind: "gte"; + /** + * `gte` requires the field value to be greater than or equal to the specified + * value (exclusive). If the value of `gte` is larger than a specified `lt` + * or `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MySInt64 { + * // value must be greater than or equal to 5 [sint64.gte] + * sint64 value = 1 [(buf.validate.field).sint64.gte = 5]; + * + * // value must be greater than or equal to 5 and less than 10 [sint64.gte_lt] + * sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }]; + * + * // value must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive] + * sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: sint64 gte = 5; + */ + gte: bigint; + } | { + oneofKind: undefined; + }; + /** + * `in` requires the field value to be equal to one of the specified values. + * If the field value isn't one of the specified values, an error message + * is generated. + * + * ```proto + * message MySInt64 { + * // value must be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated sint64 in = 6; + */ + in: bigint[]; + /** + * `not_in` requires the field value to not be equal to any of the specified + * values. If the field value is one of the specified values, an error + * message is generated. + * + * ```proto + * message MySInt64 { + * // value must not be in list [1, 2, 3] + * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated sint64 not_in = 7; + */ + not_in: bigint[]; +} +/** + * Fixed32Rules describes the constraints applied to `fixed32` values. + * + * @generated from protobuf message buf.validate.Fixed32Rules + */ +export interface Fixed32Rules { + /** + * `const` requires the field value to exactly match the specified value. + * If the field value doesn't match, an error message is generated. + * + * ```proto + * message MyFixed32 { + * // value must equal 42 + * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; + * } + * ``` + * + * @generated from protobuf field: optional fixed32 const = 1; + */ + const?: number; + /** + * @generated from protobuf oneof: less_than + */ + less_than: { + oneofKind: "lt"; + /** + * `lt` requires the field value to be less than the specified value (field < + * value). If the field value is equal to or greater than the specified value, + * an error message is generated. + * + * ```proto + * message MyFixed32 { + * // value must be less than 10 + * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; + * } + * ``` + * + * @generated from protobuf field: fixed32 lt = 2; + */ + lt: number; + } | { + oneofKind: "lte"; + /** + * `lte` requires the field value to be less than or equal to the specified + * value (field <= value). If the field value is greater than the specified + * value, an error message is generated. + * + * ```proto + * message MyFixed32 { + * // value must be less than or equal to 10 + * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; + * } + * ``` + * + * @generated from protobuf field: fixed32 lte = 3; + */ + lte: number; + } | { + oneofKind: undefined; + }; + /** + * @generated from protobuf oneof: greater_than + */ + greater_than: { + oneofKind: "gt"; + /** + * `gt` requires the field value to be greater than the specified value + * (exclusive). If the value of `gt` is larger than a specified `lt` or + * `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MyFixed32 { + * // value must be greater than 5 [fixed32.gt] + * fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5]; + * + * // value must be greater than 5 and less than 10 [fixed32.gt_lt] + * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }]; + * + * // value must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive] + * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: fixed32 gt = 4; + */ + gt: number; + } | { + oneofKind: "gte"; + /** + * `gte` requires the field value to be greater than or equal to the specified + * value (exclusive). If the value of `gte` is larger than a specified `lt` + * or `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MyFixed32 { + * // value must be greater than or equal to 5 [fixed32.gte] + * fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5]; + * + * // value must be greater than or equal to 5 and less than 10 [fixed32.gte_lt] + * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }]; + * + * // value must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive] + * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: fixed32 gte = 5; + */ + gte: number; + } | { + oneofKind: undefined; + }; + /** + * `in` requires the field value to be equal to one of the specified values. + * If the field value isn't one of the specified values, an error message + * is generated. + * + * ```proto + * message MyFixed32 { + * // value must be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated fixed32 in = 6; + */ + in: number[]; + /** + * `not_in` requires the field value to not be equal to any of the specified + * values. If the field value is one of the specified values, an error + * message is generated. + * + * ```proto + * message MyFixed32 { + * // value must not be in list [1, 2, 3] + * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated fixed32 not_in = 7; + */ + not_in: number[]; +} +/** + * Fixed64Rules describes the constraints applied to `fixed64` values. + * + * @generated from protobuf message buf.validate.Fixed64Rules + */ +export interface Fixed64Rules { + /** + * `const` requires the field value to exactly match the specified value. If + * the field value doesn't match, an error message is generated. + * + * ```proto + * message MyFixed64 { + * // value must equal 42 + * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; + * } + * ``` + * + * @generated from protobuf field: optional fixed64 const = 1; + */ + const?: bigint; + /** + * @generated from protobuf oneof: less_than + */ + less_than: { + oneofKind: "lt"; + /** + * `lt` requires the field value to be less than the specified value (field < + * value). If the field value is equal to or greater than the specified value, + * an error message is generated. + * + * ```proto + * message MyFixed64 { + * // value must be less than 10 + * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; + * } + * ``` + * + * @generated from protobuf field: fixed64 lt = 2; + */ + lt: bigint; + } | { + oneofKind: "lte"; + /** + * `lte` requires the field value to be less than or equal to the specified + * value (field <= value). If the field value is greater than the specified + * value, an error message is generated. + * + * ```proto + * message MyFixed64 { + * // value must be less than or equal to 10 + * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; + * } + * ``` + * + * @generated from protobuf field: fixed64 lte = 3; + */ + lte: bigint; + } | { + oneofKind: undefined; + }; + /** + * @generated from protobuf oneof: greater_than + */ + greater_than: { + oneofKind: "gt"; + /** + * `gt` requires the field value to be greater than the specified value + * (exclusive). If the value of `gt` is larger than a specified `lt` or + * `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MyFixed64 { + * // value must be greater than 5 [fixed64.gt] + * fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5]; + * + * // value must be greater than 5 and less than 10 [fixed64.gt_lt] + * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }]; + * + * // value must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive] + * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: fixed64 gt = 4; + */ + gt: bigint; + } | { + oneofKind: "gte"; + /** + * `gte` requires the field value to be greater than or equal to the specified + * value (exclusive). If the value of `gte` is larger than a specified `lt` + * or `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MyFixed64 { + * // value must be greater than or equal to 5 [fixed64.gte] + * fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5]; + * + * // value must be greater than or equal to 5 and less than 10 [fixed64.gte_lt] + * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }]; + * + * // value must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive] + * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: fixed64 gte = 5; + */ + gte: bigint; + } | { + oneofKind: undefined; + }; + /** + * `in` requires the field value to be equal to one of the specified values. + * If the field value isn't one of the specified values, an error message is + * generated. + * + * ```proto + * message MyFixed64 { + * // value must be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated fixed64 in = 6; + */ + in: bigint[]; + /** + * `not_in` requires the field value to not be equal to any of the specified + * values. If the field value is one of the specified values, an error + * message is generated. + * + * ```proto + * message MyFixed64 { + * // value must not be in list [1, 2, 3] + * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated fixed64 not_in = 7; + */ + not_in: bigint[]; +} +/** + * SFixed32Rules describes the constraints applied to `fixed32` values. + * + * @generated from protobuf message buf.validate.SFixed32Rules + */ +export interface SFixed32Rules { + /** + * `const` requires the field value to exactly match the specified value. If + * the field value doesn't match, an error message is generated. + * + * ```proto + * message MySFixed32 { + * // value must equal 42 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; + * } + * ``` + * + * @generated from protobuf field: optional sfixed32 const = 1; + */ + const?: number; + /** + * @generated from protobuf oneof: less_than + */ + less_than: { + oneofKind: "lt"; + /** + * `lt` requires the field value to be less than the specified value (field < + * value). If the field value is equal to or greater than the specified value, + * an error message is generated. + * + * ```proto + * message MySFixed32 { + * // value must be less than 10 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; + * } + * ``` + * + * @generated from protobuf field: sfixed32 lt = 2; + */ + lt: number; + } | { + oneofKind: "lte"; + /** + * `lte` requires the field value to be less than or equal to the specified + * value (field <= value). If the field value is greater than the specified + * value, an error message is generated. + * + * ```proto + * message MySFixed32 { + * // value must be less than or equal to 10 + * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; + * } + * ``` + * + * @generated from protobuf field: sfixed32 lte = 3; + */ + lte: number; + } | { + oneofKind: undefined; + }; + /** + * @generated from protobuf oneof: greater_than + */ + greater_than: { + oneofKind: "gt"; + /** + * `gt` requires the field value to be greater than the specified value + * (exclusive). If the value of `gt` is larger than a specified `lt` or + * `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MySFixed32 { + * // value must be greater than 5 [sfixed32.gt] + * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5]; + * + * // value must be greater than 5 and less than 10 [sfixed32.gt_lt] + * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }]; + * + * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive] + * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: sfixed32 gt = 4; + */ + gt: number; + } | { + oneofKind: "gte"; + /** + * `gte` requires the field value to be greater than or equal to the specified + * value (exclusive). If the value of `gte` is larger than a specified `lt` + * or `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MySFixed32 { + * // value must be greater than or equal to 5 [sfixed32.gte] + * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5]; + * + * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt] + * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }]; + * + * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive] + * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: sfixed32 gte = 5; + */ + gte: number; + } | { + oneofKind: undefined; + }; + /** + * `in` requires the field value to be equal to one of the specified values. + * If the field value isn't one of the specified values, an error message is + * generated. + * + * ```proto + * message MySFixed32 { + * // value must be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated sfixed32 in = 6; + */ + in: number[]; + /** + * `not_in` requires the field value to not be equal to any of the specified + * values. If the field value is one of the specified values, an error + * message is generated. + * + * ```proto + * message MySFixed32 { + * // value must not be in list [1, 2, 3] + * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated sfixed32 not_in = 7; + */ + not_in: number[]; +} +/** + * SFixed64Rules describes the constraints applied to `fixed64` values. + * + * @generated from protobuf message buf.validate.SFixed64Rules + */ +export interface SFixed64Rules { + /** + * `const` requires the field value to exactly match the specified value. If + * the field value doesn't match, an error message is generated. + * + * ```proto + * message MySFixed64 { + * // value must equal 42 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; + * } + * ``` + * + * @generated from protobuf field: optional sfixed64 const = 1; + */ + const?: bigint; + /** + * @generated from protobuf oneof: less_than + */ + less_than: { + oneofKind: "lt"; + /** + * `lt` requires the field value to be less than the specified value (field < + * value). If the field value is equal to or greater than the specified value, + * an error message is generated. + * + * ```proto + * message MySFixed64 { + * // value must be less than 10 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; + * } + * ``` + * + * @generated from protobuf field: sfixed64 lt = 2; + */ + lt: bigint; + } | { + oneofKind: "lte"; + /** + * `lte` requires the field value to be less than or equal to the specified + * value (field <= value). If the field value is greater than the specified + * value, an error message is generated. + * + * ```proto + * message MySFixed64 { + * // value must be less than or equal to 10 + * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; + * } + * ``` + * + * @generated from protobuf field: sfixed64 lte = 3; + */ + lte: bigint; + } | { + oneofKind: undefined; + }; + /** + * @generated from protobuf oneof: greater_than + */ + greater_than: { + oneofKind: "gt"; + /** + * `gt` requires the field value to be greater than the specified value + * (exclusive). If the value of `gt` is larger than a specified `lt` or + * `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MySFixed64 { + * // value must be greater than 5 [sfixed64.gt] + * sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5]; + * + * // value must be greater than 5 and less than 10 [sfixed64.gt_lt] + * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }]; + * + * // value must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive] + * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: sfixed64 gt = 4; + */ + gt: bigint; + } | { + oneofKind: "gte"; + /** + * `gte` requires the field value to be greater than or equal to the specified + * value (exclusive). If the value of `gte` is larger than a specified `lt` + * or `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MySFixed64 { + * // value must be greater than or equal to 5 [sfixed64.gte] + * sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5]; + * + * // value must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt] + * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }]; + * + * // value must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive] + * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }]; + * } + * ``` + * + * @generated from protobuf field: sfixed64 gte = 5; + */ + gte: bigint; + } | { + oneofKind: undefined; + }; + /** + * `in` requires the field value to be equal to one of the specified values. + * If the field value isn't one of the specified values, an error message is + * generated. + * + * ```proto + * message MySFixed64 { + * // value must be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated sfixed64 in = 6; + */ + in: bigint[]; + /** + * `not_in` requires the field value to not be equal to any of the specified + * values. If the field value is one of the specified values, an error + * message is generated. + * + * ```proto + * message MySFixed64 { + * // value must not be in list [1, 2, 3] + * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; + * } + * ``` + * + * @generated from protobuf field: repeated sfixed64 not_in = 7; + */ + not_in: bigint[]; +} +/** + * BoolRules describes the constraints applied to `bool` values. These rules + * may also be applied to the `google.protobuf.BoolValue` Well-Known-Type. + * + * @generated from protobuf message buf.validate.BoolRules + */ +export interface BoolRules { + /** + * `const` requires the field value to exactly match the specified boolean value. + * If the field value doesn't match, an error message is generated. + * + * ```proto + * message MyBool { + * // value must equal true + * bool value = 1 [(buf.validate.field).bool.const = true]; + * } + * ``` + * + * @generated from protobuf field: optional bool const = 1; + */ + const?: boolean; +} +/** + * StringRules describes the constraints applied to `string` values These + * rules may also be applied to the `google.protobuf.StringValue` Well-Known-Type. + * + * @generated from protobuf message buf.validate.StringRules + */ +export interface StringRules { + /** + * `const` requires the field value to exactly match the specified value. If + * the field value doesn't match, an error message is generated. + * + * ```proto + * message MyString { + * // value must equal `hello` + * string value = 1 [(buf.validate.field).string.const = "hello"]; + * } + * ``` + * + * @generated from protobuf field: optional string const = 1; + */ + const?: string; + /** + * `len` dictates that the field value must have the specified + * number of characters (Unicode code points), which may differ from the number + * of bytes in the string. If the field value does not meet the specified + * length, an error message will be generated. + * + * ```proto + * message MyString { + * // value length must be 5 characters + * string value = 1 [(buf.validate.field).string.len = 5]; + * } + * ``` + * + * @generated from protobuf field: optional uint64 len = 19; + */ + len?: bigint; + /** + * `min_len` specifies that the field value must have at least the specified + * number of characters (Unicode code points), which may differ from the number + * of bytes in the string. If the field value contains fewer characters, an error + * message will be generated. + * + * ```proto + * message MyString { + * // value length must be at least 3 characters + * string value = 1 [(buf.validate.field).string.min_len = 3]; + * } + * ``` + * + * @generated from protobuf field: optional uint64 min_len = 2; + */ + min_len?: bigint; + /** + * `max_len` specifies that the field value must have no more than the specified + * number of characters (Unicode code points), which may differ from the + * number of bytes in the string. If the field value contains more characters, + * an error message will be generated. + * + * ```proto + * message MyString { + * // value length must be at most 10 characters + * string value = 1 [(buf.validate.field).string.max_len = 10]; + * } + * ``` + * + * @generated from protobuf field: optional uint64 max_len = 3; + */ + max_len?: bigint; + /** + * `len_bytes` dictates that the field value must have the specified number of + * bytes. If the field value does not match the specified length in bytes, + * an error message will be generated. + * + * ```proto + * message MyString { + * // value length must be 6 bytes + * string value = 1 [(buf.validate.field).string.len_bytes = 6]; + * } + * ``` + * + * @generated from protobuf field: optional uint64 len_bytes = 20; + */ + len_bytes?: bigint; + /** + * `min_bytes` specifies that the field value must have at least the specified + * number of bytes. If the field value contains fewer bytes, an error message + * will be generated. + * + * ```proto + * message MyString { + * // value length must be at least 4 bytes + * string value = 1 [(buf.validate.field).string.min_bytes = 4]; + * } + * + * ``` + * + * @generated from protobuf field: optional uint64 min_bytes = 4; + */ + min_bytes?: bigint; + /** + * `max_bytes` specifies that the field value must have no more than the + * specified number of bytes. If the field value contains more bytes, an + * error message will be generated. + * + * ```proto + * message MyString { + * // value length must be at most 8 bytes + * string value = 1 [(buf.validate.field).string.max_bytes = 8]; + * } + * ``` + * + * @generated from protobuf field: optional uint64 max_bytes = 5; + */ + max_bytes?: bigint; + /** + * `pattern` specifies that the field value must match the specified + * regular expression (RE2 syntax), with the expression provided without any + * delimiters. If the field value doesn't match the regular expression, an + * error message will be generated. + * + * ```proto + * message MyString { + * // value does not match regex pattern `^[a-zA-Z]//$` + * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; + * } + * ``` + * + * @generated from protobuf field: optional string pattern = 6; + */ + pattern?: string; + /** + * `prefix` specifies that the field value must have the + * specified substring at the beginning of the string. If the field value + * doesn't start with the specified prefix, an error message will be + * generated. + * + * ```proto + * message MyString { + * // value does not have prefix `pre` + * string value = 1 [(buf.validate.field).string.prefix = "pre"]; + * } + * ``` + * + * @generated from protobuf field: optional string prefix = 7; + */ + prefix?: string; + /** + * `suffix` specifies that the field value must have the + * specified substring at the end of the string. If the field value doesn't + * end with the specified suffix, an error message will be generated. + * + * ```proto + * message MyString { + * // value does not have suffix `post` + * string value = 1 [(buf.validate.field).string.suffix = "post"]; + * } + * ``` + * + * @generated from protobuf field: optional string suffix = 8; + */ + suffix?: string; + /** + * `contains` specifies that the field value must have the + * specified substring anywhere in the string. If the field value doesn't + * contain the specified substring, an error message will be generated. + * + * ```proto + * message MyString { + * // value does not contain substring `inside`. + * string value = 1 [(buf.validate.field).string.contains = "inside"]; + * } + * ``` + * + * @generated from protobuf field: optional string contains = 9; + */ + contains?: string; + /** + * `not_contains` specifies that the field value must not have the + * specified substring anywhere in the string. If the field value contains + * the specified substring, an error message will be generated. + * + * ```proto + * message MyString { + * // value contains substring `inside`. + * string value = 1 [(buf.validate.field).string.not_contains = "inside"]; + * } + * ``` + * + * @generated from protobuf field: optional string not_contains = 23; + */ + not_contains?: string; + /** + * `in` specifies that the field value must be equal to one of the specified + * values. If the field value isn't one of the specified values, an error + * message will be generated. + * + * ```proto + * message MyString { + * // value must be in list ["apple", "banana"] + * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + * } + * ``` + * + * @generated from protobuf field: repeated string in = 10; + */ + in: string[]; + /** + * `not_in` specifies that the field value cannot be equal to any + * of the specified values. If the field value is one of the specified values, + * an error message will be generated. + * ```proto + * message MyString { + * // value must not be in list ["orange", "grape"] + * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + * } + * ``` + * + * @generated from protobuf field: repeated string not_in = 11; + */ + not_in: string[]; + /** + * @generated from protobuf oneof: well_known + */ + well_known: { + oneofKind: "email"; + /** + * `email` specifies that the field value must be a valid email address + * (addr-spec only) as defined by [RFC 5322](https://tools.ietf.org/html/rfc5322#section-3.4.1). + * If the field value isn't a valid email address, an error message will be generated. + * + * ```proto + * message MyString { + * // value must be a valid email address + * string value = 1 [(buf.validate.field).string.email = true]; + * } + * ``` + * + * @generated from protobuf field: bool email = 12; + */ + email: boolean; + } | { + oneofKind: "hostname"; + /** + * `hostname` specifies that the field value must be a valid + * hostname as defined by [RFC 1034](https://tools.ietf.org/html/rfc1034#section-3.5). This constraint doesn't support + * internationalized domain names (IDNs). If the field value isn't a + * valid hostname, an error message will be generated. + * + * ```proto + * message MyString { + * // value must be a valid hostname + * string value = 1 [(buf.validate.field).string.hostname = true]; + * } + * ``` + * + * @generated from protobuf field: bool hostname = 13; + */ + hostname: boolean; + } | { + oneofKind: "ip"; + /** + * `ip` specifies that the field value must be a valid IP + * (v4 or v6) address, without surrounding square brackets for IPv6 addresses. + * If the field value isn't a valid IP address, an error message will be + * generated. + * + * ```proto + * message MyString { + * // value must be a valid IP address + * string value = 1 [(buf.validate.field).string.ip = true]; + * } + * ``` + * + * @generated from protobuf field: bool ip = 14; + */ + ip: boolean; + } | { + oneofKind: "ipv4"; + /** + * `ipv4` specifies that the field value must be a valid IPv4 + * address. If the field value isn't a valid IPv4 address, an error message + * will be generated. + * + * ```proto + * message MyString { + * // value must be a valid IPv4 address + * string value = 1 [(buf.validate.field).string.ipv4 = true]; + * } + * ``` + * + * @generated from protobuf field: bool ipv4 = 15; + */ + ipv4: boolean; + } | { + oneofKind: "ipv6"; + /** + * `ipv6` specifies that the field value must be a valid + * IPv6 address, without surrounding square brackets. If the field value is + * not a valid IPv6 address, an error message will be generated. + * + * ```proto + * message MyString { + * // value must be a valid IPv6 address + * string value = 1 [(buf.validate.field).string.ipv6 = true]; + * } + * ``` + * + * @generated from protobuf field: bool ipv6 = 16; + */ + ipv6: boolean; + } | { + oneofKind: "uri"; + /** + * `uri` specifies that the field value must be a valid, + * absolute URI as defined by [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3). If the field value isn't a valid, + * absolute URI, an error message will be generated. + * + * ```proto + * message MyString { + * // value must be a valid URI + * string value = 1 [(buf.validate.field).string.uri = true]; + * } + * ``` + * + * @generated from protobuf field: bool uri = 17; + */ + uri: boolean; + } | { + oneofKind: "uri_ref"; + /** + * `uri_ref` specifies that the field value must be a valid URI + * as defined by [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) and may be either relative or absolute. If the + * field value isn't a valid URI, an error message will be generated. + * + * ```proto + * message MyString { + * // value must be a valid URI + * string value = 1 [(buf.validate.field).string.uri_ref = true]; + * } + * ``` + * + * @generated from protobuf field: bool uri_ref = 18; + */ + uri_ref: boolean; + } | { + oneofKind: "address"; + /** + * `address` specifies that the field value must be either a valid hostname + * as defined by [RFC 1034](https://tools.ietf.org/html/rfc1034#section-3.5) + * (which doesn't support internationalized domain names or IDNs) or a valid + * IP (v4 or v6). If the field value isn't a valid hostname or IP, an error + * message will be generated. + * + * ```proto + * message MyString { + * // value must be a valid hostname, or ip address + * string value = 1 [(buf.validate.field).string.address = true]; + * } + * ``` + * + * @generated from protobuf field: bool address = 21; + */ + address: boolean; + } | { + oneofKind: "uuid"; + /** + * `uuid` specifies that the field value must be a valid UUID as defined by + * [RFC 4122](https://tools.ietf.org/html/rfc4122#section-4.1.2). If the + * field value isn't a valid UUID, an error message will be generated. + * + * ```proto + * message MyString { + * // value must be a valid UUID + * string value = 1 [(buf.validate.field).string.uuid = true]; + * } + * ``` + * + * @generated from protobuf field: bool uuid = 22; + */ + uuid: boolean; + } | { + oneofKind: "ip_with_prefixlen"; + /** + * `ip_with_prefixlen` specifies that the field value must be a valid IP (v4 or v6) + * address with prefix length. If the field value isn't a valid IP with prefix + * length, an error message will be generated. + * + * + * ```proto + * message MyString { + * // value must be a valid IP with prefix length + * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; + * } + * ``` + * + * @generated from protobuf field: bool ip_with_prefixlen = 26; + */ + ip_with_prefixlen: boolean; + } | { + oneofKind: "ipv4_with_prefixlen"; + /** + * `ipv4_with_prefixlen` specifies that the field value must be a valid + * IPv4 address with prefix. + * If the field value isn't a valid IPv4 address with prefix length, + * an error message will be generated. + * + * ```proto + * message MyString { + * // value must be a valid IPv4 address with prefix lentgh + * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; + * } + * ``` + * + * @generated from protobuf field: bool ipv4_with_prefixlen = 27; + */ + ipv4_with_prefixlen: boolean; + } | { + oneofKind: "ipv6_with_prefixlen"; + /** + * `ipv6_with_prefixlen` specifies that the field value must be a valid + * IPv6 address with prefix length. + * If the field value is not a valid IPv6 address with prefix length, + * an error message will be generated. + * + * ```proto + * message MyString { + * // value must be a valid IPv6 address prefix length + * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; + * } + * ``` + * + * @generated from protobuf field: bool ipv6_with_prefixlen = 28; + */ + ipv6_with_prefixlen: boolean; + } | { + oneofKind: "ip_prefix"; + /** + * `ip_prefix` specifies that the field value must be a valid IP (v4 or v6) prefix. + * If the field value isn't a valid IP prefix, an error message will be + * generated. The prefix must have all zeros for the masked bits of the prefix (e.g., + * `127.0.0.0/16`, not `127.0.0.1/16`). + * + * ```proto + * message MyString { + * // value must be a valid IP prefix + * string value = 1 [(buf.validate.field).string.ip_prefix = true]; + * } + * ``` + * + * @generated from protobuf field: bool ip_prefix = 29; + */ + ip_prefix: boolean; + } | { + oneofKind: "ipv4_prefix"; + /** + * `ipv4_prefix` specifies that the field value must be a valid IPv4 + * prefix. If the field value isn't a valid IPv4 prefix, an error message + * will be generated. The prefix must have all zeros for the masked bits of + * the prefix (e.g., `127.0.0.0/16`, not `127.0.0.1/16`). + * + * ```proto + * message MyString { + * // value must be a valid IPv4 prefix + * string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; + * } + * ``` + * + * @generated from protobuf field: bool ipv4_prefix = 30; + */ + ipv4_prefix: boolean; + } | { + oneofKind: "ipv6_prefix"; + /** + * `ipv6_prefix` specifies that the field value must be a valid IPv6 prefix. + * If the field value is not a valid IPv6 prefix, an error message will be + * generated. The prefix must have all zeros for the masked bits of the prefix + * (e.g., `2001:db8::/48`, not `2001:db8::1/48`). + * + * ```proto + * message MyString { + * // value must be a valid IPv6 prefix + * string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; + * } + * ``` + * + * @generated from protobuf field: bool ipv6_prefix = 31; + */ + ipv6_prefix: boolean; + } | { + oneofKind: "well_known_regex"; + /** + * `well_known_regex` specifies a common well-known pattern + * defined as a regex. If the field value doesn't match the well-known + * regex, an error message will be generated. + * + * ```proto + * message MyString { + * // value must be a valid HTTP header value + * string value = 1 [(buf.validate.field).string.well_known_regex = 2]; + * } + * ``` + * + * #### KnownRegex + * + * `well_known_regex` contains some well-known patterns. + * + * | Name | Number | Description | + * |-------------------------------|--------|-------------------------------------------| + * | KNOWN_REGEX_UNSPECIFIED | 0 | | + * | KNOWN_REGEX_HTTP_HEADER_NAME | 1 | HTTP header name as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2) | + * | KNOWN_REGEX_HTTP_HEADER_VALUE | 2 | HTTP header value as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.4) | + * + * @generated from protobuf field: buf.validate.KnownRegex well_known_regex = 24; + */ + well_known_regex: KnownRegex; + } | { + oneofKind: undefined; + }; + /** + * This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to + * enable strict header validation. By default, this is true, and HTTP header + * validations are [RFC-compliant](https://tools.ietf.org/html/rfc7230#section-3). Setting to false will enable looser + * validations that only disallow `\r\n\0` characters, which can be used to + * bypass header matching rules. + * + * ```proto + * message MyString { + * // The field `value` must have be a valid HTTP headers, but not enforced with strict rules. + * string value = 1 [(buf.validate.field).string.strict = false]; + * } + * ``` + * + * @generated from protobuf field: optional bool strict = 25; + */ + strict?: boolean; +} +/** + * BytesRules describe the constraints applied to `bytes` values. These rules + * may also be applied to the `google.protobuf.BytesValue` Well-Known-Type. + * + * @generated from protobuf message buf.validate.BytesRules + */ +export interface BytesRules { + /** + * `const` requires the field value to exactly match the specified bytes + * value. If the field value doesn't match, an error message is generated. + * + * ```proto + * message MyBytes { + * // value must be "\x01\x02\x03\x04" + * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; + * } + * ``` + * + * @generated from protobuf field: optional bytes const = 1; + */ + const?: Uint8Array; + /** + * `len` requires the field value to have the specified length in bytes. + * If the field value doesn't match, an error message is generated. + * + * ```proto + * message MyBytes { + * // value length must be 4 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; + * } + * ``` + * + * @generated from protobuf field: optional uint64 len = 13; + */ + len?: bigint; + /** + * `min_len` requires the field value to have at least the specified minimum + * length in bytes. + * If the field value doesn't meet the requirement, an error message is generated. + * + * ```proto + * message MyBytes { + * // value length must be at least 2 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; + * } + * ``` + * + * @generated from protobuf field: optional uint64 min_len = 2; + */ + min_len?: bigint; + /** + * `max_len` requires the field value to have at most the specified maximum + * length in bytes. + * If the field value exceeds the requirement, an error message is generated. + * + * ```proto + * message MyBytes { + * // value must be at most 6 bytes. + * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; + * } + * ``` + * + * @generated from protobuf field: optional uint64 max_len = 3; + */ + max_len?: bigint; + /** + * `pattern` requires the field value to match the specified regular + * expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)). + * The value of the field must be valid UTF-8 or validation will fail with a + * runtime error. + * If the field value doesn't match the pattern, an error message is generated. + * + * ```proto + * message MyBytes { + * // value must match regex pattern "^[a-zA-Z0-9]+$". + * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"]; + * } + * ``` + * + * @generated from protobuf field: optional string pattern = 4; + */ + pattern?: string; + /** + * `prefix` requires the field value to have the specified bytes at the + * beginning of the string. + * If the field value doesn't meet the requirement, an error message is generated. + * + * ```proto + * message MyBytes { + * // value does not have prefix \x01\x02 + * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; + * } + * ``` + * + * @generated from protobuf field: optional bytes prefix = 5; + */ + prefix?: Uint8Array; + /** + * `suffix` requires the field value to have the specified bytes at the end + * of the string. + * If the field value doesn't meet the requirement, an error message is generated. + * + * ```proto + * message MyBytes { + * // value does not have suffix \x03\x04 + * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; + * } + * ``` + * + * @generated from protobuf field: optional bytes suffix = 6; + */ + suffix?: Uint8Array; + /** + * `contains` requires the field value to have the specified bytes anywhere in + * the string. + * If the field value doesn't meet the requirement, an error message is generated. + * + * ```protobuf + * message MyBytes { + * // value does not contain \x02\x03 + * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; + * } + * ``` + * + * @generated from protobuf field: optional bytes contains = 7; + */ + contains?: Uint8Array; + /** + * `in` requires the field value to be equal to one of the specified + * values. If the field value doesn't match any of the specified values, an + * error message is generated. + * + * ```protobuf + * message MyBytes { + * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"] + * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; + * } + * ``` + * + * @generated from protobuf field: repeated bytes in = 8; + */ + in: Uint8Array[]; + /** + * `not_in` requires the field value to be not equal to any of the specified + * values. + * If the field value matches any of the specified values, an error message is + * generated. + * + * ```proto + * message MyBytes { + * // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"] + * optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; + * } + * ``` + * + * @generated from protobuf field: repeated bytes not_in = 9; + */ + not_in: Uint8Array[]; + /** + * @generated from protobuf oneof: well_known + */ + well_known: { + oneofKind: "ip"; + /** + * `ip` ensures that the field `value` is a valid IP address (v4 or v6) in byte format. + * If the field value doesn't meet this constraint, an error message is generated. + * + * ```proto + * message MyBytes { + * // value must be a valid IP address + * optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; + * } + * ``` + * + * @generated from protobuf field: bool ip = 10; + */ + ip: boolean; + } | { + oneofKind: "ipv4"; + /** + * `ipv4` ensures that the field `value` is a valid IPv4 address in byte format. + * If the field value doesn't meet this constraint, an error message is generated. + * + * ```proto + * message MyBytes { + * // value must be a valid IPv4 address + * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; + * } + * ``` + * + * @generated from protobuf field: bool ipv4 = 11; + */ + ipv4: boolean; + } | { + oneofKind: "ipv6"; + /** + * `ipv6` ensures that the field `value` is a valid IPv6 address in byte format. + * If the field value doesn't meet this constraint, an error message is generated. + * ```proto + * message MyBytes { + * // value must be a valid IPv6 address + * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true]; + * } + * ``` + * + * @generated from protobuf field: bool ipv6 = 12; + */ + ipv6: boolean; + } | { + oneofKind: undefined; + }; +} +/** + * EnumRules describe the constraints applied to `enum` values. + * + * @generated from protobuf message buf.validate.EnumRules + */ +export interface EnumRules { + /** + * `const` requires the field value to exactly match the specified enum value. + * If the field value doesn't match, an error message is generated. + * + * ```proto + * enum MyEnum { + * MY_ENUM_UNSPECIFIED = 0; + * MY_ENUM_VALUE1 = 1; + * MY_ENUM_VALUE2 = 2; + * } + * + * message MyMessage { + * // The field `value` must be exactly MY_ENUM_VALUE1. + * MyEnum value = 1 [(buf.validate.field).enum.const = 1]; + * } + * ``` + * + * @generated from protobuf field: optional int32 const = 1; + */ + const?: number; + /** + * `defined_only` requires the field value to be one of the defined values for + * this enum, failing on any undefined value. + * + * ```proto + * enum MyEnum { + * MY_ENUM_UNSPECIFIED = 0; + * MY_ENUM_VALUE1 = 1; + * MY_ENUM_VALUE2 = 2; + * } + * + * message MyMessage { + * // The field `value` must be a defined value of MyEnum. + * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true]; + * } + * ``` + * + * @generated from protobuf field: optional bool defined_only = 2; + */ + defined_only?: boolean; + /** + * `in` requires the field value to be equal to one of the + * specified enum values. If the field value doesn't match any of the + * specified values, an error message is generated. + * + * ```proto + * enum MyEnum { + * MY_ENUM_UNSPECIFIED = 0; + * MY_ENUM_VALUE1 = 1; + * MY_ENUM_VALUE2 = 2; + * } + * + * message MyMessage { + * // The field `value` must be equal to one of the specified values. + * MyEnum value = 1 [(buf.validate.field).enum.in = {1, 2}]; + * } + * ``` + * + * @generated from protobuf field: repeated int32 in = 3; + */ + in: number[]; + /** + * `not_in` requires the field value to be not equal to any of the + * specified enum values. If the field value matches one of the specified + * values, an error message is generated. + * + * ```proto + * enum MyEnum { + * MY_ENUM_UNSPECIFIED = 0; + * MY_ENUM_VALUE1 = 1; + * MY_ENUM_VALUE2 = 2; + * } + * + * message MyMessage { + * // The field `value` must not be equal to any of the specified values. + * MyEnum value = 1 [(buf.validate.field).enum.not_in = {1, 2}]; + * } + * ``` + * + * @generated from protobuf field: repeated int32 not_in = 4; + */ + not_in: number[]; +} +/** + * RepeatedRules describe the constraints applied to `repeated` values. + * + * @generated from protobuf message buf.validate.RepeatedRules + */ +export interface RepeatedRules { + /** + * `min_items` requires that this field must contain at least the specified + * minimum number of items. + * + * Note that `min_items = 1` is equivalent to setting a field as `required`. + * + * ```proto + * message MyRepeated { + * // value must contain at least 2 items + * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; + * } + * ``` + * + * @generated from protobuf field: optional uint64 min_items = 1; + */ + min_items?: bigint; + /** + * `max_items` denotes that this field must not exceed a + * certain number of items as the upper limit. If the field contains more + * items than specified, an error message will be generated, requiring the + * field to maintain no more than the specified number of items. + * + * ```proto + * message MyRepeated { + * // value must contain no more than 3 item(s) + * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; + * } + * ``` + * + * @generated from protobuf field: optional uint64 max_items = 2; + */ + max_items?: bigint; + /** + * `unique` indicates that all elements in this field must + * be unique. This constraint is strictly applicable to scalar and enum + * types, with message types not being supported. + * + * ```proto + * message MyRepeated { + * // repeated value must contain unique items + * repeated string value = 1 [(buf.validate.field).repeated.unique = true]; + * } + * ``` + * + * @generated from protobuf field: optional bool unique = 3; + */ + unique?: boolean; + /** + * `items` details the constraints to be applied to each item + * in the field. Even for repeated message fields, validation is executed + * against each item unless skip is explicitly specified. + * + * ```proto + * message MyRepeated { + * // The items in the field `value` must follow the specified constraints. + * repeated string value = 1 [(buf.validate.field).repeated.items = { + * string: { + * min_len: 3 + * max_len: 10 + * } + * }]; + * } + * ``` + * + * @generated from protobuf field: optional buf.validate.FieldConstraints items = 4; + */ + items?: FieldConstraints; +} +/** + * MapRules describe the constraints applied to `map` values. + * + * @generated from protobuf message buf.validate.MapRules + */ +export interface MapRules { + /** + * Specifies the minimum number of key-value pairs allowed. If the field has + * fewer key-value pairs than specified, an error message is generated. + * + * ```proto + * message MyMap { + * // The field `value` must have at least 2 key-value pairs. + * map value = 1 [(buf.validate.field).map.min_pairs = 2]; + * } + * ``` + * + * @generated from protobuf field: optional uint64 min_pairs = 1; + */ + min_pairs?: bigint; + /** + * Specifies the maximum number of key-value pairs allowed. If the field has + * more key-value pairs than specified, an error message is generated. + * + * ```proto + * message MyMap { + * // The field `value` must have at most 3 key-value pairs. + * map value = 1 [(buf.validate.field).map.max_pairs = 3]; + * } + * ``` + * + * @generated from protobuf field: optional uint64 max_pairs = 2; + */ + max_pairs?: bigint; + /** + * Specifies the constraints to be applied to each key in the field. + * + * ```proto + * message MyMap { + * // The keys in the field `value` must follow the specified constraints. + * map value = 1 [(buf.validate.field).map.keys = { + * string: { + * min_len: 3 + * max_len: 10 + * } + * }]; + * } + * ``` + * + * @generated from protobuf field: optional buf.validate.FieldConstraints keys = 4; + */ + keys?: FieldConstraints; + /** + * Specifies the constraints to be applied to the value of each key in the + * field. Message values will still have their validations evaluated unless + * skip is specified here. + * + * ```proto + * message MyMap { + * // The values in the field `value` must follow the specified constraints. + * map value = 1 [(buf.validate.field).map.values = { + * string: { + * min_len: 5 + * max_len: 20 + * } + * }]; + * } + * ``` + * + * @generated from protobuf field: optional buf.validate.FieldConstraints values = 5; + */ + values?: FieldConstraints; +} +/** + * AnyRules describe constraints applied exclusively to the `google.protobuf.Any` well-known type. + * + * @generated from protobuf message buf.validate.AnyRules + */ +export interface AnyRules { + /** + * `in` requires the field's `type_url` to be equal to one of the + * specified values. If it doesn't match any of the specified values, an error + * message is generated. + * + * ```proto + * message MyAny { + * // The `value` field must have a `type_url` equal to one of the specified values. + * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]]; + * } + * ``` + * + * @generated from protobuf field: repeated string in = 2; + */ + in: string[]; + /** + * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated. + * + * ```proto + * message MyAny { + * // The field `value` must not have a `type_url` equal to any of the specified values. + * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]]; + * } + * ``` + * + * @generated from protobuf field: repeated string not_in = 3; + */ + not_in: string[]; +} +/** + * DurationRules describe the constraints applied exclusively to the `google.protobuf.Duration` well-known type. + * + * @generated from protobuf message buf.validate.DurationRules + */ +export interface DurationRules { + /** + * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly. + * If the field's value deviates from the specified value, an error message + * will be generated. + * + * ```proto + * message MyDuration { + * // value must equal 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; + * } + * ``` + * + * @generated from protobuf field: optional google.protobuf.Duration const = 2; + */ + const?: Duration; + /** + * @generated from protobuf oneof: less_than + */ + less_than: { + oneofKind: "lt"; + /** + * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type, + * exclusive. If the field's value is greater than or equal to the specified + * value, an error message will be generated. + * + * ```proto + * message MyDuration { + * // value must be less than 5s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; + * } + * ``` + * + * @generated from protobuf field: google.protobuf.Duration lt = 3; + */ + lt: Duration; + } | { + oneofKind: "lte"; + /** + * `lte` indicates that the field must be less than or equal to the specified + * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value, + * an error message will be generated. + * + * ```proto + * message MyDuration { + * // value must be less than or equal to 10s + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; + * } + * ``` + * + * @generated from protobuf field: google.protobuf.Duration lte = 4; + */ + lte: Duration; + } | { + oneofKind: undefined; + }; + /** + * @generated from protobuf oneof: greater_than + */ + greater_than: { + oneofKind: "gt"; + /** + * `gt` requires the duration field value to be greater than the specified + * value (exclusive). If the value of `gt` is larger than a specified `lt` + * or `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MyDuration { + * // duration must be greater than 5s [duration.gt] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }]; + * + * // duration must be greater than 5s and less than 10s [duration.gt_lt] + * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }]; + * + * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive] + * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }]; + * } + * ``` + * + * @generated from protobuf field: google.protobuf.Duration gt = 5; + */ + gt: Duration; + } | { + oneofKind: "gte"; + /** + * `gte` requires the duration field value to be greater than or equal to the + * specified value (exclusive). If the value of `gte` is larger than a + * specified `lt` or `lte`, the range is reversed, and the field value must + * be outside the specified range. If the field value doesn't meet the + * required conditions, an error message is generated. + * + * ```proto + * message MyDuration { + * // duration must be greater than or equal to 5s [duration.gte] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }]; + * + * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt] + * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }]; + * + * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive] + * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }]; + * } + * ``` + * + * @generated from protobuf field: google.protobuf.Duration gte = 6; + */ + gte: Duration; + } | { + oneofKind: undefined; + }; + /** + * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type. + * If the field's value doesn't correspond to any of the specified values, + * an error message will be generated. + * + * ```proto + * message MyDuration { + * // value must be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + * } + * ``` + * + * @generated from protobuf field: repeated google.protobuf.Duration in = 7; + */ + in: Duration[]; + /** + * `not_in` denotes that the field must not be equal to + * any of the specified values of the `google.protobuf.Duration` type. + * If the field's value matches any of these values, an error message will be + * generated. + * + * ```proto + * message MyDuration { + * // value must not be in list [1s, 2s, 3s] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; + * } + * ``` + * + * @generated from protobuf field: repeated google.protobuf.Duration not_in = 8; + */ + not_in: Duration[]; +} +/** + * TimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known type. + * + * @generated from protobuf message buf.validate.TimestampRules + */ +export interface TimestampRules { + /** + * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated. + * + * ```proto + * message MyTimestamp { + * // value must equal 2023-05-03T10:00:00Z + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; + * } + * ``` + * + * @generated from protobuf field: optional google.protobuf.Timestamp const = 2; + */ + const?: Timestamp; + /** + * @generated from protobuf oneof: less_than + */ + less_than: { + oneofKind: "lt"; + /** + * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated. + * + * ```proto + * message MyDuration { + * // duration must be less than 'P3D' [duration.lt] + * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; + * } + * ``` + * + * @generated from protobuf field: google.protobuf.Timestamp lt = 3; + */ + lt: Timestamp; + } | { + oneofKind: "lte"; + /** + * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated. + * + * ```proto + * message MyTimestamp { + * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte] + * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }]; + * } + * ``` + * + * @generated from protobuf field: google.protobuf.Timestamp lte = 4; + */ + lte: Timestamp; + } | { + oneofKind: "lt_now"; + /** + * `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time. `lt_now` can only be used with the `within` rule. + * + * ```proto + * message MyTimestamp { + * // value must be less than now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; + * } + * ``` + * + * @generated from protobuf field: bool lt_now = 7; + */ + lt_now: boolean; + } | { + oneofKind: undefined; + }; + /** + * @generated from protobuf oneof: greater_than + */ + greater_than: { + oneofKind: "gt"; + /** + * `gt` requires the timestamp field value to be greater than the specified + * value (exclusive). If the value of `gt` is larger than a specified `lt` + * or `lte`, the range is reversed, and the field value must be outside the + * specified range. If the field value doesn't meet the required conditions, + * an error message is generated. + * + * ```proto + * message MyTimestamp { + * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt] + * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }]; + * + * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt] + * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }]; + * + * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive] + * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }]; + * } + * ``` + * + * @generated from protobuf field: google.protobuf.Timestamp gt = 5; + */ + gt: Timestamp; + } | { + oneofKind: "gte"; + /** + * `gte` requires the timestamp field value to be greater than or equal to the + * specified value (exclusive). If the value of `gte` is larger than a + * specified `lt` or `lte`, the range is reversed, and the field value + * must be outside the specified range. If the field value doesn't meet + * the required conditions, an error message is generated. + * + * ```proto + * message MyTimestamp { + * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte] + * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }]; + * + * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt] + * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }]; + * + * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive] + * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }]; + * } + * ``` + * + * @generated from protobuf field: google.protobuf.Timestamp gte = 6; + */ + gte: Timestamp; + } | { + oneofKind: "gt_now"; + /** + * `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time. `gt_now` can only be used with the `within` rule. + * + * ```proto + * message MyTimestamp { + * // value must be greater than now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; + * } + * ``` + * + * @generated from protobuf field: bool gt_now = 8; + */ + gt_now: boolean; + } | { + oneofKind: undefined; + }; + /** + * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated. + * + * ```proto + * message MyTimestamp { + * // value must be within 1 hour of now + * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; + * } + * ``` + * + * @generated from protobuf field: optional google.protobuf.Duration within = 9; + */ + within?: Duration; +} +/** + * WellKnownRegex contain some well-known patterns. + * + * @generated from protobuf enum buf.validate.KnownRegex + */ +export declare enum KnownRegex { + /** + * @generated from protobuf enum value: KNOWN_REGEX_UNSPECIFIED = 0; + */ + KNOWN_REGEX_UNSPECIFIED = 0, + /** + * HTTP header name as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2). + * + * @generated from protobuf enum value: KNOWN_REGEX_HTTP_HEADER_NAME = 1; + */ + KNOWN_REGEX_HTTP_HEADER_NAME = 1, + /** + * HTTP header value as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.4). + * + * @generated from protobuf enum value: KNOWN_REGEX_HTTP_HEADER_VALUE = 2; + */ + KNOWN_REGEX_HTTP_HEADER_VALUE = 2 +} +declare class MessageConstraints$Type extends MessageType { + constructor(); + create(value?: PartialMessage): MessageConstraints; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageConstraints): MessageConstraints; + internalBinaryWrite(message: MessageConstraints, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.MessageConstraints + */ +export declare const MessageConstraints: MessageConstraints$Type; +declare class OneofConstraints$Type extends MessageType { + constructor(); + create(value?: PartialMessage): OneofConstraints; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OneofConstraints): OneofConstraints; + internalBinaryWrite(message: OneofConstraints, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.OneofConstraints + */ +export declare const OneofConstraints: OneofConstraints$Type; +declare class FieldConstraints$Type extends MessageType { + constructor(); + create(value?: PartialMessage): FieldConstraints; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldConstraints): FieldConstraints; + internalBinaryWrite(message: FieldConstraints, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.FieldConstraints + */ +export declare const FieldConstraints: FieldConstraints$Type; +declare class FloatRules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): FloatRules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FloatRules): FloatRules; + internalBinaryWrite(message: FloatRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.FloatRules + */ +export declare const FloatRules: FloatRules$Type; +declare class DoubleRules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): DoubleRules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DoubleRules): DoubleRules; + internalBinaryWrite(message: DoubleRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.DoubleRules + */ +export declare const DoubleRules: DoubleRules$Type; +declare class Int32Rules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Int32Rules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int32Rules): Int32Rules; + internalBinaryWrite(message: Int32Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.Int32Rules + */ +export declare const Int32Rules: Int32Rules$Type; +declare class Int64Rules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Int64Rules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int64Rules): Int64Rules; + internalBinaryWrite(message: Int64Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.Int64Rules + */ +export declare const Int64Rules: Int64Rules$Type; +declare class UInt32Rules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): UInt32Rules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UInt32Rules): UInt32Rules; + internalBinaryWrite(message: UInt32Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.UInt32Rules + */ +export declare const UInt32Rules: UInt32Rules$Type; +declare class UInt64Rules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): UInt64Rules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UInt64Rules): UInt64Rules; + internalBinaryWrite(message: UInt64Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.UInt64Rules + */ +export declare const UInt64Rules: UInt64Rules$Type; +declare class SInt32Rules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): SInt32Rules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SInt32Rules): SInt32Rules; + internalBinaryWrite(message: SInt32Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.SInt32Rules + */ +export declare const SInt32Rules: SInt32Rules$Type; +declare class SInt64Rules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): SInt64Rules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SInt64Rules): SInt64Rules; + internalBinaryWrite(message: SInt64Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.SInt64Rules + */ +export declare const SInt64Rules: SInt64Rules$Type; +declare class Fixed32Rules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Fixed32Rules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Fixed32Rules): Fixed32Rules; + internalBinaryWrite(message: Fixed32Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.Fixed32Rules + */ +export declare const Fixed32Rules: Fixed32Rules$Type; +declare class Fixed64Rules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Fixed64Rules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Fixed64Rules): Fixed64Rules; + internalBinaryWrite(message: Fixed64Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.Fixed64Rules + */ +export declare const Fixed64Rules: Fixed64Rules$Type; +declare class SFixed32Rules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): SFixed32Rules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SFixed32Rules): SFixed32Rules; + internalBinaryWrite(message: SFixed32Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.SFixed32Rules + */ +export declare const SFixed32Rules: SFixed32Rules$Type; +declare class SFixed64Rules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): SFixed64Rules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SFixed64Rules): SFixed64Rules; + internalBinaryWrite(message: SFixed64Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.SFixed64Rules + */ +export declare const SFixed64Rules: SFixed64Rules$Type; +declare class BoolRules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): BoolRules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BoolRules): BoolRules; + internalBinaryWrite(message: BoolRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.BoolRules + */ +export declare const BoolRules: BoolRules$Type; +declare class StringRules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): StringRules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StringRules): StringRules; + internalBinaryWrite(message: StringRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.StringRules + */ +export declare const StringRules: StringRules$Type; +declare class BytesRules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): BytesRules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BytesRules): BytesRules; + internalBinaryWrite(message: BytesRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.BytesRules + */ +export declare const BytesRules: BytesRules$Type; +declare class EnumRules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): EnumRules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumRules): EnumRules; + internalBinaryWrite(message: EnumRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.EnumRules + */ +export declare const EnumRules: EnumRules$Type; +declare class RepeatedRules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): RepeatedRules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RepeatedRules): RepeatedRules; + internalBinaryWrite(message: RepeatedRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.RepeatedRules + */ +export declare const RepeatedRules: RepeatedRules$Type; +declare class MapRules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): MapRules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MapRules): MapRules; + internalBinaryWrite(message: MapRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.MapRules + */ +export declare const MapRules: MapRules$Type; +declare class AnyRules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): AnyRules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AnyRules): AnyRules; + internalBinaryWrite(message: AnyRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.AnyRules + */ +export declare const AnyRules: AnyRules$Type; +declare class DurationRules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): DurationRules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DurationRules): DurationRules; + internalBinaryWrite(message: DurationRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.DurationRules + */ +export declare const DurationRules: DurationRules$Type; +declare class TimestampRules$Type extends MessageType { + constructor(); + create(value?: PartialMessage): TimestampRules; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TimestampRules): TimestampRules; + internalBinaryWrite(message: TimestampRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message buf.validate.TimestampRules + */ +export declare const TimestampRules: TimestampRules$Type; +export {}; diff --git a/src/buf/validate/validate_pb.js b/src/buf/validate/validate_pb.js new file mode 100644 index 00000000..eda6a70f --- /dev/null +++ b/src/buf/validate/validate_pb.js @@ -0,0 +1,2880 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "buf/validate/validate.proto" (package "buf.validate", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Copyright 2023 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TimestampRules = exports.DurationRules = exports.AnyRules = exports.MapRules = exports.RepeatedRules = exports.EnumRules = exports.BytesRules = exports.StringRules = exports.BoolRules = exports.SFixed64Rules = exports.SFixed32Rules = exports.Fixed64Rules = exports.Fixed32Rules = exports.SInt64Rules = exports.SInt32Rules = exports.UInt64Rules = exports.UInt32Rules = exports.Int64Rules = exports.Int32Rules = exports.DoubleRules = exports.FloatRules = exports.FieldConstraints = exports.OneofConstraints = exports.MessageConstraints = exports.KnownRegex = void 0; +const runtime_1 = require("@protobuf-ts/runtime"); +const runtime_2 = require("@protobuf-ts/runtime"); +const runtime_3 = require("@protobuf-ts/runtime"); +const runtime_4 = require("@protobuf-ts/runtime"); +const timestamp_pb_1 = require("../../google/protobuf/timestamp_pb"); +const duration_pb_1 = require("../../google/protobuf/duration_pb"); +const expression_pb_1 = require("./expression_pb"); +/** + * WellKnownRegex contain some well-known patterns. + * + * @generated from protobuf enum buf.validate.KnownRegex + */ +var KnownRegex; +(function (KnownRegex) { + /** + * @generated from protobuf enum value: KNOWN_REGEX_UNSPECIFIED = 0; + */ + KnownRegex[KnownRegex["KNOWN_REGEX_UNSPECIFIED"] = 0] = "KNOWN_REGEX_UNSPECIFIED"; + /** + * HTTP header name as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2). + * + * @generated from protobuf enum value: KNOWN_REGEX_HTTP_HEADER_NAME = 1; + */ + KnownRegex[KnownRegex["KNOWN_REGEX_HTTP_HEADER_NAME"] = 1] = "KNOWN_REGEX_HTTP_HEADER_NAME"; + /** + * HTTP header value as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.4). + * + * @generated from protobuf enum value: KNOWN_REGEX_HTTP_HEADER_VALUE = 2; + */ + KnownRegex[KnownRegex["KNOWN_REGEX_HTTP_HEADER_VALUE"] = 2] = "KNOWN_REGEX_HTTP_HEADER_VALUE"; +})(KnownRegex = exports.KnownRegex || (exports.KnownRegex = {})); +// @generated message type with reflection information, may provide speed optimized methods +class MessageConstraints$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.MessageConstraints", [ + { no: 1, name: "disabled", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 3, name: "cel", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => expression_pb_1.Constraint } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.cel = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional bool disabled */ 1: + message.disabled = reader.bool(); + break; + case /* repeated buf.validate.Constraint cel */ 3: + message.cel.push(expression_pb_1.Constraint.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional bool disabled = 1; */ + if (message.disabled !== undefined) + writer.tag(1, runtime_1.WireType.Varint).bool(message.disabled); + /* repeated buf.validate.Constraint cel = 3; */ + for (let i = 0; i < message.cel.length; i++) + expression_pb_1.Constraint.internalBinaryWrite(message.cel[i], writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.MessageConstraints + */ +exports.MessageConstraints = new MessageConstraints$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class OneofConstraints$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.OneofConstraints", [ + { no: 1, name: "required", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional bool required */ 1: + message.required = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional bool required = 1; */ + if (message.required !== undefined) + writer.tag(1, runtime_1.WireType.Varint).bool(message.required); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.OneofConstraints + */ +exports.OneofConstraints = new OneofConstraints$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class FieldConstraints$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.FieldConstraints", [ + { no: 23, name: "cel", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => expression_pb_1.Constraint }, + { no: 24, name: "skipped", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, + { no: 25, name: "required", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, + { no: 26, name: "ignore_empty", kind: "scalar", localName: "ignore_empty", T: 8 /*ScalarType.BOOL*/ }, + { no: 1, name: "float", kind: "message", oneof: "type", T: () => exports.FloatRules }, + { no: 2, name: "double", kind: "message", oneof: "type", T: () => exports.DoubleRules }, + { no: 3, name: "int32", kind: "message", oneof: "type", T: () => exports.Int32Rules }, + { no: 4, name: "int64", kind: "message", oneof: "type", T: () => exports.Int64Rules }, + { no: 5, name: "uint32", kind: "message", oneof: "type", T: () => exports.UInt32Rules }, + { no: 6, name: "uint64", kind: "message", oneof: "type", T: () => exports.UInt64Rules }, + { no: 7, name: "sint32", kind: "message", oneof: "type", T: () => exports.SInt32Rules }, + { no: 8, name: "sint64", kind: "message", oneof: "type", T: () => exports.SInt64Rules }, + { no: 9, name: "fixed32", kind: "message", oneof: "type", T: () => exports.Fixed32Rules }, + { no: 10, name: "fixed64", kind: "message", oneof: "type", T: () => exports.Fixed64Rules }, + { no: 11, name: "sfixed32", kind: "message", oneof: "type", T: () => exports.SFixed32Rules }, + { no: 12, name: "sfixed64", kind: "message", oneof: "type", T: () => exports.SFixed64Rules }, + { no: 13, name: "bool", kind: "message", oneof: "type", T: () => exports.BoolRules }, + { no: 14, name: "string", kind: "message", oneof: "type", T: () => exports.StringRules }, + { no: 15, name: "bytes", kind: "message", oneof: "type", T: () => exports.BytesRules }, + { no: 16, name: "enum", kind: "message", oneof: "type", T: () => exports.EnumRules }, + { no: 18, name: "repeated", kind: "message", oneof: "type", T: () => exports.RepeatedRules }, + { no: 19, name: "map", kind: "message", oneof: "type", T: () => exports.MapRules }, + { no: 20, name: "any", kind: "message", oneof: "type", T: () => exports.AnyRules }, + { no: 21, name: "duration", kind: "message", oneof: "type", T: () => exports.DurationRules }, + { no: 22, name: "timestamp", kind: "message", oneof: "type", T: () => exports.TimestampRules } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.cel = []; + message.skipped = false; + message.required = false; + message.ignore_empty = false; + message.type = { oneofKind: undefined }; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated buf.validate.Constraint cel */ 23: + message.cel.push(expression_pb_1.Constraint.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* bool skipped */ 24: + message.skipped = reader.bool(); + break; + case /* bool required */ 25: + message.required = reader.bool(); + break; + case /* bool ignore_empty */ 26: + message.ignore_empty = reader.bool(); + break; + case /* buf.validate.FloatRules float */ 1: + message.type = { + oneofKind: "float", + float: exports.FloatRules.internalBinaryRead(reader, reader.uint32(), options, message.type.float) + }; + break; + case /* buf.validate.DoubleRules double */ 2: + message.type = { + oneofKind: "double", + double: exports.DoubleRules.internalBinaryRead(reader, reader.uint32(), options, message.type.double) + }; + break; + case /* buf.validate.Int32Rules int32 */ 3: + message.type = { + oneofKind: "int32", + int32: exports.Int32Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.int32) + }; + break; + case /* buf.validate.Int64Rules int64 */ 4: + message.type = { + oneofKind: "int64", + int64: exports.Int64Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.int64) + }; + break; + case /* buf.validate.UInt32Rules uint32 */ 5: + message.type = { + oneofKind: "uint32", + uint32: exports.UInt32Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.uint32) + }; + break; + case /* buf.validate.UInt64Rules uint64 */ 6: + message.type = { + oneofKind: "uint64", + uint64: exports.UInt64Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.uint64) + }; + break; + case /* buf.validate.SInt32Rules sint32 */ 7: + message.type = { + oneofKind: "sint32", + sint32: exports.SInt32Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.sint32) + }; + break; + case /* buf.validate.SInt64Rules sint64 */ 8: + message.type = { + oneofKind: "sint64", + sint64: exports.SInt64Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.sint64) + }; + break; + case /* buf.validate.Fixed32Rules fixed32 */ 9: + message.type = { + oneofKind: "fixed32", + fixed32: exports.Fixed32Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.fixed32) + }; + break; + case /* buf.validate.Fixed64Rules fixed64 */ 10: + message.type = { + oneofKind: "fixed64", + fixed64: exports.Fixed64Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.fixed64) + }; + break; + case /* buf.validate.SFixed32Rules sfixed32 */ 11: + message.type = { + oneofKind: "sfixed32", + sfixed32: exports.SFixed32Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.sfixed32) + }; + break; + case /* buf.validate.SFixed64Rules sfixed64 */ 12: + message.type = { + oneofKind: "sfixed64", + sfixed64: exports.SFixed64Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.sfixed64) + }; + break; + case /* buf.validate.BoolRules bool */ 13: + message.type = { + oneofKind: "bool", + bool: exports.BoolRules.internalBinaryRead(reader, reader.uint32(), options, message.type.bool) + }; + break; + case /* buf.validate.StringRules string */ 14: + message.type = { + oneofKind: "string", + string: exports.StringRules.internalBinaryRead(reader, reader.uint32(), options, message.type.string) + }; + break; + case /* buf.validate.BytesRules bytes */ 15: + message.type = { + oneofKind: "bytes", + bytes: exports.BytesRules.internalBinaryRead(reader, reader.uint32(), options, message.type.bytes) + }; + break; + case /* buf.validate.EnumRules enum */ 16: + message.type = { + oneofKind: "enum", + enum: exports.EnumRules.internalBinaryRead(reader, reader.uint32(), options, message.type.enum) + }; + break; + case /* buf.validate.RepeatedRules repeated */ 18: + message.type = { + oneofKind: "repeated", + repeated: exports.RepeatedRules.internalBinaryRead(reader, reader.uint32(), options, message.type.repeated) + }; + break; + case /* buf.validate.MapRules map */ 19: + message.type = { + oneofKind: "map", + map: exports.MapRules.internalBinaryRead(reader, reader.uint32(), options, message.type.map) + }; + break; + case /* buf.validate.AnyRules any */ 20: + message.type = { + oneofKind: "any", + any: exports.AnyRules.internalBinaryRead(reader, reader.uint32(), options, message.type.any) + }; + break; + case /* buf.validate.DurationRules duration */ 21: + message.type = { + oneofKind: "duration", + duration: exports.DurationRules.internalBinaryRead(reader, reader.uint32(), options, message.type.duration) + }; + break; + case /* buf.validate.TimestampRules timestamp */ 22: + message.type = { + oneofKind: "timestamp", + timestamp: exports.TimestampRules.internalBinaryRead(reader, reader.uint32(), options, message.type.timestamp) + }; + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated buf.validate.Constraint cel = 23; */ + for (let i = 0; i < message.cel.length; i++) + expression_pb_1.Constraint.internalBinaryWrite(message.cel[i], writer.tag(23, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* bool skipped = 24; */ + if (message.skipped !== false) + writer.tag(24, runtime_1.WireType.Varint).bool(message.skipped); + /* bool required = 25; */ + if (message.required !== false) + writer.tag(25, runtime_1.WireType.Varint).bool(message.required); + /* bool ignore_empty = 26; */ + if (message.ignore_empty !== false) + writer.tag(26, runtime_1.WireType.Varint).bool(message.ignore_empty); + /* buf.validate.FloatRules float = 1; */ + if (message.type.oneofKind === "float") + exports.FloatRules.internalBinaryWrite(message.type.float, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.DoubleRules double = 2; */ + if (message.type.oneofKind === "double") + exports.DoubleRules.internalBinaryWrite(message.type.double, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.Int32Rules int32 = 3; */ + if (message.type.oneofKind === "int32") + exports.Int32Rules.internalBinaryWrite(message.type.int32, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.Int64Rules int64 = 4; */ + if (message.type.oneofKind === "int64") + exports.Int64Rules.internalBinaryWrite(message.type.int64, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.UInt32Rules uint32 = 5; */ + if (message.type.oneofKind === "uint32") + exports.UInt32Rules.internalBinaryWrite(message.type.uint32, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.UInt64Rules uint64 = 6; */ + if (message.type.oneofKind === "uint64") + exports.UInt64Rules.internalBinaryWrite(message.type.uint64, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.SInt32Rules sint32 = 7; */ + if (message.type.oneofKind === "sint32") + exports.SInt32Rules.internalBinaryWrite(message.type.sint32, writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.SInt64Rules sint64 = 8; */ + if (message.type.oneofKind === "sint64") + exports.SInt64Rules.internalBinaryWrite(message.type.sint64, writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.Fixed32Rules fixed32 = 9; */ + if (message.type.oneofKind === "fixed32") + exports.Fixed32Rules.internalBinaryWrite(message.type.fixed32, writer.tag(9, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.Fixed64Rules fixed64 = 10; */ + if (message.type.oneofKind === "fixed64") + exports.Fixed64Rules.internalBinaryWrite(message.type.fixed64, writer.tag(10, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.SFixed32Rules sfixed32 = 11; */ + if (message.type.oneofKind === "sfixed32") + exports.SFixed32Rules.internalBinaryWrite(message.type.sfixed32, writer.tag(11, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.SFixed64Rules sfixed64 = 12; */ + if (message.type.oneofKind === "sfixed64") + exports.SFixed64Rules.internalBinaryWrite(message.type.sfixed64, writer.tag(12, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.BoolRules bool = 13; */ + if (message.type.oneofKind === "bool") + exports.BoolRules.internalBinaryWrite(message.type.bool, writer.tag(13, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.StringRules string = 14; */ + if (message.type.oneofKind === "string") + exports.StringRules.internalBinaryWrite(message.type.string, writer.tag(14, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.BytesRules bytes = 15; */ + if (message.type.oneofKind === "bytes") + exports.BytesRules.internalBinaryWrite(message.type.bytes, writer.tag(15, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.EnumRules enum = 16; */ + if (message.type.oneofKind === "enum") + exports.EnumRules.internalBinaryWrite(message.type.enum, writer.tag(16, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.RepeatedRules repeated = 18; */ + if (message.type.oneofKind === "repeated") + exports.RepeatedRules.internalBinaryWrite(message.type.repeated, writer.tag(18, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.MapRules map = 19; */ + if (message.type.oneofKind === "map") + exports.MapRules.internalBinaryWrite(message.type.map, writer.tag(19, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.AnyRules any = 20; */ + if (message.type.oneofKind === "any") + exports.AnyRules.internalBinaryWrite(message.type.any, writer.tag(20, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.DurationRules duration = 21; */ + if (message.type.oneofKind === "duration") + exports.DurationRules.internalBinaryWrite(message.type.duration, writer.tag(21, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* buf.validate.TimestampRules timestamp = 22; */ + if (message.type.oneofKind === "timestamp") + exports.TimestampRules.internalBinaryWrite(message.type.timestamp, writer.tag(22, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.FieldConstraints + */ +exports.FieldConstraints = new FieldConstraints$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class FloatRules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.FloatRules", [ + { no: 1, name: "const", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.priv.field": { cel: [{ id: "float.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, + { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.priv.field": { cel: [{ id: "float.lt", expression: "!has(rules.gte) && !has(rules.gt) && (this.isNan() || this >= rules.lt)? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, + { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.priv.field": { cel: [{ id: "float.lte", expression: "!has(rules.gte) && !has(rules.gt) && (this.isNan() || this > rules.lte)? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, + { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.priv.field": { cel: [{ id: "float.gt", expression: "!has(rules.lt) && !has(rules.lte) && (this.isNan() || this <= rules.gt)? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "float.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this.isNan() || this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "float.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (this.isNan() || (rules.lt <= this && this <= rules.gt))? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "float.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this.isNan() || this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "float.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (this.isNan() || (rules.lte < this && this <= rules.gt))? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, + { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.priv.field": { cel: [{ id: "float.gte", expression: "!has(rules.lt) && !has(rules.lte) && (this.isNan() || this < rules.gte)? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "float.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this.isNan() || this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "float.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (this.isNan() || (rules.lt <= this && this < rules.gte))? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "float.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this.isNan() || this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "float.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (this.isNan() || (rules.lte < this && this < rules.gte))? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, + { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.priv.field": { cel: [{ id: "float.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, + { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.priv.field": { cel: [{ id: "float.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } }, + { no: 8, name: "finite", kind: "scalar", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "float.finite", expression: "this.isNan() || this.isInf() ? 'value must be finite' : ''" }] } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.less_than = { oneofKind: undefined }; + message.greater_than = { oneofKind: undefined }; + message.in = []; + message.not_in = []; + message.finite = false; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional float const */ 1: + message.const = reader.float(); + break; + case /* float lt */ 2: + message.less_than = { + oneofKind: "lt", + lt: reader.float() + }; + break; + case /* float lte */ 3: + message.less_than = { + oneofKind: "lte", + lte: reader.float() + }; + break; + case /* float gt */ 4: + message.greater_than = { + oneofKind: "gt", + gt: reader.float() + }; + break; + case /* float gte */ 5: + message.greater_than = { + oneofKind: "gte", + gte: reader.float() + }; + break; + case /* repeated float in */ 6: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.in.push(reader.float()); + else + message.in.push(reader.float()); + break; + case /* repeated float not_in */ 7: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.not_in.push(reader.float()); + else + message.not_in.push(reader.float()); + break; + case /* bool finite */ 8: + message.finite = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional float const = 1; */ + if (message.const !== undefined) + writer.tag(1, runtime_1.WireType.Bit32).float(message.const); + /* float lt = 2; */ + if (message.less_than.oneofKind === "lt") + writer.tag(2, runtime_1.WireType.Bit32).float(message.less_than.lt); + /* float lte = 3; */ + if (message.less_than.oneofKind === "lte") + writer.tag(3, runtime_1.WireType.Bit32).float(message.less_than.lte); + /* float gt = 4; */ + if (message.greater_than.oneofKind === "gt") + writer.tag(4, runtime_1.WireType.Bit32).float(message.greater_than.gt); + /* float gte = 5; */ + if (message.greater_than.oneofKind === "gte") + writer.tag(5, runtime_1.WireType.Bit32).float(message.greater_than.gte); + /* repeated float in = 6; */ + if (message.in.length) { + writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.in.length; i++) + writer.float(message.in[i]); + writer.join(); + } + /* repeated float not_in = 7; */ + if (message.not_in.length) { + writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.not_in.length; i++) + writer.float(message.not_in[i]); + writer.join(); + } + /* bool finite = 8; */ + if (message.finite !== false) + writer.tag(8, runtime_1.WireType.Varint).bool(message.finite); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.FloatRules + */ +exports.FloatRules = new FloatRules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class DoubleRules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.DoubleRules", [ + { no: 1, name: "const", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/, options: { "buf.validate.priv.field": { cel: [{ id: "double.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, + { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 1 /*ScalarType.DOUBLE*/, options: { "buf.validate.priv.field": { cel: [{ id: "double.lt", expression: "!has(rules.gte) && !has(rules.gt) && (this.isNan() || this >= rules.lt)? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, + { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 1 /*ScalarType.DOUBLE*/, options: { "buf.validate.priv.field": { cel: [{ id: "double.lte", expression: "!has(rules.gte) && !has(rules.gt) && (this.isNan() || this > rules.lte)? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, + { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 1 /*ScalarType.DOUBLE*/, options: { "buf.validate.priv.field": { cel: [{ id: "double.gt", expression: "!has(rules.lt) && !has(rules.lte) && (this.isNan() || this <= rules.gt)? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "double.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this.isNan() || this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "double.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (this.isNan() || (rules.lt <= this && this <= rules.gt))? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "double.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this.isNan() || this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "double.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (this.isNan() || (rules.lte < this && this <= rules.gt))? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, + { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 1 /*ScalarType.DOUBLE*/, options: { "buf.validate.priv.field": { cel: [{ id: "double.gte", expression: "!has(rules.lt) && !has(rules.lte) && (this.isNan() || this < rules.gte)? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "double.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this.isNan() || this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "double.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (this.isNan() || (rules.lt <= this && this < rules.gte))? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "double.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this.isNan() || this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "double.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (this.isNan() || (rules.lte < this && this < rules.gte))? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, + { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 1 /*ScalarType.DOUBLE*/, options: { "buf.validate.priv.field": { cel: [{ id: "double.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, + { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 1 /*ScalarType.DOUBLE*/, options: { "buf.validate.priv.field": { cel: [{ id: "double.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } }, + { no: 8, name: "finite", kind: "scalar", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "double.finite", expression: "this.isNan() || this.isInf() ? 'value must be finite' : ''" }] } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.less_than = { oneofKind: undefined }; + message.greater_than = { oneofKind: undefined }; + message.in = []; + message.not_in = []; + message.finite = false; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional double const */ 1: + message.const = reader.double(); + break; + case /* double lt */ 2: + message.less_than = { + oneofKind: "lt", + lt: reader.double() + }; + break; + case /* double lte */ 3: + message.less_than = { + oneofKind: "lte", + lte: reader.double() + }; + break; + case /* double gt */ 4: + message.greater_than = { + oneofKind: "gt", + gt: reader.double() + }; + break; + case /* double gte */ 5: + message.greater_than = { + oneofKind: "gte", + gte: reader.double() + }; + break; + case /* repeated double in */ 6: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.in.push(reader.double()); + else + message.in.push(reader.double()); + break; + case /* repeated double not_in */ 7: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.not_in.push(reader.double()); + else + message.not_in.push(reader.double()); + break; + case /* bool finite */ 8: + message.finite = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional double const = 1; */ + if (message.const !== undefined) + writer.tag(1, runtime_1.WireType.Bit64).double(message.const); + /* double lt = 2; */ + if (message.less_than.oneofKind === "lt") + writer.tag(2, runtime_1.WireType.Bit64).double(message.less_than.lt); + /* double lte = 3; */ + if (message.less_than.oneofKind === "lte") + writer.tag(3, runtime_1.WireType.Bit64).double(message.less_than.lte); + /* double gt = 4; */ + if (message.greater_than.oneofKind === "gt") + writer.tag(4, runtime_1.WireType.Bit64).double(message.greater_than.gt); + /* double gte = 5; */ + if (message.greater_than.oneofKind === "gte") + writer.tag(5, runtime_1.WireType.Bit64).double(message.greater_than.gte); + /* repeated double in = 6; */ + if (message.in.length) { + writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.in.length; i++) + writer.double(message.in[i]); + writer.join(); + } + /* repeated double not_in = 7; */ + if (message.not_in.length) { + writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.not_in.length; i++) + writer.double(message.not_in[i]); + writer.join(); + } + /* bool finite = 8; */ + if (message.finite !== false) + writer.tag(8, runtime_1.WireType.Varint).bool(message.finite); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.DoubleRules + */ +exports.DoubleRules = new DoubleRules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Int32Rules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.Int32Rules", [ + { no: 1, name: "const", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "int32.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, + { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "int32.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, + { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "int32.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, + { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "int32.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "int32.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "int32.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "int32.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "int32.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, + { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "int32.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "int32.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "int32.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "int32.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "int32.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, + { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "int32.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, + { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "int32.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.less_than = { oneofKind: undefined }; + message.greater_than = { oneofKind: undefined }; + message.in = []; + message.not_in = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional int32 const */ 1: + message.const = reader.int32(); + break; + case /* int32 lt */ 2: + message.less_than = { + oneofKind: "lt", + lt: reader.int32() + }; + break; + case /* int32 lte */ 3: + message.less_than = { + oneofKind: "lte", + lte: reader.int32() + }; + break; + case /* int32 gt */ 4: + message.greater_than = { + oneofKind: "gt", + gt: reader.int32() + }; + break; + case /* int32 gte */ 5: + message.greater_than = { + oneofKind: "gte", + gte: reader.int32() + }; + break; + case /* repeated int32 in */ 6: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.in.push(reader.int32()); + else + message.in.push(reader.int32()); + break; + case /* repeated int32 not_in */ 7: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.not_in.push(reader.int32()); + else + message.not_in.push(reader.int32()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional int32 const = 1; */ + if (message.const !== undefined) + writer.tag(1, runtime_1.WireType.Varint).int32(message.const); + /* int32 lt = 2; */ + if (message.less_than.oneofKind === "lt") + writer.tag(2, runtime_1.WireType.Varint).int32(message.less_than.lt); + /* int32 lte = 3; */ + if (message.less_than.oneofKind === "lte") + writer.tag(3, runtime_1.WireType.Varint).int32(message.less_than.lte); + /* int32 gt = 4; */ + if (message.greater_than.oneofKind === "gt") + writer.tag(4, runtime_1.WireType.Varint).int32(message.greater_than.gt); + /* int32 gte = 5; */ + if (message.greater_than.oneofKind === "gte") + writer.tag(5, runtime_1.WireType.Varint).int32(message.greater_than.gte); + /* repeated int32 in = 6; */ + if (message.in.length) { + writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.in.length; i++) + writer.int32(message.in[i]); + writer.join(); + } + /* repeated int32 not_in = 7; */ + if (message.not_in.length) { + writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.not_in.length; i++) + writer.int32(message.not_in[i]); + writer.join(); + } + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.Int32Rules + */ +exports.Int32Rules = new Int32Rules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Int64Rules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.Int64Rules", [ + { no: 1, name: "const", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "int64.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, + { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "int64.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, + { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "int64.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, + { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "int64.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "int64.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "int64.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "int64.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "int64.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, + { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "int64.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "int64.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "int64.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "int64.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "int64.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, + { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "int64.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, + { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "int64.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.less_than = { oneofKind: undefined }; + message.greater_than = { oneofKind: undefined }; + message.in = []; + message.not_in = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional int64 const */ 1: + message.const = reader.int64().toBigInt(); + break; + case /* int64 lt */ 2: + message.less_than = { + oneofKind: "lt", + lt: reader.int64().toBigInt() + }; + break; + case /* int64 lte */ 3: + message.less_than = { + oneofKind: "lte", + lte: reader.int64().toBigInt() + }; + break; + case /* int64 gt */ 4: + message.greater_than = { + oneofKind: "gt", + gt: reader.int64().toBigInt() + }; + break; + case /* int64 gte */ 5: + message.greater_than = { + oneofKind: "gte", + gte: reader.int64().toBigInt() + }; + break; + case /* repeated int64 in */ 6: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.in.push(reader.int64().toBigInt()); + else + message.in.push(reader.int64().toBigInt()); + break; + case /* repeated int64 not_in */ 7: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.not_in.push(reader.int64().toBigInt()); + else + message.not_in.push(reader.int64().toBigInt()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional int64 const = 1; */ + if (message.const !== undefined) + writer.tag(1, runtime_1.WireType.Varint).int64(message.const); + /* int64 lt = 2; */ + if (message.less_than.oneofKind === "lt") + writer.tag(2, runtime_1.WireType.Varint).int64(message.less_than.lt); + /* int64 lte = 3; */ + if (message.less_than.oneofKind === "lte") + writer.tag(3, runtime_1.WireType.Varint).int64(message.less_than.lte); + /* int64 gt = 4; */ + if (message.greater_than.oneofKind === "gt") + writer.tag(4, runtime_1.WireType.Varint).int64(message.greater_than.gt); + /* int64 gte = 5; */ + if (message.greater_than.oneofKind === "gte") + writer.tag(5, runtime_1.WireType.Varint).int64(message.greater_than.gte); + /* repeated int64 in = 6; */ + if (message.in.length) { + writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.in.length; i++) + writer.int64(message.in[i]); + writer.join(); + } + /* repeated int64 not_in = 7; */ + if (message.not_in.length) { + writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.not_in.length; i++) + writer.int64(message.not_in[i]); + writer.join(); + } + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.Int64Rules + */ +exports.Int64Rules = new Int64Rules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class UInt32Rules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.UInt32Rules", [ + { no: 1, name: "const", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint32.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, + { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint32.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, + { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint32.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, + { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint32.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "uint32.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "uint32.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "uint32.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "uint32.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, + { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint32.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "uint32.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "uint32.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "uint32.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "uint32.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, + { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint32.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, + { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint32.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.less_than = { oneofKind: undefined }; + message.greater_than = { oneofKind: undefined }; + message.in = []; + message.not_in = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional uint32 const */ 1: + message.const = reader.uint32(); + break; + case /* uint32 lt */ 2: + message.less_than = { + oneofKind: "lt", + lt: reader.uint32() + }; + break; + case /* uint32 lte */ 3: + message.less_than = { + oneofKind: "lte", + lte: reader.uint32() + }; + break; + case /* uint32 gt */ 4: + message.greater_than = { + oneofKind: "gt", + gt: reader.uint32() + }; + break; + case /* uint32 gte */ 5: + message.greater_than = { + oneofKind: "gte", + gte: reader.uint32() + }; + break; + case /* repeated uint32 in */ 6: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.in.push(reader.uint32()); + else + message.in.push(reader.uint32()); + break; + case /* repeated uint32 not_in */ 7: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.not_in.push(reader.uint32()); + else + message.not_in.push(reader.uint32()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional uint32 const = 1; */ + if (message.const !== undefined) + writer.tag(1, runtime_1.WireType.Varint).uint32(message.const); + /* uint32 lt = 2; */ + if (message.less_than.oneofKind === "lt") + writer.tag(2, runtime_1.WireType.Varint).uint32(message.less_than.lt); + /* uint32 lte = 3; */ + if (message.less_than.oneofKind === "lte") + writer.tag(3, runtime_1.WireType.Varint).uint32(message.less_than.lte); + /* uint32 gt = 4; */ + if (message.greater_than.oneofKind === "gt") + writer.tag(4, runtime_1.WireType.Varint).uint32(message.greater_than.gt); + /* uint32 gte = 5; */ + if (message.greater_than.oneofKind === "gte") + writer.tag(5, runtime_1.WireType.Varint).uint32(message.greater_than.gte); + /* repeated uint32 in = 6; */ + if (message.in.length) { + writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.in.length; i++) + writer.uint32(message.in[i]); + writer.join(); + } + /* repeated uint32 not_in = 7; */ + if (message.not_in.length) { + writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.not_in.length; i++) + writer.uint32(message.not_in[i]); + writer.join(); + } + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.UInt32Rules + */ +exports.UInt32Rules = new UInt32Rules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class UInt64Rules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.UInt64Rules", [ + { no: 1, name: "const", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint64.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, + { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint64.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, + { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint64.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, + { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint64.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "uint64.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "uint64.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "uint64.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "uint64.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, + { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint64.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "uint64.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "uint64.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "uint64.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "uint64.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, + { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint64.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, + { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint64.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.less_than = { oneofKind: undefined }; + message.greater_than = { oneofKind: undefined }; + message.in = []; + message.not_in = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional uint64 const */ 1: + message.const = reader.uint64().toBigInt(); + break; + case /* uint64 lt */ 2: + message.less_than = { + oneofKind: "lt", + lt: reader.uint64().toBigInt() + }; + break; + case /* uint64 lte */ 3: + message.less_than = { + oneofKind: "lte", + lte: reader.uint64().toBigInt() + }; + break; + case /* uint64 gt */ 4: + message.greater_than = { + oneofKind: "gt", + gt: reader.uint64().toBigInt() + }; + break; + case /* uint64 gte */ 5: + message.greater_than = { + oneofKind: "gte", + gte: reader.uint64().toBigInt() + }; + break; + case /* repeated uint64 in */ 6: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.in.push(reader.uint64().toBigInt()); + else + message.in.push(reader.uint64().toBigInt()); + break; + case /* repeated uint64 not_in */ 7: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.not_in.push(reader.uint64().toBigInt()); + else + message.not_in.push(reader.uint64().toBigInt()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional uint64 const = 1; */ + if (message.const !== undefined) + writer.tag(1, runtime_1.WireType.Varint).uint64(message.const); + /* uint64 lt = 2; */ + if (message.less_than.oneofKind === "lt") + writer.tag(2, runtime_1.WireType.Varint).uint64(message.less_than.lt); + /* uint64 lte = 3; */ + if (message.less_than.oneofKind === "lte") + writer.tag(3, runtime_1.WireType.Varint).uint64(message.less_than.lte); + /* uint64 gt = 4; */ + if (message.greater_than.oneofKind === "gt") + writer.tag(4, runtime_1.WireType.Varint).uint64(message.greater_than.gt); + /* uint64 gte = 5; */ + if (message.greater_than.oneofKind === "gte") + writer.tag(5, runtime_1.WireType.Varint).uint64(message.greater_than.gte); + /* repeated uint64 in = 6; */ + if (message.in.length) { + writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.in.length; i++) + writer.uint64(message.in[i]); + writer.join(); + } + /* repeated uint64 not_in = 7; */ + if (message.not_in.length) { + writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.not_in.length; i++) + writer.uint64(message.not_in[i]); + writer.join(); + } + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.UInt64Rules + */ +exports.UInt64Rules = new UInt64Rules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class SInt32Rules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.SInt32Rules", [ + { no: 1, name: "const", kind: "scalar", opt: true, T: 17 /*ScalarType.SINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint32.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, + { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 17 /*ScalarType.SINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint32.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, + { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 17 /*ScalarType.SINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint32.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, + { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 17 /*ScalarType.SINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint32.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "sint32.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "sint32.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "sint32.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "sint32.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, + { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 17 /*ScalarType.SINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint32.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "sint32.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "sint32.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "sint32.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "sint32.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, + { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 17 /*ScalarType.SINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint32.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, + { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 17 /*ScalarType.SINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint32.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.less_than = { oneofKind: undefined }; + message.greater_than = { oneofKind: undefined }; + message.in = []; + message.not_in = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional sint32 const */ 1: + message.const = reader.sint32(); + break; + case /* sint32 lt */ 2: + message.less_than = { + oneofKind: "lt", + lt: reader.sint32() + }; + break; + case /* sint32 lte */ 3: + message.less_than = { + oneofKind: "lte", + lte: reader.sint32() + }; + break; + case /* sint32 gt */ 4: + message.greater_than = { + oneofKind: "gt", + gt: reader.sint32() + }; + break; + case /* sint32 gte */ 5: + message.greater_than = { + oneofKind: "gte", + gte: reader.sint32() + }; + break; + case /* repeated sint32 in */ 6: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.in.push(reader.sint32()); + else + message.in.push(reader.sint32()); + break; + case /* repeated sint32 not_in */ 7: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.not_in.push(reader.sint32()); + else + message.not_in.push(reader.sint32()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional sint32 const = 1; */ + if (message.const !== undefined) + writer.tag(1, runtime_1.WireType.Varint).sint32(message.const); + /* sint32 lt = 2; */ + if (message.less_than.oneofKind === "lt") + writer.tag(2, runtime_1.WireType.Varint).sint32(message.less_than.lt); + /* sint32 lte = 3; */ + if (message.less_than.oneofKind === "lte") + writer.tag(3, runtime_1.WireType.Varint).sint32(message.less_than.lte); + /* sint32 gt = 4; */ + if (message.greater_than.oneofKind === "gt") + writer.tag(4, runtime_1.WireType.Varint).sint32(message.greater_than.gt); + /* sint32 gte = 5; */ + if (message.greater_than.oneofKind === "gte") + writer.tag(5, runtime_1.WireType.Varint).sint32(message.greater_than.gte); + /* repeated sint32 in = 6; */ + if (message.in.length) { + writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.in.length; i++) + writer.sint32(message.in[i]); + writer.join(); + } + /* repeated sint32 not_in = 7; */ + if (message.not_in.length) { + writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.not_in.length; i++) + writer.sint32(message.not_in[i]); + writer.join(); + } + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.SInt32Rules + */ +exports.SInt32Rules = new SInt32Rules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class SInt64Rules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.SInt64Rules", [ + { no: 1, name: "const", kind: "scalar", opt: true, T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint64.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, + { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint64.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, + { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint64.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, + { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint64.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "sint64.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "sint64.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "sint64.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "sint64.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, + { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint64.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "sint64.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "sint64.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "sint64.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "sint64.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, + { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint64.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, + { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint64.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.less_than = { oneofKind: undefined }; + message.greater_than = { oneofKind: undefined }; + message.in = []; + message.not_in = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional sint64 const */ 1: + message.const = reader.sint64().toBigInt(); + break; + case /* sint64 lt */ 2: + message.less_than = { + oneofKind: "lt", + lt: reader.sint64().toBigInt() + }; + break; + case /* sint64 lte */ 3: + message.less_than = { + oneofKind: "lte", + lte: reader.sint64().toBigInt() + }; + break; + case /* sint64 gt */ 4: + message.greater_than = { + oneofKind: "gt", + gt: reader.sint64().toBigInt() + }; + break; + case /* sint64 gte */ 5: + message.greater_than = { + oneofKind: "gte", + gte: reader.sint64().toBigInt() + }; + break; + case /* repeated sint64 in */ 6: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.in.push(reader.sint64().toBigInt()); + else + message.in.push(reader.sint64().toBigInt()); + break; + case /* repeated sint64 not_in */ 7: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.not_in.push(reader.sint64().toBigInt()); + else + message.not_in.push(reader.sint64().toBigInt()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional sint64 const = 1; */ + if (message.const !== undefined) + writer.tag(1, runtime_1.WireType.Varint).sint64(message.const); + /* sint64 lt = 2; */ + if (message.less_than.oneofKind === "lt") + writer.tag(2, runtime_1.WireType.Varint).sint64(message.less_than.lt); + /* sint64 lte = 3; */ + if (message.less_than.oneofKind === "lte") + writer.tag(3, runtime_1.WireType.Varint).sint64(message.less_than.lte); + /* sint64 gt = 4; */ + if (message.greater_than.oneofKind === "gt") + writer.tag(4, runtime_1.WireType.Varint).sint64(message.greater_than.gt); + /* sint64 gte = 5; */ + if (message.greater_than.oneofKind === "gte") + writer.tag(5, runtime_1.WireType.Varint).sint64(message.greater_than.gte); + /* repeated sint64 in = 6; */ + if (message.in.length) { + writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.in.length; i++) + writer.sint64(message.in[i]); + writer.join(); + } + /* repeated sint64 not_in = 7; */ + if (message.not_in.length) { + writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.not_in.length; i++) + writer.sint64(message.not_in[i]); + writer.join(); + } + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.SInt64Rules + */ +exports.SInt64Rules = new SInt64Rules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Fixed32Rules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.Fixed32Rules", [ + { no: 1, name: "const", kind: "scalar", opt: true, T: 7 /*ScalarType.FIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed32.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, + { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 7 /*ScalarType.FIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed32.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, + { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 7 /*ScalarType.FIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed32.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, + { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 7 /*ScalarType.FIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed32.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "fixed32.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "fixed32.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "fixed32.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "fixed32.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, + { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 7 /*ScalarType.FIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed32.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "fixed32.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "fixed32.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "fixed32.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "fixed32.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, + { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 7 /*ScalarType.FIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed32.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, + { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 7 /*ScalarType.FIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed32.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.less_than = { oneofKind: undefined }; + message.greater_than = { oneofKind: undefined }; + message.in = []; + message.not_in = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional fixed32 const */ 1: + message.const = reader.fixed32(); + break; + case /* fixed32 lt */ 2: + message.less_than = { + oneofKind: "lt", + lt: reader.fixed32() + }; + break; + case /* fixed32 lte */ 3: + message.less_than = { + oneofKind: "lte", + lte: reader.fixed32() + }; + break; + case /* fixed32 gt */ 4: + message.greater_than = { + oneofKind: "gt", + gt: reader.fixed32() + }; + break; + case /* fixed32 gte */ 5: + message.greater_than = { + oneofKind: "gte", + gte: reader.fixed32() + }; + break; + case /* repeated fixed32 in */ 6: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.in.push(reader.fixed32()); + else + message.in.push(reader.fixed32()); + break; + case /* repeated fixed32 not_in */ 7: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.not_in.push(reader.fixed32()); + else + message.not_in.push(reader.fixed32()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional fixed32 const = 1; */ + if (message.const !== undefined) + writer.tag(1, runtime_1.WireType.Bit32).fixed32(message.const); + /* fixed32 lt = 2; */ + if (message.less_than.oneofKind === "lt") + writer.tag(2, runtime_1.WireType.Bit32).fixed32(message.less_than.lt); + /* fixed32 lte = 3; */ + if (message.less_than.oneofKind === "lte") + writer.tag(3, runtime_1.WireType.Bit32).fixed32(message.less_than.lte); + /* fixed32 gt = 4; */ + if (message.greater_than.oneofKind === "gt") + writer.tag(4, runtime_1.WireType.Bit32).fixed32(message.greater_than.gt); + /* fixed32 gte = 5; */ + if (message.greater_than.oneofKind === "gte") + writer.tag(5, runtime_1.WireType.Bit32).fixed32(message.greater_than.gte); + /* repeated fixed32 in = 6; */ + if (message.in.length) { + writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.in.length; i++) + writer.fixed32(message.in[i]); + writer.join(); + } + /* repeated fixed32 not_in = 7; */ + if (message.not_in.length) { + writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.not_in.length; i++) + writer.fixed32(message.not_in[i]); + writer.join(); + } + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.Fixed32Rules + */ +exports.Fixed32Rules = new Fixed32Rules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Fixed64Rules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.Fixed64Rules", [ + { no: 1, name: "const", kind: "scalar", opt: true, T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed64.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, + { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed64.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, + { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed64.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, + { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed64.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "fixed64.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "fixed64.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "fixed64.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "fixed64.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, + { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed64.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "fixed64.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "fixed64.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "fixed64.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "fixed64.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, + { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed64.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, + { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed64.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.less_than = { oneofKind: undefined }; + message.greater_than = { oneofKind: undefined }; + message.in = []; + message.not_in = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional fixed64 const */ 1: + message.const = reader.fixed64().toBigInt(); + break; + case /* fixed64 lt */ 2: + message.less_than = { + oneofKind: "lt", + lt: reader.fixed64().toBigInt() + }; + break; + case /* fixed64 lte */ 3: + message.less_than = { + oneofKind: "lte", + lte: reader.fixed64().toBigInt() + }; + break; + case /* fixed64 gt */ 4: + message.greater_than = { + oneofKind: "gt", + gt: reader.fixed64().toBigInt() + }; + break; + case /* fixed64 gte */ 5: + message.greater_than = { + oneofKind: "gte", + gte: reader.fixed64().toBigInt() + }; + break; + case /* repeated fixed64 in */ 6: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.in.push(reader.fixed64().toBigInt()); + else + message.in.push(reader.fixed64().toBigInt()); + break; + case /* repeated fixed64 not_in */ 7: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.not_in.push(reader.fixed64().toBigInt()); + else + message.not_in.push(reader.fixed64().toBigInt()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional fixed64 const = 1; */ + if (message.const !== undefined) + writer.tag(1, runtime_1.WireType.Bit64).fixed64(message.const); + /* fixed64 lt = 2; */ + if (message.less_than.oneofKind === "lt") + writer.tag(2, runtime_1.WireType.Bit64).fixed64(message.less_than.lt); + /* fixed64 lte = 3; */ + if (message.less_than.oneofKind === "lte") + writer.tag(3, runtime_1.WireType.Bit64).fixed64(message.less_than.lte); + /* fixed64 gt = 4; */ + if (message.greater_than.oneofKind === "gt") + writer.tag(4, runtime_1.WireType.Bit64).fixed64(message.greater_than.gt); + /* fixed64 gte = 5; */ + if (message.greater_than.oneofKind === "gte") + writer.tag(5, runtime_1.WireType.Bit64).fixed64(message.greater_than.gte); + /* repeated fixed64 in = 6; */ + if (message.in.length) { + writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.in.length; i++) + writer.fixed64(message.in[i]); + writer.join(); + } + /* repeated fixed64 not_in = 7; */ + if (message.not_in.length) { + writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.not_in.length; i++) + writer.fixed64(message.not_in[i]); + writer.join(); + } + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.Fixed64Rules + */ +exports.Fixed64Rules = new Fixed64Rules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class SFixed32Rules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.SFixed32Rules", [ + { no: 1, name: "const", kind: "scalar", opt: true, T: 15 /*ScalarType.SFIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed32.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, + { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 15 /*ScalarType.SFIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed32.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, + { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 15 /*ScalarType.SFIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed32.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, + { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 15 /*ScalarType.SFIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed32.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "sfixed32.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "sfixed32.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "sfixed32.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "sfixed32.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, + { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 15 /*ScalarType.SFIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed32.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "sfixed32.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "sfixed32.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "sfixed32.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "sfixed32.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, + { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 15 /*ScalarType.SFIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed32.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, + { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 15 /*ScalarType.SFIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed32.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.less_than = { oneofKind: undefined }; + message.greater_than = { oneofKind: undefined }; + message.in = []; + message.not_in = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional sfixed32 const */ 1: + message.const = reader.sfixed32(); + break; + case /* sfixed32 lt */ 2: + message.less_than = { + oneofKind: "lt", + lt: reader.sfixed32() + }; + break; + case /* sfixed32 lte */ 3: + message.less_than = { + oneofKind: "lte", + lte: reader.sfixed32() + }; + break; + case /* sfixed32 gt */ 4: + message.greater_than = { + oneofKind: "gt", + gt: reader.sfixed32() + }; + break; + case /* sfixed32 gte */ 5: + message.greater_than = { + oneofKind: "gte", + gte: reader.sfixed32() + }; + break; + case /* repeated sfixed32 in */ 6: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.in.push(reader.sfixed32()); + else + message.in.push(reader.sfixed32()); + break; + case /* repeated sfixed32 not_in */ 7: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.not_in.push(reader.sfixed32()); + else + message.not_in.push(reader.sfixed32()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional sfixed32 const = 1; */ + if (message.const !== undefined) + writer.tag(1, runtime_1.WireType.Bit32).sfixed32(message.const); + /* sfixed32 lt = 2; */ + if (message.less_than.oneofKind === "lt") + writer.tag(2, runtime_1.WireType.Bit32).sfixed32(message.less_than.lt); + /* sfixed32 lte = 3; */ + if (message.less_than.oneofKind === "lte") + writer.tag(3, runtime_1.WireType.Bit32).sfixed32(message.less_than.lte); + /* sfixed32 gt = 4; */ + if (message.greater_than.oneofKind === "gt") + writer.tag(4, runtime_1.WireType.Bit32).sfixed32(message.greater_than.gt); + /* sfixed32 gte = 5; */ + if (message.greater_than.oneofKind === "gte") + writer.tag(5, runtime_1.WireType.Bit32).sfixed32(message.greater_than.gte); + /* repeated sfixed32 in = 6; */ + if (message.in.length) { + writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.in.length; i++) + writer.sfixed32(message.in[i]); + writer.join(); + } + /* repeated sfixed32 not_in = 7; */ + if (message.not_in.length) { + writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.not_in.length; i++) + writer.sfixed32(message.not_in[i]); + writer.join(); + } + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.SFixed32Rules + */ +exports.SFixed32Rules = new SFixed32Rules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class SFixed64Rules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.SFixed64Rules", [ + { no: 1, name: "const", kind: "scalar", opt: true, T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed64.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, + { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed64.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, + { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed64.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, + { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed64.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "sfixed64.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "sfixed64.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "sfixed64.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "sfixed64.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, + { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed64.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "sfixed64.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "sfixed64.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "sfixed64.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "sfixed64.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, + { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed64.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, + { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed64.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.less_than = { oneofKind: undefined }; + message.greater_than = { oneofKind: undefined }; + message.in = []; + message.not_in = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional sfixed64 const */ 1: + message.const = reader.sfixed64().toBigInt(); + break; + case /* sfixed64 lt */ 2: + message.less_than = { + oneofKind: "lt", + lt: reader.sfixed64().toBigInt() + }; + break; + case /* sfixed64 lte */ 3: + message.less_than = { + oneofKind: "lte", + lte: reader.sfixed64().toBigInt() + }; + break; + case /* sfixed64 gt */ 4: + message.greater_than = { + oneofKind: "gt", + gt: reader.sfixed64().toBigInt() + }; + break; + case /* sfixed64 gte */ 5: + message.greater_than = { + oneofKind: "gte", + gte: reader.sfixed64().toBigInt() + }; + break; + case /* repeated sfixed64 in */ 6: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.in.push(reader.sfixed64().toBigInt()); + else + message.in.push(reader.sfixed64().toBigInt()); + break; + case /* repeated sfixed64 not_in */ 7: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.not_in.push(reader.sfixed64().toBigInt()); + else + message.not_in.push(reader.sfixed64().toBigInt()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional sfixed64 const = 1; */ + if (message.const !== undefined) + writer.tag(1, runtime_1.WireType.Bit64).sfixed64(message.const); + /* sfixed64 lt = 2; */ + if (message.less_than.oneofKind === "lt") + writer.tag(2, runtime_1.WireType.Bit64).sfixed64(message.less_than.lt); + /* sfixed64 lte = 3; */ + if (message.less_than.oneofKind === "lte") + writer.tag(3, runtime_1.WireType.Bit64).sfixed64(message.less_than.lte); + /* sfixed64 gt = 4; */ + if (message.greater_than.oneofKind === "gt") + writer.tag(4, runtime_1.WireType.Bit64).sfixed64(message.greater_than.gt); + /* sfixed64 gte = 5; */ + if (message.greater_than.oneofKind === "gte") + writer.tag(5, runtime_1.WireType.Bit64).sfixed64(message.greater_than.gte); + /* repeated sfixed64 in = 6; */ + if (message.in.length) { + writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.in.length; i++) + writer.sfixed64(message.in[i]); + writer.join(); + } + /* repeated sfixed64 not_in = 7; */ + if (message.not_in.length) { + writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.not_in.length; i++) + writer.sfixed64(message.not_in[i]); + writer.join(); + } + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.SFixed64Rules + */ +exports.SFixed64Rules = new SFixed64Rules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class BoolRules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.BoolRules", [ + { no: 1, name: "const", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "bool.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional bool const */ 1: + message.const = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional bool const = 1; */ + if (message.const !== undefined) + writer.tag(1, runtime_1.WireType.Varint).bool(message.const); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.BoolRules + */ +exports.BoolRules = new BoolRules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class StringRules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.StringRules", [ + { no: 1, name: "const", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.const", expression: "this != rules.const ? 'value must equal `%s`'.format([rules.const]) : ''" }] } } }, + { no: 19, name: "len", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.len", expression: "uint(this.size()) != rules.len ? 'value length must be %s characters'.format([rules.len]) : ''" }] } } }, + { no: 2, name: "min_len", kind: "scalar", localName: "min_len", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.min_len", expression: "uint(this.size()) < rules.min_len ? 'value length must be at least %s characters'.format([rules.min_len]) : ''" }] } } }, + { no: 3, name: "max_len", kind: "scalar", localName: "max_len", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.max_len", expression: "uint(this.size()) > rules.max_len ? 'value length must be at most %s characters'.format([rules.max_len]) : ''" }] } } }, + { no: 20, name: "len_bytes", kind: "scalar", localName: "len_bytes", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.len_bytes", expression: "uint(bytes(this).size()) != rules.len_bytes ? 'value length must be %s bytes'.format([rules.len_bytes]) : ''" }] } } }, + { no: 4, name: "min_bytes", kind: "scalar", localName: "min_bytes", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.min_bytes", expression: "uint(bytes(this).size()) < rules.min_bytes ? 'value length must be at least %s bytes'.format([rules.min_bytes]) : ''" }] } } }, + { no: 5, name: "max_bytes", kind: "scalar", localName: "max_bytes", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.max_bytes", expression: "uint(bytes(this).size()) > rules.max_bytes ? 'value length must be at most %s bytes'.format([rules.max_bytes]) : ''" }] } } }, + { no: 6, name: "pattern", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.pattern", expression: "!this.matches(rules.pattern) ? 'value does not match regex pattern `%s`'.format([rules.pattern]) : ''" }] } } }, + { no: 7, name: "prefix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.prefix", expression: "!this.startsWith(rules.prefix) ? 'value does not have prefix `%s`'.format([rules.prefix]) : ''" }] } } }, + { no: 8, name: "suffix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.suffix", expression: "!this.endsWith(rules.suffix) ? 'value does not have suffix `%s`'.format([rules.suffix]) : ''" }] } } }, + { no: 9, name: "contains", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.contains", expression: "!this.contains(rules.contains) ? 'value does not contain substring `%s`'.format([rules.contains]) : ''" }] } } }, + { no: 23, name: "not_contains", kind: "scalar", localName: "not_contains", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.not_contains", expression: "this.contains(rules.not_contains) ? 'value contains substring `%s`'.format([rules.not_contains]) : ''" }] } } }, + { no: 10, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, + { no: 11, name: "not_in", kind: "scalar", localName: "not_in", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } }, + { no: 12, name: "email", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.email", message: "value must be a valid email address", expression: "this.isEmail()" }] } } }, + { no: 13, name: "hostname", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.hostname", message: "value must be a valid hostname", expression: "this.isHostname()" }] } } }, + { no: 14, name: "ip", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.ip", message: "value must be a valid IP address", expression: "this.isIp()" }] } } }, + { no: 15, name: "ipv4", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.ipv4", message: "value must be a valid IPv4 address", expression: "this.isIp(4)" }] } } }, + { no: 16, name: "ipv6", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.ipv6", message: "value must be a valid IPv6 address", expression: "this.isIp(6)" }] } } }, + { no: 17, name: "uri", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.uri", message: "value must be a valid URI", expression: "this.isUri()" }] } } }, + { no: 18, name: "uri_ref", kind: "scalar", localName: "uri_ref", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.uri_ref", message: "value must be a valid URI", expression: "this.isUriRef()" }] } } }, + { no: 21, name: "address", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.address", message: "value must be a valid hostname, or ip address", expression: "this.isHostname() || this.isIp()" }] } } }, + { no: 22, name: "uuid", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.uuid", expression: "!this.matches('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$') ? 'value must be a valid UUID' : ''" }] } } }, + { no: 26, name: "ip_with_prefixlen", kind: "scalar", localName: "ip_with_prefixlen", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.ip_with_prefixlen", message: "value must be a valid IP prefix", expression: "this.isIpPrefix()" }] } } }, + { no: 27, name: "ipv4_with_prefixlen", kind: "scalar", localName: "ipv4_with_prefixlen", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.ipv4_with_prefixlen", message: "value must be a valid IPv4 address with prefix length", expression: "this.isIpPrefix(4)" }] } } }, + { no: 28, name: "ipv6_with_prefixlen", kind: "scalar", localName: "ipv6_with_prefixlen", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.ipv6_with_prefixlen", message: "value must be a valid IPv6 address with prefix length", expression: "this.isIpPrefix(6)" }] } } }, + { no: 29, name: "ip_prefix", kind: "scalar", localName: "ip_prefix", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.ip_prefix", message: "value must be a valid IP prefix", expression: "this.isIpPrefix(true)" }] } } }, + { no: 30, name: "ipv4_prefix", kind: "scalar", localName: "ipv4_prefix", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.ipv4_prefix", message: "value must be a valid IPv4 prefix", expression: "this.isIpPrefix(4, true)" }] } } }, + { no: 31, name: "ipv6_prefix", kind: "scalar", localName: "ipv6_prefix", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.ipv6_prefix", message: "value must be a valid IPv6 prefix", expression: "this.isIpPrefix(6, true)" }] } } }, + { no: 24, name: "well_known_regex", kind: "enum", localName: "well_known_regex", oneof: "well_known", T: () => ["buf.validate.KnownRegex", KnownRegex], options: { "buf.validate.priv.field": { cel: [{ id: "string.well_known_regex.header_name", expression: "rules.well_known_regex == 1 && !this.matches(!has(rules.strict) || rules.strict ?'^:?[0-9a-zA-Z!#$%&\\'*+-.^_|~\\x60]+$' :'^[^\\u0000\\u000A\\u000D]+$') ? 'value must be a valid HTTP header name' : ''" }, { id: "string.well_known_regex.header_value", expression: "rules.well_known_regex == 2 && !this.matches(!has(rules.strict) || rules.strict ?'^[^\\u0000-\\u0008\\u000A-\\u001F\\u007F]*$' :'^[^\\u0000\\u000A\\u000D]*$') ? 'value must be a valid HTTP header value' : ''" }] } } }, + { no: 25, name: "strict", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.in = []; + message.not_in = []; + message.well_known = { oneofKind: undefined }; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional string const */ 1: + message.const = reader.string(); + break; + case /* optional uint64 len */ 19: + message.len = reader.uint64().toBigInt(); + break; + case /* optional uint64 min_len */ 2: + message.min_len = reader.uint64().toBigInt(); + break; + case /* optional uint64 max_len */ 3: + message.max_len = reader.uint64().toBigInt(); + break; + case /* optional uint64 len_bytes */ 20: + message.len_bytes = reader.uint64().toBigInt(); + break; + case /* optional uint64 min_bytes */ 4: + message.min_bytes = reader.uint64().toBigInt(); + break; + case /* optional uint64 max_bytes */ 5: + message.max_bytes = reader.uint64().toBigInt(); + break; + case /* optional string pattern */ 6: + message.pattern = reader.string(); + break; + case /* optional string prefix */ 7: + message.prefix = reader.string(); + break; + case /* optional string suffix */ 8: + message.suffix = reader.string(); + break; + case /* optional string contains */ 9: + message.contains = reader.string(); + break; + case /* optional string not_contains */ 23: + message.not_contains = reader.string(); + break; + case /* repeated string in */ 10: + message.in.push(reader.string()); + break; + case /* repeated string not_in */ 11: + message.not_in.push(reader.string()); + break; + case /* bool email */ 12: + message.well_known = { + oneofKind: "email", + email: reader.bool() + }; + break; + case /* bool hostname */ 13: + message.well_known = { + oneofKind: "hostname", + hostname: reader.bool() + }; + break; + case /* bool ip */ 14: + message.well_known = { + oneofKind: "ip", + ip: reader.bool() + }; + break; + case /* bool ipv4 */ 15: + message.well_known = { + oneofKind: "ipv4", + ipv4: reader.bool() + }; + break; + case /* bool ipv6 */ 16: + message.well_known = { + oneofKind: "ipv6", + ipv6: reader.bool() + }; + break; + case /* bool uri */ 17: + message.well_known = { + oneofKind: "uri", + uri: reader.bool() + }; + break; + case /* bool uri_ref */ 18: + message.well_known = { + oneofKind: "uri_ref", + uri_ref: reader.bool() + }; + break; + case /* bool address */ 21: + message.well_known = { + oneofKind: "address", + address: reader.bool() + }; + break; + case /* bool uuid */ 22: + message.well_known = { + oneofKind: "uuid", + uuid: reader.bool() + }; + break; + case /* bool ip_with_prefixlen */ 26: + message.well_known = { + oneofKind: "ip_with_prefixlen", + ip_with_prefixlen: reader.bool() + }; + break; + case /* bool ipv4_with_prefixlen */ 27: + message.well_known = { + oneofKind: "ipv4_with_prefixlen", + ipv4_with_prefixlen: reader.bool() + }; + break; + case /* bool ipv6_with_prefixlen */ 28: + message.well_known = { + oneofKind: "ipv6_with_prefixlen", + ipv6_with_prefixlen: reader.bool() + }; + break; + case /* bool ip_prefix */ 29: + message.well_known = { + oneofKind: "ip_prefix", + ip_prefix: reader.bool() + }; + break; + case /* bool ipv4_prefix */ 30: + message.well_known = { + oneofKind: "ipv4_prefix", + ipv4_prefix: reader.bool() + }; + break; + case /* bool ipv6_prefix */ 31: + message.well_known = { + oneofKind: "ipv6_prefix", + ipv6_prefix: reader.bool() + }; + break; + case /* buf.validate.KnownRegex well_known_regex */ 24: + message.well_known = { + oneofKind: "well_known_regex", + well_known_regex: reader.int32() + }; + break; + case /* optional bool strict */ 25: + message.strict = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional string const = 1; */ + if (message.const !== undefined) + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.const); + /* optional uint64 len = 19; */ + if (message.len !== undefined) + writer.tag(19, runtime_1.WireType.Varint).uint64(message.len); + /* optional uint64 min_len = 2; */ + if (message.min_len !== undefined) + writer.tag(2, runtime_1.WireType.Varint).uint64(message.min_len); + /* optional uint64 max_len = 3; */ + if (message.max_len !== undefined) + writer.tag(3, runtime_1.WireType.Varint).uint64(message.max_len); + /* optional uint64 len_bytes = 20; */ + if (message.len_bytes !== undefined) + writer.tag(20, runtime_1.WireType.Varint).uint64(message.len_bytes); + /* optional uint64 min_bytes = 4; */ + if (message.min_bytes !== undefined) + writer.tag(4, runtime_1.WireType.Varint).uint64(message.min_bytes); + /* optional uint64 max_bytes = 5; */ + if (message.max_bytes !== undefined) + writer.tag(5, runtime_1.WireType.Varint).uint64(message.max_bytes); + /* optional string pattern = 6; */ + if (message.pattern !== undefined) + writer.tag(6, runtime_1.WireType.LengthDelimited).string(message.pattern); + /* optional string prefix = 7; */ + if (message.prefix !== undefined) + writer.tag(7, runtime_1.WireType.LengthDelimited).string(message.prefix); + /* optional string suffix = 8; */ + if (message.suffix !== undefined) + writer.tag(8, runtime_1.WireType.LengthDelimited).string(message.suffix); + /* optional string contains = 9; */ + if (message.contains !== undefined) + writer.tag(9, runtime_1.WireType.LengthDelimited).string(message.contains); + /* optional string not_contains = 23; */ + if (message.not_contains !== undefined) + writer.tag(23, runtime_1.WireType.LengthDelimited).string(message.not_contains); + /* repeated string in = 10; */ + for (let i = 0; i < message.in.length; i++) + writer.tag(10, runtime_1.WireType.LengthDelimited).string(message.in[i]); + /* repeated string not_in = 11; */ + for (let i = 0; i < message.not_in.length; i++) + writer.tag(11, runtime_1.WireType.LengthDelimited).string(message.not_in[i]); + /* bool email = 12; */ + if (message.well_known.oneofKind === "email") + writer.tag(12, runtime_1.WireType.Varint).bool(message.well_known.email); + /* bool hostname = 13; */ + if (message.well_known.oneofKind === "hostname") + writer.tag(13, runtime_1.WireType.Varint).bool(message.well_known.hostname); + /* bool ip = 14; */ + if (message.well_known.oneofKind === "ip") + writer.tag(14, runtime_1.WireType.Varint).bool(message.well_known.ip); + /* bool ipv4 = 15; */ + if (message.well_known.oneofKind === "ipv4") + writer.tag(15, runtime_1.WireType.Varint).bool(message.well_known.ipv4); + /* bool ipv6 = 16; */ + if (message.well_known.oneofKind === "ipv6") + writer.tag(16, runtime_1.WireType.Varint).bool(message.well_known.ipv6); + /* bool uri = 17; */ + if (message.well_known.oneofKind === "uri") + writer.tag(17, runtime_1.WireType.Varint).bool(message.well_known.uri); + /* bool uri_ref = 18; */ + if (message.well_known.oneofKind === "uri_ref") + writer.tag(18, runtime_1.WireType.Varint).bool(message.well_known.uri_ref); + /* bool address = 21; */ + if (message.well_known.oneofKind === "address") + writer.tag(21, runtime_1.WireType.Varint).bool(message.well_known.address); + /* bool uuid = 22; */ + if (message.well_known.oneofKind === "uuid") + writer.tag(22, runtime_1.WireType.Varint).bool(message.well_known.uuid); + /* bool ip_with_prefixlen = 26; */ + if (message.well_known.oneofKind === "ip_with_prefixlen") + writer.tag(26, runtime_1.WireType.Varint).bool(message.well_known.ip_with_prefixlen); + /* bool ipv4_with_prefixlen = 27; */ + if (message.well_known.oneofKind === "ipv4_with_prefixlen") + writer.tag(27, runtime_1.WireType.Varint).bool(message.well_known.ipv4_with_prefixlen); + /* bool ipv6_with_prefixlen = 28; */ + if (message.well_known.oneofKind === "ipv6_with_prefixlen") + writer.tag(28, runtime_1.WireType.Varint).bool(message.well_known.ipv6_with_prefixlen); + /* bool ip_prefix = 29; */ + if (message.well_known.oneofKind === "ip_prefix") + writer.tag(29, runtime_1.WireType.Varint).bool(message.well_known.ip_prefix); + /* bool ipv4_prefix = 30; */ + if (message.well_known.oneofKind === "ipv4_prefix") + writer.tag(30, runtime_1.WireType.Varint).bool(message.well_known.ipv4_prefix); + /* bool ipv6_prefix = 31; */ + if (message.well_known.oneofKind === "ipv6_prefix") + writer.tag(31, runtime_1.WireType.Varint).bool(message.well_known.ipv6_prefix); + /* buf.validate.KnownRegex well_known_regex = 24; */ + if (message.well_known.oneofKind === "well_known_regex") + writer.tag(24, runtime_1.WireType.Varint).int32(message.well_known.well_known_regex); + /* optional bool strict = 25; */ + if (message.strict !== undefined) + writer.tag(25, runtime_1.WireType.Varint).bool(message.strict); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.StringRules + */ +exports.StringRules = new StringRules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class BytesRules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.BytesRules", [ + { no: 1, name: "const", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.const", expression: "this != rules.const ? 'value must be %x'.format([rules.const]) : ''" }] } } }, + { no: 13, name: "len", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.len", expression: "uint(this.size()) != rules.len ? 'value length must be %s bytes'.format([rules.len]) : ''" }] } } }, + { no: 2, name: "min_len", kind: "scalar", localName: "min_len", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.min_len", expression: "uint(this.size()) < rules.min_len ? 'value length must be at least %s bytes'.format([rules.min_len]) : ''" }] } } }, + { no: 3, name: "max_len", kind: "scalar", localName: "max_len", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.max_len", expression: "uint(this.size()) > rules.max_len ? 'value must be at most %s bytes'.format([rules.max_len]) : ''" }] } } }, + { no: 4, name: "pattern", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.pattern", expression: "!string(this).matches(rules.pattern) ? 'value must match regex pattern `%s`'.format([rules.pattern]) : ''" }] } } }, + { no: 5, name: "prefix", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.prefix", expression: "!this.startsWith(rules.prefix) ? 'value does not have prefix %x'.format([rules.prefix]) : ''" }] } } }, + { no: 6, name: "suffix", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.suffix", expression: "!this.endsWith(rules.suffix) ? 'value does not have suffix %x'.format([rules.suffix]) : ''" }] } } }, + { no: 7, name: "contains", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.contains", expression: "!this.contains(rules.contains) ? 'value does not contain %x'.format([rules.contains]) : ''" }] } } }, + { no: 8, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.in", expression: "dyn(rules)['in'].size() > 0 && !(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, + { no: 9, name: "not_in", kind: "scalar", localName: "not_in", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } }, + { no: 10, name: "ip", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.ip", expression: "this.size() != 4 && this.size() != 16 ? 'value must be a valid IP address' : ''" }] } } }, + { no: 11, name: "ipv4", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.ipv4", expression: "this.size() != 4 ? 'value must be a valid IPv4 address' : ''" }] } } }, + { no: 12, name: "ipv6", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.ipv6", expression: "this.size() != 16 ? 'value must be a valid IPv6 address' : ''" }] } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.in = []; + message.not_in = []; + message.well_known = { oneofKind: undefined }; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional bytes const */ 1: + message.const = reader.bytes(); + break; + case /* optional uint64 len */ 13: + message.len = reader.uint64().toBigInt(); + break; + case /* optional uint64 min_len */ 2: + message.min_len = reader.uint64().toBigInt(); + break; + case /* optional uint64 max_len */ 3: + message.max_len = reader.uint64().toBigInt(); + break; + case /* optional string pattern */ 4: + message.pattern = reader.string(); + break; + case /* optional bytes prefix */ 5: + message.prefix = reader.bytes(); + break; + case /* optional bytes suffix */ 6: + message.suffix = reader.bytes(); + break; + case /* optional bytes contains */ 7: + message.contains = reader.bytes(); + break; + case /* repeated bytes in */ 8: + message.in.push(reader.bytes()); + break; + case /* repeated bytes not_in */ 9: + message.not_in.push(reader.bytes()); + break; + case /* bool ip */ 10: + message.well_known = { + oneofKind: "ip", + ip: reader.bool() + }; + break; + case /* bool ipv4 */ 11: + message.well_known = { + oneofKind: "ipv4", + ipv4: reader.bool() + }; + break; + case /* bool ipv6 */ 12: + message.well_known = { + oneofKind: "ipv6", + ipv6: reader.bool() + }; + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional bytes const = 1; */ + if (message.const !== undefined) + writer.tag(1, runtime_1.WireType.LengthDelimited).bytes(message.const); + /* optional uint64 len = 13; */ + if (message.len !== undefined) + writer.tag(13, runtime_1.WireType.Varint).uint64(message.len); + /* optional uint64 min_len = 2; */ + if (message.min_len !== undefined) + writer.tag(2, runtime_1.WireType.Varint).uint64(message.min_len); + /* optional uint64 max_len = 3; */ + if (message.max_len !== undefined) + writer.tag(3, runtime_1.WireType.Varint).uint64(message.max_len); + /* optional string pattern = 4; */ + if (message.pattern !== undefined) + writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.pattern); + /* optional bytes prefix = 5; */ + if (message.prefix !== undefined) + writer.tag(5, runtime_1.WireType.LengthDelimited).bytes(message.prefix); + /* optional bytes suffix = 6; */ + if (message.suffix !== undefined) + writer.tag(6, runtime_1.WireType.LengthDelimited).bytes(message.suffix); + /* optional bytes contains = 7; */ + if (message.contains !== undefined) + writer.tag(7, runtime_1.WireType.LengthDelimited).bytes(message.contains); + /* repeated bytes in = 8; */ + for (let i = 0; i < message.in.length; i++) + writer.tag(8, runtime_1.WireType.LengthDelimited).bytes(message.in[i]); + /* repeated bytes not_in = 9; */ + for (let i = 0; i < message.not_in.length; i++) + writer.tag(9, runtime_1.WireType.LengthDelimited).bytes(message.not_in[i]); + /* bool ip = 10; */ + if (message.well_known.oneofKind === "ip") + writer.tag(10, runtime_1.WireType.Varint).bool(message.well_known.ip); + /* bool ipv4 = 11; */ + if (message.well_known.oneofKind === "ipv4") + writer.tag(11, runtime_1.WireType.Varint).bool(message.well_known.ipv4); + /* bool ipv6 = 12; */ + if (message.well_known.oneofKind === "ipv6") + writer.tag(12, runtime_1.WireType.Varint).bool(message.well_known.ipv6); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.BytesRules + */ +exports.BytesRules = new BytesRules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class EnumRules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.EnumRules", [ + { no: 1, name: "const", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "enum.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, + { no: 2, name: "defined_only", kind: "scalar", localName: "defined_only", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 3, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "enum.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, + { no: 4, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "enum.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.in = []; + message.not_in = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional int32 const */ 1: + message.const = reader.int32(); + break; + case /* optional bool defined_only */ 2: + message.defined_only = reader.bool(); + break; + case /* repeated int32 in */ 3: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.in.push(reader.int32()); + else + message.in.push(reader.int32()); + break; + case /* repeated int32 not_in */ 4: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.not_in.push(reader.int32()); + else + message.not_in.push(reader.int32()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional int32 const = 1; */ + if (message.const !== undefined) + writer.tag(1, runtime_1.WireType.Varint).int32(message.const); + /* optional bool defined_only = 2; */ + if (message.defined_only !== undefined) + writer.tag(2, runtime_1.WireType.Varint).bool(message.defined_only); + /* repeated int32 in = 3; */ + if (message.in.length) { + writer.tag(3, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.in.length; i++) + writer.int32(message.in[i]); + writer.join(); + } + /* repeated int32 not_in = 4; */ + if (message.not_in.length) { + writer.tag(4, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.not_in.length; i++) + writer.int32(message.not_in[i]); + writer.join(); + } + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.EnumRules + */ +exports.EnumRules = new EnumRules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class RepeatedRules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.RepeatedRules", [ + { no: 1, name: "min_items", kind: "scalar", localName: "min_items", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "repeated.min_items", expression: "uint(this.size()) < rules.min_items ? 'value must contain at least %d item(s)'.format([rules.min_items]) : ''" }] } } }, + { no: 2, name: "max_items", kind: "scalar", localName: "max_items", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "repeated.max_items", expression: "uint(this.size()) > rules.max_items ? 'value must contain no more than %s item(s)'.format([rules.max_items]) : ''" }] } } }, + { no: 3, name: "unique", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "repeated.unique", message: "repeated value must contain unique items", expression: "this.unique()" }] } } }, + { no: 4, name: "items", kind: "message", T: () => exports.FieldConstraints } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional uint64 min_items */ 1: + message.min_items = reader.uint64().toBigInt(); + break; + case /* optional uint64 max_items */ 2: + message.max_items = reader.uint64().toBigInt(); + break; + case /* optional bool unique */ 3: + message.unique = reader.bool(); + break; + case /* optional buf.validate.FieldConstraints items */ 4: + message.items = exports.FieldConstraints.internalBinaryRead(reader, reader.uint32(), options, message.items); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional uint64 min_items = 1; */ + if (message.min_items !== undefined) + writer.tag(1, runtime_1.WireType.Varint).uint64(message.min_items); + /* optional uint64 max_items = 2; */ + if (message.max_items !== undefined) + writer.tag(2, runtime_1.WireType.Varint).uint64(message.max_items); + /* optional bool unique = 3; */ + if (message.unique !== undefined) + writer.tag(3, runtime_1.WireType.Varint).bool(message.unique); + /* optional buf.validate.FieldConstraints items = 4; */ + if (message.items) + exports.FieldConstraints.internalBinaryWrite(message.items, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.RepeatedRules + */ +exports.RepeatedRules = new RepeatedRules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class MapRules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.MapRules", [ + { no: 1, name: "min_pairs", kind: "scalar", localName: "min_pairs", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "map.min_pairs", expression: "uint(this.size()) < rules.min_pairs ? 'map must be at least %d entries'.format([rules.min_pairs]) : ''" }] } } }, + { no: 2, name: "max_pairs", kind: "scalar", localName: "max_pairs", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "map.max_pairs", expression: "uint(this.size()) > rules.max_pairs ? 'map must be at most %d entries'.format([rules.max_pairs]) : ''" }] } } }, + { no: 4, name: "keys", kind: "message", T: () => exports.FieldConstraints }, + { no: 5, name: "values", kind: "message", T: () => exports.FieldConstraints } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional uint64 min_pairs */ 1: + message.min_pairs = reader.uint64().toBigInt(); + break; + case /* optional uint64 max_pairs */ 2: + message.max_pairs = reader.uint64().toBigInt(); + break; + case /* optional buf.validate.FieldConstraints keys */ 4: + message.keys = exports.FieldConstraints.internalBinaryRead(reader, reader.uint32(), options, message.keys); + break; + case /* optional buf.validate.FieldConstraints values */ 5: + message.values = exports.FieldConstraints.internalBinaryRead(reader, reader.uint32(), options, message.values); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional uint64 min_pairs = 1; */ + if (message.min_pairs !== undefined) + writer.tag(1, runtime_1.WireType.Varint).uint64(message.min_pairs); + /* optional uint64 max_pairs = 2; */ + if (message.max_pairs !== undefined) + writer.tag(2, runtime_1.WireType.Varint).uint64(message.max_pairs); + /* optional buf.validate.FieldConstraints keys = 4; */ + if (message.keys) + exports.FieldConstraints.internalBinaryWrite(message.keys, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* optional buf.validate.FieldConstraints values = 5; */ + if (message.values) + exports.FieldConstraints.internalBinaryWrite(message.values, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.MapRules + */ +exports.MapRules = new MapRules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class AnyRules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.AnyRules", [ + { no: 2, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "not_in", kind: "scalar", localName: "not_in", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.in = []; + message.not_in = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated string in */ 2: + message.in.push(reader.string()); + break; + case /* repeated string not_in */ 3: + message.not_in.push(reader.string()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated string in = 2; */ + for (let i = 0; i < message.in.length; i++) + writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.in[i]); + /* repeated string not_in = 3; */ + for (let i = 0; i < message.not_in.length; i++) + writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.not_in[i]); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.AnyRules + */ +exports.AnyRules = new AnyRules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class DurationRules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.DurationRules", [ + { no: 2, name: "const", kind: "message", T: () => duration_pb_1.Duration, options: { "buf.validate.priv.field": { cel: [{ id: "duration.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, + { no: 3, name: "lt", kind: "message", oneof: "less_than", T: () => duration_pb_1.Duration, options: { "buf.validate.priv.field": { cel: [{ id: "duration.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, + { no: 4, name: "lte", kind: "message", oneof: "less_than", T: () => duration_pb_1.Duration, options: { "buf.validate.priv.field": { cel: [{ id: "duration.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, + { no: 5, name: "gt", kind: "message", oneof: "greater_than", T: () => duration_pb_1.Duration, options: { "buf.validate.priv.field": { cel: [{ id: "duration.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "duration.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "duration.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "duration.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "duration.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, + { no: 6, name: "gte", kind: "message", oneof: "greater_than", T: () => duration_pb_1.Duration, options: { "buf.validate.priv.field": { cel: [{ id: "duration.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "duration.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "duration.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "duration.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "duration.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, + { no: 7, name: "in", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => duration_pb_1.Duration, options: { "buf.validate.priv.field": { cel: [{ id: "duration.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, + { no: 8, name: "not_in", kind: "message", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: () => duration_pb_1.Duration, options: { "buf.validate.priv.field": { cel: [{ id: "duration.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.less_than = { oneofKind: undefined }; + message.greater_than = { oneofKind: undefined }; + message.in = []; + message.not_in = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional google.protobuf.Duration const */ 2: + message.const = duration_pb_1.Duration.internalBinaryRead(reader, reader.uint32(), options, message.const); + break; + case /* google.protobuf.Duration lt */ 3: + message.less_than = { + oneofKind: "lt", + lt: duration_pb_1.Duration.internalBinaryRead(reader, reader.uint32(), options, message.less_than.lt) + }; + break; + case /* google.protobuf.Duration lte */ 4: + message.less_than = { + oneofKind: "lte", + lte: duration_pb_1.Duration.internalBinaryRead(reader, reader.uint32(), options, message.less_than.lte) + }; + break; + case /* google.protobuf.Duration gt */ 5: + message.greater_than = { + oneofKind: "gt", + gt: duration_pb_1.Duration.internalBinaryRead(reader, reader.uint32(), options, message.greater_than.gt) + }; + break; + case /* google.protobuf.Duration gte */ 6: + message.greater_than = { + oneofKind: "gte", + gte: duration_pb_1.Duration.internalBinaryRead(reader, reader.uint32(), options, message.greater_than.gte) + }; + break; + case /* repeated google.protobuf.Duration in */ 7: + message.in.push(duration_pb_1.Duration.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* repeated google.protobuf.Duration not_in */ 8: + message.not_in.push(duration_pb_1.Duration.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional google.protobuf.Duration const = 2; */ + if (message.const) + duration_pb_1.Duration.internalBinaryWrite(message.const, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* google.protobuf.Duration lt = 3; */ + if (message.less_than.oneofKind === "lt") + duration_pb_1.Duration.internalBinaryWrite(message.less_than.lt, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* google.protobuf.Duration lte = 4; */ + if (message.less_than.oneofKind === "lte") + duration_pb_1.Duration.internalBinaryWrite(message.less_than.lte, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* google.protobuf.Duration gt = 5; */ + if (message.greater_than.oneofKind === "gt") + duration_pb_1.Duration.internalBinaryWrite(message.greater_than.gt, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* google.protobuf.Duration gte = 6; */ + if (message.greater_than.oneofKind === "gte") + duration_pb_1.Duration.internalBinaryWrite(message.greater_than.gte, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.Duration in = 7; */ + for (let i = 0; i < message.in.length; i++) + duration_pb_1.Duration.internalBinaryWrite(message.in[i], writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.Duration not_in = 8; */ + for (let i = 0; i < message.not_in.length; i++) + duration_pb_1.Duration.internalBinaryWrite(message.not_in[i], writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.DurationRules + */ +exports.DurationRules = new DurationRules$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class TimestampRules$Type extends runtime_4.MessageType { + constructor() { + super("buf.validate.TimestampRules", [ + { no: 2, name: "const", kind: "message", T: () => timestamp_pb_1.Timestamp, options: { "buf.validate.priv.field": { cel: [{ id: "timestamp.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, + { no: 3, name: "lt", kind: "message", oneof: "less_than", T: () => timestamp_pb_1.Timestamp, options: { "buf.validate.priv.field": { cel: [{ id: "timestamp.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, + { no: 4, name: "lte", kind: "message", oneof: "less_than", T: () => timestamp_pb_1.Timestamp, options: { "buf.validate.priv.field": { cel: [{ id: "timestamp.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, + { no: 7, name: "lt_now", kind: "scalar", localName: "lt_now", oneof: "less_than", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "timestamp.lt_now", expression: "this > now ? 'value must be less than now' : ''" }] } } }, + { no: 5, name: "gt", kind: "message", oneof: "greater_than", T: () => timestamp_pb_1.Timestamp, options: { "buf.validate.priv.field": { cel: [{ id: "timestamp.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "timestamp.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "timestamp.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "timestamp.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "timestamp.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, + { no: 6, name: "gte", kind: "message", oneof: "greater_than", T: () => timestamp_pb_1.Timestamp, options: { "buf.validate.priv.field": { cel: [{ id: "timestamp.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "timestamp.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "timestamp.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "timestamp.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "timestamp.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, + { no: 8, name: "gt_now", kind: "scalar", localName: "gt_now", oneof: "greater_than", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "timestamp.gt_now", expression: "this < now ? 'value must be greater than now' : ''" }] } } }, + { no: 9, name: "within", kind: "message", T: () => duration_pb_1.Duration, options: { "buf.validate.priv.field": { cel: [{ id: "timestamp.within", expression: "this < now-rules.within || this > now+rules.within ? 'value must be within %s of now'.format([rules.within]) : ''" }] } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.less_than = { oneofKind: undefined }; + message.greater_than = { oneofKind: undefined }; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional google.protobuf.Timestamp const */ 2: + message.const = timestamp_pb_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.const); + break; + case /* google.protobuf.Timestamp lt */ 3: + message.less_than = { + oneofKind: "lt", + lt: timestamp_pb_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.less_than.lt) + }; + break; + case /* google.protobuf.Timestamp lte */ 4: + message.less_than = { + oneofKind: "lte", + lte: timestamp_pb_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.less_than.lte) + }; + break; + case /* bool lt_now */ 7: + message.less_than = { + oneofKind: "lt_now", + lt_now: reader.bool() + }; + break; + case /* google.protobuf.Timestamp gt */ 5: + message.greater_than = { + oneofKind: "gt", + gt: timestamp_pb_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.greater_than.gt) + }; + break; + case /* google.protobuf.Timestamp gte */ 6: + message.greater_than = { + oneofKind: "gte", + gte: timestamp_pb_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.greater_than.gte) + }; + break; + case /* bool gt_now */ 8: + message.greater_than = { + oneofKind: "gt_now", + gt_now: reader.bool() + }; + break; + case /* optional google.protobuf.Duration within */ 9: + message.within = duration_pb_1.Duration.internalBinaryRead(reader, reader.uint32(), options, message.within); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional google.protobuf.Timestamp const = 2; */ + if (message.const) + timestamp_pb_1.Timestamp.internalBinaryWrite(message.const, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* google.protobuf.Timestamp lt = 3; */ + if (message.less_than.oneofKind === "lt") + timestamp_pb_1.Timestamp.internalBinaryWrite(message.less_than.lt, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* google.protobuf.Timestamp lte = 4; */ + if (message.less_than.oneofKind === "lte") + timestamp_pb_1.Timestamp.internalBinaryWrite(message.less_than.lte, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* bool lt_now = 7; */ + if (message.less_than.oneofKind === "lt_now") + writer.tag(7, runtime_1.WireType.Varint).bool(message.less_than.lt_now); + /* google.protobuf.Timestamp gt = 5; */ + if (message.greater_than.oneofKind === "gt") + timestamp_pb_1.Timestamp.internalBinaryWrite(message.greater_than.gt, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* google.protobuf.Timestamp gte = 6; */ + if (message.greater_than.oneofKind === "gte") + timestamp_pb_1.Timestamp.internalBinaryWrite(message.greater_than.gte, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* bool gt_now = 8; */ + if (message.greater_than.oneofKind === "gt_now") + writer.tag(8, runtime_1.WireType.Varint).bool(message.greater_than.gt_now); + /* optional google.protobuf.Duration within = 9; */ + if (message.within) + duration_pb_1.Duration.internalBinaryWrite(message.within, writer.tag(9, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message buf.validate.TimestampRules + */ +exports.TimestampRules = new TimestampRules$Type(); diff --git a/src/google/api/http_pb.d.ts b/src/google/api/http_pb.d.ts new file mode 100644 index 00000000..5b562e3b --- /dev/null +++ b/src/google/api/http_pb.d.ts @@ -0,0 +1,479 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "google/api/http.proto" (package "google.api", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { IBinaryWriter } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { IBinaryReader } from "@protobuf-ts/runtime"; +import type { PartialMessage } from "@protobuf-ts/runtime"; +import { MessageType } from "@protobuf-ts/runtime"; +/** + * Defines the HTTP configuration for an API service. It contains a list of + * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method + * to one or more HTTP REST API methods. + * + * @generated from protobuf message google.api.Http + */ +export interface Http { + /** + * A list of HTTP configuration rules that apply to individual API methods. + * + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * @generated from protobuf field: repeated google.api.HttpRule rules = 1; + */ + rules: HttpRule[]; + /** + * When set to true, URL path parameters will be fully URI-decoded except in + * cases of single segment matches in reserved expansion, where "%2F" will be + * left encoded. + * + * The default behavior is to not decode RFC 6570 reserved characters in multi + * segment matches. + * + * @generated from protobuf field: bool fully_decode_reserved_expansion = 2; + */ + fully_decode_reserved_expansion: boolean; +} +/** + * # gRPC Transcoding + * + * gRPC Transcoding is a feature for mapping between a gRPC method and one or + * more HTTP REST endpoints. It allows developers to build a single API service + * that supports both gRPC APIs and REST APIs. Many systems, including [Google + * APIs](https://github.com/googleapis/googleapis), + * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC + * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), + * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature + * and use it for large scale production services. + * + * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies + * how different portions of the gRPC request message are mapped to the URL + * path, URL query parameters, and HTTP request body. It also controls how the + * gRPC response message is mapped to the HTTP response body. `HttpRule` is + * typically specified as an `google.api.http` annotation on the gRPC method. + * + * Each mapping specifies a URL path template and an HTTP method. The path + * template may refer to one or more fields in the gRPC request message, as long + * as each field is a non-repeated field with a primitive (non-message) type. + * The path template controls how fields of the request message are mapped to + * the URL path. + * + * Example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get: "/v1/{name=messages/*}" + * }; + * } + * } + * message GetMessageRequest { + * string name = 1; // Mapped to URL path. + * } + * message Message { + * string text = 1; // The resource content. + * } + * + * This enables an HTTP REST to gRPC mapping as below: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` + * + * Any fields in the request message which are not bound by the path template + * automatically become HTTP query parameters if there is no HTTP request body. + * For example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get:"/v1/messages/{message_id}" + * }; + * } + * } + * message GetMessageRequest { + * message SubMessage { + * string subfield = 1; + * } + * string message_id = 1; // Mapped to URL path. + * int64 revision = 2; // Mapped to URL query parameter `revision`. + * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. + * } + * + * This enables a HTTP JSON to RPC mapping as below: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | + * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: + * "foo"))` + * + * Note that fields which are mapped to URL query parameters must have a + * primitive type or a repeated primitive type or a non-repeated message type. + * In the case of a repeated type, the parameter can be repeated in the URL + * as `...?param=A¶m=B`. In the case of a message type, each field of the + * message is mapped to a separate parameter, such as + * `...?foo.a=A&foo.b=B&foo.c=C`. + * + * For HTTP methods that allow a request body, the `body` field + * specifies the mapping. Consider a REST update method on the + * message resource collection: + * + * service Messaging { + * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { + * option (google.api.http) = { + * patch: "/v1/messages/{message_id}" + * body: "message" + * }; + * } + * } + * message UpdateMessageRequest { + * string message_id = 1; // mapped to the URL + * Message message = 2; // mapped to the body + * } + * + * The following HTTP JSON to RPC mapping is enabled, where the + * representation of the JSON in the request body is determined by + * protos JSON encoding: + * + * HTTP | gRPC + * -----|----- + * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: + * "123456" message { text: "Hi!" })` + * + * The special name `*` can be used in the body mapping to define that + * every field not bound by the path template should be mapped to the + * request body. This enables the following alternative definition of + * the update method: + * + * service Messaging { + * rpc UpdateMessage(Message) returns (Message) { + * option (google.api.http) = { + * patch: "/v1/messages/{message_id}" + * body: "*" + * }; + * } + * } + * message Message { + * string message_id = 1; + * string text = 2; + * } + * + * + * The following HTTP JSON to RPC mapping is enabled: + * + * HTTP | gRPC + * -----|----- + * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: + * "123456" text: "Hi!")` + * + * Note that when using `*` in the body mapping, it is not possible to + * have HTTP parameters, as all fields not bound by the path end in + * the body. This makes this option more rarely used in practice when + * defining REST APIs. The common usage of `*` is in custom methods + * which don't use the URL at all for transferring data. + * + * It is possible to define multiple HTTP methods for one RPC by using + * the `additional_bindings` option. Example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get: "/v1/messages/{message_id}" + * additional_bindings { + * get: "/v1/users/{user_id}/messages/{message_id}" + * } + * }; + * } + * } + * message GetMessageRequest { + * string message_id = 1; + * string user_id = 2; + * } + * + * This enables the following two alternative HTTP JSON to RPC mappings: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` + * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: + * "123456")` + * + * ## Rules for HTTP mapping + * + * 1. Leaf request fields (recursive expansion nested messages in the request + * message) are classified into three categories: + * - Fields referred by the path template. They are passed via the URL path. + * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They + * are passed via the HTTP + * request body. + * - All other fields are passed via the URL query parameters, and the + * parameter name is the field path in the request message. A repeated + * field can be represented as multiple query parameters under the same + * name. + * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL + * query parameter, all fields + * are passed via URL path and HTTP request body. + * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP + * request body, all + * fields are passed via URL path and URL query parameters. + * + * ### Path template syntax + * + * Template = "/" Segments [ Verb ] ; + * Segments = Segment { "/" Segment } ; + * Segment = "*" | "**" | LITERAL | Variable ; + * Variable = "{" FieldPath [ "=" Segments ] "}" ; + * FieldPath = IDENT { "." IDENT } ; + * Verb = ":" LITERAL ; + * + * The syntax `*` matches a single URL path segment. The syntax `**` matches + * zero or more URL path segments, which must be the last part of the URL path + * except the `Verb`. + * + * The syntax `Variable` matches part of the URL path as specified by its + * template. A variable template must not contain other variables. If a variable + * matches a single path segment, its template may be omitted, e.g. `{var}` + * is equivalent to `{var=*}`. + * + * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` + * contains any reserved character, such characters should be percent-encoded + * before the matching. + * + * If a variable contains exactly one path segment, such as `"{var}"` or + * `"{var=*}"`, when such a variable is expanded into a URL path on the client + * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The + * server side does the reverse decoding. Such variables show up in the + * [Discovery + * Document](https://developers.google.com/discovery/v1/reference/apis) as + * `{var}`. + * + * If a variable contains multiple path segments, such as `"{var=foo/*}"` + * or `"{var=**}"`, when such a variable is expanded into a URL path on the + * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. + * The server side does the reverse decoding, except "%2F" and "%2f" are left + * unchanged. Such variables show up in the + * [Discovery + * Document](https://developers.google.com/discovery/v1/reference/apis) as + * `{+var}`. + * + * ## Using gRPC API Service Configuration + * + * gRPC API Service Configuration (service config) is a configuration language + * for configuring a gRPC service to become a user-facing product. The + * service config is simply the YAML representation of the `google.api.Service` + * proto message. + * + * As an alternative to annotating your proto file, you can configure gRPC + * transcoding in your service config YAML files. You do this by specifying a + * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same + * effect as the proto annotation. This can be particularly useful if you + * have a proto that is reused in multiple services. Note that any transcoding + * specified in the service config will override any matching transcoding + * configuration in the proto. + * + * Example: + * + * http: + * rules: + * # Selects a gRPC method and applies HttpRule to it. + * - selector: example.v1.Messaging.GetMessage + * get: /v1/messages/{message_id}/{sub.subfield} + * + * ## Special notes + * + * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the + * proto to JSON conversion must follow the [proto3 + * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). + * + * While the single segment variable follows the semantics of + * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String + * Expansion, the multi segment variable **does not** follow RFC 6570 Section + * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion + * does not expand special characters like `?` and `#`, which would lead + * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding + * for multi segment variables. + * + * The path variables **must not** refer to any repeated or mapped field, + * because client libraries are not capable of handling such variable expansion. + * + * The path variables **must not** capture the leading "/" character. The reason + * is that the most common use case "{var}" does not capture the leading "/" + * character. For consistency, all path variables must share the same behavior. + * + * Repeated message fields must not be mapped to URL query parameters, because + * no client library can support such complicated mapping. + * + * If an API needs to use a JSON array for request or response body, it can map + * the request or response body to a repeated field. However, some gRPC + * Transcoding implementations may not support this feature. + * + * @generated from protobuf message google.api.HttpRule + */ +export interface HttpRule { + /** + * Selects a method to which this rule applies. + * + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * @generated from protobuf field: string selector = 1; + */ + selector: string; + /** + * @generated from protobuf oneof: pattern + */ + pattern: { + oneofKind: "get"; + /** + * Maps to HTTP GET. Used for listing and getting information about + * resources. + * + * @generated from protobuf field: string get = 2; + */ + get: string; + } | { + oneofKind: "put"; + /** + * Maps to HTTP PUT. Used for replacing a resource. + * + * @generated from protobuf field: string put = 3; + */ + put: string; + } | { + oneofKind: "post"; + /** + * Maps to HTTP POST. Used for creating a resource or performing an action. + * + * @generated from protobuf field: string post = 4; + */ + post: string; + } | { + oneofKind: "delete"; + /** + * Maps to HTTP DELETE. Used for deleting a resource. + * + * @generated from protobuf field: string delete = 5; + */ + delete: string; + } | { + oneofKind: "patch"; + /** + * Maps to HTTP PATCH. Used for updating a resource. + * + * @generated from protobuf field: string patch = 6; + */ + patch: string; + } | { + oneofKind: "custom"; + /** + * The custom pattern is used for specifying an HTTP method that is not + * included in the `pattern` field, such as HEAD, or "*" to leave the + * HTTP method unspecified for this rule. The wild-card rule is useful + * for services that provide content to Web (HTML) clients. + * + * @generated from protobuf field: google.api.CustomHttpPattern custom = 8; + */ + custom: CustomHttpPattern; + } | { + oneofKind: undefined; + }; + /** + * The name of the request field whose value is mapped to the HTTP request + * body, or `*` for mapping all request fields not captured by the path + * pattern to the HTTP body, or omitted for not having any HTTP request body. + * + * NOTE: the referred field must be present at the top-level of the request + * message type. + * + * @generated from protobuf field: string body = 7; + */ + body: string; + /** + * Optional. The name of the response field whose value is mapped to the HTTP + * response body. When omitted, the entire response message will be used + * as the HTTP response body. + * + * NOTE: The referred field must be present at the top-level of the response + * message type. + * + * @generated from protobuf field: string response_body = 12; + */ + response_body: string; + /** + * Additional HTTP bindings for the selector. Nested bindings must + * not contain an `additional_bindings` field themselves (that is, + * the nesting may only be one level deep). + * + * @generated from protobuf field: repeated google.api.HttpRule additional_bindings = 11; + */ + additional_bindings: HttpRule[]; +} +/** + * A custom pattern is used for defining custom HTTP verb. + * + * @generated from protobuf message google.api.CustomHttpPattern + */ +export interface CustomHttpPattern { + /** + * The name of this custom HTTP verb. + * + * @generated from protobuf field: string kind = 1; + */ + kind: string; + /** + * The path matched by this custom verb. + * + * @generated from protobuf field: string path = 2; + */ + path: string; +} +declare class Http$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Http; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Http): Http; + internalBinaryWrite(message: Http, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.api.Http + */ +export declare const Http: Http$Type; +declare class HttpRule$Type extends MessageType { + constructor(); + create(value?: PartialMessage): HttpRule; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HttpRule): HttpRule; + internalBinaryWrite(message: HttpRule, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.api.HttpRule + */ +export declare const HttpRule: HttpRule$Type; +declare class CustomHttpPattern$Type extends MessageType { + constructor(); + create(value?: PartialMessage): CustomHttpPattern; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CustomHttpPattern): CustomHttpPattern; + internalBinaryWrite(message: CustomHttpPattern, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.api.CustomHttpPattern + */ +export declare const CustomHttpPattern: CustomHttpPattern$Type; +export {}; diff --git a/src/google/api/http_pb.js b/src/google/api/http_pb.js new file mode 100644 index 00000000..dda874db --- /dev/null +++ b/src/google/api/http_pb.js @@ -0,0 +1,269 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "google/api/http.proto" (package "google.api", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CustomHttpPattern = exports.HttpRule = exports.Http = void 0; +const runtime_1 = require("@protobuf-ts/runtime"); +const runtime_2 = require("@protobuf-ts/runtime"); +const runtime_3 = require("@protobuf-ts/runtime"); +const runtime_4 = require("@protobuf-ts/runtime"); +// @generated message type with reflection information, may provide speed optimized methods +class Http$Type extends runtime_4.MessageType { + constructor() { + super("google.api.Http", [ + { no: 1, name: "rules", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.HttpRule }, + { no: 2, name: "fully_decode_reserved_expansion", kind: "scalar", localName: "fully_decode_reserved_expansion", T: 8 /*ScalarType.BOOL*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.rules = []; + message.fully_decode_reserved_expansion = false; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated google.api.HttpRule rules */ 1: + message.rules.push(exports.HttpRule.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* bool fully_decode_reserved_expansion */ 2: + message.fully_decode_reserved_expansion = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated google.api.HttpRule rules = 1; */ + for (let i = 0; i < message.rules.length; i++) + exports.HttpRule.internalBinaryWrite(message.rules[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* bool fully_decode_reserved_expansion = 2; */ + if (message.fully_decode_reserved_expansion !== false) + writer.tag(2, runtime_1.WireType.Varint).bool(message.fully_decode_reserved_expansion); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.api.Http + */ +exports.Http = new Http$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class HttpRule$Type extends runtime_4.MessageType { + constructor() { + super("google.api.HttpRule", [ + { no: 1, name: "selector", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "get", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "put", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ }, + { no: 4, name: "post", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ }, + { no: 5, name: "delete", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ }, + { no: 6, name: "patch", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ }, + { no: 8, name: "custom", kind: "message", oneof: "pattern", T: () => exports.CustomHttpPattern }, + { no: 7, name: "body", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 12, name: "response_body", kind: "scalar", localName: "response_body", T: 9 /*ScalarType.STRING*/ }, + { no: 11, name: "additional_bindings", kind: "message", localName: "additional_bindings", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.HttpRule } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.selector = ""; + message.pattern = { oneofKind: undefined }; + message.body = ""; + message.response_body = ""; + message.additional_bindings = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string selector */ 1: + message.selector = reader.string(); + break; + case /* string get */ 2: + message.pattern = { + oneofKind: "get", + get: reader.string() + }; + break; + case /* string put */ 3: + message.pattern = { + oneofKind: "put", + put: reader.string() + }; + break; + case /* string post */ 4: + message.pattern = { + oneofKind: "post", + post: reader.string() + }; + break; + case /* string delete */ 5: + message.pattern = { + oneofKind: "delete", + delete: reader.string() + }; + break; + case /* string patch */ 6: + message.pattern = { + oneofKind: "patch", + patch: reader.string() + }; + break; + case /* google.api.CustomHttpPattern custom */ 8: + message.pattern = { + oneofKind: "custom", + custom: exports.CustomHttpPattern.internalBinaryRead(reader, reader.uint32(), options, message.pattern.custom) + }; + break; + case /* string body */ 7: + message.body = reader.string(); + break; + case /* string response_body */ 12: + message.response_body = reader.string(); + break; + case /* repeated google.api.HttpRule additional_bindings */ 11: + message.additional_bindings.push(exports.HttpRule.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string selector = 1; */ + if (message.selector !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.selector); + /* string get = 2; */ + if (message.pattern.oneofKind === "get") + writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.pattern.get); + /* string put = 3; */ + if (message.pattern.oneofKind === "put") + writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.pattern.put); + /* string post = 4; */ + if (message.pattern.oneofKind === "post") + writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.pattern.post); + /* string delete = 5; */ + if (message.pattern.oneofKind === "delete") + writer.tag(5, runtime_1.WireType.LengthDelimited).string(message.pattern.delete); + /* string patch = 6; */ + if (message.pattern.oneofKind === "patch") + writer.tag(6, runtime_1.WireType.LengthDelimited).string(message.pattern.patch); + /* google.api.CustomHttpPattern custom = 8; */ + if (message.pattern.oneofKind === "custom") + exports.CustomHttpPattern.internalBinaryWrite(message.pattern.custom, writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* string body = 7; */ + if (message.body !== "") + writer.tag(7, runtime_1.WireType.LengthDelimited).string(message.body); + /* string response_body = 12; */ + if (message.response_body !== "") + writer.tag(12, runtime_1.WireType.LengthDelimited).string(message.response_body); + /* repeated google.api.HttpRule additional_bindings = 11; */ + for (let i = 0; i < message.additional_bindings.length; i++) + exports.HttpRule.internalBinaryWrite(message.additional_bindings[i], writer.tag(11, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.api.HttpRule + */ +exports.HttpRule = new HttpRule$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class CustomHttpPattern$Type extends runtime_4.MessageType { + constructor() { + super("google.api.CustomHttpPattern", [ + { no: 1, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.kind = ""; + message.path = ""; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string kind */ 1: + message.kind = reader.string(); + break; + case /* string path */ 2: + message.path = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string kind = 1; */ + if (message.kind !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.kind); + /* string path = 2; */ + if (message.path !== "") + writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.path); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.api.CustomHttpPattern + */ +exports.CustomHttpPattern = new CustomHttpPattern$Type(); diff --git a/src/google/protobuf/any_pb.d.ts b/src/google/protobuf/any_pb.d.ts new file mode 100644 index 00000000..136013f0 --- /dev/null +++ b/src/google/protobuf/any_pb.d.ts @@ -0,0 +1,216 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "google/protobuf/any.proto" (package "google.protobuf", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { IBinaryWriter } from "@protobuf-ts/runtime"; +import type { IBinaryReader } from "@protobuf-ts/runtime"; +import type { PartialMessage } from "@protobuf-ts/runtime"; +import type { JsonValue } from "@protobuf-ts/runtime"; +import type { JsonReadOptions } from "@protobuf-ts/runtime"; +import type { JsonWriteOptions } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { IMessageType } from "@protobuf-ts/runtime"; +import { MessageType } from "@protobuf-ts/runtime"; +/** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * // or ... + * if (any.isSameTypeAs(Foo.getDefaultInstance())) { + * foo = any.unpack(Foo.getDefaultInstance()); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := anypb.New(foo) + * if err != nil { + * ... + * } + * ... + * foo := &pb.Foo{} + * if err := any.UnmarshalTo(foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + * + * + * @generated from protobuf message google.protobuf.Any + */ +export interface Any { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. As of May 2023, there are no widely used type server + * implementations and no plans to implement one. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + * + * + * @generated from protobuf field: string type_url = 1; + */ + type_url: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * + * @generated from protobuf field: bytes value = 2; + */ + value: Uint8Array; +} +declare class Any$Type extends MessageType { + constructor(); + /** + * Pack the message into a new `Any`. + * + * Uses 'type.googleapis.com/full.type.name' as the type URL. + */ + pack(message: T, type: IMessageType): Any; + /** + * Unpack the message from the `Any`. + */ + unpack(any: Any, type: IMessageType, options?: Partial): T; + /** + * Does the given `Any` contain a packed message of the given type? + */ + contains(any: Any, type: IMessageType | string): boolean; + /** + * Convert the message to canonical JSON value. + * + * You have to provide the `typeRegistry` option so that the + * packed message can be converted to JSON. + * + * The `typeRegistry` option is also required to read + * `google.protobuf.Any` from JSON format. + */ + internalJsonWrite(any: Any, options: JsonWriteOptions): JsonValue; + internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Any): Any; + typeNameToUrl(name: string): string; + typeUrlToName(url: string): string; + create(value?: PartialMessage): Any; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Any): Any; + internalBinaryWrite(message: Any, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.Any + */ +export declare const Any: Any$Type; +export {}; diff --git a/src/google/protobuf/any_pb.js b/src/google/protobuf/any_pb.js new file mode 100644 index 00000000..da8a1425 --- /dev/null +++ b/src/google/protobuf/any_pb.js @@ -0,0 +1,190 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "google/protobuf/any.proto" (package "google.protobuf", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Any = void 0; +const runtime_1 = require("@protobuf-ts/runtime"); +const runtime_2 = require("@protobuf-ts/runtime"); +const runtime_3 = require("@protobuf-ts/runtime"); +const runtime_4 = require("@protobuf-ts/runtime"); +const runtime_5 = require("@protobuf-ts/runtime"); +const runtime_6 = require("@protobuf-ts/runtime"); +const runtime_7 = require("@protobuf-ts/runtime"); +// @generated message type with reflection information, may provide speed optimized methods +class Any$Type extends runtime_7.MessageType { + constructor() { + super("google.protobuf.Any", [ + { no: 1, name: "type_url", kind: "scalar", localName: "type_url", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ } + ]); + } + /** + * Pack the message into a new `Any`. + * + * Uses 'type.googleapis.com/full.type.name' as the type URL. + */ + pack(message, type) { + return { + type_url: this.typeNameToUrl(type.typeName), value: type.toBinary(message), + }; + } + /** + * Unpack the message from the `Any`. + */ + unpack(any, type, options) { + if (!this.contains(any, type)) + throw new Error("Cannot unpack google.protobuf.Any with type_url '" + any.type_url + "' as " + type.typeName + "."); + return type.fromBinary(any.value, options); + } + /** + * Does the given `Any` contain a packed message of the given type? + */ + contains(any, type) { + if (!any.type_url.length) + return false; + let wants = typeof type == "string" ? type : type.typeName; + let has = this.typeUrlToName(any.type_url); + return wants === has; + } + /** + * Convert the message to canonical JSON value. + * + * You have to provide the `typeRegistry` option so that the + * packed message can be converted to JSON. + * + * The `typeRegistry` option is also required to read + * `google.protobuf.Any` from JSON format. + */ + internalJsonWrite(any, options) { + if (any.type_url === "") + return {}; + let typeName = this.typeUrlToName(any.type_url); + let opt = runtime_6.jsonWriteOptions(options); + let type = opt.typeRegistry?.find(t => t.typeName === typeName); + if (!type) + throw new globalThis.Error("Unable to convert google.protobuf.Any with typeUrl '" + any.type_url + "' to JSON. The specified type " + typeName + " is not available in the type registry."); + let value = type.fromBinary(any.value, { readUnknownField: false }); + let json = type.internalJsonWrite(value, opt); + if (typeName.startsWith("google.protobuf.") || !runtime_4.isJsonObject(json)) + json = { value: json }; + json["@type"] = any.type_url; + return json; + } + internalJsonRead(json, options, target) { + if (!runtime_4.isJsonObject(json)) + throw new globalThis.Error("Unable to parse google.protobuf.Any from JSON " + runtime_5.typeofJsonValue(json) + "."); + if (typeof json["@type"] != "string" || json["@type"] == "") + return this.create(); + let typeName = this.typeUrlToName(json["@type"]); + let type = options?.typeRegistry?.find(t => t.typeName == typeName); + if (!type) + throw new globalThis.Error("Unable to parse google.protobuf.Any from JSON. The specified type " + typeName + " is not available in the type registry."); + let value; + if (typeName.startsWith("google.protobuf.") && json.hasOwnProperty("value")) + value = type.fromJson(json["value"], options); + else { + let copy = Object.assign({}, json); + delete copy["@type"]; + value = type.fromJson(copy, options); + } + if (target === undefined) + target = this.create(); + target.type_url = json["@type"]; + target.value = type.toBinary(value); + return target; + } + typeNameToUrl(name) { + if (!name.length) + throw new Error("invalid type name: " + name); + return "type.googleapis.com/" + name; + } + typeUrlToName(url) { + if (!url.length) + throw new Error("invalid type url: " + url); + let slash = url.lastIndexOf("/"); + let name = slash > 0 ? url.substring(slash + 1) : url; + if (!name.length) + throw new Error("invalid type url: " + url); + return name; + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.type_url = ""; + message.value = new Uint8Array(0); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string type_url */ 1: + message.type_url = reader.string(); + break; + case /* bytes value */ 2: + message.value = reader.bytes(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string type_url = 1; */ + if (message.type_url !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.type_url); + /* bytes value = 2; */ + if (message.value.length) + writer.tag(2, runtime_1.WireType.LengthDelimited).bytes(message.value); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.Any + */ +exports.Any = new Any$Type(); diff --git a/src/google/protobuf/descriptor_pb.d.ts b/src/google/protobuf/descriptor_pb.d.ts new file mode 100644 index 00000000..75b27156 --- /dev/null +++ b/src/google/protobuf/descriptor_pb.d.ts @@ -0,0 +1,2377 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "google/protobuf/descriptor.proto" (package "google.protobuf", syntax proto2) +// tslint:disable +// @ts-nocheck +// +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// +// Author: kenton@google.com (Kenton Varda) +// Based on original Protocol Buffers design by +// Sanjay Ghemawat, Jeff Dean, and others. +// +// The messages in this file describe the definitions found in .proto files. +// A valid .proto file can be translated directly to a FileDescriptorProto +// without any other information (e.g. without reading its imports). +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { IBinaryWriter } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { IBinaryReader } from "@protobuf-ts/runtime"; +import type { PartialMessage } from "@protobuf-ts/runtime"; +import { MessageType } from "@protobuf-ts/runtime"; +/** + * The protocol compiler can output a FileDescriptorSet containing the .proto + * files it parses. + * + * @generated from protobuf message google.protobuf.FileDescriptorSet + */ +export interface FileDescriptorSet { + /** + * @generated from protobuf field: repeated google.protobuf.FileDescriptorProto file = 1; + */ + file: FileDescriptorProto[]; +} +/** + * Describes a complete .proto file. + * + * @generated from protobuf message google.protobuf.FileDescriptorProto + */ +export interface FileDescriptorProto { + /** + * @generated from protobuf field: optional string name = 1; + */ + name?: string; + /** + * @generated from protobuf field: optional string package = 2; + */ + package?: string; + /** + * Names of files imported by this file. + * + * @generated from protobuf field: repeated string dependency = 3; + */ + dependency: string[]; + /** + * Indexes of the public imported files in the dependency list above. + * + * @generated from protobuf field: repeated int32 public_dependency = 10; + */ + public_dependency: number[]; + /** + * Indexes of the weak imported files in the dependency list. + * For Google-internal migration only. Do not use. + * + * @generated from protobuf field: repeated int32 weak_dependency = 11; + */ + weak_dependency: number[]; + /** + * All top-level definitions in this file. + * + * @generated from protobuf field: repeated google.protobuf.DescriptorProto message_type = 4; + */ + message_type: DescriptorProto[]; + /** + * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto enum_type = 5; + */ + enum_type: EnumDescriptorProto[]; + /** + * @generated from protobuf field: repeated google.protobuf.ServiceDescriptorProto service = 6; + */ + service: ServiceDescriptorProto[]; + /** + * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto extension = 7; + */ + extension: FieldDescriptorProto[]; + /** + * @generated from protobuf field: optional google.protobuf.FileOptions options = 8; + */ + options?: FileOptions; + /** + * This field contains optional information about the original source code. + * You may safely remove this entire field without harming runtime + * functionality of the descriptors -- the information is needed only by + * development tools. + * + * @generated from protobuf field: optional google.protobuf.SourceCodeInfo source_code_info = 9; + */ + source_code_info?: SourceCodeInfo; + /** + * The syntax of the proto file. + * The supported values are "proto2", "proto3", and "editions". + * + * If `edition` is present, this value must be "editions". + * + * @generated from protobuf field: optional string syntax = 12; + */ + syntax?: string; + /** + * The edition of the proto file. + * + * @generated from protobuf field: optional google.protobuf.Edition edition = 14; + */ + edition?: Edition; +} +/** + * Describes a message type. + * + * @generated from protobuf message google.protobuf.DescriptorProto + */ +export interface DescriptorProto { + /** + * @generated from protobuf field: optional string name = 1; + */ + name?: string; + /** + * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto field = 2; + */ + field: FieldDescriptorProto[]; + /** + * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto extension = 6; + */ + extension: FieldDescriptorProto[]; + /** + * @generated from protobuf field: repeated google.protobuf.DescriptorProto nested_type = 3; + */ + nested_type: DescriptorProto[]; + /** + * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto enum_type = 4; + */ + enum_type: EnumDescriptorProto[]; + /** + * @generated from protobuf field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; + */ + extension_range: DescriptorProto_ExtensionRange[]; + /** + * @generated from protobuf field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8; + */ + oneof_decl: OneofDescriptorProto[]; + /** + * @generated from protobuf field: optional google.protobuf.MessageOptions options = 7; + */ + options?: MessageOptions; + /** + * @generated from protobuf field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; + */ + reserved_range: DescriptorProto_ReservedRange[]; + /** + * Reserved field names, which may not be used by fields in the same message. + * A given name may only be reserved once. + * + * @generated from protobuf field: repeated string reserved_name = 10; + */ + reserved_name: string[]; +} +/** + * @generated from protobuf message google.protobuf.DescriptorProto.ExtensionRange + */ +export interface DescriptorProto_ExtensionRange { + /** + * @generated from protobuf field: optional int32 start = 1; + */ + start?: number; + /** + * @generated from protobuf field: optional int32 end = 2; + */ + end?: number; + /** + * @generated from protobuf field: optional google.protobuf.ExtensionRangeOptions options = 3; + */ + options?: ExtensionRangeOptions; +} +/** + * Range of reserved tag numbers. Reserved tag numbers may not be used by + * fields or extension ranges in the same message. Reserved ranges may + * not overlap. + * + * @generated from protobuf message google.protobuf.DescriptorProto.ReservedRange + */ +export interface DescriptorProto_ReservedRange { + /** + * @generated from protobuf field: optional int32 start = 1; + */ + start?: number; + /** + * @generated from protobuf field: optional int32 end = 2; + */ + end?: number; +} +/** + * @generated from protobuf message google.protobuf.ExtensionRangeOptions + */ +export interface ExtensionRangeOptions { + /** + * The parser stores options it doesn't recognize here. See above. + * + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + */ + uninterpreted_option: UninterpretedOption[]; + /** + * For external users: DO NOT USE. We are in the process of open sourcing + * extension declaration and executing internal cleanups before it can be + * used externally. + * + * @generated from protobuf field: repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2; + */ + declaration: ExtensionRangeOptions_Declaration[]; + /** + * Any features defined in the specific edition. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet features = 50; + */ + features?: FeatureSet; + /** + * The verification state of the range. + * TODO: flip the default to DECLARATION once all empty ranges + * are marked as UNVERIFIED. + * + * @generated from protobuf field: optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3; + */ + verification?: ExtensionRangeOptions_VerificationState; +} +/** + * @generated from protobuf message google.protobuf.ExtensionRangeOptions.Declaration + */ +export interface ExtensionRangeOptions_Declaration { + /** + * The extension number declared within the extension range. + * + * @generated from protobuf field: optional int32 number = 1; + */ + number?: number; + /** + * The fully-qualified name of the extension field. There must be a leading + * dot in front of the full name. + * + * @generated from protobuf field: optional string full_name = 2; + */ + full_name?: string; + /** + * The fully-qualified type name of the extension field. Unlike + * Metadata.type, Declaration.type must have a leading dot for messages + * and enums. + * + * @generated from protobuf field: optional string type = 3; + */ + type?: string; + /** + * If true, indicates that the number is reserved in the extension range, + * and any extension field with the number will fail to compile. Set this + * when a declared extension field is deleted. + * + * @generated from protobuf field: optional bool reserved = 5; + */ + reserved?: boolean; + /** + * If true, indicates that the extension must be defined as repeated. + * Otherwise the extension must be defined as optional. + * + * @generated from protobuf field: optional bool repeated = 6; + */ + repeated?: boolean; +} +/** + * The verification state of the extension range. + * + * @generated from protobuf enum google.protobuf.ExtensionRangeOptions.VerificationState + */ +export declare enum ExtensionRangeOptions_VerificationState { + /** + * All the extensions of the range must be declared. + * + * @generated from protobuf enum value: DECLARATION = 0; + */ + DECLARATION = 0, + /** + * @generated from protobuf enum value: UNVERIFIED = 1; + */ + UNVERIFIED = 1 +} +/** + * Describes a field within a message. + * + * @generated from protobuf message google.protobuf.FieldDescriptorProto + */ +export interface FieldDescriptorProto { + /** + * @generated from protobuf field: optional string name = 1; + */ + name?: string; + /** + * @generated from protobuf field: optional int32 number = 3; + */ + number?: number; + /** + * @generated from protobuf field: optional google.protobuf.FieldDescriptorProto.Label label = 4; + */ + label?: FieldDescriptorProto_Label; + /** + * If type_name is set, this need not be set. If both this and type_name + * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. + * + * @generated from protobuf field: optional google.protobuf.FieldDescriptorProto.Type type = 5; + */ + type?: FieldDescriptorProto_Type; + /** + * For message and enum types, this is the name of the type. If the name + * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping + * rules are used to find the type (i.e. first the nested types within this + * message are searched, then within the parent, on up to the root + * namespace). + * + * @generated from protobuf field: optional string type_name = 6; + */ + type_name?: string; + /** + * For extensions, this is the name of the type being extended. It is + * resolved in the same manner as type_name. + * + * @generated from protobuf field: optional string extendee = 2; + */ + extendee?: string; + /** + * For numeric types, contains the original text representation of the value. + * For booleans, "true" or "false". + * For strings, contains the default text contents (not escaped in any way). + * For bytes, contains the C escaped value. All bytes >= 128 are escaped. + * + * @generated from protobuf field: optional string default_value = 7; + */ + default_value?: string; + /** + * If set, gives the index of a oneof in the containing type's oneof_decl + * list. This field is a member of that oneof. + * + * @generated from protobuf field: optional int32 oneof_index = 9; + */ + oneof_index?: number; + /** + * JSON name of this field. The value is set by protocol compiler. If the + * user has set a "json_name" option on this field, that option's value + * will be used. Otherwise, it's deduced from the field's name by converting + * it to camelCase. + * + * @generated from protobuf field: optional string json_name = 10; + */ + json_name?: string; + /** + * @generated from protobuf field: optional google.protobuf.FieldOptions options = 8; + */ + options?: FieldOptions; + /** + * If true, this is a proto3 "optional". When a proto3 field is optional, it + * tracks presence regardless of field type. + * + * When proto3_optional is true, this field must belong to a oneof to signal + * to old proto3 clients that presence is tracked for this field. This oneof + * is known as a "synthetic" oneof, and this field must be its sole member + * (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs + * exist in the descriptor only, and do not generate any API. Synthetic oneofs + * must be ordered after all "real" oneofs. + * + * For message fields, proto3_optional doesn't create any semantic change, + * since non-repeated message fields always track presence. However it still + * indicates the semantic detail of whether the user wrote "optional" or not. + * This can be useful for round-tripping the .proto file. For consistency we + * give message fields a synthetic oneof also, even though it is not required + * to track presence. This is especially important because the parser can't + * tell if a field is a message or an enum, so it must always create a + * synthetic oneof. + * + * Proto2 optional fields do not set this flag, because they already indicate + * optional with `LABEL_OPTIONAL`. + * + * @generated from protobuf field: optional bool proto3_optional = 17; + */ + proto3_optional?: boolean; +} +/** + * @generated from protobuf enum google.protobuf.FieldDescriptorProto.Type + */ +export declare enum FieldDescriptorProto_Type { + /** + * @generated synthetic value - protobuf-ts requires all enums to have a 0 value + */ + UNSPECIFIED$ = 0, + /** + * 0 is reserved for errors. + * Order is weird for historical reasons. + * + * @generated from protobuf enum value: TYPE_DOUBLE = 1; + */ + TYPE_DOUBLE = 1, + /** + * @generated from protobuf enum value: TYPE_FLOAT = 2; + */ + TYPE_FLOAT = 2, + /** + * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if + * negative values are likely. + * + * @generated from protobuf enum value: TYPE_INT64 = 3; + */ + TYPE_INT64 = 3, + /** + * @generated from protobuf enum value: TYPE_UINT64 = 4; + */ + TYPE_UINT64 = 4, + /** + * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if + * negative values are likely. + * + * @generated from protobuf enum value: TYPE_INT32 = 5; + */ + TYPE_INT32 = 5, + /** + * @generated from protobuf enum value: TYPE_FIXED64 = 6; + */ + TYPE_FIXED64 = 6, + /** + * @generated from protobuf enum value: TYPE_FIXED32 = 7; + */ + TYPE_FIXED32 = 7, + /** + * @generated from protobuf enum value: TYPE_BOOL = 8; + */ + TYPE_BOOL = 8, + /** + * @generated from protobuf enum value: TYPE_STRING = 9; + */ + TYPE_STRING = 9, + /** + * Tag-delimited aggregate. + * Group type is deprecated and not supported after google.protobuf. However, Proto3 + * implementations should still be able to parse the group wire format and + * treat group fields as unknown fields. In Editions, the group wire format + * can be enabled via the `message_encoding` feature. + * + * @generated from protobuf enum value: TYPE_GROUP = 10; + */ + TYPE_GROUP = 10, + /** + * Length-delimited aggregate. + * + * @generated from protobuf enum value: TYPE_MESSAGE = 11; + */ + TYPE_MESSAGE = 11, + /** + * New in version 2. + * + * @generated from protobuf enum value: TYPE_BYTES = 12; + */ + TYPE_BYTES = 12, + /** + * @generated from protobuf enum value: TYPE_UINT32 = 13; + */ + TYPE_UINT32 = 13, + /** + * @generated from protobuf enum value: TYPE_ENUM = 14; + */ + TYPE_ENUM = 14, + /** + * @generated from protobuf enum value: TYPE_SFIXED32 = 15; + */ + TYPE_SFIXED32 = 15, + /** + * @generated from protobuf enum value: TYPE_SFIXED64 = 16; + */ + TYPE_SFIXED64 = 16, + /** + * Uses ZigZag encoding. + * + * @generated from protobuf enum value: TYPE_SINT32 = 17; + */ + TYPE_SINT32 = 17, + /** + * Uses ZigZag encoding. + * + * @generated from protobuf enum value: TYPE_SINT64 = 18; + */ + TYPE_SINT64 = 18 +} +/** + * @generated from protobuf enum google.protobuf.FieldDescriptorProto.Label + */ +export declare enum FieldDescriptorProto_Label { + /** + * @generated synthetic value - protobuf-ts requires all enums to have a 0 value + */ + UNSPECIFIED$ = 0, + /** + * 0 is reserved for errors + * + * @generated from protobuf enum value: LABEL_OPTIONAL = 1; + */ + LABEL_OPTIONAL = 1, + /** + * @generated from protobuf enum value: LABEL_REPEATED = 3; + */ + LABEL_REPEATED = 3, + /** + * The required label is only allowed in google.protobuf. In proto3 and Editions + * it's explicitly prohibited. In Editions, the `field_presence` feature + * can be used to get this behavior. + * + * @generated from protobuf enum value: LABEL_REQUIRED = 2; + */ + LABEL_REQUIRED = 2 +} +/** + * Describes a oneof. + * + * @generated from protobuf message google.protobuf.OneofDescriptorProto + */ +export interface OneofDescriptorProto { + /** + * @generated from protobuf field: optional string name = 1; + */ + name?: string; + /** + * @generated from protobuf field: optional google.protobuf.OneofOptions options = 2; + */ + options?: OneofOptions; +} +/** + * Describes an enum type. + * + * @generated from protobuf message google.protobuf.EnumDescriptorProto + */ +export interface EnumDescriptorProto { + /** + * @generated from protobuf field: optional string name = 1; + */ + name?: string; + /** + * @generated from protobuf field: repeated google.protobuf.EnumValueDescriptorProto value = 2; + */ + value: EnumValueDescriptorProto[]; + /** + * @generated from protobuf field: optional google.protobuf.EnumOptions options = 3; + */ + options?: EnumOptions; + /** + * Range of reserved numeric values. Reserved numeric values may not be used + * by enum values in the same enum declaration. Reserved ranges may not + * overlap. + * + * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4; + */ + reserved_range: EnumDescriptorProto_EnumReservedRange[]; + /** + * Reserved enum value names, which may not be reused. A given name may only + * be reserved once. + * + * @generated from protobuf field: repeated string reserved_name = 5; + */ + reserved_name: string[]; +} +/** + * Range of reserved numeric values. Reserved values may not be used by + * entries in the same enum. Reserved ranges may not overlap. + * + * Note that this is distinct from DescriptorProto.ReservedRange in that it + * is inclusive such that it can appropriately represent the entire int32 + * domain. + * + * @generated from protobuf message google.protobuf.EnumDescriptorProto.EnumReservedRange + */ +export interface EnumDescriptorProto_EnumReservedRange { + /** + * @generated from protobuf field: optional int32 start = 1; + */ + start?: number; + /** + * @generated from protobuf field: optional int32 end = 2; + */ + end?: number; +} +/** + * Describes a value within an enum. + * + * @generated from protobuf message google.protobuf.EnumValueDescriptorProto + */ +export interface EnumValueDescriptorProto { + /** + * @generated from protobuf field: optional string name = 1; + */ + name?: string; + /** + * @generated from protobuf field: optional int32 number = 2; + */ + number?: number; + /** + * @generated from protobuf field: optional google.protobuf.EnumValueOptions options = 3; + */ + options?: EnumValueOptions; +} +/** + * Describes a service. + * + * @generated from protobuf message google.protobuf.ServiceDescriptorProto + */ +export interface ServiceDescriptorProto { + /** + * @generated from protobuf field: optional string name = 1; + */ + name?: string; + /** + * @generated from protobuf field: repeated google.protobuf.MethodDescriptorProto method = 2; + */ + method: MethodDescriptorProto[]; + /** + * @generated from protobuf field: optional google.protobuf.ServiceOptions options = 3; + */ + options?: ServiceOptions; +} +/** + * Describes a method of a service. + * + * @generated from protobuf message google.protobuf.MethodDescriptorProto + */ +export interface MethodDescriptorProto { + /** + * @generated from protobuf field: optional string name = 1; + */ + name?: string; + /** + * Input and output type names. These are resolved in the same way as + * FieldDescriptorProto.type_name, but must refer to a message type. + * + * @generated from protobuf field: optional string input_type = 2; + */ + input_type?: string; + /** + * @generated from protobuf field: optional string output_type = 3; + */ + output_type?: string; + /** + * @generated from protobuf field: optional google.protobuf.MethodOptions options = 4; + */ + options?: MethodOptions; + /** + * Identifies if client streams multiple client messages + * + * @generated from protobuf field: optional bool client_streaming = 5; + */ + client_streaming?: boolean; + /** + * Identifies if server streams multiple server messages + * + * @generated from protobuf field: optional bool server_streaming = 6; + */ + server_streaming?: boolean; +} +/** + * @generated from protobuf message google.protobuf.FileOptions + */ +export interface FileOptions { + /** + * Sets the Java package where classes generated from this .proto will be + * placed. By default, the proto package is used, but this is often + * inappropriate because proto packages do not normally start with backwards + * domain names. + * + * @generated from protobuf field: optional string java_package = 1; + */ + java_package?: string; + /** + * Controls the name of the wrapper Java class generated for the .proto file. + * That class will always contain the .proto file's getDescriptor() method as + * well as any top-level extensions defined in the .proto file. + * If java_multiple_files is disabled, then all the other classes from the + * .proto file will be nested inside the single wrapper outer class. + * + * @generated from protobuf field: optional string java_outer_classname = 8; + */ + java_outer_classname?: string; + /** + * If enabled, then the Java code generator will generate a separate .java + * file for each top-level message, enum, and service defined in the .proto + * file. Thus, these types will *not* be nested inside the wrapper class + * named by java_outer_classname. However, the wrapper class will still be + * generated to contain the file's getDescriptor() method as well as any + * top-level extensions defined in the file. + * + * @generated from protobuf field: optional bool java_multiple_files = 10; + */ + java_multiple_files?: boolean; + /** + * This option does nothing. + * + * @deprecated + * @generated from protobuf field: optional bool java_generate_equals_and_hash = 20 [deprecated = true]; + */ + java_generate_equals_and_hash?: boolean; + /** + * A proto2 file can set this to true to opt in to UTF-8 checking for Java, + * which will throw an exception if invalid UTF-8 is parsed from the wire or + * assigned to a string field. + * + * TODO: clarify exactly what kinds of field types this option + * applies to, and update these docs accordingly. + * + * Proto3 files already perform these checks. Setting the option explicitly to + * false has no effect: it cannot be used to opt proto3 files out of UTF-8 + * checks. + * + * @generated from protobuf field: optional bool java_string_check_utf8 = 27; + */ + java_string_check_utf8?: boolean; + /** + * @generated from protobuf field: optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9; + */ + optimize_for?: FileOptions_OptimizeMode; + /** + * Sets the Go package where structs generated from this .proto will be + * placed. If omitted, the Go package will be derived from the following: + * - The basename of the package import path, if provided. + * - Otherwise, the package statement in the .proto file, if present. + * - Otherwise, the basename of the .proto file, without extension. + * + * @generated from protobuf field: optional string go_package = 11; + */ + go_package?: string; + /** + * Should generic services be generated in each language? "Generic" services + * are not specific to any particular RPC system. They are generated by the + * main code generators in each language (without additional plugins). + * Generic services were the only kind of service generation supported by + * early versions of google.protobuf. + * + * Generic services are now considered deprecated in favor of using plugins + * that generate code specific to your particular RPC system. Therefore, + * these default to false. Old code which depends on generic services should + * explicitly set them to true. + * + * @generated from protobuf field: optional bool cc_generic_services = 16; + */ + cc_generic_services?: boolean; + /** + * @generated from protobuf field: optional bool java_generic_services = 17; + */ + java_generic_services?: boolean; + /** + * @generated from protobuf field: optional bool py_generic_services = 18; + */ + py_generic_services?: boolean; + /** + * Is this file deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for everything in the file, or it will be completely ignored; in the very + * least, this is a formalization for deprecating files. + * + * @generated from protobuf field: optional bool deprecated = 23; + */ + deprecated?: boolean; + /** + * Enables the use of arenas for the proto messages in this file. This applies + * only to generated classes for C++. + * + * @generated from protobuf field: optional bool cc_enable_arenas = 31; + */ + cc_enable_arenas?: boolean; + /** + * Sets the objective c class prefix which is prepended to all objective c + * generated classes from this .proto. There is no default. + * + * @generated from protobuf field: optional string objc_class_prefix = 36; + */ + objc_class_prefix?: string; + /** + * Namespace for generated classes; defaults to the package. + * + * @generated from protobuf field: optional string csharp_namespace = 37; + */ + csharp_namespace?: string; + /** + * By default Swift generators will take the proto package and CamelCase it + * replacing '.' with underscore and use that to prefix the types/symbols + * defined. When this options is provided, they will use this value instead + * to prefix the types/symbols defined. + * + * @generated from protobuf field: optional string swift_prefix = 39; + */ + swift_prefix?: string; + /** + * Sets the php class prefix which is prepended to all php generated classes + * from this .proto. Default is empty. + * + * @generated from protobuf field: optional string php_class_prefix = 40; + */ + php_class_prefix?: string; + /** + * Use this option to change the namespace of php generated classes. Default + * is empty. When this option is empty, the package name will be used for + * determining the namespace. + * + * @generated from protobuf field: optional string php_namespace = 41; + */ + php_namespace?: string; + /** + * Use this option to change the namespace of php generated metadata classes. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. + * + * @generated from protobuf field: optional string php_metadata_namespace = 44; + */ + php_metadata_namespace?: string; + /** + * Use this option to change the package of ruby generated classes. Default + * is empty. When this option is not set, the package name will be used for + * determining the ruby package. + * + * @generated from protobuf field: optional string ruby_package = 45; + */ + ruby_package?: string; + /** + * Any features defined in the specific edition. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet features = 50; + */ + features?: FeatureSet; + /** + * The parser stores options it doesn't recognize here. + * See the documentation for the "Options" section above. + * + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + */ + uninterpreted_option: UninterpretedOption[]; +} +/** + * Generated classes can be optimized for speed or code size. + * + * @generated from protobuf enum google.protobuf.FileOptions.OptimizeMode + */ +export declare enum FileOptions_OptimizeMode { + /** + * @generated synthetic value - protobuf-ts requires all enums to have a 0 value + */ + UNSPECIFIED$ = 0, + /** + * Generate complete code for parsing, serialization, + * + * @generated from protobuf enum value: SPEED = 1; + */ + SPEED = 1, + /** + * etc. + * + * Use ReflectionOps to implement these methods. + * + * @generated from protobuf enum value: CODE_SIZE = 2; + */ + CODE_SIZE = 2, + /** + * Generate code using MessageLite and the lite runtime. + * + * @generated from protobuf enum value: LITE_RUNTIME = 3; + */ + LITE_RUNTIME = 3 +} +/** + * @generated from protobuf message google.protobuf.MessageOptions + */ +export interface MessageOptions { + /** + * Set true to use the old proto1 MessageSet wire format for extensions. + * This is provided for backwards-compatibility with the MessageSet wire + * format. You should not use this for any other reason: It's less + * efficient, has fewer features, and is more complicated. + * + * The message must be defined exactly as follows: + * message Foo { + * option message_set_wire_format = true; + * extensions 4 to max; + * } + * Note that the message cannot have any defined fields; MessageSets only + * have extensions. + * + * All extensions of your type must be singular messages; e.g. they cannot + * be int32s, enums, or repeated messages. + * + * Because this is an option, the above two restrictions are not enforced by + * the protocol compiler. + * + * @generated from protobuf field: optional bool message_set_wire_format = 1; + */ + message_set_wire_format?: boolean; + /** + * Disables the generation of the standard "descriptor()" accessor, which can + * conflict with a field of the same name. This is meant to make migration + * from proto1 easier; new code should avoid fields named "descriptor". + * + * @generated from protobuf field: optional bool no_standard_descriptor_accessor = 2; + */ + no_standard_descriptor_accessor?: boolean; + /** + * Is this message deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the message, or it will be completely ignored; in the very least, + * this is a formalization for deprecating messages. + * + * @generated from protobuf field: optional bool deprecated = 3; + */ + deprecated?: boolean; + /** + * Whether the message is an automatically generated map entry type for the + * maps field. + * + * For maps fields: + * map map_field = 1; + * The parsed descriptor looks like: + * message MapFieldEntry { + * option map_entry = true; + * optional KeyType key = 1; + * optional ValueType value = 2; + * } + * repeated MapFieldEntry map_field = 1; + * + * Implementations may choose not to generate the map_entry=true message, but + * use a native map in the target language to hold the keys and values. + * The reflection APIs in such implementations still need to work as + * if the field is a repeated message field. + * + * NOTE: Do not set the option in .proto files. Always use the maps syntax + * instead. The option should only be implicitly set by the proto compiler + * parser. + * + * @generated from protobuf field: optional bool map_entry = 7; + */ + map_entry?: boolean; + /** + * Enable the legacy handling of JSON field name conflicts. This lowercases + * and strips underscored from the fields before comparison in proto3 only. + * The new behavior takes `json_name` into account and applies to proto2 as + * well. + * + * This should only be used as a temporary measure against broken builds due + * to the change in behavior for JSON field name conflicts. + * + * TODO This is legacy behavior we plan to remove once downstream + * teams have had time to migrate. + * + * @deprecated + * @generated from protobuf field: optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; + */ + deprecated_legacy_json_field_conflicts?: boolean; + /** + * Any features defined in the specific edition. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet features = 12; + */ + features?: FeatureSet; + /** + * The parser stores options it doesn't recognize here. See above. + * + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + */ + uninterpreted_option: UninterpretedOption[]; +} +/** + * @generated from protobuf message google.protobuf.FieldOptions + */ +export interface FieldOptions { + /** + * The ctype option instructs the C++ code generator to use a different + * representation of the field than it normally would. See the specific + * options below. This option is only implemented to support use of + * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of + * type "bytes" in the open source release -- sorry, we'll try to include + * other types in a future version! + * + * @generated from protobuf field: optional google.protobuf.FieldOptions.CType ctype = 1; + */ + ctype?: FieldOptions_CType; + /** + * The packed option can be enabled for repeated primitive fields to enable + * a more efficient representation on the wire. Rather than repeatedly + * writing the tag and type for each element, the entire array is encoded as + * a single length-delimited blob. In proto3, only explicit setting it to + * false will avoid using packed encoding. This option is prohibited in + * Editions, but the `repeated_field_encoding` feature can be used to control + * the behavior. + * + * @generated from protobuf field: optional bool packed = 2; + */ + packed?: boolean; + /** + * The jstype option determines the JavaScript type used for values of the + * field. The option is permitted only for 64 bit integral and fixed types + * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING + * is represented as JavaScript string, which avoids loss of precision that + * can happen when a large value is converted to a floating point JavaScript. + * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to + * use the JavaScript "number" type. The behavior of the default option + * JS_NORMAL is implementation dependent. + * + * This option is an enum to permit additional types to be added, e.g. + * goog.math.Integer. + * + * @generated from protobuf field: optional google.protobuf.FieldOptions.JSType jstype = 6; + */ + jstype?: FieldOptions_JSType; + /** + * Should this field be parsed lazily? Lazy applies only to message-type + * fields. It means that when the outer message is initially parsed, the + * inner message's contents will not be parsed but instead stored in encoded + * form. The inner message will actually be parsed when it is first accessed. + * + * This is only a hint. Implementations are free to choose whether to use + * eager or lazy parsing regardless of the value of this option. However, + * setting this option true suggests that the protocol author believes that + * using lazy parsing on this field is worth the additional bookkeeping + * overhead typically needed to implement it. + * + * This option does not affect the public interface of any generated code; + * all method signatures remain the same. Furthermore, thread-safety of the + * interface is not affected by this option; const methods remain safe to + * call from multiple threads concurrently, while non-const methods continue + * to require exclusive access. + * + * Note that lazy message fields are still eagerly verified to check + * ill-formed wireformat or missing required fields. Calling IsInitialized() + * on the outer message would fail if the inner message has missing required + * fields. Failed verification would result in parsing failure (except when + * uninitialized messages are acceptable). + * + * @generated from protobuf field: optional bool lazy = 5; + */ + lazy?: boolean; + /** + * unverified_lazy does no correctness checks on the byte stream. This should + * only be used where lazy with verification is prohibitive for performance + * reasons. + * + * @generated from protobuf field: optional bool unverified_lazy = 15; + */ + unverified_lazy?: boolean; + /** + * Is this field deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for accessors, or it will be completely ignored; in the very least, this + * is a formalization for deprecating fields. + * + * @generated from protobuf field: optional bool deprecated = 3; + */ + deprecated?: boolean; + /** + * For Google-internal migration only. Do not use. + * + * @generated from protobuf field: optional bool weak = 10; + */ + weak?: boolean; + /** + * Indicate that the field value should not be printed out when using debug + * formats, e.g. when the field contains sensitive credentials. + * + * @generated from protobuf field: optional bool debug_redact = 16; + */ + debug_redact?: boolean; + /** + * @generated from protobuf field: optional google.protobuf.FieldOptions.OptionRetention retention = 17; + */ + retention?: FieldOptions_OptionRetention; + /** + * @generated from protobuf field: repeated google.protobuf.FieldOptions.OptionTargetType targets = 19; + */ + targets: FieldOptions_OptionTargetType[]; + /** + * @generated from protobuf field: repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20; + */ + edition_defaults: FieldOptions_EditionDefault[]; + /** + * Any features defined in the specific edition. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet features = 21; + */ + features?: FeatureSet; + /** + * @generated from protobuf field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 22; + */ + feature_support?: FieldOptions_FeatureSupport; + /** + * The parser stores options it doesn't recognize here. See above. + * + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + */ + uninterpreted_option: UninterpretedOption[]; +} +/** + * @generated from protobuf message google.protobuf.FieldOptions.EditionDefault + */ +export interface FieldOptions_EditionDefault { + /** + * @generated from protobuf field: optional google.protobuf.Edition edition = 3; + */ + edition?: Edition; + /** + * @generated from protobuf field: optional string value = 2; + */ + value?: string; +} +/** + * Information about the support window of a feature. + * + * @generated from protobuf message google.protobuf.FieldOptions.FeatureSupport + */ +export interface FieldOptions_FeatureSupport { + /** + * The edition that this feature was first available in. In editions + * earlier than this one, the default assigned to EDITION_LEGACY will be + * used, and proto files will not be able to override it. + * + * @generated from protobuf field: optional google.protobuf.Edition edition_introduced = 1; + */ + edition_introduced?: Edition; + /** + * The edition this feature becomes deprecated in. Using this after this + * edition may trigger warnings. + * + * @generated from protobuf field: optional google.protobuf.Edition edition_deprecated = 2; + */ + edition_deprecated?: Edition; + /** + * The deprecation warning text if this feature is used after the edition it + * was marked deprecated in. + * + * @generated from protobuf field: optional string deprecation_warning = 3; + */ + deprecation_warning?: string; + /** + * The edition this feature is no longer available in. In editions after + * this one, the last default assigned will be used, and proto files will + * not be able to override it. + * + * @generated from protobuf field: optional google.protobuf.Edition edition_removed = 4; + */ + edition_removed?: Edition; +} +/** + * @generated from protobuf enum google.protobuf.FieldOptions.CType + */ +export declare enum FieldOptions_CType { + /** + * Default mode. + * + * @generated from protobuf enum value: STRING = 0; + */ + STRING = 0, + /** + * The option [ctype=CORD] may be applied to a non-repeated field of type + * "bytes". It indicates that in C++, the data should be stored in a Cord + * instead of a string. For very large strings, this may reduce memory + * fragmentation. It may also allow better performance when parsing from a + * Cord, or when parsing with aliasing enabled, as the parsed Cord may then + * alias the original buffer. + * + * @generated from protobuf enum value: CORD = 1; + */ + CORD = 1, + /** + * @generated from protobuf enum value: STRING_PIECE = 2; + */ + STRING_PIECE = 2 +} +/** + * @generated from protobuf enum google.protobuf.FieldOptions.JSType + */ +export declare enum FieldOptions_JSType { + /** + * Use the default type. + * + * @generated from protobuf enum value: JS_NORMAL = 0; + */ + JS_NORMAL = 0, + /** + * Use JavaScript strings. + * + * @generated from protobuf enum value: JS_STRING = 1; + */ + JS_STRING = 1, + /** + * Use JavaScript numbers. + * + * @generated from protobuf enum value: JS_NUMBER = 2; + */ + JS_NUMBER = 2 +} +/** + * If set to RETENTION_SOURCE, the option will be omitted from the binary. + * Note: as of January 2023, support for this is in progress and does not yet + * have an effect (b/264593489). + * + * @generated from protobuf enum google.protobuf.FieldOptions.OptionRetention + */ +export declare enum FieldOptions_OptionRetention { + /** + * @generated from protobuf enum value: RETENTION_UNKNOWN = 0; + */ + RETENTION_UNKNOWN = 0, + /** + * @generated from protobuf enum value: RETENTION_RUNTIME = 1; + */ + RETENTION_RUNTIME = 1, + /** + * @generated from protobuf enum value: RETENTION_SOURCE = 2; + */ + RETENTION_SOURCE = 2 +} +/** + * This indicates the types of entities that the field may apply to when used + * as an option. If it is unset, then the field may be freely used as an + * option on any kind of entity. Note: as of January 2023, support for this is + * in progress and does not yet have an effect (b/264593489). + * + * @generated from protobuf enum google.protobuf.FieldOptions.OptionTargetType + */ +export declare enum FieldOptions_OptionTargetType { + /** + * @generated from protobuf enum value: TARGET_TYPE_UNKNOWN = 0; + */ + TARGET_TYPE_UNKNOWN = 0, + /** + * @generated from protobuf enum value: TARGET_TYPE_FILE = 1; + */ + TARGET_TYPE_FILE = 1, + /** + * @generated from protobuf enum value: TARGET_TYPE_EXTENSION_RANGE = 2; + */ + TARGET_TYPE_EXTENSION_RANGE = 2, + /** + * @generated from protobuf enum value: TARGET_TYPE_MESSAGE = 3; + */ + TARGET_TYPE_MESSAGE = 3, + /** + * @generated from protobuf enum value: TARGET_TYPE_FIELD = 4; + */ + TARGET_TYPE_FIELD = 4, + /** + * @generated from protobuf enum value: TARGET_TYPE_ONEOF = 5; + */ + TARGET_TYPE_ONEOF = 5, + /** + * @generated from protobuf enum value: TARGET_TYPE_ENUM = 6; + */ + TARGET_TYPE_ENUM = 6, + /** + * @generated from protobuf enum value: TARGET_TYPE_ENUM_ENTRY = 7; + */ + TARGET_TYPE_ENUM_ENTRY = 7, + /** + * @generated from protobuf enum value: TARGET_TYPE_SERVICE = 8; + */ + TARGET_TYPE_SERVICE = 8, + /** + * @generated from protobuf enum value: TARGET_TYPE_METHOD = 9; + */ + TARGET_TYPE_METHOD = 9 +} +/** + * @generated from protobuf message google.protobuf.OneofOptions + */ +export interface OneofOptions { + /** + * Any features defined in the specific edition. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet features = 1; + */ + features?: FeatureSet; + /** + * The parser stores options it doesn't recognize here. See above. + * + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + */ + uninterpreted_option: UninterpretedOption[]; +} +/** + * @generated from protobuf message google.protobuf.EnumOptions + */ +export interface EnumOptions { + /** + * Set this option to true to allow mapping different tag names to the same + * value. + * + * @generated from protobuf field: optional bool allow_alias = 2; + */ + allow_alias?: boolean; + /** + * Is this enum deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the enum, or it will be completely ignored; in the very least, this + * is a formalization for deprecating enums. + * + * @generated from protobuf field: optional bool deprecated = 3; + */ + deprecated?: boolean; + /** + * Enable the legacy handling of JSON field name conflicts. This lowercases + * and strips underscored from the fields before comparison in proto3 only. + * The new behavior takes `json_name` into account and applies to proto2 as + * well. + * TODO Remove this legacy behavior once downstream teams have + * had time to migrate. + * + * @deprecated + * @generated from protobuf field: optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; + */ + deprecated_legacy_json_field_conflicts?: boolean; + /** + * Any features defined in the specific edition. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet features = 7; + */ + features?: FeatureSet; + /** + * The parser stores options it doesn't recognize here. See above. + * + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + */ + uninterpreted_option: UninterpretedOption[]; +} +/** + * @generated from protobuf message google.protobuf.EnumValueOptions + */ +export interface EnumValueOptions { + /** + * Is this enum value deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the enum value, or it will be completely ignored; in the very least, + * this is a formalization for deprecating enum values. + * + * @generated from protobuf field: optional bool deprecated = 1; + */ + deprecated?: boolean; + /** + * Any features defined in the specific edition. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet features = 2; + */ + features?: FeatureSet; + /** + * Indicate that fields annotated with this enum value should not be printed + * out when using debug formats, e.g. when the field contains sensitive + * credentials. + * + * @generated from protobuf field: optional bool debug_redact = 3; + */ + debug_redact?: boolean; + /** + * The parser stores options it doesn't recognize here. See above. + * + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + */ + uninterpreted_option: UninterpretedOption[]; +} +/** + * @generated from protobuf message google.protobuf.ServiceOptions + */ +export interface ServiceOptions { + /** + * Any features defined in the specific edition. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet features = 34; + */ + features?: FeatureSet; + /** + * Is this service deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the service, or it will be completely ignored; in the very least, + * this is a formalization for deprecating services. + * + * @generated from protobuf field: optional bool deprecated = 33; + */ + deprecated?: boolean; + /** + * The parser stores options it doesn't recognize here. See above. + * + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + */ + uninterpreted_option: UninterpretedOption[]; +} +/** + * @generated from protobuf message google.protobuf.MethodOptions + */ +export interface MethodOptions { + /** + * Is this method deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the method, or it will be completely ignored; in the very least, + * this is a formalization for deprecating methods. + * + * @generated from protobuf field: optional bool deprecated = 33; + */ + deprecated?: boolean; + /** + * @generated from protobuf field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34; + */ + idempotency_level?: MethodOptions_IdempotencyLevel; + /** + * Any features defined in the specific edition. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet features = 35; + */ + features?: FeatureSet; + /** + * The parser stores options it doesn't recognize here. See above. + * + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; + */ + uninterpreted_option: UninterpretedOption[]; +} +/** + * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, + * or neither? HTTP based RPC implementation may choose GET verb for safe + * methods, and PUT verb for idempotent methods instead of the default POST. + * + * @generated from protobuf enum google.protobuf.MethodOptions.IdempotencyLevel + */ +export declare enum MethodOptions_IdempotencyLevel { + /** + * @generated from protobuf enum value: IDEMPOTENCY_UNKNOWN = 0; + */ + IDEMPOTENCY_UNKNOWN = 0, + /** + * implies idempotent + * + * @generated from protobuf enum value: NO_SIDE_EFFECTS = 1; + */ + NO_SIDE_EFFECTS = 1, + /** + * idempotent, but may have side effects + * + * @generated from protobuf enum value: IDEMPOTENT = 2; + */ + IDEMPOTENT = 2 +} +/** + * A message representing a option the parser does not recognize. This only + * appears in options protos created by the compiler::Parser class. + * DescriptorPool resolves these when building Descriptor objects. Therefore, + * options protos in descriptor objects (e.g. returned by Descriptor::options(), + * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions + * in them. + * + * @generated from protobuf message google.protobuf.UninterpretedOption + */ +export interface UninterpretedOption { + /** + * @generated from protobuf field: repeated google.protobuf.UninterpretedOption.NamePart name = 2; + */ + name: UninterpretedOption_NamePart[]; + /** + * The value of the uninterpreted option, in whatever type the tokenizer + * identified it as during parsing. Exactly one of these should be set. + * + * @generated from protobuf field: optional string identifier_value = 3; + */ + identifier_value?: string; + /** + * @generated from protobuf field: optional uint64 positive_int_value = 4; + */ + positive_int_value?: bigint; + /** + * @generated from protobuf field: optional int64 negative_int_value = 5; + */ + negative_int_value?: bigint; + /** + * @generated from protobuf field: optional double double_value = 6; + */ + double_value?: number; + /** + * @generated from protobuf field: optional bytes string_value = 7; + */ + string_value?: Uint8Array; + /** + * @generated from protobuf field: optional string aggregate_value = 8; + */ + aggregate_value?: string; +} +/** + * The name of the uninterpreted option. Each string represents a segment in + * a dot-separated name. is_extension is true iff a segment represents an + * extension (denoted with parentheses in options specs in .proto files). + * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents + * "foo.(bar.baz).moo". + * + * @generated from protobuf message google.protobuf.UninterpretedOption.NamePart + */ +export interface UninterpretedOption_NamePart { + /** + * @generated from protobuf field: string name_part = 1; + */ + name_part: string; + /** + * @generated from protobuf field: bool is_extension = 2; + */ + is_extension: boolean; +} +/** + * TODO Enums in C++ gencode (and potentially other languages) are + * not well scoped. This means that each of the feature enums below can clash + * with each other. The short names we've chosen maximize call-site + * readability, but leave us very open to this scenario. A future feature will + * be designed and implemented to handle this, hopefully before we ever hit a + * conflict here. + * + * @generated from protobuf message google.protobuf.FeatureSet + */ +export interface FeatureSet { + /** + * @generated from protobuf field: optional google.protobuf.FeatureSet.FieldPresence field_presence = 1; + */ + field_presence?: FeatureSet_FieldPresence; + /** + * @generated from protobuf field: optional google.protobuf.FeatureSet.EnumType enum_type = 2; + */ + enum_type?: FeatureSet_EnumType; + /** + * @generated from protobuf field: optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3; + */ + repeated_field_encoding?: FeatureSet_RepeatedFieldEncoding; + /** + * @generated from protobuf field: optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4; + */ + utf8_validation?: FeatureSet_Utf8Validation; + /** + * @generated from protobuf field: optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5; + */ + message_encoding?: FeatureSet_MessageEncoding; + /** + * @generated from protobuf field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6; + */ + json_format?: FeatureSet_JsonFormat; +} +/** + * @generated from protobuf enum google.protobuf.FeatureSet.FieldPresence + */ +export declare enum FeatureSet_FieldPresence { + /** + * @generated from protobuf enum value: FIELD_PRESENCE_UNKNOWN = 0; + */ + FIELD_PRESENCE_UNKNOWN = 0, + /** + * @generated from protobuf enum value: EXPLICIT = 1; + */ + EXPLICIT = 1, + /** + * @generated from protobuf enum value: IMPLICIT = 2; + */ + IMPLICIT = 2, + /** + * @generated from protobuf enum value: LEGACY_REQUIRED = 3; + */ + LEGACY_REQUIRED = 3 +} +/** + * @generated from protobuf enum google.protobuf.FeatureSet.EnumType + */ +export declare enum FeatureSet_EnumType { + /** + * @generated from protobuf enum value: ENUM_TYPE_UNKNOWN = 0; + */ + ENUM_TYPE_UNKNOWN = 0, + /** + * @generated from protobuf enum value: OPEN = 1; + */ + OPEN = 1, + /** + * @generated from protobuf enum value: CLOSED = 2; + */ + CLOSED = 2 +} +/** + * @generated from protobuf enum google.protobuf.FeatureSet.RepeatedFieldEncoding + */ +export declare enum FeatureSet_RepeatedFieldEncoding { + /** + * @generated from protobuf enum value: REPEATED_FIELD_ENCODING_UNKNOWN = 0; + */ + REPEATED_FIELD_ENCODING_UNKNOWN = 0, + /** + * @generated from protobuf enum value: PACKED = 1; + */ + PACKED = 1, + /** + * @generated from protobuf enum value: EXPANDED = 2; + */ + EXPANDED = 2 +} +/** + * @generated from protobuf enum google.protobuf.FeatureSet.Utf8Validation + */ +export declare enum FeatureSet_Utf8Validation { + /** + * @generated from protobuf enum value: UTF8_VALIDATION_UNKNOWN = 0; + */ + UTF8_VALIDATION_UNKNOWN = 0, + /** + * @generated from protobuf enum value: VERIFY = 2; + */ + VERIFY = 2, + /** + * @generated from protobuf enum value: NONE = 3; + */ + NONE = 3 +} +/** + * @generated from protobuf enum google.protobuf.FeatureSet.MessageEncoding + */ +export declare enum FeatureSet_MessageEncoding { + /** + * @generated from protobuf enum value: MESSAGE_ENCODING_UNKNOWN = 0; + */ + MESSAGE_ENCODING_UNKNOWN = 0, + /** + * @generated from protobuf enum value: LENGTH_PREFIXED = 1; + */ + LENGTH_PREFIXED = 1, + /** + * @generated from protobuf enum value: DELIMITED = 2; + */ + DELIMITED = 2 +} +/** + * @generated from protobuf enum google.protobuf.FeatureSet.JsonFormat + */ +export declare enum FeatureSet_JsonFormat { + /** + * @generated from protobuf enum value: JSON_FORMAT_UNKNOWN = 0; + */ + JSON_FORMAT_UNKNOWN = 0, + /** + * @generated from protobuf enum value: ALLOW = 1; + */ + ALLOW = 1, + /** + * @generated from protobuf enum value: LEGACY_BEST_EFFORT = 2; + */ + LEGACY_BEST_EFFORT = 2 +} +/** + * A compiled specification for the defaults of a set of features. These + * messages are generated from FeatureSet extensions and can be used to seed + * feature resolution. The resolution with this object becomes a simple search + * for the closest matching edition, followed by proto merges. + * + * @generated from protobuf message google.protobuf.FeatureSetDefaults + */ +export interface FeatureSetDefaults { + /** + * @generated from protobuf field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1; + */ + defaults: FeatureSetDefaults_FeatureSetEditionDefault[]; + /** + * The minimum supported edition (inclusive) when this was constructed. + * Editions before this will not have defaults. + * + * @generated from protobuf field: optional google.protobuf.Edition minimum_edition = 4; + */ + minimum_edition?: Edition; + /** + * The maximum known edition (inclusive) when this was constructed. Editions + * after this will not have reliable defaults. + * + * @generated from protobuf field: optional google.protobuf.Edition maximum_edition = 5; + */ + maximum_edition?: Edition; +} +/** + * A map from every known edition with a unique set of defaults to its + * defaults. Not all editions may be contained here. For a given edition, + * the defaults at the closest matching edition ordered at or before it should + * be used. This field must be in strict ascending order by edition. + * + * @generated from protobuf message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + */ +export interface FeatureSetDefaults_FeatureSetEditionDefault { + /** + * @generated from protobuf field: optional google.protobuf.Edition edition = 3; + */ + edition?: Edition; + /** + * Defaults of features that can be overridden in this edition. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet overridable_features = 4; + */ + overridable_features?: FeatureSet; + /** + * Defaults of features that can't be overridden in this edition. + * + * @generated from protobuf field: optional google.protobuf.FeatureSet fixed_features = 5; + */ + fixed_features?: FeatureSet; +} +/** + * Encapsulates information about the original source file from which a + * FileDescriptorProto was generated. + * + * @generated from protobuf message google.protobuf.SourceCodeInfo + */ +export interface SourceCodeInfo { + /** + * A Location identifies a piece of source code in a .proto file which + * corresponds to a particular definition. This information is intended + * to be useful to IDEs, code indexers, documentation generators, and similar + * tools. + * + * For example, say we have a file like: + * message Foo { + * optional string foo = 1; + * } + * Let's look at just the field definition: + * optional string foo = 1; + * ^ ^^ ^^ ^ ^^^ + * a bc de f ghi + * We have the following locations: + * span path represents + * [a,i) [ 4, 0, 2, 0 ] The whole field definition. + * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). + * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). + * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). + * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). + * + * Notes: + * - A location may refer to a repeated field itself (i.e. not to any + * particular index within it). This is used whenever a set of elements are + * logically enclosed in a single code segment. For example, an entire + * extend block (possibly containing multiple extension definitions) will + * have an outer location whose path refers to the "extensions" repeated + * field without an index. + * - Multiple locations may have the same path. This happens when a single + * logical declaration is spread out across multiple places. The most + * obvious example is the "extend" block again -- there may be multiple + * extend blocks in the same scope, each of which will have the same path. + * - A location's span is not always a subset of its parent's span. For + * example, the "extendee" of an extension declaration appears at the + * beginning of the "extend" block and is shared by all extensions within + * the block. + * - Just because a location's span is a subset of some other location's span + * does not mean that it is a descendant. For example, a "group" defines + * both a type and a field in a single declaration. Thus, the locations + * corresponding to the type and field and their components will overlap. + * - Code which tries to interpret locations should probably be designed to + * ignore those that it doesn't understand, as more types of locations could + * be recorded in the future. + * + * @generated from protobuf field: repeated google.protobuf.SourceCodeInfo.Location location = 1; + */ + location: SourceCodeInfo_Location[]; +} +/** + * @generated from protobuf message google.protobuf.SourceCodeInfo.Location + */ +export interface SourceCodeInfo_Location { + /** + * Identifies which part of the FileDescriptorProto was defined at this + * location. + * + * Each element is a field number or an index. They form a path from + * the root FileDescriptorProto to the place where the definition appears. + * For example, this path: + * [ 4, 3, 2, 7, 1 ] + * refers to: + * file.message_type(3) // 4, 3 + * .field(7) // 2, 7 + * .name() // 1 + * This is because FileDescriptorProto.message_type has field number 4: + * repeated DescriptorProto message_type = 4; + * and DescriptorProto.field has field number 2: + * repeated FieldDescriptorProto field = 2; + * and FieldDescriptorProto.name has field number 1: + * optional string name = 1; + * + * Thus, the above path gives the location of a field name. If we removed + * the last element: + * [ 4, 3, 2, 7 ] + * this path refers to the whole field declaration (from the beginning + * of the label to the terminating semicolon). + * + * @generated from protobuf field: repeated int32 path = 1 [packed = true]; + */ + path: number[]; + /** + * Always has exactly three or four elements: start line, start column, + * end line (optional, otherwise assumed same as start line), end column. + * These are packed into a single field for efficiency. Note that line + * and column numbers are zero-based -- typically you will want to add + * 1 to each before displaying to a user. + * + * @generated from protobuf field: repeated int32 span = 2 [packed = true]; + */ + span: number[]; + /** + * If this SourceCodeInfo represents a complete declaration, these are any + * comments appearing before and after the declaration which appear to be + * attached to the declaration. + * + * A series of line comments appearing on consecutive lines, with no other + * tokens appearing on those lines, will be treated as a single comment. + * + * leading_detached_comments will keep paragraphs of comments that appear + * before (but not connected to) the current element. Each paragraph, + * separated by empty lines, will be one comment element in the repeated + * field. + * + * Only the comment content is provided; comment markers (e.g. //) are + * stripped out. For block comments, leading whitespace and an asterisk + * will be stripped from the beginning of each line other than the first. + * Newlines are included in the output. + * + * Examples: + * + * optional int32 foo = 1; // Comment attached to foo. + * // Comment attached to bar. + * optional int32 bar = 2; + * + * optional string baz = 3; + * // Comment attached to baz. + * // Another line attached to baz. + * + * // Comment attached to moo. + * // + * // Another line attached to moo. + * optional double moo = 4; + * + * // Detached comment for corge. This is not leading or trailing comments + * // to moo or corge because there are blank lines separating it from + * // both. + * + * // Detached comment for corge paragraph 2. + * + * optional string corge = 5; + * /* Block comment attached + * * to corge. Leading asterisks + * * will be removed. *\/ + * /* Block comment attached to + * * grault. *\/ + * optional int32 grault = 6; + * + * // ignored detached comments. + * + * @generated from protobuf field: optional string leading_comments = 3; + */ + leading_comments?: string; + /** + * @generated from protobuf field: optional string trailing_comments = 4; + */ + trailing_comments?: string; + /** + * @generated from protobuf field: repeated string leading_detached_comments = 6; + */ + leading_detached_comments: string[]; +} +/** + * Describes the relationship between generated code and its original source + * file. A GeneratedCodeInfo message is associated with only one generated + * source file, but may contain references to different source .proto files. + * + * @generated from protobuf message google.protobuf.GeneratedCodeInfo + */ +export interface GeneratedCodeInfo { + /** + * An Annotation connects some span of text in generated code to an element + * of its generating .proto file. + * + * @generated from protobuf field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; + */ + annotation: GeneratedCodeInfo_Annotation[]; +} +/** + * @generated from protobuf message google.protobuf.GeneratedCodeInfo.Annotation + */ +export interface GeneratedCodeInfo_Annotation { + /** + * Identifies the element in the original source .proto file. This field + * is formatted the same as SourceCodeInfo.Location.path. + * + * @generated from protobuf field: repeated int32 path = 1 [packed = true]; + */ + path: number[]; + /** + * Identifies the filesystem path to the original source .proto. + * + * @generated from protobuf field: optional string source_file = 2; + */ + source_file?: string; + /** + * Identifies the starting offset in bytes in the generated code + * that relates to the identified object. + * + * @generated from protobuf field: optional int32 begin = 3; + */ + begin?: number; + /** + * Identifies the ending offset in bytes in the generated code that + * relates to the identified object. The end offset should be one past + * the last relevant byte (so the length of the text = end - begin). + * + * @generated from protobuf field: optional int32 end = 4; + */ + end?: number; + /** + * @generated from protobuf field: optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; + */ + semantic?: GeneratedCodeInfo_Annotation_Semantic; +} +/** + * Represents the identified object's effect on the element in the original + * .proto file. + * + * @generated from protobuf enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic + */ +export declare enum GeneratedCodeInfo_Annotation_Semantic { + /** + * There is no effect or the effect is indescribable. + * + * @generated from protobuf enum value: NONE = 0; + */ + NONE = 0, + /** + * The element is set or otherwise mutated. + * + * @generated from protobuf enum value: SET = 1; + */ + SET = 1, + /** + * An alias to the element is returned. + * + * @generated from protobuf enum value: ALIAS = 2; + */ + ALIAS = 2 +} +/** + * The full set of known editions. + * + * @generated from protobuf enum google.protobuf.Edition + */ +export declare enum Edition { + /** + * A placeholder for an unknown edition value. + * + * @generated from protobuf enum value: EDITION_UNKNOWN = 0; + */ + EDITION_UNKNOWN = 0, + /** + * A placeholder edition for specifying default behaviors *before* a feature + * was first introduced. This is effectively an "infinite past". + * + * @generated from protobuf enum value: EDITION_LEGACY = 900; + */ + EDITION_LEGACY = 900, + /** + * Legacy syntax "editions". These pre-date editions, but behave much like + * distinct editions. These can't be used to specify the edition of proto + * files, but feature definitions must supply proto2/proto3 defaults for + * backwards compatibility. + * + * @generated from protobuf enum value: EDITION_PROTO2 = 998; + */ + EDITION_PROTO2 = 998, + /** + * @generated from protobuf enum value: EDITION_PROTO3 = 999; + */ + EDITION_PROTO3 = 999, + /** + * Editions that have been released. The specific values are arbitrary and + * should not be depended on, but they will always be time-ordered for easy + * comparison. + * + * @generated from protobuf enum value: EDITION_2023 = 1000; + */ + EDITION_2023 = 1000, + /** + * @generated from protobuf enum value: EDITION_2024 = 1001; + */ + EDITION_2024 = 1001, + /** + * Placeholder editions for testing feature resolution. These should not be + * used or relyed on outside of tests. + * + * @generated from protobuf enum value: EDITION_1_TEST_ONLY = 1; + */ + EDITION_1_TEST_ONLY = 1, + /** + * @generated from protobuf enum value: EDITION_2_TEST_ONLY = 2; + */ + EDITION_2_TEST_ONLY = 2, + /** + * @generated from protobuf enum value: EDITION_99997_TEST_ONLY = 99997; + */ + EDITION_99997_TEST_ONLY = 99997, + /** + * @generated from protobuf enum value: EDITION_99998_TEST_ONLY = 99998; + */ + EDITION_99998_TEST_ONLY = 99998, + /** + * @generated from protobuf enum value: EDITION_99999_TEST_ONLY = 99999; + */ + EDITION_99999_TEST_ONLY = 99999, + /** + * Placeholder for specifying unbounded edition support. This should only + * ever be used by plugins that can expect to never require any changes to + * support a new edition. + * + * @generated from protobuf enum value: EDITION_MAX = 2147483647; + */ + EDITION_MAX = 2147483647 +} +declare class FileDescriptorSet$Type extends MessageType { + constructor(); + create(value?: PartialMessage): FileDescriptorSet; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FileDescriptorSet): FileDescriptorSet; + internalBinaryWrite(message: FileDescriptorSet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.FileDescriptorSet + */ +export declare const FileDescriptorSet: FileDescriptorSet$Type; +declare class FileDescriptorProto$Type extends MessageType { + constructor(); + create(value?: PartialMessage): FileDescriptorProto; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FileDescriptorProto): FileDescriptorProto; + internalBinaryWrite(message: FileDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.FileDescriptorProto + */ +export declare const FileDescriptorProto: FileDescriptorProto$Type; +declare class DescriptorProto$Type extends MessageType { + constructor(); + create(value?: PartialMessage): DescriptorProto; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DescriptorProto): DescriptorProto; + internalBinaryWrite(message: DescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.DescriptorProto + */ +export declare const DescriptorProto: DescriptorProto$Type; +declare class DescriptorProto_ExtensionRange$Type extends MessageType { + constructor(); + create(value?: PartialMessage): DescriptorProto_ExtensionRange; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DescriptorProto_ExtensionRange): DescriptorProto_ExtensionRange; + internalBinaryWrite(message: DescriptorProto_ExtensionRange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.DescriptorProto.ExtensionRange + */ +export declare const DescriptorProto_ExtensionRange: DescriptorProto_ExtensionRange$Type; +declare class DescriptorProto_ReservedRange$Type extends MessageType { + constructor(); + create(value?: PartialMessage): DescriptorProto_ReservedRange; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DescriptorProto_ReservedRange): DescriptorProto_ReservedRange; + internalBinaryWrite(message: DescriptorProto_ReservedRange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.DescriptorProto.ReservedRange + */ +export declare const DescriptorProto_ReservedRange: DescriptorProto_ReservedRange$Type; +declare class ExtensionRangeOptions$Type extends MessageType { + constructor(); + create(value?: PartialMessage): ExtensionRangeOptions; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtensionRangeOptions): ExtensionRangeOptions; + internalBinaryWrite(message: ExtensionRangeOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.ExtensionRangeOptions + */ +export declare const ExtensionRangeOptions: ExtensionRangeOptions$Type; +declare class ExtensionRangeOptions_Declaration$Type extends MessageType { + constructor(); + create(value?: PartialMessage): ExtensionRangeOptions_Declaration; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtensionRangeOptions_Declaration): ExtensionRangeOptions_Declaration; + internalBinaryWrite(message: ExtensionRangeOptions_Declaration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.ExtensionRangeOptions.Declaration + */ +export declare const ExtensionRangeOptions_Declaration: ExtensionRangeOptions_Declaration$Type; +declare class FieldDescriptorProto$Type extends MessageType { + constructor(); + create(value?: PartialMessage): FieldDescriptorProto; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldDescriptorProto): FieldDescriptorProto; + internalBinaryWrite(message: FieldDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.FieldDescriptorProto + */ +export declare const FieldDescriptorProto: FieldDescriptorProto$Type; +declare class OneofDescriptorProto$Type extends MessageType { + constructor(); + create(value?: PartialMessage): OneofDescriptorProto; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OneofDescriptorProto): OneofDescriptorProto; + internalBinaryWrite(message: OneofDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.OneofDescriptorProto + */ +export declare const OneofDescriptorProto: OneofDescriptorProto$Type; +declare class EnumDescriptorProto$Type extends MessageType { + constructor(); + create(value?: PartialMessage): EnumDescriptorProto; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumDescriptorProto): EnumDescriptorProto; + internalBinaryWrite(message: EnumDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.EnumDescriptorProto + */ +export declare const EnumDescriptorProto: EnumDescriptorProto$Type; +declare class EnumDescriptorProto_EnumReservedRange$Type extends MessageType { + constructor(); + create(value?: PartialMessage): EnumDescriptorProto_EnumReservedRange; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumDescriptorProto_EnumReservedRange): EnumDescriptorProto_EnumReservedRange; + internalBinaryWrite(message: EnumDescriptorProto_EnumReservedRange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.EnumDescriptorProto.EnumReservedRange + */ +export declare const EnumDescriptorProto_EnumReservedRange: EnumDescriptorProto_EnumReservedRange$Type; +declare class EnumValueDescriptorProto$Type extends MessageType { + constructor(); + create(value?: PartialMessage): EnumValueDescriptorProto; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumValueDescriptorProto): EnumValueDescriptorProto; + internalBinaryWrite(message: EnumValueDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.EnumValueDescriptorProto + */ +export declare const EnumValueDescriptorProto: EnumValueDescriptorProto$Type; +declare class ServiceDescriptorProto$Type extends MessageType { + constructor(); + create(value?: PartialMessage): ServiceDescriptorProto; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ServiceDescriptorProto): ServiceDescriptorProto; + internalBinaryWrite(message: ServiceDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.ServiceDescriptorProto + */ +export declare const ServiceDescriptorProto: ServiceDescriptorProto$Type; +declare class MethodDescriptorProto$Type extends MessageType { + constructor(); + create(value?: PartialMessage): MethodDescriptorProto; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MethodDescriptorProto): MethodDescriptorProto; + internalBinaryWrite(message: MethodDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.MethodDescriptorProto + */ +export declare const MethodDescriptorProto: MethodDescriptorProto$Type; +declare class FileOptions$Type extends MessageType { + constructor(); + create(value?: PartialMessage): FileOptions; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FileOptions): FileOptions; + internalBinaryWrite(message: FileOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.FileOptions + */ +export declare const FileOptions: FileOptions$Type; +declare class MessageOptions$Type extends MessageType { + constructor(); + create(value?: PartialMessage): MessageOptions; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageOptions): MessageOptions; + internalBinaryWrite(message: MessageOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.MessageOptions + */ +export declare const MessageOptions: MessageOptions$Type; +declare class FieldOptions$Type extends MessageType { + constructor(); + create(value?: PartialMessage): FieldOptions; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldOptions): FieldOptions; + internalBinaryWrite(message: FieldOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.FieldOptions + */ +export declare const FieldOptions: FieldOptions$Type; +declare class FieldOptions_EditionDefault$Type extends MessageType { + constructor(); + create(value?: PartialMessage): FieldOptions_EditionDefault; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldOptions_EditionDefault): FieldOptions_EditionDefault; + internalBinaryWrite(message: FieldOptions_EditionDefault, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.FieldOptions.EditionDefault + */ +export declare const FieldOptions_EditionDefault: FieldOptions_EditionDefault$Type; +declare class FieldOptions_FeatureSupport$Type extends MessageType { + constructor(); + create(value?: PartialMessage): FieldOptions_FeatureSupport; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldOptions_FeatureSupport): FieldOptions_FeatureSupport; + internalBinaryWrite(message: FieldOptions_FeatureSupport, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.FieldOptions.FeatureSupport + */ +export declare const FieldOptions_FeatureSupport: FieldOptions_FeatureSupport$Type; +declare class OneofOptions$Type extends MessageType { + constructor(); + create(value?: PartialMessage): OneofOptions; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OneofOptions): OneofOptions; + internalBinaryWrite(message: OneofOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.OneofOptions + */ +export declare const OneofOptions: OneofOptions$Type; +declare class EnumOptions$Type extends MessageType { + constructor(); + create(value?: PartialMessage): EnumOptions; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumOptions): EnumOptions; + internalBinaryWrite(message: EnumOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.EnumOptions + */ +export declare const EnumOptions: EnumOptions$Type; +declare class EnumValueOptions$Type extends MessageType { + constructor(); + create(value?: PartialMessage): EnumValueOptions; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumValueOptions): EnumValueOptions; + internalBinaryWrite(message: EnumValueOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.EnumValueOptions + */ +export declare const EnumValueOptions: EnumValueOptions$Type; +declare class ServiceOptions$Type extends MessageType { + constructor(); + create(value?: PartialMessage): ServiceOptions; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ServiceOptions): ServiceOptions; + internalBinaryWrite(message: ServiceOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.ServiceOptions + */ +export declare const ServiceOptions: ServiceOptions$Type; +declare class MethodOptions$Type extends MessageType { + constructor(); + create(value?: PartialMessage): MethodOptions; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MethodOptions): MethodOptions; + internalBinaryWrite(message: MethodOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.MethodOptions + */ +export declare const MethodOptions: MethodOptions$Type; +declare class UninterpretedOption$Type extends MessageType { + constructor(); + create(value?: PartialMessage): UninterpretedOption; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UninterpretedOption): UninterpretedOption; + internalBinaryWrite(message: UninterpretedOption, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.UninterpretedOption + */ +export declare const UninterpretedOption: UninterpretedOption$Type; +declare class UninterpretedOption_NamePart$Type extends MessageType { + constructor(); + create(value?: PartialMessage): UninterpretedOption_NamePart; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UninterpretedOption_NamePart): UninterpretedOption_NamePart; + internalBinaryWrite(message: UninterpretedOption_NamePart, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.UninterpretedOption.NamePart + */ +export declare const UninterpretedOption_NamePart: UninterpretedOption_NamePart$Type; +declare class FeatureSet$Type extends MessageType { + constructor(); + create(value?: PartialMessage): FeatureSet; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSet): FeatureSet; + internalBinaryWrite(message: FeatureSet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.FeatureSet + */ +export declare const FeatureSet: FeatureSet$Type; +declare class FeatureSetDefaults$Type extends MessageType { + constructor(); + create(value?: PartialMessage): FeatureSetDefaults; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSetDefaults): FeatureSetDefaults; + internalBinaryWrite(message: FeatureSetDefaults, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.FeatureSetDefaults + */ +export declare const FeatureSetDefaults: FeatureSetDefaults$Type; +declare class FeatureSetDefaults_FeatureSetEditionDefault$Type extends MessageType { + constructor(); + create(value?: PartialMessage): FeatureSetDefaults_FeatureSetEditionDefault; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSetDefaults_FeatureSetEditionDefault): FeatureSetDefaults_FeatureSetEditionDefault; + internalBinaryWrite(message: FeatureSetDefaults_FeatureSetEditionDefault, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + */ +export declare const FeatureSetDefaults_FeatureSetEditionDefault: FeatureSetDefaults_FeatureSetEditionDefault$Type; +declare class SourceCodeInfo$Type extends MessageType { + constructor(); + create(value?: PartialMessage): SourceCodeInfo; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SourceCodeInfo): SourceCodeInfo; + internalBinaryWrite(message: SourceCodeInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.SourceCodeInfo + */ +export declare const SourceCodeInfo: SourceCodeInfo$Type; +declare class SourceCodeInfo_Location$Type extends MessageType { + constructor(); + create(value?: PartialMessage): SourceCodeInfo_Location; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SourceCodeInfo_Location): SourceCodeInfo_Location; + internalBinaryWrite(message: SourceCodeInfo_Location, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.SourceCodeInfo.Location + */ +export declare const SourceCodeInfo_Location: SourceCodeInfo_Location$Type; +declare class GeneratedCodeInfo$Type extends MessageType { + constructor(); + create(value?: PartialMessage): GeneratedCodeInfo; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GeneratedCodeInfo): GeneratedCodeInfo; + internalBinaryWrite(message: GeneratedCodeInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.GeneratedCodeInfo + */ +export declare const GeneratedCodeInfo: GeneratedCodeInfo$Type; +declare class GeneratedCodeInfo_Annotation$Type extends MessageType { + constructor(); + create(value?: PartialMessage): GeneratedCodeInfo_Annotation; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GeneratedCodeInfo_Annotation): GeneratedCodeInfo_Annotation; + internalBinaryWrite(message: GeneratedCodeInfo_Annotation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.GeneratedCodeInfo.Annotation + */ +export declare const GeneratedCodeInfo_Annotation: GeneratedCodeInfo_Annotation$Type; +export {}; diff --git a/src/google/protobuf/descriptor_pb.js b/src/google/protobuf/descriptor_pb.js new file mode 100644 index 00000000..13ffa670 --- /dev/null +++ b/src/google/protobuf/descriptor_pb.js @@ -0,0 +1,3149 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "google/protobuf/descriptor.proto" (package "google.protobuf", syntax proto2) +// tslint:disable +// @ts-nocheck +// +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// +// Author: kenton@google.com (Kenton Varda) +// Based on original Protocol Buffers design by +// Sanjay Ghemawat, Jeff Dean, and others. +// +// The messages in this file describe the definitions found in .proto files. +// A valid .proto file can be translated directly to a FileDescriptorProto +// without any other information (e.g. without reading its imports). +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.FeatureSetDefaults_FeatureSetEditionDefault = exports.FeatureSetDefaults = exports.FeatureSet = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions = exports.ServiceOptions = exports.EnumValueOptions = exports.EnumOptions = exports.OneofOptions = exports.FieldOptions_FeatureSupport = exports.FieldOptions_EditionDefault = exports.FieldOptions = exports.MessageOptions = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.FieldDescriptorProto = exports.ExtensionRangeOptions_Declaration = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = exports.Edition = exports.GeneratedCodeInfo_Annotation_Semantic = exports.FeatureSet_JsonFormat = exports.FeatureSet_MessageEncoding = exports.FeatureSet_Utf8Validation = exports.FeatureSet_RepeatedFieldEncoding = exports.FeatureSet_EnumType = exports.FeatureSet_FieldPresence = exports.MethodOptions_IdempotencyLevel = exports.FieldOptions_OptionTargetType = exports.FieldOptions_OptionRetention = exports.FieldOptions_JSType = exports.FieldOptions_CType = exports.FileOptions_OptimizeMode = exports.FieldDescriptorProto_Label = exports.FieldDescriptorProto_Type = exports.ExtensionRangeOptions_VerificationState = void 0; +const runtime_1 = require("@protobuf-ts/runtime"); +const runtime_2 = require("@protobuf-ts/runtime"); +const runtime_3 = require("@protobuf-ts/runtime"); +const runtime_4 = require("@protobuf-ts/runtime"); +/** + * The verification state of the extension range. + * + * @generated from protobuf enum google.protobuf.ExtensionRangeOptions.VerificationState + */ +var ExtensionRangeOptions_VerificationState; +(function (ExtensionRangeOptions_VerificationState) { + /** + * All the extensions of the range must be declared. + * + * @generated from protobuf enum value: DECLARATION = 0; + */ + ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["DECLARATION"] = 0] = "DECLARATION"; + /** + * @generated from protobuf enum value: UNVERIFIED = 1; + */ + ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["UNVERIFIED"] = 1] = "UNVERIFIED"; +})(ExtensionRangeOptions_VerificationState = exports.ExtensionRangeOptions_VerificationState || (exports.ExtensionRangeOptions_VerificationState = {})); +/** + * @generated from protobuf enum google.protobuf.FieldDescriptorProto.Type + */ +var FieldDescriptorProto_Type; +(function (FieldDescriptorProto_Type) { + /** + * @generated synthetic value - protobuf-ts requires all enums to have a 0 value + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["UNSPECIFIED$"] = 0] = "UNSPECIFIED$"; + /** + * 0 is reserved for errors. + * Order is weird for historical reasons. + * + * @generated from protobuf enum value: TYPE_DOUBLE = 1; + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_DOUBLE"] = 1] = "TYPE_DOUBLE"; + /** + * @generated from protobuf enum value: TYPE_FLOAT = 2; + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FLOAT"] = 2] = "TYPE_FLOAT"; + /** + * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if + * negative values are likely. + * + * @generated from protobuf enum value: TYPE_INT64 = 3; + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT64"] = 3] = "TYPE_INT64"; + /** + * @generated from protobuf enum value: TYPE_UINT64 = 4; + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT64"] = 4] = "TYPE_UINT64"; + /** + * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if + * negative values are likely. + * + * @generated from protobuf enum value: TYPE_INT32 = 5; + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT32"] = 5] = "TYPE_INT32"; + /** + * @generated from protobuf enum value: TYPE_FIXED64 = 6; + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED64"] = 6] = "TYPE_FIXED64"; + /** + * @generated from protobuf enum value: TYPE_FIXED32 = 7; + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED32"] = 7] = "TYPE_FIXED32"; + /** + * @generated from protobuf enum value: TYPE_BOOL = 8; + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BOOL"] = 8] = "TYPE_BOOL"; + /** + * @generated from protobuf enum value: TYPE_STRING = 9; + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_STRING"] = 9] = "TYPE_STRING"; + /** + * Tag-delimited aggregate. + * Group type is deprecated and not supported after google.protobuf. However, Proto3 + * implementations should still be able to parse the group wire format and + * treat group fields as unknown fields. In Editions, the group wire format + * can be enabled via the `message_encoding` feature. + * + * @generated from protobuf enum value: TYPE_GROUP = 10; + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_GROUP"] = 10] = "TYPE_GROUP"; + /** + * Length-delimited aggregate. + * + * @generated from protobuf enum value: TYPE_MESSAGE = 11; + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_MESSAGE"] = 11] = "TYPE_MESSAGE"; + /** + * New in version 2. + * + * @generated from protobuf enum value: TYPE_BYTES = 12; + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BYTES"] = 12] = "TYPE_BYTES"; + /** + * @generated from protobuf enum value: TYPE_UINT32 = 13; + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT32"] = 13] = "TYPE_UINT32"; + /** + * @generated from protobuf enum value: TYPE_ENUM = 14; + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_ENUM"] = 14] = "TYPE_ENUM"; + /** + * @generated from protobuf enum value: TYPE_SFIXED32 = 15; + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED32"] = 15] = "TYPE_SFIXED32"; + /** + * @generated from protobuf enum value: TYPE_SFIXED64 = 16; + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED64"] = 16] = "TYPE_SFIXED64"; + /** + * Uses ZigZag encoding. + * + * @generated from protobuf enum value: TYPE_SINT32 = 17; + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT32"] = 17] = "TYPE_SINT32"; + /** + * Uses ZigZag encoding. + * + * @generated from protobuf enum value: TYPE_SINT64 = 18; + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT64"] = 18] = "TYPE_SINT64"; +})(FieldDescriptorProto_Type = exports.FieldDescriptorProto_Type || (exports.FieldDescriptorProto_Type = {})); +/** + * @generated from protobuf enum google.protobuf.FieldDescriptorProto.Label + */ +var FieldDescriptorProto_Label; +(function (FieldDescriptorProto_Label) { + /** + * @generated synthetic value - protobuf-ts requires all enums to have a 0 value + */ + FieldDescriptorProto_Label[FieldDescriptorProto_Label["UNSPECIFIED$"] = 0] = "UNSPECIFIED$"; + /** + * 0 is reserved for errors + * + * @generated from protobuf enum value: LABEL_OPTIONAL = 1; + */ + FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_OPTIONAL"] = 1] = "LABEL_OPTIONAL"; + /** + * @generated from protobuf enum value: LABEL_REPEATED = 3; + */ + FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REPEATED"] = 3] = "LABEL_REPEATED"; + /** + * The required label is only allowed in google.protobuf. In proto3 and Editions + * it's explicitly prohibited. In Editions, the `field_presence` feature + * can be used to get this behavior. + * + * @generated from protobuf enum value: LABEL_REQUIRED = 2; + */ + FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED"; +})(FieldDescriptorProto_Label = exports.FieldDescriptorProto_Label || (exports.FieldDescriptorProto_Label = {})); +/** + * Generated classes can be optimized for speed or code size. + * + * @generated from protobuf enum google.protobuf.FileOptions.OptimizeMode + */ +var FileOptions_OptimizeMode; +(function (FileOptions_OptimizeMode) { + /** + * @generated synthetic value - protobuf-ts requires all enums to have a 0 value + */ + FileOptions_OptimizeMode[FileOptions_OptimizeMode["UNSPECIFIED$"] = 0] = "UNSPECIFIED$"; + /** + * Generate complete code for parsing, serialization, + * + * @generated from protobuf enum value: SPEED = 1; + */ + FileOptions_OptimizeMode[FileOptions_OptimizeMode["SPEED"] = 1] = "SPEED"; + /** + * etc. + * + * Use ReflectionOps to implement these methods. + * + * @generated from protobuf enum value: CODE_SIZE = 2; + */ + FileOptions_OptimizeMode[FileOptions_OptimizeMode["CODE_SIZE"] = 2] = "CODE_SIZE"; + /** + * Generate code using MessageLite and the lite runtime. + * + * @generated from protobuf enum value: LITE_RUNTIME = 3; + */ + FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME"; +})(FileOptions_OptimizeMode = exports.FileOptions_OptimizeMode || (exports.FileOptions_OptimizeMode = {})); +/** + * @generated from protobuf enum google.protobuf.FieldOptions.CType + */ +var FieldOptions_CType; +(function (FieldOptions_CType) { + /** + * Default mode. + * + * @generated from protobuf enum value: STRING = 0; + */ + FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING"; + /** + * The option [ctype=CORD] may be applied to a non-repeated field of type + * "bytes". It indicates that in C++, the data should be stored in a Cord + * instead of a string. For very large strings, this may reduce memory + * fragmentation. It may also allow better performance when parsing from a + * Cord, or when parsing with aliasing enabled, as the parsed Cord may then + * alias the original buffer. + * + * @generated from protobuf enum value: CORD = 1; + */ + FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD"; + /** + * @generated from protobuf enum value: STRING_PIECE = 2; + */ + FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE"; +})(FieldOptions_CType = exports.FieldOptions_CType || (exports.FieldOptions_CType = {})); +/** + * @generated from protobuf enum google.protobuf.FieldOptions.JSType + */ +var FieldOptions_JSType; +(function (FieldOptions_JSType) { + /** + * Use the default type. + * + * @generated from protobuf enum value: JS_NORMAL = 0; + */ + FieldOptions_JSType[FieldOptions_JSType["JS_NORMAL"] = 0] = "JS_NORMAL"; + /** + * Use JavaScript strings. + * + * @generated from protobuf enum value: JS_STRING = 1; + */ + FieldOptions_JSType[FieldOptions_JSType["JS_STRING"] = 1] = "JS_STRING"; + /** + * Use JavaScript numbers. + * + * @generated from protobuf enum value: JS_NUMBER = 2; + */ + FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER"; +})(FieldOptions_JSType = exports.FieldOptions_JSType || (exports.FieldOptions_JSType = {})); +/** + * If set to RETENTION_SOURCE, the option will be omitted from the binary. + * Note: as of January 2023, support for this is in progress and does not yet + * have an effect (b/264593489). + * + * @generated from protobuf enum google.protobuf.FieldOptions.OptionRetention + */ +var FieldOptions_OptionRetention; +(function (FieldOptions_OptionRetention) { + /** + * @generated from protobuf enum value: RETENTION_UNKNOWN = 0; + */ + FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_UNKNOWN"] = 0] = "RETENTION_UNKNOWN"; + /** + * @generated from protobuf enum value: RETENTION_RUNTIME = 1; + */ + FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_RUNTIME"] = 1] = "RETENTION_RUNTIME"; + /** + * @generated from protobuf enum value: RETENTION_SOURCE = 2; + */ + FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_SOURCE"] = 2] = "RETENTION_SOURCE"; +})(FieldOptions_OptionRetention = exports.FieldOptions_OptionRetention || (exports.FieldOptions_OptionRetention = {})); +/** + * This indicates the types of entities that the field may apply to when used + * as an option. If it is unset, then the field may be freely used as an + * option on any kind of entity. Note: as of January 2023, support for this is + * in progress and does not yet have an effect (b/264593489). + * + * @generated from protobuf enum google.protobuf.FieldOptions.OptionTargetType + */ +var FieldOptions_OptionTargetType; +(function (FieldOptions_OptionTargetType) { + /** + * @generated from protobuf enum value: TARGET_TYPE_UNKNOWN = 0; + */ + FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_UNKNOWN"] = 0] = "TARGET_TYPE_UNKNOWN"; + /** + * @generated from protobuf enum value: TARGET_TYPE_FILE = 1; + */ + FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_FILE"] = 1] = "TARGET_TYPE_FILE"; + /** + * @generated from protobuf enum value: TARGET_TYPE_EXTENSION_RANGE = 2; + */ + FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_EXTENSION_RANGE"] = 2] = "TARGET_TYPE_EXTENSION_RANGE"; + /** + * @generated from protobuf enum value: TARGET_TYPE_MESSAGE = 3; + */ + FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_MESSAGE"] = 3] = "TARGET_TYPE_MESSAGE"; + /** + * @generated from protobuf enum value: TARGET_TYPE_FIELD = 4; + */ + FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_FIELD"] = 4] = "TARGET_TYPE_FIELD"; + /** + * @generated from protobuf enum value: TARGET_TYPE_ONEOF = 5; + */ + FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ONEOF"] = 5] = "TARGET_TYPE_ONEOF"; + /** + * @generated from protobuf enum value: TARGET_TYPE_ENUM = 6; + */ + FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ENUM"] = 6] = "TARGET_TYPE_ENUM"; + /** + * @generated from protobuf enum value: TARGET_TYPE_ENUM_ENTRY = 7; + */ + FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ENUM_ENTRY"] = 7] = "TARGET_TYPE_ENUM_ENTRY"; + /** + * @generated from protobuf enum value: TARGET_TYPE_SERVICE = 8; + */ + FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_SERVICE"] = 8] = "TARGET_TYPE_SERVICE"; + /** + * @generated from protobuf enum value: TARGET_TYPE_METHOD = 9; + */ + FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_METHOD"] = 9] = "TARGET_TYPE_METHOD"; +})(FieldOptions_OptionTargetType = exports.FieldOptions_OptionTargetType || (exports.FieldOptions_OptionTargetType = {})); +/** + * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, + * or neither? HTTP based RPC implementation may choose GET verb for safe + * methods, and PUT verb for idempotent methods instead of the default POST. + * + * @generated from protobuf enum google.protobuf.MethodOptions.IdempotencyLevel + */ +var MethodOptions_IdempotencyLevel; +(function (MethodOptions_IdempotencyLevel) { + /** + * @generated from protobuf enum value: IDEMPOTENCY_UNKNOWN = 0; + */ + MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = 0] = "IDEMPOTENCY_UNKNOWN"; + /** + * implies idempotent + * + * @generated from protobuf enum value: NO_SIDE_EFFECTS = 1; + */ + MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["NO_SIDE_EFFECTS"] = 1] = "NO_SIDE_EFFECTS"; + /** + * idempotent, but may have side effects + * + * @generated from protobuf enum value: IDEMPOTENT = 2; + */ + MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT"; +})(MethodOptions_IdempotencyLevel = exports.MethodOptions_IdempotencyLevel || (exports.MethodOptions_IdempotencyLevel = {})); +/** + * @generated from protobuf enum google.protobuf.FeatureSet.FieldPresence + */ +var FeatureSet_FieldPresence; +(function (FeatureSet_FieldPresence) { + /** + * @generated from protobuf enum value: FIELD_PRESENCE_UNKNOWN = 0; + */ + FeatureSet_FieldPresence[FeatureSet_FieldPresence["FIELD_PRESENCE_UNKNOWN"] = 0] = "FIELD_PRESENCE_UNKNOWN"; + /** + * @generated from protobuf enum value: EXPLICIT = 1; + */ + FeatureSet_FieldPresence[FeatureSet_FieldPresence["EXPLICIT"] = 1] = "EXPLICIT"; + /** + * @generated from protobuf enum value: IMPLICIT = 2; + */ + FeatureSet_FieldPresence[FeatureSet_FieldPresence["IMPLICIT"] = 2] = "IMPLICIT"; + /** + * @generated from protobuf enum value: LEGACY_REQUIRED = 3; + */ + FeatureSet_FieldPresence[FeatureSet_FieldPresence["LEGACY_REQUIRED"] = 3] = "LEGACY_REQUIRED"; +})(FeatureSet_FieldPresence = exports.FeatureSet_FieldPresence || (exports.FeatureSet_FieldPresence = {})); +/** + * @generated from protobuf enum google.protobuf.FeatureSet.EnumType + */ +var FeatureSet_EnumType; +(function (FeatureSet_EnumType) { + /** + * @generated from protobuf enum value: ENUM_TYPE_UNKNOWN = 0; + */ + FeatureSet_EnumType[FeatureSet_EnumType["ENUM_TYPE_UNKNOWN"] = 0] = "ENUM_TYPE_UNKNOWN"; + /** + * @generated from protobuf enum value: OPEN = 1; + */ + FeatureSet_EnumType[FeatureSet_EnumType["OPEN"] = 1] = "OPEN"; + /** + * @generated from protobuf enum value: CLOSED = 2; + */ + FeatureSet_EnumType[FeatureSet_EnumType["CLOSED"] = 2] = "CLOSED"; +})(FeatureSet_EnumType = exports.FeatureSet_EnumType || (exports.FeatureSet_EnumType = {})); +/** + * @generated from protobuf enum google.protobuf.FeatureSet.RepeatedFieldEncoding + */ +var FeatureSet_RepeatedFieldEncoding; +(function (FeatureSet_RepeatedFieldEncoding) { + /** + * @generated from protobuf enum value: REPEATED_FIELD_ENCODING_UNKNOWN = 0; + */ + FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["REPEATED_FIELD_ENCODING_UNKNOWN"] = 0] = "REPEATED_FIELD_ENCODING_UNKNOWN"; + /** + * @generated from protobuf enum value: PACKED = 1; + */ + FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["PACKED"] = 1] = "PACKED"; + /** + * @generated from protobuf enum value: EXPANDED = 2; + */ + FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["EXPANDED"] = 2] = "EXPANDED"; +})(FeatureSet_RepeatedFieldEncoding = exports.FeatureSet_RepeatedFieldEncoding || (exports.FeatureSet_RepeatedFieldEncoding = {})); +/** + * @generated from protobuf enum google.protobuf.FeatureSet.Utf8Validation + */ +var FeatureSet_Utf8Validation; +(function (FeatureSet_Utf8Validation) { + /** + * @generated from protobuf enum value: UTF8_VALIDATION_UNKNOWN = 0; + */ + FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN"; + /** + * @generated from protobuf enum value: VERIFY = 2; + */ + FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["VERIFY"] = 2] = "VERIFY"; + /** + * @generated from protobuf enum value: NONE = 3; + */ + FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["NONE"] = 3] = "NONE"; +})(FeatureSet_Utf8Validation = exports.FeatureSet_Utf8Validation || (exports.FeatureSet_Utf8Validation = {})); +/** + * @generated from protobuf enum google.protobuf.FeatureSet.MessageEncoding + */ +var FeatureSet_MessageEncoding; +(function (FeatureSet_MessageEncoding) { + /** + * @generated from protobuf enum value: MESSAGE_ENCODING_UNKNOWN = 0; + */ + FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["MESSAGE_ENCODING_UNKNOWN"] = 0] = "MESSAGE_ENCODING_UNKNOWN"; + /** + * @generated from protobuf enum value: LENGTH_PREFIXED = 1; + */ + FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["LENGTH_PREFIXED"] = 1] = "LENGTH_PREFIXED"; + /** + * @generated from protobuf enum value: DELIMITED = 2; + */ + FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["DELIMITED"] = 2] = "DELIMITED"; +})(FeatureSet_MessageEncoding = exports.FeatureSet_MessageEncoding || (exports.FeatureSet_MessageEncoding = {})); +/** + * @generated from protobuf enum google.protobuf.FeatureSet.JsonFormat + */ +var FeatureSet_JsonFormat; +(function (FeatureSet_JsonFormat) { + /** + * @generated from protobuf enum value: JSON_FORMAT_UNKNOWN = 0; + */ + FeatureSet_JsonFormat[FeatureSet_JsonFormat["JSON_FORMAT_UNKNOWN"] = 0] = "JSON_FORMAT_UNKNOWN"; + /** + * @generated from protobuf enum value: ALLOW = 1; + */ + FeatureSet_JsonFormat[FeatureSet_JsonFormat["ALLOW"] = 1] = "ALLOW"; + /** + * @generated from protobuf enum value: LEGACY_BEST_EFFORT = 2; + */ + FeatureSet_JsonFormat[FeatureSet_JsonFormat["LEGACY_BEST_EFFORT"] = 2] = "LEGACY_BEST_EFFORT"; +})(FeatureSet_JsonFormat = exports.FeatureSet_JsonFormat || (exports.FeatureSet_JsonFormat = {})); +/** + * Represents the identified object's effect on the element in the original + * .proto file. + * + * @generated from protobuf enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic + */ +var GeneratedCodeInfo_Annotation_Semantic; +(function (GeneratedCodeInfo_Annotation_Semantic) { + /** + * There is no effect or the effect is indescribable. + * + * @generated from protobuf enum value: NONE = 0; + */ + GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["NONE"] = 0] = "NONE"; + /** + * The element is set or otherwise mutated. + * + * @generated from protobuf enum value: SET = 1; + */ + GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["SET"] = 1] = "SET"; + /** + * An alias to the element is returned. + * + * @generated from protobuf enum value: ALIAS = 2; + */ + GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["ALIAS"] = 2] = "ALIAS"; +})(GeneratedCodeInfo_Annotation_Semantic = exports.GeneratedCodeInfo_Annotation_Semantic || (exports.GeneratedCodeInfo_Annotation_Semantic = {})); +/** + * The full set of known editions. + * + * @generated from protobuf enum google.protobuf.Edition + */ +var Edition; +(function (Edition) { + /** + * A placeholder for an unknown edition value. + * + * @generated from protobuf enum value: EDITION_UNKNOWN = 0; + */ + Edition[Edition["EDITION_UNKNOWN"] = 0] = "EDITION_UNKNOWN"; + /** + * A placeholder edition for specifying default behaviors *before* a feature + * was first introduced. This is effectively an "infinite past". + * + * @generated from protobuf enum value: EDITION_LEGACY = 900; + */ + Edition[Edition["EDITION_LEGACY"] = 900] = "EDITION_LEGACY"; + /** + * Legacy syntax "editions". These pre-date editions, but behave much like + * distinct editions. These can't be used to specify the edition of proto + * files, but feature definitions must supply proto2/proto3 defaults for + * backwards compatibility. + * + * @generated from protobuf enum value: EDITION_PROTO2 = 998; + */ + Edition[Edition["EDITION_PROTO2"] = 998] = "EDITION_PROTO2"; + /** + * @generated from protobuf enum value: EDITION_PROTO3 = 999; + */ + Edition[Edition["EDITION_PROTO3"] = 999] = "EDITION_PROTO3"; + /** + * Editions that have been released. The specific values are arbitrary and + * should not be depended on, but they will always be time-ordered for easy + * comparison. + * + * @generated from protobuf enum value: EDITION_2023 = 1000; + */ + Edition[Edition["EDITION_2023"] = 1000] = "EDITION_2023"; + /** + * @generated from protobuf enum value: EDITION_2024 = 1001; + */ + Edition[Edition["EDITION_2024"] = 1001] = "EDITION_2024"; + /** + * Placeholder editions for testing feature resolution. These should not be + * used or relyed on outside of tests. + * + * @generated from protobuf enum value: EDITION_1_TEST_ONLY = 1; + */ + Edition[Edition["EDITION_1_TEST_ONLY"] = 1] = "EDITION_1_TEST_ONLY"; + /** + * @generated from protobuf enum value: EDITION_2_TEST_ONLY = 2; + */ + Edition[Edition["EDITION_2_TEST_ONLY"] = 2] = "EDITION_2_TEST_ONLY"; + /** + * @generated from protobuf enum value: EDITION_99997_TEST_ONLY = 99997; + */ + Edition[Edition["EDITION_99997_TEST_ONLY"] = 99997] = "EDITION_99997_TEST_ONLY"; + /** + * @generated from protobuf enum value: EDITION_99998_TEST_ONLY = 99998; + */ + Edition[Edition["EDITION_99998_TEST_ONLY"] = 99998] = "EDITION_99998_TEST_ONLY"; + /** + * @generated from protobuf enum value: EDITION_99999_TEST_ONLY = 99999; + */ + Edition[Edition["EDITION_99999_TEST_ONLY"] = 99999] = "EDITION_99999_TEST_ONLY"; + /** + * Placeholder for specifying unbounded edition support. This should only + * ever be used by plugins that can expect to never require any changes to + * support a new edition. + * + * @generated from protobuf enum value: EDITION_MAX = 2147483647; + */ + Edition[Edition["EDITION_MAX"] = 2147483647] = "EDITION_MAX"; +})(Edition = exports.Edition || (exports.Edition = {})); +// @generated message type with reflection information, may provide speed optimized methods +class FileDescriptorSet$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.FileDescriptorSet", [ + { no: 1, name: "file", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.FileDescriptorProto } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.file = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated google.protobuf.FileDescriptorProto file */ 1: + message.file.push(exports.FileDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated google.protobuf.FileDescriptorProto file = 1; */ + for (let i = 0; i < message.file.length; i++) + exports.FileDescriptorProto.internalBinaryWrite(message.file[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.FileDescriptorSet + */ +exports.FileDescriptorSet = new FileDescriptorSet$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class FileDescriptorProto$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.FileDescriptorProto", [ + { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "package", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "dependency", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 10, name: "public_dependency", kind: "scalar", localName: "public_dependency", repeat: 2 /*RepeatType.UNPACKED*/, T: 5 /*ScalarType.INT32*/ }, + { no: 11, name: "weak_dependency", kind: "scalar", localName: "weak_dependency", repeat: 2 /*RepeatType.UNPACKED*/, T: 5 /*ScalarType.INT32*/ }, + { no: 4, name: "message_type", kind: "message", localName: "message_type", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.DescriptorProto }, + { no: 5, name: "enum_type", kind: "message", localName: "enum_type", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.EnumDescriptorProto }, + { no: 6, name: "service", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.ServiceDescriptorProto }, + { no: 7, name: "extension", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.FieldDescriptorProto }, + { no: 8, name: "options", kind: "message", T: () => exports.FileOptions }, + { no: 9, name: "source_code_info", kind: "message", localName: "source_code_info", T: () => exports.SourceCodeInfo }, + { no: 12, name: "syntax", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 14, name: "edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.dependency = []; + message.public_dependency = []; + message.weak_dependency = []; + message.message_type = []; + message.enum_type = []; + message.service = []; + message.extension = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional string name */ 1: + message.name = reader.string(); + break; + case /* optional string package */ 2: + message.package = reader.string(); + break; + case /* repeated string dependency */ 3: + message.dependency.push(reader.string()); + break; + case /* repeated int32 public_dependency */ 10: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.public_dependency.push(reader.int32()); + else + message.public_dependency.push(reader.int32()); + break; + case /* repeated int32 weak_dependency */ 11: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.weak_dependency.push(reader.int32()); + else + message.weak_dependency.push(reader.int32()); + break; + case /* repeated google.protobuf.DescriptorProto message_type */ 4: + message.message_type.push(exports.DescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* repeated google.protobuf.EnumDescriptorProto enum_type */ 5: + message.enum_type.push(exports.EnumDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* repeated google.protobuf.ServiceDescriptorProto service */ 6: + message.service.push(exports.ServiceDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* repeated google.protobuf.FieldDescriptorProto extension */ 7: + message.extension.push(exports.FieldDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* optional google.protobuf.FileOptions options */ 8: + message.options = exports.FileOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); + break; + case /* optional google.protobuf.SourceCodeInfo source_code_info */ 9: + message.source_code_info = exports.SourceCodeInfo.internalBinaryRead(reader, reader.uint32(), options, message.source_code_info); + break; + case /* optional string syntax */ 12: + message.syntax = reader.string(); + break; + case /* optional google.protobuf.Edition edition */ 14: + message.edition = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional string name = 1; */ + if (message.name !== undefined) + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); + /* optional string package = 2; */ + if (message.package !== undefined) + writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.package); + /* repeated string dependency = 3; */ + for (let i = 0; i < message.dependency.length; i++) + writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.dependency[i]); + /* repeated int32 public_dependency = 10; */ + for (let i = 0; i < message.public_dependency.length; i++) + writer.tag(10, runtime_1.WireType.Varint).int32(message.public_dependency[i]); + /* repeated int32 weak_dependency = 11; */ + for (let i = 0; i < message.weak_dependency.length; i++) + writer.tag(11, runtime_1.WireType.Varint).int32(message.weak_dependency[i]); + /* repeated google.protobuf.DescriptorProto message_type = 4; */ + for (let i = 0; i < message.message_type.length; i++) + exports.DescriptorProto.internalBinaryWrite(message.message_type[i], writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.EnumDescriptorProto enum_type = 5; */ + for (let i = 0; i < message.enum_type.length; i++) + exports.EnumDescriptorProto.internalBinaryWrite(message.enum_type[i], writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.ServiceDescriptorProto service = 6; */ + for (let i = 0; i < message.service.length; i++) + exports.ServiceDescriptorProto.internalBinaryWrite(message.service[i], writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.FieldDescriptorProto extension = 7; */ + for (let i = 0; i < message.extension.length; i++) + exports.FieldDescriptorProto.internalBinaryWrite(message.extension[i], writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.FileOptions options = 8; */ + if (message.options) + exports.FileOptions.internalBinaryWrite(message.options, writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.SourceCodeInfo source_code_info = 9; */ + if (message.source_code_info) + exports.SourceCodeInfo.internalBinaryWrite(message.source_code_info, writer.tag(9, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* optional string syntax = 12; */ + if (message.syntax !== undefined) + writer.tag(12, runtime_1.WireType.LengthDelimited).string(message.syntax); + /* optional google.protobuf.Edition edition = 14; */ + if (message.edition !== undefined) + writer.tag(14, runtime_1.WireType.Varint).int32(message.edition); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.FileDescriptorProto + */ +exports.FileDescriptorProto = new FileDescriptorProto$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class DescriptorProto$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.DescriptorProto", [ + { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "field", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.FieldDescriptorProto }, + { no: 6, name: "extension", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.FieldDescriptorProto }, + { no: 3, name: "nested_type", kind: "message", localName: "nested_type", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.DescriptorProto }, + { no: 4, name: "enum_type", kind: "message", localName: "enum_type", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.EnumDescriptorProto }, + { no: 5, name: "extension_range", kind: "message", localName: "extension_range", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.DescriptorProto_ExtensionRange }, + { no: 8, name: "oneof_decl", kind: "message", localName: "oneof_decl", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.OneofDescriptorProto }, + { no: 7, name: "options", kind: "message", T: () => exports.MessageOptions }, + { no: 9, name: "reserved_range", kind: "message", localName: "reserved_range", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.DescriptorProto_ReservedRange }, + { no: 10, name: "reserved_name", kind: "scalar", localName: "reserved_name", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.field = []; + message.extension = []; + message.nested_type = []; + message.enum_type = []; + message.extension_range = []; + message.oneof_decl = []; + message.reserved_range = []; + message.reserved_name = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional string name */ 1: + message.name = reader.string(); + break; + case /* repeated google.protobuf.FieldDescriptorProto field */ 2: + message.field.push(exports.FieldDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* repeated google.protobuf.FieldDescriptorProto extension */ 6: + message.extension.push(exports.FieldDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* repeated google.protobuf.DescriptorProto nested_type */ 3: + message.nested_type.push(exports.DescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* repeated google.protobuf.EnumDescriptorProto enum_type */ 4: + message.enum_type.push(exports.EnumDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* repeated google.protobuf.DescriptorProto.ExtensionRange extension_range */ 5: + message.extension_range.push(exports.DescriptorProto_ExtensionRange.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* repeated google.protobuf.OneofDescriptorProto oneof_decl */ 8: + message.oneof_decl.push(exports.OneofDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* optional google.protobuf.MessageOptions options */ 7: + message.options = exports.MessageOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); + break; + case /* repeated google.protobuf.DescriptorProto.ReservedRange reserved_range */ 9: + message.reserved_range.push(exports.DescriptorProto_ReservedRange.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* repeated string reserved_name */ 10: + message.reserved_name.push(reader.string()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional string name = 1; */ + if (message.name !== undefined) + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); + /* repeated google.protobuf.FieldDescriptorProto field = 2; */ + for (let i = 0; i < message.field.length; i++) + exports.FieldDescriptorProto.internalBinaryWrite(message.field[i], writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.FieldDescriptorProto extension = 6; */ + for (let i = 0; i < message.extension.length; i++) + exports.FieldDescriptorProto.internalBinaryWrite(message.extension[i], writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.DescriptorProto nested_type = 3; */ + for (let i = 0; i < message.nested_type.length; i++) + exports.DescriptorProto.internalBinaryWrite(message.nested_type[i], writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.EnumDescriptorProto enum_type = 4; */ + for (let i = 0; i < message.enum_type.length; i++) + exports.EnumDescriptorProto.internalBinaryWrite(message.enum_type[i], writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ + for (let i = 0; i < message.extension_range.length; i++) + exports.DescriptorProto_ExtensionRange.internalBinaryWrite(message.extension_range[i], writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.OneofDescriptorProto oneof_decl = 8; */ + for (let i = 0; i < message.oneof_decl.length; i++) + exports.OneofDescriptorProto.internalBinaryWrite(message.oneof_decl[i], writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.MessageOptions options = 7; */ + if (message.options) + exports.MessageOptions.internalBinaryWrite(message.options, writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; */ + for (let i = 0; i < message.reserved_range.length; i++) + exports.DescriptorProto_ReservedRange.internalBinaryWrite(message.reserved_range[i], writer.tag(9, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated string reserved_name = 10; */ + for (let i = 0; i < message.reserved_name.length; i++) + writer.tag(10, runtime_1.WireType.LengthDelimited).string(message.reserved_name[i]); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.DescriptorProto + */ +exports.DescriptorProto = new DescriptorProto$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class DescriptorProto_ExtensionRange$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.DescriptorProto.ExtensionRange", [ + { no: 1, name: "start", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, + { no: 2, name: "end", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, + { no: 3, name: "options", kind: "message", T: () => exports.ExtensionRangeOptions } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional int32 start */ 1: + message.start = reader.int32(); + break; + case /* optional int32 end */ 2: + message.end = reader.int32(); + break; + case /* optional google.protobuf.ExtensionRangeOptions options */ 3: + message.options = exports.ExtensionRangeOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional int32 start = 1; */ + if (message.start !== undefined) + writer.tag(1, runtime_1.WireType.Varint).int32(message.start); + /* optional int32 end = 2; */ + if (message.end !== undefined) + writer.tag(2, runtime_1.WireType.Varint).int32(message.end); + /* optional google.protobuf.ExtensionRangeOptions options = 3; */ + if (message.options) + exports.ExtensionRangeOptions.internalBinaryWrite(message.options, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.DescriptorProto.ExtensionRange + */ +exports.DescriptorProto_ExtensionRange = new DescriptorProto_ExtensionRange$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class DescriptorProto_ReservedRange$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.DescriptorProto.ReservedRange", [ + { no: 1, name: "start", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, + { no: 2, name: "end", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional int32 start */ 1: + message.start = reader.int32(); + break; + case /* optional int32 end */ 2: + message.end = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional int32 start = 1; */ + if (message.start !== undefined) + writer.tag(1, runtime_1.WireType.Varint).int32(message.start); + /* optional int32 end = 2; */ + if (message.end !== undefined) + writer.tag(2, runtime_1.WireType.Varint).int32(message.end); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.DescriptorProto.ReservedRange + */ +exports.DescriptorProto_ReservedRange = new DescriptorProto_ReservedRange$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ExtensionRangeOptions$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.ExtensionRangeOptions", [ + { no: 999, name: "uninterpreted_option", kind: "message", localName: "uninterpreted_option", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption }, + { no: 2, name: "declaration", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.ExtensionRangeOptions_Declaration }, + { no: 50, name: "features", kind: "message", T: () => exports.FeatureSet }, + { no: 3, name: "verification", kind: "enum", opt: true, T: () => ["google.protobuf.ExtensionRangeOptions.VerificationState", ExtensionRangeOptions_VerificationState] } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.uninterpreted_option = []; + message.declaration = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: + message.uninterpreted_option.push(exports.UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* repeated google.protobuf.ExtensionRangeOptions.Declaration declaration */ 2: + message.declaration.push(exports.ExtensionRangeOptions_Declaration.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* optional google.protobuf.FeatureSet features */ 50: + message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); + break; + case /* optional google.protobuf.ExtensionRangeOptions.VerificationState verification */ 3: + message.verification = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ + for (let i = 0; i < message.uninterpreted_option.length; i++) + exports.UninterpretedOption.internalBinaryWrite(message.uninterpreted_option[i], writer.tag(999, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2; */ + for (let i = 0; i < message.declaration.length; i++) + exports.ExtensionRangeOptions_Declaration.internalBinaryWrite(message.declaration[i], writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.FeatureSet features = 50; */ + if (message.features) + exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(50, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3; */ + if (message.verification !== undefined) + writer.tag(3, runtime_1.WireType.Varint).int32(message.verification); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.ExtensionRangeOptions + */ +exports.ExtensionRangeOptions = new ExtensionRangeOptions$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ExtensionRangeOptions_Declaration$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.ExtensionRangeOptions.Declaration", [ + { no: 1, name: "number", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, + { no: 2, name: "full_name", kind: "scalar", localName: "full_name", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "type", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 5, name: "reserved", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 6, name: "repeated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional int32 number */ 1: + message.number = reader.int32(); + break; + case /* optional string full_name */ 2: + message.full_name = reader.string(); + break; + case /* optional string type */ 3: + message.type = reader.string(); + break; + case /* optional bool reserved */ 5: + message.reserved = reader.bool(); + break; + case /* optional bool repeated */ 6: + message.repeated = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional int32 number = 1; */ + if (message.number !== undefined) + writer.tag(1, runtime_1.WireType.Varint).int32(message.number); + /* optional string full_name = 2; */ + if (message.full_name !== undefined) + writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.full_name); + /* optional string type = 3; */ + if (message.type !== undefined) + writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.type); + /* optional bool reserved = 5; */ + if (message.reserved !== undefined) + writer.tag(5, runtime_1.WireType.Varint).bool(message.reserved); + /* optional bool repeated = 6; */ + if (message.repeated !== undefined) + writer.tag(6, runtime_1.WireType.Varint).bool(message.repeated); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.ExtensionRangeOptions.Declaration + */ +exports.ExtensionRangeOptions_Declaration = new ExtensionRangeOptions_Declaration$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class FieldDescriptorProto$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.FieldDescriptorProto", [ + { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "number", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, + { no: 4, name: "label", kind: "enum", opt: true, T: () => ["google.protobuf.FieldDescriptorProto.Label", FieldDescriptorProto_Label] }, + { no: 5, name: "type", kind: "enum", opt: true, T: () => ["google.protobuf.FieldDescriptorProto.Type", FieldDescriptorProto_Type] }, + { no: 6, name: "type_name", kind: "scalar", localName: "type_name", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "extendee", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 7, name: "default_value", kind: "scalar", localName: "default_value", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 9, name: "oneof_index", kind: "scalar", localName: "oneof_index", opt: true, T: 5 /*ScalarType.INT32*/ }, + { no: 10, name: "json_name", kind: "scalar", localName: "json_name", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 8, name: "options", kind: "message", T: () => exports.FieldOptions }, + { no: 17, name: "proto3_optional", kind: "scalar", localName: "proto3_optional", opt: true, T: 8 /*ScalarType.BOOL*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional string name */ 1: + message.name = reader.string(); + break; + case /* optional int32 number */ 3: + message.number = reader.int32(); + break; + case /* optional google.protobuf.FieldDescriptorProto.Label label */ 4: + message.label = reader.int32(); + break; + case /* optional google.protobuf.FieldDescriptorProto.Type type */ 5: + message.type = reader.int32(); + break; + case /* optional string type_name */ 6: + message.type_name = reader.string(); + break; + case /* optional string extendee */ 2: + message.extendee = reader.string(); + break; + case /* optional string default_value */ 7: + message.default_value = reader.string(); + break; + case /* optional int32 oneof_index */ 9: + message.oneof_index = reader.int32(); + break; + case /* optional string json_name */ 10: + message.json_name = reader.string(); + break; + case /* optional google.protobuf.FieldOptions options */ 8: + message.options = exports.FieldOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); + break; + case /* optional bool proto3_optional */ 17: + message.proto3_optional = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional string name = 1; */ + if (message.name !== undefined) + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); + /* optional int32 number = 3; */ + if (message.number !== undefined) + writer.tag(3, runtime_1.WireType.Varint).int32(message.number); + /* optional google.protobuf.FieldDescriptorProto.Label label = 4; */ + if (message.label !== undefined) + writer.tag(4, runtime_1.WireType.Varint).int32(message.label); + /* optional google.protobuf.FieldDescriptorProto.Type type = 5; */ + if (message.type !== undefined) + writer.tag(5, runtime_1.WireType.Varint).int32(message.type); + /* optional string type_name = 6; */ + if (message.type_name !== undefined) + writer.tag(6, runtime_1.WireType.LengthDelimited).string(message.type_name); + /* optional string extendee = 2; */ + if (message.extendee !== undefined) + writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.extendee); + /* optional string default_value = 7; */ + if (message.default_value !== undefined) + writer.tag(7, runtime_1.WireType.LengthDelimited).string(message.default_value); + /* optional int32 oneof_index = 9; */ + if (message.oneof_index !== undefined) + writer.tag(9, runtime_1.WireType.Varint).int32(message.oneof_index); + /* optional string json_name = 10; */ + if (message.json_name !== undefined) + writer.tag(10, runtime_1.WireType.LengthDelimited).string(message.json_name); + /* optional google.protobuf.FieldOptions options = 8; */ + if (message.options) + exports.FieldOptions.internalBinaryWrite(message.options, writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* optional bool proto3_optional = 17; */ + if (message.proto3_optional !== undefined) + writer.tag(17, runtime_1.WireType.Varint).bool(message.proto3_optional); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.FieldDescriptorProto + */ +exports.FieldDescriptorProto = new FieldDescriptorProto$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class OneofDescriptorProto$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.OneofDescriptorProto", [ + { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "options", kind: "message", T: () => exports.OneofOptions } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional string name */ 1: + message.name = reader.string(); + break; + case /* optional google.protobuf.OneofOptions options */ 2: + message.options = exports.OneofOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional string name = 1; */ + if (message.name !== undefined) + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); + /* optional google.protobuf.OneofOptions options = 2; */ + if (message.options) + exports.OneofOptions.internalBinaryWrite(message.options, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.OneofDescriptorProto + */ +exports.OneofDescriptorProto = new OneofDescriptorProto$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class EnumDescriptorProto$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.EnumDescriptorProto", [ + { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "value", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.EnumValueDescriptorProto }, + { no: 3, name: "options", kind: "message", T: () => exports.EnumOptions }, + { no: 4, name: "reserved_range", kind: "message", localName: "reserved_range", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.EnumDescriptorProto_EnumReservedRange }, + { no: 5, name: "reserved_name", kind: "scalar", localName: "reserved_name", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.value = []; + message.reserved_range = []; + message.reserved_name = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional string name */ 1: + message.name = reader.string(); + break; + case /* repeated google.protobuf.EnumValueDescriptorProto value */ 2: + message.value.push(exports.EnumValueDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* optional google.protobuf.EnumOptions options */ 3: + message.options = exports.EnumOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); + break; + case /* repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range */ 4: + message.reserved_range.push(exports.EnumDescriptorProto_EnumReservedRange.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* repeated string reserved_name */ 5: + message.reserved_name.push(reader.string()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional string name = 1; */ + if (message.name !== undefined) + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); + /* repeated google.protobuf.EnumValueDescriptorProto value = 2; */ + for (let i = 0; i < message.value.length; i++) + exports.EnumValueDescriptorProto.internalBinaryWrite(message.value[i], writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.EnumOptions options = 3; */ + if (message.options) + exports.EnumOptions.internalBinaryWrite(message.options, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4; */ + for (let i = 0; i < message.reserved_range.length; i++) + exports.EnumDescriptorProto_EnumReservedRange.internalBinaryWrite(message.reserved_range[i], writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated string reserved_name = 5; */ + for (let i = 0; i < message.reserved_name.length; i++) + writer.tag(5, runtime_1.WireType.LengthDelimited).string(message.reserved_name[i]); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.EnumDescriptorProto + */ +exports.EnumDescriptorProto = new EnumDescriptorProto$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class EnumDescriptorProto_EnumReservedRange$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.EnumDescriptorProto.EnumReservedRange", [ + { no: 1, name: "start", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, + { no: 2, name: "end", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional int32 start */ 1: + message.start = reader.int32(); + break; + case /* optional int32 end */ 2: + message.end = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional int32 start = 1; */ + if (message.start !== undefined) + writer.tag(1, runtime_1.WireType.Varint).int32(message.start); + /* optional int32 end = 2; */ + if (message.end !== undefined) + writer.tag(2, runtime_1.WireType.Varint).int32(message.end); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.EnumDescriptorProto.EnumReservedRange + */ +exports.EnumDescriptorProto_EnumReservedRange = new EnumDescriptorProto_EnumReservedRange$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class EnumValueDescriptorProto$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.EnumValueDescriptorProto", [ + { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "number", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, + { no: 3, name: "options", kind: "message", T: () => exports.EnumValueOptions } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional string name */ 1: + message.name = reader.string(); + break; + case /* optional int32 number */ 2: + message.number = reader.int32(); + break; + case /* optional google.protobuf.EnumValueOptions options */ 3: + message.options = exports.EnumValueOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional string name = 1; */ + if (message.name !== undefined) + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); + /* optional int32 number = 2; */ + if (message.number !== undefined) + writer.tag(2, runtime_1.WireType.Varint).int32(message.number); + /* optional google.protobuf.EnumValueOptions options = 3; */ + if (message.options) + exports.EnumValueOptions.internalBinaryWrite(message.options, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.EnumValueDescriptorProto + */ +exports.EnumValueDescriptorProto = new EnumValueDescriptorProto$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ServiceDescriptorProto$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.ServiceDescriptorProto", [ + { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "method", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.MethodDescriptorProto }, + { no: 3, name: "options", kind: "message", T: () => exports.ServiceOptions } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.method = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional string name */ 1: + message.name = reader.string(); + break; + case /* repeated google.protobuf.MethodDescriptorProto method */ 2: + message.method.push(exports.MethodDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* optional google.protobuf.ServiceOptions options */ 3: + message.options = exports.ServiceOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional string name = 1; */ + if (message.name !== undefined) + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); + /* repeated google.protobuf.MethodDescriptorProto method = 2; */ + for (let i = 0; i < message.method.length; i++) + exports.MethodDescriptorProto.internalBinaryWrite(message.method[i], writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.ServiceOptions options = 3; */ + if (message.options) + exports.ServiceOptions.internalBinaryWrite(message.options, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.ServiceDescriptorProto + */ +exports.ServiceDescriptorProto = new ServiceDescriptorProto$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class MethodDescriptorProto$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.MethodDescriptorProto", [ + { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "input_type", kind: "scalar", localName: "input_type", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "output_type", kind: "scalar", localName: "output_type", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 4, name: "options", kind: "message", T: () => exports.MethodOptions }, + { no: 5, name: "client_streaming", kind: "scalar", localName: "client_streaming", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 6, name: "server_streaming", kind: "scalar", localName: "server_streaming", opt: true, T: 8 /*ScalarType.BOOL*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional string name */ 1: + message.name = reader.string(); + break; + case /* optional string input_type */ 2: + message.input_type = reader.string(); + break; + case /* optional string output_type */ 3: + message.output_type = reader.string(); + break; + case /* optional google.protobuf.MethodOptions options */ 4: + message.options = exports.MethodOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); + break; + case /* optional bool client_streaming */ 5: + message.client_streaming = reader.bool(); + break; + case /* optional bool server_streaming */ 6: + message.server_streaming = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional string name = 1; */ + if (message.name !== undefined) + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); + /* optional string input_type = 2; */ + if (message.input_type !== undefined) + writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.input_type); + /* optional string output_type = 3; */ + if (message.output_type !== undefined) + writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.output_type); + /* optional google.protobuf.MethodOptions options = 4; */ + if (message.options) + exports.MethodOptions.internalBinaryWrite(message.options, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* optional bool client_streaming = 5; */ + if (message.client_streaming !== undefined) + writer.tag(5, runtime_1.WireType.Varint).bool(message.client_streaming); + /* optional bool server_streaming = 6; */ + if (message.server_streaming !== undefined) + writer.tag(6, runtime_1.WireType.Varint).bool(message.server_streaming); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.MethodDescriptorProto + */ +exports.MethodDescriptorProto = new MethodDescriptorProto$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class FileOptions$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.FileOptions", [ + { no: 1, name: "java_package", kind: "scalar", localName: "java_package", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 8, name: "java_outer_classname", kind: "scalar", localName: "java_outer_classname", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 10, name: "java_multiple_files", kind: "scalar", localName: "java_multiple_files", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 20, name: "java_generate_equals_and_hash", kind: "scalar", localName: "java_generate_equals_and_hash", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 27, name: "java_string_check_utf8", kind: "scalar", localName: "java_string_check_utf8", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 9, name: "optimize_for", kind: "enum", localName: "optimize_for", opt: true, T: () => ["google.protobuf.FileOptions.OptimizeMode", FileOptions_OptimizeMode] }, + { no: 11, name: "go_package", kind: "scalar", localName: "go_package", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 16, name: "cc_generic_services", kind: "scalar", localName: "cc_generic_services", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 17, name: "java_generic_services", kind: "scalar", localName: "java_generic_services", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 18, name: "py_generic_services", kind: "scalar", localName: "py_generic_services", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 23, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 31, name: "cc_enable_arenas", kind: "scalar", localName: "cc_enable_arenas", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 36, name: "objc_class_prefix", kind: "scalar", localName: "objc_class_prefix", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 37, name: "csharp_namespace", kind: "scalar", localName: "csharp_namespace", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 39, name: "swift_prefix", kind: "scalar", localName: "swift_prefix", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 40, name: "php_class_prefix", kind: "scalar", localName: "php_class_prefix", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 41, name: "php_namespace", kind: "scalar", localName: "php_namespace", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 44, name: "php_metadata_namespace", kind: "scalar", localName: "php_metadata_namespace", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 45, name: "ruby_package", kind: "scalar", localName: "ruby_package", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 50, name: "features", kind: "message", T: () => exports.FeatureSet }, + { no: 999, name: "uninterpreted_option", kind: "message", localName: "uninterpreted_option", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.uninterpreted_option = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional string java_package */ 1: + message.java_package = reader.string(); + break; + case /* optional string java_outer_classname */ 8: + message.java_outer_classname = reader.string(); + break; + case /* optional bool java_multiple_files */ 10: + message.java_multiple_files = reader.bool(); + break; + case /* optional bool java_generate_equals_and_hash = 20 [deprecated = true];*/ 20: + message.java_generate_equals_and_hash = reader.bool(); + break; + case /* optional bool java_string_check_utf8 */ 27: + message.java_string_check_utf8 = reader.bool(); + break; + case /* optional google.protobuf.FileOptions.OptimizeMode optimize_for */ 9: + message.optimize_for = reader.int32(); + break; + case /* optional string go_package */ 11: + message.go_package = reader.string(); + break; + case /* optional bool cc_generic_services */ 16: + message.cc_generic_services = reader.bool(); + break; + case /* optional bool java_generic_services */ 17: + message.java_generic_services = reader.bool(); + break; + case /* optional bool py_generic_services */ 18: + message.py_generic_services = reader.bool(); + break; + case /* optional bool deprecated */ 23: + message.deprecated = reader.bool(); + break; + case /* optional bool cc_enable_arenas */ 31: + message.cc_enable_arenas = reader.bool(); + break; + case /* optional string objc_class_prefix */ 36: + message.objc_class_prefix = reader.string(); + break; + case /* optional string csharp_namespace */ 37: + message.csharp_namespace = reader.string(); + break; + case /* optional string swift_prefix */ 39: + message.swift_prefix = reader.string(); + break; + case /* optional string php_class_prefix */ 40: + message.php_class_prefix = reader.string(); + break; + case /* optional string php_namespace */ 41: + message.php_namespace = reader.string(); + break; + case /* optional string php_metadata_namespace */ 44: + message.php_metadata_namespace = reader.string(); + break; + case /* optional string ruby_package */ 45: + message.ruby_package = reader.string(); + break; + case /* optional google.protobuf.FeatureSet features */ 50: + message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); + break; + case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: + message.uninterpreted_option.push(exports.UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional string java_package = 1; */ + if (message.java_package !== undefined) + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.java_package); + /* optional string java_outer_classname = 8; */ + if (message.java_outer_classname !== undefined) + writer.tag(8, runtime_1.WireType.LengthDelimited).string(message.java_outer_classname); + /* optional bool java_multiple_files = 10; */ + if (message.java_multiple_files !== undefined) + writer.tag(10, runtime_1.WireType.Varint).bool(message.java_multiple_files); + /* optional bool java_generate_equals_and_hash = 20 [deprecated = true]; */ + if (message.java_generate_equals_and_hash !== undefined) + writer.tag(20, runtime_1.WireType.Varint).bool(message.java_generate_equals_and_hash); + /* optional bool java_string_check_utf8 = 27; */ + if (message.java_string_check_utf8 !== undefined) + writer.tag(27, runtime_1.WireType.Varint).bool(message.java_string_check_utf8); + /* optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9; */ + if (message.optimize_for !== undefined) + writer.tag(9, runtime_1.WireType.Varint).int32(message.optimize_for); + /* optional string go_package = 11; */ + if (message.go_package !== undefined) + writer.tag(11, runtime_1.WireType.LengthDelimited).string(message.go_package); + /* optional bool cc_generic_services = 16; */ + if (message.cc_generic_services !== undefined) + writer.tag(16, runtime_1.WireType.Varint).bool(message.cc_generic_services); + /* optional bool java_generic_services = 17; */ + if (message.java_generic_services !== undefined) + writer.tag(17, runtime_1.WireType.Varint).bool(message.java_generic_services); + /* optional bool py_generic_services = 18; */ + if (message.py_generic_services !== undefined) + writer.tag(18, runtime_1.WireType.Varint).bool(message.py_generic_services); + /* optional bool deprecated = 23; */ + if (message.deprecated !== undefined) + writer.tag(23, runtime_1.WireType.Varint).bool(message.deprecated); + /* optional bool cc_enable_arenas = 31; */ + if (message.cc_enable_arenas !== undefined) + writer.tag(31, runtime_1.WireType.Varint).bool(message.cc_enable_arenas); + /* optional string objc_class_prefix = 36; */ + if (message.objc_class_prefix !== undefined) + writer.tag(36, runtime_1.WireType.LengthDelimited).string(message.objc_class_prefix); + /* optional string csharp_namespace = 37; */ + if (message.csharp_namespace !== undefined) + writer.tag(37, runtime_1.WireType.LengthDelimited).string(message.csharp_namespace); + /* optional string swift_prefix = 39; */ + if (message.swift_prefix !== undefined) + writer.tag(39, runtime_1.WireType.LengthDelimited).string(message.swift_prefix); + /* optional string php_class_prefix = 40; */ + if (message.php_class_prefix !== undefined) + writer.tag(40, runtime_1.WireType.LengthDelimited).string(message.php_class_prefix); + /* optional string php_namespace = 41; */ + if (message.php_namespace !== undefined) + writer.tag(41, runtime_1.WireType.LengthDelimited).string(message.php_namespace); + /* optional string php_metadata_namespace = 44; */ + if (message.php_metadata_namespace !== undefined) + writer.tag(44, runtime_1.WireType.LengthDelimited).string(message.php_metadata_namespace); + /* optional string ruby_package = 45; */ + if (message.ruby_package !== undefined) + writer.tag(45, runtime_1.WireType.LengthDelimited).string(message.ruby_package); + /* optional google.protobuf.FeatureSet features = 50; */ + if (message.features) + exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(50, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ + for (let i = 0; i < message.uninterpreted_option.length; i++) + exports.UninterpretedOption.internalBinaryWrite(message.uninterpreted_option[i], writer.tag(999, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.FileOptions + */ +exports.FileOptions = new FileOptions$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class MessageOptions$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.MessageOptions", [ + { no: 1, name: "message_set_wire_format", kind: "scalar", localName: "message_set_wire_format", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 2, name: "no_standard_descriptor_accessor", kind: "scalar", localName: "no_standard_descriptor_accessor", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 3, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 7, name: "map_entry", kind: "scalar", localName: "map_entry", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 11, name: "deprecated_legacy_json_field_conflicts", kind: "scalar", localName: "deprecated_legacy_json_field_conflicts", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 12, name: "features", kind: "message", T: () => exports.FeatureSet }, + { no: 999, name: "uninterpreted_option", kind: "message", localName: "uninterpreted_option", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.uninterpreted_option = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional bool message_set_wire_format */ 1: + message.message_set_wire_format = reader.bool(); + break; + case /* optional bool no_standard_descriptor_accessor */ 2: + message.no_standard_descriptor_accessor = reader.bool(); + break; + case /* optional bool deprecated */ 3: + message.deprecated = reader.bool(); + break; + case /* optional bool map_entry */ 7: + message.map_entry = reader.bool(); + break; + case /* optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];*/ 11: + message.deprecated_legacy_json_field_conflicts = reader.bool(); + break; + case /* optional google.protobuf.FeatureSet features */ 12: + message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); + break; + case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: + message.uninterpreted_option.push(exports.UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional bool message_set_wire_format = 1; */ + if (message.message_set_wire_format !== undefined) + writer.tag(1, runtime_1.WireType.Varint).bool(message.message_set_wire_format); + /* optional bool no_standard_descriptor_accessor = 2; */ + if (message.no_standard_descriptor_accessor !== undefined) + writer.tag(2, runtime_1.WireType.Varint).bool(message.no_standard_descriptor_accessor); + /* optional bool deprecated = 3; */ + if (message.deprecated !== undefined) + writer.tag(3, runtime_1.WireType.Varint).bool(message.deprecated); + /* optional bool map_entry = 7; */ + if (message.map_entry !== undefined) + writer.tag(7, runtime_1.WireType.Varint).bool(message.map_entry); + /* optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; */ + if (message.deprecated_legacy_json_field_conflicts !== undefined) + writer.tag(11, runtime_1.WireType.Varint).bool(message.deprecated_legacy_json_field_conflicts); + /* optional google.protobuf.FeatureSet features = 12; */ + if (message.features) + exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(12, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ + for (let i = 0; i < message.uninterpreted_option.length; i++) + exports.UninterpretedOption.internalBinaryWrite(message.uninterpreted_option[i], writer.tag(999, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.MessageOptions + */ +exports.MessageOptions = new MessageOptions$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class FieldOptions$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.FieldOptions", [ + { no: 1, name: "ctype", kind: "enum", opt: true, T: () => ["google.protobuf.FieldOptions.CType", FieldOptions_CType] }, + { no: 2, name: "packed", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 6, name: "jstype", kind: "enum", opt: true, T: () => ["google.protobuf.FieldOptions.JSType", FieldOptions_JSType] }, + { no: 5, name: "lazy", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 15, name: "unverified_lazy", kind: "scalar", localName: "unverified_lazy", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 3, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 10, name: "weak", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 16, name: "debug_redact", kind: "scalar", localName: "debug_redact", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 17, name: "retention", kind: "enum", opt: true, T: () => ["google.protobuf.FieldOptions.OptionRetention", FieldOptions_OptionRetention] }, + { no: 19, name: "targets", kind: "enum", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ["google.protobuf.FieldOptions.OptionTargetType", FieldOptions_OptionTargetType] }, + { no: 20, name: "edition_defaults", kind: "message", localName: "edition_defaults", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.FieldOptions_EditionDefault }, + { no: 21, name: "features", kind: "message", T: () => exports.FeatureSet }, + { no: 22, name: "feature_support", kind: "message", localName: "feature_support", T: () => exports.FieldOptions_FeatureSupport }, + { no: 999, name: "uninterpreted_option", kind: "message", localName: "uninterpreted_option", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.targets = []; + message.edition_defaults = []; + message.uninterpreted_option = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional google.protobuf.FieldOptions.CType ctype */ 1: + message.ctype = reader.int32(); + break; + case /* optional bool packed */ 2: + message.packed = reader.bool(); + break; + case /* optional google.protobuf.FieldOptions.JSType jstype */ 6: + message.jstype = reader.int32(); + break; + case /* optional bool lazy */ 5: + message.lazy = reader.bool(); + break; + case /* optional bool unverified_lazy */ 15: + message.unverified_lazy = reader.bool(); + break; + case /* optional bool deprecated */ 3: + message.deprecated = reader.bool(); + break; + case /* optional bool weak */ 10: + message.weak = reader.bool(); + break; + case /* optional bool debug_redact */ 16: + message.debug_redact = reader.bool(); + break; + case /* optional google.protobuf.FieldOptions.OptionRetention retention */ 17: + message.retention = reader.int32(); + break; + case /* repeated google.protobuf.FieldOptions.OptionTargetType targets */ 19: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.targets.push(reader.int32()); + else + message.targets.push(reader.int32()); + break; + case /* repeated google.protobuf.FieldOptions.EditionDefault edition_defaults */ 20: + message.edition_defaults.push(exports.FieldOptions_EditionDefault.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* optional google.protobuf.FeatureSet features */ 21: + message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); + break; + case /* optional google.protobuf.FieldOptions.FeatureSupport feature_support */ 22: + message.feature_support = exports.FieldOptions_FeatureSupport.internalBinaryRead(reader, reader.uint32(), options, message.feature_support); + break; + case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: + message.uninterpreted_option.push(exports.UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional google.protobuf.FieldOptions.CType ctype = 1; */ + if (message.ctype !== undefined) + writer.tag(1, runtime_1.WireType.Varint).int32(message.ctype); + /* optional bool packed = 2; */ + if (message.packed !== undefined) + writer.tag(2, runtime_1.WireType.Varint).bool(message.packed); + /* optional google.protobuf.FieldOptions.JSType jstype = 6; */ + if (message.jstype !== undefined) + writer.tag(6, runtime_1.WireType.Varint).int32(message.jstype); + /* optional bool lazy = 5; */ + if (message.lazy !== undefined) + writer.tag(5, runtime_1.WireType.Varint).bool(message.lazy); + /* optional bool unverified_lazy = 15; */ + if (message.unverified_lazy !== undefined) + writer.tag(15, runtime_1.WireType.Varint).bool(message.unverified_lazy); + /* optional bool deprecated = 3; */ + if (message.deprecated !== undefined) + writer.tag(3, runtime_1.WireType.Varint).bool(message.deprecated); + /* optional bool weak = 10; */ + if (message.weak !== undefined) + writer.tag(10, runtime_1.WireType.Varint).bool(message.weak); + /* optional bool debug_redact = 16; */ + if (message.debug_redact !== undefined) + writer.tag(16, runtime_1.WireType.Varint).bool(message.debug_redact); + /* optional google.protobuf.FieldOptions.OptionRetention retention = 17; */ + if (message.retention !== undefined) + writer.tag(17, runtime_1.WireType.Varint).int32(message.retention); + /* repeated google.protobuf.FieldOptions.OptionTargetType targets = 19; */ + for (let i = 0; i < message.targets.length; i++) + writer.tag(19, runtime_1.WireType.Varint).int32(message.targets[i]); + /* repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20; */ + for (let i = 0; i < message.edition_defaults.length; i++) + exports.FieldOptions_EditionDefault.internalBinaryWrite(message.edition_defaults[i], writer.tag(20, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.FeatureSet features = 21; */ + if (message.features) + exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(21, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.FieldOptions.FeatureSupport feature_support = 22; */ + if (message.feature_support) + exports.FieldOptions_FeatureSupport.internalBinaryWrite(message.feature_support, writer.tag(22, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ + for (let i = 0; i < message.uninterpreted_option.length; i++) + exports.UninterpretedOption.internalBinaryWrite(message.uninterpreted_option[i], writer.tag(999, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.FieldOptions + */ +exports.FieldOptions = new FieldOptions$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class FieldOptions_EditionDefault$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.FieldOptions.EditionDefault", [ + { no: 3, name: "edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }, + { no: 2, name: "value", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional google.protobuf.Edition edition */ 3: + message.edition = reader.int32(); + break; + case /* optional string value */ 2: + message.value = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional google.protobuf.Edition edition = 3; */ + if (message.edition !== undefined) + writer.tag(3, runtime_1.WireType.Varint).int32(message.edition); + /* optional string value = 2; */ + if (message.value !== undefined) + writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.value); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.FieldOptions.EditionDefault + */ +exports.FieldOptions_EditionDefault = new FieldOptions_EditionDefault$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class FieldOptions_FeatureSupport$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.FieldOptions.FeatureSupport", [ + { no: 1, name: "edition_introduced", kind: "enum", localName: "edition_introduced", opt: true, T: () => ["google.protobuf.Edition", Edition] }, + { no: 2, name: "edition_deprecated", kind: "enum", localName: "edition_deprecated", opt: true, T: () => ["google.protobuf.Edition", Edition] }, + { no: 3, name: "deprecation_warning", kind: "scalar", localName: "deprecation_warning", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 4, name: "edition_removed", kind: "enum", localName: "edition_removed", opt: true, T: () => ["google.protobuf.Edition", Edition] } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional google.protobuf.Edition edition_introduced */ 1: + message.edition_introduced = reader.int32(); + break; + case /* optional google.protobuf.Edition edition_deprecated */ 2: + message.edition_deprecated = reader.int32(); + break; + case /* optional string deprecation_warning */ 3: + message.deprecation_warning = reader.string(); + break; + case /* optional google.protobuf.Edition edition_removed */ 4: + message.edition_removed = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional google.protobuf.Edition edition_introduced = 1; */ + if (message.edition_introduced !== undefined) + writer.tag(1, runtime_1.WireType.Varint).int32(message.edition_introduced); + /* optional google.protobuf.Edition edition_deprecated = 2; */ + if (message.edition_deprecated !== undefined) + writer.tag(2, runtime_1.WireType.Varint).int32(message.edition_deprecated); + /* optional string deprecation_warning = 3; */ + if (message.deprecation_warning !== undefined) + writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.deprecation_warning); + /* optional google.protobuf.Edition edition_removed = 4; */ + if (message.edition_removed !== undefined) + writer.tag(4, runtime_1.WireType.Varint).int32(message.edition_removed); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.FieldOptions.FeatureSupport + */ +exports.FieldOptions_FeatureSupport = new FieldOptions_FeatureSupport$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class OneofOptions$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.OneofOptions", [ + { no: 1, name: "features", kind: "message", T: () => exports.FeatureSet }, + { no: 999, name: "uninterpreted_option", kind: "message", localName: "uninterpreted_option", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.uninterpreted_option = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional google.protobuf.FeatureSet features */ 1: + message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); + break; + case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: + message.uninterpreted_option.push(exports.UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional google.protobuf.FeatureSet features = 1; */ + if (message.features) + exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ + for (let i = 0; i < message.uninterpreted_option.length; i++) + exports.UninterpretedOption.internalBinaryWrite(message.uninterpreted_option[i], writer.tag(999, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.OneofOptions + */ +exports.OneofOptions = new OneofOptions$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class EnumOptions$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.EnumOptions", [ + { no: 2, name: "allow_alias", kind: "scalar", localName: "allow_alias", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 3, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 6, name: "deprecated_legacy_json_field_conflicts", kind: "scalar", localName: "deprecated_legacy_json_field_conflicts", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 7, name: "features", kind: "message", T: () => exports.FeatureSet }, + { no: 999, name: "uninterpreted_option", kind: "message", localName: "uninterpreted_option", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.uninterpreted_option = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional bool allow_alias */ 2: + message.allow_alias = reader.bool(); + break; + case /* optional bool deprecated */ 3: + message.deprecated = reader.bool(); + break; + case /* optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];*/ 6: + message.deprecated_legacy_json_field_conflicts = reader.bool(); + break; + case /* optional google.protobuf.FeatureSet features */ 7: + message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); + break; + case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: + message.uninterpreted_option.push(exports.UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional bool allow_alias = 2; */ + if (message.allow_alias !== undefined) + writer.tag(2, runtime_1.WireType.Varint).bool(message.allow_alias); + /* optional bool deprecated = 3; */ + if (message.deprecated !== undefined) + writer.tag(3, runtime_1.WireType.Varint).bool(message.deprecated); + /* optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; */ + if (message.deprecated_legacy_json_field_conflicts !== undefined) + writer.tag(6, runtime_1.WireType.Varint).bool(message.deprecated_legacy_json_field_conflicts); + /* optional google.protobuf.FeatureSet features = 7; */ + if (message.features) + exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ + for (let i = 0; i < message.uninterpreted_option.length; i++) + exports.UninterpretedOption.internalBinaryWrite(message.uninterpreted_option[i], writer.tag(999, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.EnumOptions + */ +exports.EnumOptions = new EnumOptions$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class EnumValueOptions$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.EnumValueOptions", [ + { no: 1, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 2, name: "features", kind: "message", T: () => exports.FeatureSet }, + { no: 3, name: "debug_redact", kind: "scalar", localName: "debug_redact", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 999, name: "uninterpreted_option", kind: "message", localName: "uninterpreted_option", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.uninterpreted_option = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional bool deprecated */ 1: + message.deprecated = reader.bool(); + break; + case /* optional google.protobuf.FeatureSet features */ 2: + message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); + break; + case /* optional bool debug_redact */ 3: + message.debug_redact = reader.bool(); + break; + case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: + message.uninterpreted_option.push(exports.UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional bool deprecated = 1; */ + if (message.deprecated !== undefined) + writer.tag(1, runtime_1.WireType.Varint).bool(message.deprecated); + /* optional google.protobuf.FeatureSet features = 2; */ + if (message.features) + exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* optional bool debug_redact = 3; */ + if (message.debug_redact !== undefined) + writer.tag(3, runtime_1.WireType.Varint).bool(message.debug_redact); + /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ + for (let i = 0; i < message.uninterpreted_option.length; i++) + exports.UninterpretedOption.internalBinaryWrite(message.uninterpreted_option[i], writer.tag(999, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.EnumValueOptions + */ +exports.EnumValueOptions = new EnumValueOptions$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ServiceOptions$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.ServiceOptions", [ + { no: 34, name: "features", kind: "message", T: () => exports.FeatureSet }, + { no: 33, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 999, name: "uninterpreted_option", kind: "message", localName: "uninterpreted_option", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.uninterpreted_option = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional google.protobuf.FeatureSet features */ 34: + message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); + break; + case /* optional bool deprecated */ 33: + message.deprecated = reader.bool(); + break; + case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: + message.uninterpreted_option.push(exports.UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional google.protobuf.FeatureSet features = 34; */ + if (message.features) + exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(34, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* optional bool deprecated = 33; */ + if (message.deprecated !== undefined) + writer.tag(33, runtime_1.WireType.Varint).bool(message.deprecated); + /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ + for (let i = 0; i < message.uninterpreted_option.length; i++) + exports.UninterpretedOption.internalBinaryWrite(message.uninterpreted_option[i], writer.tag(999, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.ServiceOptions + */ +exports.ServiceOptions = new ServiceOptions$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class MethodOptions$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.MethodOptions", [ + { no: 33, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 34, name: "idempotency_level", kind: "enum", localName: "idempotency_level", opt: true, T: () => ["google.protobuf.MethodOptions.IdempotencyLevel", MethodOptions_IdempotencyLevel] }, + { no: 35, name: "features", kind: "message", T: () => exports.FeatureSet }, + { no: 999, name: "uninterpreted_option", kind: "message", localName: "uninterpreted_option", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.uninterpreted_option = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional bool deprecated */ 33: + message.deprecated = reader.bool(); + break; + case /* optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level */ 34: + message.idempotency_level = reader.int32(); + break; + case /* optional google.protobuf.FeatureSet features */ 35: + message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); + break; + case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: + message.uninterpreted_option.push(exports.UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional bool deprecated = 33; */ + if (message.deprecated !== undefined) + writer.tag(33, runtime_1.WireType.Varint).bool(message.deprecated); + /* optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34; */ + if (message.idempotency_level !== undefined) + writer.tag(34, runtime_1.WireType.Varint).int32(message.idempotency_level); + /* optional google.protobuf.FeatureSet features = 35; */ + if (message.features) + exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(35, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ + for (let i = 0; i < message.uninterpreted_option.length; i++) + exports.UninterpretedOption.internalBinaryWrite(message.uninterpreted_option[i], writer.tag(999, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.MethodOptions + */ +exports.MethodOptions = new MethodOptions$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class UninterpretedOption$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.UninterpretedOption", [ + { no: 2, name: "name", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption_NamePart }, + { no: 3, name: "identifier_value", kind: "scalar", localName: "identifier_value", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 4, name: "positive_int_value", kind: "scalar", localName: "positive_int_value", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }, + { no: 5, name: "negative_int_value", kind: "scalar", localName: "negative_int_value", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, + { no: 6, name: "double_value", kind: "scalar", localName: "double_value", opt: true, T: 1 /*ScalarType.DOUBLE*/ }, + { no: 7, name: "string_value", kind: "scalar", localName: "string_value", opt: true, T: 12 /*ScalarType.BYTES*/ }, + { no: 8, name: "aggregate_value", kind: "scalar", localName: "aggregate_value", opt: true, T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.name = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated google.protobuf.UninterpretedOption.NamePart name */ 2: + message.name.push(exports.UninterpretedOption_NamePart.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* optional string identifier_value */ 3: + message.identifier_value = reader.string(); + break; + case /* optional uint64 positive_int_value */ 4: + message.positive_int_value = reader.uint64().toBigInt(); + break; + case /* optional int64 negative_int_value */ 5: + message.negative_int_value = reader.int64().toBigInt(); + break; + case /* optional double double_value */ 6: + message.double_value = reader.double(); + break; + case /* optional bytes string_value */ 7: + message.string_value = reader.bytes(); + break; + case /* optional string aggregate_value */ 8: + message.aggregate_value = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated google.protobuf.UninterpretedOption.NamePart name = 2; */ + for (let i = 0; i < message.name.length; i++) + exports.UninterpretedOption_NamePart.internalBinaryWrite(message.name[i], writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* optional string identifier_value = 3; */ + if (message.identifier_value !== undefined) + writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.identifier_value); + /* optional uint64 positive_int_value = 4; */ + if (message.positive_int_value !== undefined) + writer.tag(4, runtime_1.WireType.Varint).uint64(message.positive_int_value); + /* optional int64 negative_int_value = 5; */ + if (message.negative_int_value !== undefined) + writer.tag(5, runtime_1.WireType.Varint).int64(message.negative_int_value); + /* optional double double_value = 6; */ + if (message.double_value !== undefined) + writer.tag(6, runtime_1.WireType.Bit64).double(message.double_value); + /* optional bytes string_value = 7; */ + if (message.string_value !== undefined) + writer.tag(7, runtime_1.WireType.LengthDelimited).bytes(message.string_value); + /* optional string aggregate_value = 8; */ + if (message.aggregate_value !== undefined) + writer.tag(8, runtime_1.WireType.LengthDelimited).string(message.aggregate_value); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.UninterpretedOption + */ +exports.UninterpretedOption = new UninterpretedOption$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class UninterpretedOption_NamePart$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.UninterpretedOption.NamePart", [ + { no: 1, name: "name_part", kind: "scalar", localName: "name_part", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "is_extension", kind: "scalar", localName: "is_extension", T: 8 /*ScalarType.BOOL*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.name_part = ""; + message.is_extension = false; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string name_part */ 1: + message.name_part = reader.string(); + break; + case /* bool is_extension */ 2: + message.is_extension = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string name_part = 1; */ + if (message.name_part !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name_part); + /* bool is_extension = 2; */ + if (message.is_extension !== false) + writer.tag(2, runtime_1.WireType.Varint).bool(message.is_extension); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.UninterpretedOption.NamePart + */ +exports.UninterpretedOption_NamePart = new UninterpretedOption_NamePart$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class FeatureSet$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.FeatureSet", [ + { no: 1, name: "field_presence", kind: "enum", localName: "field_presence", opt: true, T: () => ["google.protobuf.FeatureSet.FieldPresence", FeatureSet_FieldPresence] }, + { no: 2, name: "enum_type", kind: "enum", localName: "enum_type", opt: true, T: () => ["google.protobuf.FeatureSet.EnumType", FeatureSet_EnumType] }, + { no: 3, name: "repeated_field_encoding", kind: "enum", localName: "repeated_field_encoding", opt: true, T: () => ["google.protobuf.FeatureSet.RepeatedFieldEncoding", FeatureSet_RepeatedFieldEncoding] }, + { no: 4, name: "utf8_validation", kind: "enum", localName: "utf8_validation", opt: true, T: () => ["google.protobuf.FeatureSet.Utf8Validation", FeatureSet_Utf8Validation] }, + { no: 5, name: "message_encoding", kind: "enum", localName: "message_encoding", opt: true, T: () => ["google.protobuf.FeatureSet.MessageEncoding", FeatureSet_MessageEncoding] }, + { no: 6, name: "json_format", kind: "enum", localName: "json_format", opt: true, T: () => ["google.protobuf.FeatureSet.JsonFormat", FeatureSet_JsonFormat] } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional google.protobuf.FeatureSet.FieldPresence field_presence */ 1: + message.field_presence = reader.int32(); + break; + case /* optional google.protobuf.FeatureSet.EnumType enum_type */ 2: + message.enum_type = reader.int32(); + break; + case /* optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding */ 3: + message.repeated_field_encoding = reader.int32(); + break; + case /* optional google.protobuf.FeatureSet.Utf8Validation utf8_validation */ 4: + message.utf8_validation = reader.int32(); + break; + case /* optional google.protobuf.FeatureSet.MessageEncoding message_encoding */ 5: + message.message_encoding = reader.int32(); + break; + case /* optional google.protobuf.FeatureSet.JsonFormat json_format */ 6: + message.json_format = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional google.protobuf.FeatureSet.FieldPresence field_presence = 1; */ + if (message.field_presence !== undefined) + writer.tag(1, runtime_1.WireType.Varint).int32(message.field_presence); + /* optional google.protobuf.FeatureSet.EnumType enum_type = 2; */ + if (message.enum_type !== undefined) + writer.tag(2, runtime_1.WireType.Varint).int32(message.enum_type); + /* optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3; */ + if (message.repeated_field_encoding !== undefined) + writer.tag(3, runtime_1.WireType.Varint).int32(message.repeated_field_encoding); + /* optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4; */ + if (message.utf8_validation !== undefined) + writer.tag(4, runtime_1.WireType.Varint).int32(message.utf8_validation); + /* optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5; */ + if (message.message_encoding !== undefined) + writer.tag(5, runtime_1.WireType.Varint).int32(message.message_encoding); + /* optional google.protobuf.FeatureSet.JsonFormat json_format = 6; */ + if (message.json_format !== undefined) + writer.tag(6, runtime_1.WireType.Varint).int32(message.json_format); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.FeatureSet + */ +exports.FeatureSet = new FeatureSet$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class FeatureSetDefaults$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.FeatureSetDefaults", [ + { no: 1, name: "defaults", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.FeatureSetDefaults_FeatureSetEditionDefault }, + { no: 4, name: "minimum_edition", kind: "enum", localName: "minimum_edition", opt: true, T: () => ["google.protobuf.Edition", Edition] }, + { no: 5, name: "maximum_edition", kind: "enum", localName: "maximum_edition", opt: true, T: () => ["google.protobuf.Edition", Edition] } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.defaults = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults */ 1: + message.defaults.push(exports.FeatureSetDefaults_FeatureSetEditionDefault.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* optional google.protobuf.Edition minimum_edition */ 4: + message.minimum_edition = reader.int32(); + break; + case /* optional google.protobuf.Edition maximum_edition */ 5: + message.maximum_edition = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1; */ + for (let i = 0; i < message.defaults.length; i++) + exports.FeatureSetDefaults_FeatureSetEditionDefault.internalBinaryWrite(message.defaults[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.Edition minimum_edition = 4; */ + if (message.minimum_edition !== undefined) + writer.tag(4, runtime_1.WireType.Varint).int32(message.minimum_edition); + /* optional google.protobuf.Edition maximum_edition = 5; */ + if (message.maximum_edition !== undefined) + writer.tag(5, runtime_1.WireType.Varint).int32(message.maximum_edition); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.FeatureSetDefaults + */ +exports.FeatureSetDefaults = new FeatureSetDefaults$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class FeatureSetDefaults_FeatureSetEditionDefault$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault", [ + { no: 3, name: "edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }, + { no: 4, name: "overridable_features", kind: "message", localName: "overridable_features", T: () => exports.FeatureSet }, + { no: 5, name: "fixed_features", kind: "message", localName: "fixed_features", T: () => exports.FeatureSet } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* optional google.protobuf.Edition edition */ 3: + message.edition = reader.int32(); + break; + case /* optional google.protobuf.FeatureSet overridable_features */ 4: + message.overridable_features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.overridable_features); + break; + case /* optional google.protobuf.FeatureSet fixed_features */ 5: + message.fixed_features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.fixed_features); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* optional google.protobuf.Edition edition = 3; */ + if (message.edition !== undefined) + writer.tag(3, runtime_1.WireType.Varint).int32(message.edition); + /* optional google.protobuf.FeatureSet overridable_features = 4; */ + if (message.overridable_features) + exports.FeatureSet.internalBinaryWrite(message.overridable_features, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* optional google.protobuf.FeatureSet fixed_features = 5; */ + if (message.fixed_features) + exports.FeatureSet.internalBinaryWrite(message.fixed_features, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + */ +exports.FeatureSetDefaults_FeatureSetEditionDefault = new FeatureSetDefaults_FeatureSetEditionDefault$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class SourceCodeInfo$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.SourceCodeInfo", [ + { no: 1, name: "location", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.SourceCodeInfo_Location } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.location = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated google.protobuf.SourceCodeInfo.Location location */ 1: + message.location.push(exports.SourceCodeInfo_Location.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated google.protobuf.SourceCodeInfo.Location location = 1; */ + for (let i = 0; i < message.location.length; i++) + exports.SourceCodeInfo_Location.internalBinaryWrite(message.location[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.SourceCodeInfo + */ +exports.SourceCodeInfo = new SourceCodeInfo$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class SourceCodeInfo_Location$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.SourceCodeInfo.Location", [ + { no: 1, name: "path", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }, + { no: 2, name: "span", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }, + { no: 3, name: "leading_comments", kind: "scalar", localName: "leading_comments", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 4, name: "trailing_comments", kind: "scalar", localName: "trailing_comments", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 6, name: "leading_detached_comments", kind: "scalar", localName: "leading_detached_comments", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.path = []; + message.span = []; + message.leading_detached_comments = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated int32 path = 1 [packed = true];*/ 1: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.path.push(reader.int32()); + else + message.path.push(reader.int32()); + break; + case /* repeated int32 span = 2 [packed = true];*/ 2: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.span.push(reader.int32()); + else + message.span.push(reader.int32()); + break; + case /* optional string leading_comments */ 3: + message.leading_comments = reader.string(); + break; + case /* optional string trailing_comments */ 4: + message.trailing_comments = reader.string(); + break; + case /* repeated string leading_detached_comments */ 6: + message.leading_detached_comments.push(reader.string()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated int32 path = 1 [packed = true]; */ + if (message.path.length) { + writer.tag(1, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.path.length; i++) + writer.int32(message.path[i]); + writer.join(); + } + /* repeated int32 span = 2 [packed = true]; */ + if (message.span.length) { + writer.tag(2, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.span.length; i++) + writer.int32(message.span[i]); + writer.join(); + } + /* optional string leading_comments = 3; */ + if (message.leading_comments !== undefined) + writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.leading_comments); + /* optional string trailing_comments = 4; */ + if (message.trailing_comments !== undefined) + writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.trailing_comments); + /* repeated string leading_detached_comments = 6; */ + for (let i = 0; i < message.leading_detached_comments.length; i++) + writer.tag(6, runtime_1.WireType.LengthDelimited).string(message.leading_detached_comments[i]); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.SourceCodeInfo.Location + */ +exports.SourceCodeInfo_Location = new SourceCodeInfo_Location$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class GeneratedCodeInfo$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.GeneratedCodeInfo", [ + { no: 1, name: "annotation", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.GeneratedCodeInfo_Annotation } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.annotation = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated google.protobuf.GeneratedCodeInfo.Annotation annotation */ 1: + message.annotation.push(exports.GeneratedCodeInfo_Annotation.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; */ + for (let i = 0; i < message.annotation.length; i++) + exports.GeneratedCodeInfo_Annotation.internalBinaryWrite(message.annotation[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.GeneratedCodeInfo + */ +exports.GeneratedCodeInfo = new GeneratedCodeInfo$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class GeneratedCodeInfo_Annotation$Type extends runtime_4.MessageType { + constructor() { + super("google.protobuf.GeneratedCodeInfo.Annotation", [ + { no: 1, name: "path", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }, + { no: 2, name: "source_file", kind: "scalar", localName: "source_file", opt: true, T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "begin", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, + { no: 4, name: "end", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, + { no: 5, name: "semantic", kind: "enum", opt: true, T: () => ["google.protobuf.GeneratedCodeInfo.Annotation.Semantic", GeneratedCodeInfo_Annotation_Semantic] } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.path = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated int32 path = 1 [packed = true];*/ 1: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.path.push(reader.int32()); + else + message.path.push(reader.int32()); + break; + case /* optional string source_file */ 2: + message.source_file = reader.string(); + break; + case /* optional int32 begin */ 3: + message.begin = reader.int32(); + break; + case /* optional int32 end */ 4: + message.end = reader.int32(); + break; + case /* optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic */ 5: + message.semantic = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated int32 path = 1 [packed = true]; */ + if (message.path.length) { + writer.tag(1, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.path.length; i++) + writer.int32(message.path[i]); + writer.join(); + } + /* optional string source_file = 2; */ + if (message.source_file !== undefined) + writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.source_file); + /* optional int32 begin = 3; */ + if (message.begin !== undefined) + writer.tag(3, runtime_1.WireType.Varint).int32(message.begin); + /* optional int32 end = 4; */ + if (message.end !== undefined) + writer.tag(4, runtime_1.WireType.Varint).int32(message.end); + /* optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; */ + if (message.semantic !== undefined) + writer.tag(5, runtime_1.WireType.Varint).int32(message.semantic); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.GeneratedCodeInfo.Annotation + */ +exports.GeneratedCodeInfo_Annotation = new GeneratedCodeInfo_Annotation$Type(); diff --git a/src/google/protobuf/duration_pb.d.ts b/src/google/protobuf/duration_pb.d.ts new file mode 100644 index 00000000..6404507f --- /dev/null +++ b/src/google/protobuf/duration_pb.d.ts @@ -0,0 +1,148 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "google/protobuf/duration.proto" (package "google.protobuf", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { IBinaryWriter } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { IBinaryReader } from "@protobuf-ts/runtime"; +import type { PartialMessage } from "@protobuf-ts/runtime"; +import type { JsonValue } from "@protobuf-ts/runtime"; +import type { JsonReadOptions } from "@protobuf-ts/runtime"; +import type { JsonWriteOptions } from "@protobuf-ts/runtime"; +import { MessageType } from "@protobuf-ts/runtime"; +/** + * A Duration represents a signed, fixed-length span of time represented + * as a count of seconds and fractions of seconds at nanosecond + * resolution. It is independent of any calendar and concepts like "day" + * or "month". It is related to Timestamp in that the difference between + * two Timestamp values is a Duration and it can be added or subtracted + * from a Timestamp. Range is approximately +-10,000 years. + * + * # Examples + * + * Example 1: Compute Duration from two Timestamps in pseudo code. + * + * Timestamp start = ...; + * Timestamp end = ...; + * Duration duration = ...; + * + * duration.seconds = end.seconds - start.seconds; + * duration.nanos = end.nanos - start.nanos; + * + * if (duration.seconds < 0 && duration.nanos > 0) { + * duration.seconds += 1; + * duration.nanos -= 1000000000; + * } else if (duration.seconds > 0 && duration.nanos < 0) { + * duration.seconds -= 1; + * duration.nanos += 1000000000; + * } + * + * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + * + * Timestamp start = ...; + * Duration duration = ...; + * Timestamp end = ...; + * + * end.seconds = start.seconds + duration.seconds; + * end.nanos = start.nanos + duration.nanos; + * + * if (end.nanos < 0) { + * end.seconds -= 1; + * end.nanos += 1000000000; + * } else if (end.nanos >= 1000000000) { + * end.seconds += 1; + * end.nanos -= 1000000000; + * } + * + * Example 3: Compute Duration from datetime.timedelta in Python. + * + * td = datetime.timedelta(days=3, minutes=10) + * duration = Duration() + * duration.FromTimedelta(td) + * + * # JSON Mapping + * + * In JSON format, the Duration type is encoded as a string rather than an + * object, where the string ends in the suffix "s" (indicating seconds) and + * is preceded by the number of seconds, with nanoseconds expressed as + * fractional seconds. For example, 3 seconds with 0 nanoseconds should be + * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + * microsecond should be expressed in JSON format as "3.000001s". + * + * + * @generated from protobuf message google.protobuf.Duration + */ +export interface Duration { + /** + * Signed seconds of the span of time. Must be from -315,576,000,000 + * to +315,576,000,000 inclusive. Note: these bounds are computed from: + * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + * + * @generated from protobuf field: int64 seconds = 1; + */ + seconds: bigint; + /** + * Signed fractions of a second at nanosecond resolution of the span + * of time. Durations less than one second are represented with a 0 + * `seconds` field and a positive or negative `nanos` field. For durations + * of one second or more, a non-zero value for the `nanos` field must be + * of the same sign as the `seconds` field. Must be from -999,999,999 + * to +999,999,999 inclusive. + * + * @generated from protobuf field: int32 nanos = 2; + */ + nanos: number; +} +declare class Duration$Type extends MessageType { + constructor(); + /** + * Encode `Duration` to JSON string like "3.000001s". + */ + internalJsonWrite(message: Duration, options: JsonWriteOptions): JsonValue; + /** + * Decode `Duration` from JSON string like "3.000001s" + */ + internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Duration): Duration; + create(value?: PartialMessage): Duration; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Duration): Duration; + internalBinaryWrite(message: Duration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.Duration + */ +export declare const Duration: Duration$Type; +export {}; diff --git a/src/google/protobuf/duration_pb.js b/src/google/protobuf/duration_pb.js new file mode 100644 index 00000000..374080fa --- /dev/null +++ b/src/google/protobuf/duration_pb.js @@ -0,0 +1,143 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "google/protobuf/duration.proto" (package "google.protobuf", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Duration = void 0; +const runtime_1 = require("@protobuf-ts/runtime"); +const runtime_2 = require("@protobuf-ts/runtime"); +const runtime_3 = require("@protobuf-ts/runtime"); +const runtime_4 = require("@protobuf-ts/runtime"); +const runtime_5 = require("@protobuf-ts/runtime"); +const runtime_6 = require("@protobuf-ts/runtime"); +// @generated message type with reflection information, may provide speed optimized methods +class Duration$Type extends runtime_6.MessageType { + constructor() { + super("google.protobuf.Duration", [ + { no: 1, name: "seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, + { no: 2, name: "nanos", kind: "scalar", T: 5 /*ScalarType.INT32*/ } + ]); + } + /** + * Encode `Duration` to JSON string like "3.000001s". + */ + internalJsonWrite(message, options) { + let s = runtime_5.PbLong.from(message.seconds).toNumber(); + if (s > 315576000000 || s < -315576000000) + throw new Error("Duration value out of range."); + let text = message.seconds.toString(); + if (s === 0 && message.nanos < 0) + text = "-" + text; + if (message.nanos !== 0) { + let nanosStr = Math.abs(message.nanos).toString(); + nanosStr = "0".repeat(9 - nanosStr.length) + nanosStr; + if (nanosStr.substring(3) === "000000") + nanosStr = nanosStr.substring(0, 3); + else if (nanosStr.substring(6) === "000") + nanosStr = nanosStr.substring(0, 6); + text += "." + nanosStr; + } + return text + "s"; + } + /** + * Decode `Duration` from JSON string like "3.000001s" + */ + internalJsonRead(json, options, target) { + if (typeof json !== "string") + throw new Error("Unable to parse Duration from JSON " + runtime_4.typeofJsonValue(json) + ". Expected string."); + let match = json.match(/^(-?)([0-9]+)(?:\.([0-9]+))?s/); + if (match === null) + throw new Error("Unable to parse Duration from JSON string. Invalid format."); + if (!target) + target = this.create(); + let [, sign, secs, nanos] = match; + let longSeconds = runtime_5.PbLong.from(sign + secs); + if (longSeconds.toNumber() > 315576000000 || longSeconds.toNumber() < -315576000000) + throw new Error("Unable to parse Duration from JSON string. Value out of range."); + target.seconds = longSeconds.toBigInt(); + if (typeof nanos == "string") { + let nanosStr = sign + nanos + "0".repeat(9 - nanos.length); + target.nanos = parseInt(nanosStr); + } + return target; + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.seconds = 0n; + message.nanos = 0; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* int64 seconds */ 1: + message.seconds = reader.int64().toBigInt(); + break; + case /* int32 nanos */ 2: + message.nanos = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* int64 seconds = 1; */ + if (message.seconds !== 0n) + writer.tag(1, runtime_1.WireType.Varint).int64(message.seconds); + /* int32 nanos = 2; */ + if (message.nanos !== 0) + writer.tag(2, runtime_1.WireType.Varint).int32(message.nanos); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.Duration + */ +exports.Duration = new Duration$Type(); diff --git a/src/google/protobuf/timestamp_pb.d.ts b/src/google/protobuf/timestamp_pb.d.ts new file mode 100644 index 00000000..b35e12e0 --- /dev/null +++ b/src/google/protobuf/timestamp_pb.d.ts @@ -0,0 +1,191 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "google/protobuf/timestamp.proto" (package "google.protobuf", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { IBinaryWriter } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { IBinaryReader } from "@protobuf-ts/runtime"; +import type { PartialMessage } from "@protobuf-ts/runtime"; +import type { JsonValue } from "@protobuf-ts/runtime"; +import type { JsonReadOptions } from "@protobuf-ts/runtime"; +import type { JsonWriteOptions } from "@protobuf-ts/runtime"; +import { MessageType } from "@protobuf-ts/runtime"; +/** + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + * + * # Examples + * + * Example 1: Compute Timestamp from POSIX `time()`. + * + * Timestamp timestamp; + * timestamp.set_seconds(time(NULL)); + * timestamp.set_nanos(0); + * + * Example 2: Compute Timestamp from POSIX `gettimeofday()`. + * + * struct timeval tv; + * gettimeofday(&tv, NULL); + * + * Timestamp timestamp; + * timestamp.set_seconds(tv.tv_sec); + * timestamp.set_nanos(tv.tv_usec * 1000); + * + * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + * + * FILETIME ft; + * GetSystemTimeAsFileTime(&ft); + * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + * + * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + * Timestamp timestamp; + * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + * + * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + * + * long millis = System.currentTimeMillis(); + * + * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + * .setNanos((int) ((millis % 1000) * 1000000)).build(); + * + * Example 5: Compute Timestamp from Java `Instant.now()`. + * + * Instant now = Instant.now(); + * + * Timestamp timestamp = + * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + * .setNanos(now.getNano()).build(); + * + * Example 6: Compute Timestamp from current time in Python. + * + * timestamp = Timestamp() + * timestamp.GetCurrentTime() + * + * # JSON Mapping + * + * In JSON format, the Timestamp type is encoded as a string in the + * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" + * where {year} is always expressed using four digits while {month}, {day}, + * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + * is required. A proto3 JSON serializer should always use UTC (as indicated by + * "Z") when printing the Timestamp type and a proto3 JSON parser should be + * able to accept both UTC and other timezones (as indicated by an offset). + * + * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + * 01:30 UTC on January 15, 2017. + * + * In JavaScript, one can convert a Date object to this format using the + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + * method. In Python, a standard `datetime.datetime` object can be converted + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + * ) to obtain a formatter capable of generating timestamps in this format. + * + * + * @generated from protobuf message google.protobuf.Timestamp + */ +export interface Timestamp { + /** + * Represents seconds of UTC time since Unix epoch + * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + * 9999-12-31T23:59:59Z inclusive. + * + * @generated from protobuf field: int64 seconds = 1; + */ + seconds: bigint; + /** + * Non-negative fractions of a second at nanosecond resolution. Negative + * second values with fractions must still have non-negative nanos values + * that count forward in time. Must be from 0 to 999,999,999 + * inclusive. + * + * @generated from protobuf field: int32 nanos = 2; + */ + nanos: number; +} +declare class Timestamp$Type extends MessageType { + constructor(); + /** + * Creates a new `Timestamp` for the current time. + */ + now(): Timestamp; + /** + * Converts a `Timestamp` to a JavaScript Date. + */ + toDate(message: Timestamp): Date; + /** + * Converts a JavaScript Date to a `Timestamp`. + */ + fromDate(date: Date): Timestamp; + /** + * In JSON format, the `Timestamp` type is encoded as a string + * in the RFC 3339 format. + */ + internalJsonWrite(message: Timestamp, options: JsonWriteOptions): JsonValue; + /** + * In JSON format, the `Timestamp` type is encoded as a string + * in the RFC 3339 format. + */ + internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Timestamp): Timestamp; + create(value?: PartialMessage): Timestamp; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Timestamp): Timestamp; + internalBinaryWrite(message: Timestamp, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.Timestamp + */ +export declare const Timestamp: Timestamp$Type; +export {}; diff --git a/src/google/protobuf/timestamp_pb.js b/src/google/protobuf/timestamp_pb.js new file mode 100644 index 00000000..80962215 --- /dev/null +++ b/src/google/protobuf/timestamp_pb.js @@ -0,0 +1,171 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "google/protobuf/timestamp.proto" (package "google.protobuf", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Timestamp = void 0; +const runtime_1 = require("@protobuf-ts/runtime"); +const runtime_2 = require("@protobuf-ts/runtime"); +const runtime_3 = require("@protobuf-ts/runtime"); +const runtime_4 = require("@protobuf-ts/runtime"); +const runtime_5 = require("@protobuf-ts/runtime"); +const runtime_6 = require("@protobuf-ts/runtime"); +// @generated message type with reflection information, may provide speed optimized methods +class Timestamp$Type extends runtime_6.MessageType { + constructor() { + super("google.protobuf.Timestamp", [ + { no: 1, name: "seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, + { no: 2, name: "nanos", kind: "scalar", T: 5 /*ScalarType.INT32*/ } + ]); + } + /** + * Creates a new `Timestamp` for the current time. + */ + now() { + const msg = this.create(); + const ms = Date.now(); + msg.seconds = runtime_5.PbLong.from(Math.floor(ms / 1000)).toBigInt(); + msg.nanos = (ms % 1000) * 1000000; + return msg; + } + /** + * Converts a `Timestamp` to a JavaScript Date. + */ + toDate(message) { + return new Date(runtime_5.PbLong.from(message.seconds).toNumber() * 1000 + Math.ceil(message.nanos / 1000000)); + } + /** + * Converts a JavaScript Date to a `Timestamp`. + */ + fromDate(date) { + const msg = this.create(); + const ms = date.getTime(); + msg.seconds = runtime_5.PbLong.from(Math.floor(ms / 1000)).toBigInt(); + msg.nanos = (ms % 1000) * 1000000; + return msg; + } + /** + * In JSON format, the `Timestamp` type is encoded as a string + * in the RFC 3339 format. + */ + internalJsonWrite(message, options) { + let ms = runtime_5.PbLong.from(message.seconds).toNumber() * 1000; + if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z")) + throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive."); + if (message.nanos < 0) + throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative."); + let z = "Z"; + if (message.nanos > 0) { + let nanosStr = (message.nanos + 1000000000).toString().substring(1); + if (nanosStr.substring(3) === "000000") + z = "." + nanosStr.substring(0, 3) + "Z"; + else if (nanosStr.substring(6) === "000") + z = "." + nanosStr.substring(0, 6) + "Z"; + else + z = "." + nanosStr + "Z"; + } + return new Date(ms).toISOString().replace(".000Z", z); + } + /** + * In JSON format, the `Timestamp` type is encoded as a string + * in the RFC 3339 format. + */ + internalJsonRead(json, options, target) { + if (typeof json !== "string") + throw new Error("Unable to parse Timestamp from JSON " + runtime_4.typeofJsonValue(json) + "."); + let matches = json.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/); + if (!matches) + throw new Error("Unable to parse Timestamp from JSON. Invalid format."); + let ms = Date.parse(matches[1] + "-" + matches[2] + "-" + matches[3] + "T" + matches[4] + ":" + matches[5] + ":" + matches[6] + (matches[8] ? matches[8] : "Z")); + if (Number.isNaN(ms)) + throw new Error("Unable to parse Timestamp from JSON. Invalid value."); + if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z")) + throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive."); + if (!target) + target = this.create(); + target.seconds = runtime_5.PbLong.from(ms / 1000).toBigInt(); + target.nanos = 0; + if (matches[7]) + target.nanos = (parseInt("1" + matches[7] + "0".repeat(9 - matches[7].length)) - 1000000000); + return target; + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.seconds = 0n; + message.nanos = 0; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* int64 seconds */ 1: + message.seconds = reader.int64().toBigInt(); + break; + case /* int32 nanos */ 2: + message.nanos = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* int64 seconds = 1; */ + if (message.seconds !== 0n) + writer.tag(1, runtime_1.WireType.Varint).int64(message.seconds); + /* int32 nanos = 2; */ + if (message.nanos !== 0) + writer.tag(2, runtime_1.WireType.Varint).int32(message.nanos); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.Timestamp + */ +exports.Timestamp = new Timestamp$Type(); diff --git a/src/google/protobuf/wrappers_pb.d.ts b/src/google/protobuf/wrappers_pb.d.ts new file mode 100644 index 00000000..36f25abf --- /dev/null +++ b/src/google/protobuf/wrappers_pb.d.ts @@ -0,0 +1,353 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "google/protobuf/wrappers.proto" (package "google.protobuf", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Wrappers for primitive (non-message) types. These types are useful +// for embedding primitives in the `google.protobuf.Any` type and for places +// where we need to distinguish between the absence of a primitive +// typed field and its default value. +// +// These wrappers have no meaningful use within repeated fields as they lack +// the ability to detect presence on individual elements. +// These wrappers have no meaningful use within a map or a oneof since +// individual entries of a map or fields of a oneof can already detect presence. +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { IBinaryWriter } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { IBinaryReader } from "@protobuf-ts/runtime"; +import type { PartialMessage } from "@protobuf-ts/runtime"; +import type { JsonValue } from "@protobuf-ts/runtime"; +import type { JsonReadOptions } from "@protobuf-ts/runtime"; +import type { JsonWriteOptions } from "@protobuf-ts/runtime"; +import { MessageType } from "@protobuf-ts/runtime"; +/** + * Wrapper message for `double`. + * + * The JSON representation for `DoubleValue` is JSON number. + * + * @generated from protobuf message google.protobuf.DoubleValue + */ +export interface DoubleValue { + /** + * The double value. + * + * @generated from protobuf field: double value = 1; + */ + value: number; +} +/** + * Wrapper message for `float`. + * + * The JSON representation for `FloatValue` is JSON number. + * + * @generated from protobuf message google.protobuf.FloatValue + */ +export interface FloatValue { + /** + * The float value. + * + * @generated from protobuf field: float value = 1; + */ + value: number; +} +/** + * Wrapper message for `int64`. + * + * The JSON representation for `Int64Value` is JSON string. + * + * @generated from protobuf message google.protobuf.Int64Value + */ +export interface Int64Value { + /** + * The int64 value. + * + * @generated from protobuf field: int64 value = 1; + */ + value: bigint; +} +/** + * Wrapper message for `uint64`. + * + * The JSON representation for `UInt64Value` is JSON string. + * + * @generated from protobuf message google.protobuf.UInt64Value + */ +export interface UInt64Value { + /** + * The uint64 value. + * + * @generated from protobuf field: uint64 value = 1; + */ + value: bigint; +} +/** + * Wrapper message for `int32`. + * + * The JSON representation for `Int32Value` is JSON number. + * + * @generated from protobuf message google.protobuf.Int32Value + */ +export interface Int32Value { + /** + * The int32 value. + * + * @generated from protobuf field: int32 value = 1; + */ + value: number; +} +/** + * Wrapper message for `uint32`. + * + * The JSON representation for `UInt32Value` is JSON number. + * + * @generated from protobuf message google.protobuf.UInt32Value + */ +export interface UInt32Value { + /** + * The uint32 value. + * + * @generated from protobuf field: uint32 value = 1; + */ + value: number; +} +/** + * Wrapper message for `bool`. + * + * The JSON representation for `BoolValue` is JSON `true` and `false`. + * + * @generated from protobuf message google.protobuf.BoolValue + */ +export interface BoolValue { + /** + * The bool value. + * + * @generated from protobuf field: bool value = 1; + */ + value: boolean; +} +/** + * Wrapper message for `string`. + * + * The JSON representation for `StringValue` is JSON string. + * + * @generated from protobuf message google.protobuf.StringValue + */ +export interface StringValue { + /** + * The string value. + * + * @generated from protobuf field: string value = 1; + */ + value: string; +} +/** + * Wrapper message for `bytes`. + * + * The JSON representation for `BytesValue` is JSON string. + * + * @generated from protobuf message google.protobuf.BytesValue + */ +export interface BytesValue { + /** + * The bytes value. + * + * @generated from protobuf field: bytes value = 1; + */ + value: Uint8Array; +} +declare class DoubleValue$Type extends MessageType { + constructor(); + /** + * Encode `DoubleValue` to JSON number. + */ + internalJsonWrite(message: DoubleValue, options: JsonWriteOptions): JsonValue; + /** + * Decode `DoubleValue` from JSON number. + */ + internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: DoubleValue): DoubleValue; + create(value?: PartialMessage): DoubleValue; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DoubleValue): DoubleValue; + internalBinaryWrite(message: DoubleValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.DoubleValue + */ +export declare const DoubleValue: DoubleValue$Type; +declare class FloatValue$Type extends MessageType { + constructor(); + /** + * Encode `FloatValue` to JSON number. + */ + internalJsonWrite(message: FloatValue, options: JsonWriteOptions): JsonValue; + /** + * Decode `FloatValue` from JSON number. + */ + internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: FloatValue): FloatValue; + create(value?: PartialMessage): FloatValue; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FloatValue): FloatValue; + internalBinaryWrite(message: FloatValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.FloatValue + */ +export declare const FloatValue: FloatValue$Type; +declare class Int64Value$Type extends MessageType { + constructor(); + /** + * Encode `Int64Value` to JSON string. + */ + internalJsonWrite(message: Int64Value, options: JsonWriteOptions): JsonValue; + /** + * Decode `Int64Value` from JSON string. + */ + internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Int64Value): Int64Value; + create(value?: PartialMessage): Int64Value; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int64Value): Int64Value; + internalBinaryWrite(message: Int64Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.Int64Value + */ +export declare const Int64Value: Int64Value$Type; +declare class UInt64Value$Type extends MessageType { + constructor(); + /** + * Encode `UInt64Value` to JSON string. + */ + internalJsonWrite(message: UInt64Value, options: JsonWriteOptions): JsonValue; + /** + * Decode `UInt64Value` from JSON string. + */ + internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: UInt64Value): UInt64Value; + create(value?: PartialMessage): UInt64Value; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UInt64Value): UInt64Value; + internalBinaryWrite(message: UInt64Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.UInt64Value + */ +export declare const UInt64Value: UInt64Value$Type; +declare class Int32Value$Type extends MessageType { + constructor(); + /** + * Encode `Int32Value` to JSON string. + */ + internalJsonWrite(message: Int32Value, options: JsonWriteOptions): JsonValue; + /** + * Decode `Int32Value` from JSON string. + */ + internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Int32Value): Int32Value; + create(value?: PartialMessage): Int32Value; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int32Value): Int32Value; + internalBinaryWrite(message: Int32Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.Int32Value + */ +export declare const Int32Value: Int32Value$Type; +declare class UInt32Value$Type extends MessageType { + constructor(); + /** + * Encode `UInt32Value` to JSON string. + */ + internalJsonWrite(message: UInt32Value, options: JsonWriteOptions): JsonValue; + /** + * Decode `UInt32Value` from JSON string. + */ + internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: UInt32Value): UInt32Value; + create(value?: PartialMessage): UInt32Value; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UInt32Value): UInt32Value; + internalBinaryWrite(message: UInt32Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.UInt32Value + */ +export declare const UInt32Value: UInt32Value$Type; +declare class BoolValue$Type extends MessageType { + constructor(); + /** + * Encode `BoolValue` to JSON bool. + */ + internalJsonWrite(message: BoolValue, options: JsonWriteOptions): JsonValue; + /** + * Decode `BoolValue` from JSON bool. + */ + internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: BoolValue): BoolValue; + create(value?: PartialMessage): BoolValue; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BoolValue): BoolValue; + internalBinaryWrite(message: BoolValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.BoolValue + */ +export declare const BoolValue: BoolValue$Type; +declare class StringValue$Type extends MessageType { + constructor(); + /** + * Encode `StringValue` to JSON string. + */ + internalJsonWrite(message: StringValue, options: JsonWriteOptions): JsonValue; + /** + * Decode `StringValue` from JSON string. + */ + internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: StringValue): StringValue; + create(value?: PartialMessage): StringValue; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StringValue): StringValue; + internalBinaryWrite(message: StringValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.StringValue + */ +export declare const StringValue: StringValue$Type; +declare class BytesValue$Type extends MessageType { + constructor(); + /** + * Encode `BytesValue` to JSON string. + */ + internalJsonWrite(message: BytesValue, options: JsonWriteOptions): JsonValue; + /** + * Decode `BytesValue` from JSON string. + */ + internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: BytesValue): BytesValue; + create(value?: PartialMessage): BytesValue; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BytesValue): BytesValue; + internalBinaryWrite(message: BytesValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.protobuf.BytesValue + */ +export declare const BytesValue: BytesValue$Type; +export {}; diff --git a/src/google/protobuf/wrappers_pb.js b/src/google/protobuf/wrappers_pb.js new file mode 100644 index 00000000..bf751ad8 --- /dev/null +++ b/src/google/protobuf/wrappers_pb.js @@ -0,0 +1,659 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "google/protobuf/wrappers.proto" (package "google.protobuf", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Wrappers for primitive (non-message) types. These types are useful +// for embedding primitives in the `google.protobuf.Any` type and for places +// where we need to distinguish between the absence of a primitive +// typed field and its default value. +// +// These wrappers have no meaningful use within repeated fields as they lack +// the ability to detect presence on individual elements. +// These wrappers have no meaningful use within a map or a oneof since +// individual entries of a map or fields of a oneof can already detect presence. +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BytesValue = exports.StringValue = exports.BoolValue = exports.UInt32Value = exports.Int32Value = exports.UInt64Value = exports.Int64Value = exports.FloatValue = exports.DoubleValue = void 0; +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "google/protobuf/wrappers.proto" (package "google.protobuf", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Wrappers for primitive (non-message) types. These types are useful +// for embedding primitives in the `google.protobuf.Any` type and for places +// where we need to distinguish between the absence of a primitive +// typed field and its default value. +// +// These wrappers have no meaningful use within repeated fields as they lack +// the ability to detect presence on individual elements. +// These wrappers have no meaningful use within a map or a oneof since +// individual entries of a map or fields of a oneof can already detect presence. +// +const runtime_1 = require("@protobuf-ts/runtime"); +const runtime_2 = require("@protobuf-ts/runtime"); +const runtime_3 = require("@protobuf-ts/runtime"); +const runtime_4 = require("@protobuf-ts/runtime"); +const runtime_5 = require("@protobuf-ts/runtime"); +const runtime_6 = require("@protobuf-ts/runtime"); +// @generated message type with reflection information, may provide speed optimized methods +class DoubleValue$Type extends runtime_6.MessageType { + constructor() { + super("google.protobuf.DoubleValue", [ + { no: 1, name: "value", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ } + ]); + } + /** + * Encode `DoubleValue` to JSON number. + */ + internalJsonWrite(message, options) { + return this.refJsonWriter.scalar(2, message.value, "value", false, true); + } + /** + * Decode `DoubleValue` from JSON number. + */ + internalJsonRead(json, options, target) { + if (!target) + target = this.create(); + target.value = this.refJsonReader.scalar(json, 1, undefined, "value"); + return target; + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.value = 0; + if (value !== undefined) + runtime_5.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* double value */ 1: + message.value = reader.double(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_4.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* double value = 1; */ + if (message.value !== 0) + writer.tag(1, runtime_3.WireType.Bit64).double(message.value); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_4.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.DoubleValue + */ +exports.DoubleValue = new DoubleValue$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class FloatValue$Type extends runtime_6.MessageType { + constructor() { + super("google.protobuf.FloatValue", [ + { no: 1, name: "value", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ } + ]); + } + /** + * Encode `FloatValue` to JSON number. + */ + internalJsonWrite(message, options) { + return this.refJsonWriter.scalar(1, message.value, "value", false, true); + } + /** + * Decode `FloatValue` from JSON number. + */ + internalJsonRead(json, options, target) { + if (!target) + target = this.create(); + target.value = this.refJsonReader.scalar(json, 1, undefined, "value"); + return target; + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.value = 0; + if (value !== undefined) + runtime_5.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* float value */ 1: + message.value = reader.float(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_4.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* float value = 1; */ + if (message.value !== 0) + writer.tag(1, runtime_3.WireType.Bit32).float(message.value); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_4.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.FloatValue + */ +exports.FloatValue = new FloatValue$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Int64Value$Type extends runtime_6.MessageType { + constructor() { + super("google.protobuf.Int64Value", [ + { no: 1, name: "value", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } + ]); + } + /** + * Encode `Int64Value` to JSON string. + */ + internalJsonWrite(message, options) { + return this.refJsonWriter.scalar(runtime_1.ScalarType.INT64, message.value, "value", false, true); + } + /** + * Decode `Int64Value` from JSON string. + */ + internalJsonRead(json, options, target) { + if (!target) + target = this.create(); + target.value = this.refJsonReader.scalar(json, runtime_1.ScalarType.INT64, runtime_2.LongType.BIGINT, "value"); + return target; + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.value = 0n; + if (value !== undefined) + runtime_5.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* int64 value */ 1: + message.value = reader.int64().toBigInt(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_4.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* int64 value = 1; */ + if (message.value !== 0n) + writer.tag(1, runtime_3.WireType.Varint).int64(message.value); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_4.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.Int64Value + */ +exports.Int64Value = new Int64Value$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class UInt64Value$Type extends runtime_6.MessageType { + constructor() { + super("google.protobuf.UInt64Value", [ + { no: 1, name: "value", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ } + ]); + } + /** + * Encode `UInt64Value` to JSON string. + */ + internalJsonWrite(message, options) { + return this.refJsonWriter.scalar(runtime_1.ScalarType.UINT64, message.value, "value", false, true); + } + /** + * Decode `UInt64Value` from JSON string. + */ + internalJsonRead(json, options, target) { + if (!target) + target = this.create(); + target.value = this.refJsonReader.scalar(json, runtime_1.ScalarType.UINT64, runtime_2.LongType.BIGINT, "value"); + return target; + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.value = 0n; + if (value !== undefined) + runtime_5.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* uint64 value */ 1: + message.value = reader.uint64().toBigInt(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_4.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* uint64 value = 1; */ + if (message.value !== 0n) + writer.tag(1, runtime_3.WireType.Varint).uint64(message.value); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_4.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.UInt64Value + */ +exports.UInt64Value = new UInt64Value$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Int32Value$Type extends runtime_6.MessageType { + constructor() { + super("google.protobuf.Int32Value", [ + { no: 1, name: "value", kind: "scalar", T: 5 /*ScalarType.INT32*/ } + ]); + } + /** + * Encode `Int32Value` to JSON string. + */ + internalJsonWrite(message, options) { + return this.refJsonWriter.scalar(5, message.value, "value", false, true); + } + /** + * Decode `Int32Value` from JSON string. + */ + internalJsonRead(json, options, target) { + if (!target) + target = this.create(); + target.value = this.refJsonReader.scalar(json, 5, undefined, "value"); + return target; + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.value = 0; + if (value !== undefined) + runtime_5.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* int32 value */ 1: + message.value = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_4.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* int32 value = 1; */ + if (message.value !== 0) + writer.tag(1, runtime_3.WireType.Varint).int32(message.value); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_4.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.Int32Value + */ +exports.Int32Value = new Int32Value$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class UInt32Value$Type extends runtime_6.MessageType { + constructor() { + super("google.protobuf.UInt32Value", [ + { no: 1, name: "value", kind: "scalar", T: 13 /*ScalarType.UINT32*/ } + ]); + } + /** + * Encode `UInt32Value` to JSON string. + */ + internalJsonWrite(message, options) { + return this.refJsonWriter.scalar(13, message.value, "value", false, true); + } + /** + * Decode `UInt32Value` from JSON string. + */ + internalJsonRead(json, options, target) { + if (!target) + target = this.create(); + target.value = this.refJsonReader.scalar(json, 13, undefined, "value"); + return target; + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.value = 0; + if (value !== undefined) + runtime_5.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* uint32 value */ 1: + message.value = reader.uint32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_4.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* uint32 value = 1; */ + if (message.value !== 0) + writer.tag(1, runtime_3.WireType.Varint).uint32(message.value); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_4.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.UInt32Value + */ +exports.UInt32Value = new UInt32Value$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class BoolValue$Type extends runtime_6.MessageType { + constructor() { + super("google.protobuf.BoolValue", [ + { no: 1, name: "value", kind: "scalar", T: 8 /*ScalarType.BOOL*/ } + ]); + } + /** + * Encode `BoolValue` to JSON bool. + */ + internalJsonWrite(message, options) { + return message.value; + } + /** + * Decode `BoolValue` from JSON bool. + */ + internalJsonRead(json, options, target) { + if (!target) + target = this.create(); + target.value = this.refJsonReader.scalar(json, 8, undefined, "value"); + return target; + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.value = false; + if (value !== undefined) + runtime_5.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* bool value */ 1: + message.value = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_4.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* bool value = 1; */ + if (message.value !== false) + writer.tag(1, runtime_3.WireType.Varint).bool(message.value); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_4.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.BoolValue + */ +exports.BoolValue = new BoolValue$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class StringValue$Type extends runtime_6.MessageType { + constructor() { + super("google.protobuf.StringValue", [ + { no: 1, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ } + ]); + } + /** + * Encode `StringValue` to JSON string. + */ + internalJsonWrite(message, options) { + return message.value; + } + /** + * Decode `StringValue` from JSON string. + */ + internalJsonRead(json, options, target) { + if (!target) + target = this.create(); + target.value = this.refJsonReader.scalar(json, 9, undefined, "value"); + return target; + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.value = ""; + if (value !== undefined) + runtime_5.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string value */ 1: + message.value = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_4.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string value = 1; */ + if (message.value !== "") + writer.tag(1, runtime_3.WireType.LengthDelimited).string(message.value); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_4.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.StringValue + */ +exports.StringValue = new StringValue$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class BytesValue$Type extends runtime_6.MessageType { + constructor() { + super("google.protobuf.BytesValue", [ + { no: 1, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ } + ]); + } + /** + * Encode `BytesValue` to JSON string. + */ + internalJsonWrite(message, options) { + return this.refJsonWriter.scalar(12, message.value, "value", false, true); + } + /** + * Decode `BytesValue` from JSON string. + */ + internalJsonRead(json, options, target) { + if (!target) + target = this.create(); + target.value = this.refJsonReader.scalar(json, 12, undefined, "value"); + return target; + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.value = new Uint8Array(0); + if (value !== undefined) + runtime_5.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* bytes value */ 1: + message.value = reader.bytes(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_4.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* bytes value = 1; */ + if (message.value.length) + writer.tag(1, runtime_3.WireType.LengthDelimited).bytes(message.value); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_4.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.protobuf.BytesValue + */ +exports.BytesValue = new BytesValue$Type(); diff --git a/src/google/rpc/status_pb.d.ts b/src/google/rpc/status_pb.d.ts new file mode 100644 index 00000000..24847eb1 --- /dev/null +++ b/src/google/rpc/status_pb.d.ts @@ -0,0 +1,74 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "google/rpc/status.proto" (package "google.rpc", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { IBinaryWriter } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { IBinaryReader } from "@protobuf-ts/runtime"; +import type { PartialMessage } from "@protobuf-ts/runtime"; +import { MessageType } from "@protobuf-ts/runtime"; +import { Any } from "../protobuf/any_pb"; +/** + * The `Status` type defines a logical error model that is suitable for + * different programming environments, including REST APIs and RPC APIs. It is + * used by [gRPC](https://github.com/grpc). Each `Status` message contains + * three pieces of data: error code, error message, and error details. + * + * You can find out more about this error model and how to work with it in the + * [API Design Guide](https://cloud.google.com/apis/design/errors). + * + * @generated from protobuf message google.rpc.Status + */ +export interface Status { + /** + * The status code, which should be an enum value of + * [google.rpc.Code][google.rpc.Code]. + * + * @generated from protobuf field: int32 code = 1; + */ + code: number; + /** + * A developer-facing error message, which should be in English. Any + * user-facing error message should be localized and sent in the + * [google.rpc.Status.details][google.rpc.Status.details] field, or localized + * by the client. + * + * @generated from protobuf field: string message = 2; + */ + message: string; + /** + * A list of messages that carry the error details. There is a common set of + * message types for APIs to use. + * + * @generated from protobuf field: repeated google.protobuf.Any details = 3; + */ + details: Any[]; +} +declare class Status$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Status; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Status): Status; + internalBinaryWrite(message: Status, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message google.rpc.Status + */ +export declare const Status: Status$Type; +export {}; diff --git a/src/google/rpc/status_pb.js b/src/google/rpc/status_pb.js new file mode 100644 index 00000000..99606c0e --- /dev/null +++ b/src/google/rpc/status_pb.js @@ -0,0 +1,91 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "google/rpc/status.proto" (package "google.rpc", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Status = void 0; +const runtime_1 = require("@protobuf-ts/runtime"); +const runtime_2 = require("@protobuf-ts/runtime"); +const runtime_3 = require("@protobuf-ts/runtime"); +const runtime_4 = require("@protobuf-ts/runtime"); +const any_pb_1 = require("../protobuf/any_pb"); +// @generated message type with reflection information, may provide speed optimized methods +class Status$Type extends runtime_4.MessageType { + constructor() { + super("google.rpc.Status", [ + { no: 1, name: "code", kind: "scalar", T: 5 /*ScalarType.INT32*/ }, + { no: 2, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "details", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => any_pb_1.Any } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.code = 0; + message.message = ""; + message.details = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* int32 code */ 1: + message.code = reader.int32(); + break; + case /* string message */ 2: + message.message = reader.string(); + break; + case /* repeated google.protobuf.Any details */ 3: + message.details.push(any_pb_1.Any.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* int32 code = 1; */ + if (message.code !== 0) + writer.tag(1, runtime_1.WireType.Varint).int32(message.code); + /* string message = 2; */ + if (message.message !== "") + writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.message); + /* repeated google.protobuf.Any details = 3; */ + for (let i = 0; i < message.details.length; i++) + any_pb_1.Any.internalBinaryWrite(message.details[i], writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message google.rpc.Status + */ +exports.Status = new Status$Type(); diff --git a/src/main/java/org/vdaas/vald/api/v1/agent/core/AgentGrpc.java b/src/main/java/org/vdaas/vald/api/v1/agent/core/AgentGrpc.java deleted file mode 100644 index ade955af..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/agent/core/AgentGrpc.java +++ /dev/null @@ -1,667 +0,0 @@ -package org.vdaas.vald.api.v1.agent.core; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Represent the agent service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.64.0)", - comments = "Source: v1/agent/core/agent.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AgentGrpc { - - private AgentGrpc() {} - - public static final java.lang.String SERVICE_NAME = "core.v1.Agent"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateIndexMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateIndex", - requestType = org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateIndexMethod() { - io.grpc.MethodDescriptor getCreateIndexMethod; - if ((getCreateIndexMethod = AgentGrpc.getCreateIndexMethod) == null) { - synchronized (AgentGrpc.class) { - if ((getCreateIndexMethod = AgentGrpc.getCreateIndexMethod) == null) { - AgentGrpc.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( - org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AgentMethodDescriptorSupplier("CreateIndex")) - .build(); - } - } - } - return getCreateIndexMethod; - } - - private static volatile io.grpc.MethodDescriptor getSaveIndexMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SaveIndex", - requestType = org.vdaas.vald.api.v1.payload.Empty.class, - responseType = org.vdaas.vald.api.v1.payload.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSaveIndexMethod() { - io.grpc.MethodDescriptor getSaveIndexMethod; - if ((getSaveIndexMethod = AgentGrpc.getSaveIndexMethod) == null) { - synchronized (AgentGrpc.class) { - if ((getSaveIndexMethod = AgentGrpc.getSaveIndexMethod) == null) { - AgentGrpc.getSaveIndexMethod = getSaveIndexMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SaveIndex")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Empty.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AgentMethodDescriptorSupplier("SaveIndex")) - .build(); - } - } - } - return getSaveIndexMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateAndSaveIndexMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAndSaveIndex", - requestType = org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateAndSaveIndexMethod() { - io.grpc.MethodDescriptor getCreateAndSaveIndexMethod; - if ((getCreateAndSaveIndexMethod = AgentGrpc.getCreateAndSaveIndexMethod) == null) { - synchronized (AgentGrpc.class) { - if ((getCreateAndSaveIndexMethod = AgentGrpc.getCreateAndSaveIndexMethod) == null) { - AgentGrpc.getCreateAndSaveIndexMethod = getCreateAndSaveIndexMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAndSaveIndex")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AgentMethodDescriptorSupplier("CreateAndSaveIndex")) - .build(); - } - } - } - return getCreateAndSaveIndexMethod; - } - - private static volatile io.grpc.MethodDescriptor getIndexInfoMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "IndexInfo", - requestType = org.vdaas.vald.api.v1.payload.Empty.class, - responseType = org.vdaas.vald.api.v1.payload.Info.Index.Count.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getIndexInfoMethod() { - io.grpc.MethodDescriptor getIndexInfoMethod; - if ((getIndexInfoMethod = AgentGrpc.getIndexInfoMethod) == null) { - synchronized (AgentGrpc.class) { - if ((getIndexInfoMethod = AgentGrpc.getIndexInfoMethod) == null) { - AgentGrpc.getIndexInfoMethod = getIndexInfoMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "IndexInfo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Empty.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Info.Index.Count.getDefaultInstance())) - .setSchemaDescriptor(new AgentMethodDescriptorSupplier("IndexInfo")) - .build(); - } - } - } - return getIndexInfoMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetTimestampMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTimestamp", - requestType = org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Timestamp.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTimestampMethod() { - io.grpc.MethodDescriptor getGetTimestampMethod; - if ((getGetTimestampMethod = AgentGrpc.getGetTimestampMethod) == null) { - synchronized (AgentGrpc.class) { - if ((getGetTimestampMethod = AgentGrpc.getGetTimestampMethod) == null) { - AgentGrpc.getGetTimestampMethod = getGetTimestampMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTimestamp")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Timestamp.getDefaultInstance())) - .setSchemaDescriptor(new AgentMethodDescriptorSupplier("GetTimestamp")) - .build(); - } - } - } - return getGetTimestampMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static AgentStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AgentStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AgentStub(channel, callOptions); - } - }; - return AgentStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AgentBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AgentBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AgentBlockingStub(channel, callOptions); - } - }; - return AgentBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AgentFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AgentFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AgentFutureStub(channel, callOptions); - } - }; - return AgentFutureStub.newStub(factory, channel); - } - - /** - *
-   * Represent the agent service.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Represent the creating index RPC.
-     * 
- */ - default void createIndex(org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateIndexMethod(), responseObserver); - } - - /** - *
-     * Represent the saving index RPC.
-     * 
- */ - default void saveIndex(org.vdaas.vald.api.v1.payload.Empty request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSaveIndexMethod(), responseObserver); - } - - /** - *
-     * Represent the creating and saving index RPC.
-     * 
- */ - default void createAndSaveIndex(org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAndSaveIndexMethod(), responseObserver); - } - - /** - *
-     * Represent the RPC to get the agent index information.
-     * 
- */ - default void indexInfo(org.vdaas.vald.api.v1.payload.Empty request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getIndexInfoMethod(), responseObserver); - } - - /** - *
-     * Represent the RPC to get the vector metadata. This RPC is mainly used for index correction process
-     * 
- */ - default void getTimestamp(org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTimestampMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Agent. - *
-   * Represent the agent service.
-   * 
- */ - public static abstract class AgentImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return AgentGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Agent. - *
-   * Represent the agent service.
-   * 
- */ - public static final class AgentStub - extends io.grpc.stub.AbstractAsyncStub { - private AgentStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AgentStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AgentStub(channel, callOptions); - } - - /** - *
-     * Represent the creating index RPC.
-     * 
- */ - public void createIndex(org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateIndexMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Represent the saving index RPC.
-     * 
- */ - public void saveIndex(org.vdaas.vald.api.v1.payload.Empty request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSaveIndexMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Represent the creating and saving index RPC.
-     * 
- */ - public void createAndSaveIndex(org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAndSaveIndexMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Represent the RPC to get the agent index information.
-     * 
- */ - public void indexInfo(org.vdaas.vald.api.v1.payload.Empty request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getIndexInfoMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Represent the RPC to get the vector metadata. This RPC is mainly used for index correction process
-     * 
- */ - public void getTimestamp(org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTimestampMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Agent. - *
-   * Represent the agent service.
-   * 
- */ - public static final class AgentBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AgentBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AgentBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AgentBlockingStub(channel, callOptions); - } - - /** - *
-     * Represent the creating index RPC.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Empty createIndex(org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateIndexMethod(), getCallOptions(), request); - } - - /** - *
-     * Represent the saving index RPC.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Empty saveIndex(org.vdaas.vald.api.v1.payload.Empty request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSaveIndexMethod(), getCallOptions(), request); - } - - /** - *
-     * Represent the creating and saving index RPC.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Empty createAndSaveIndex(org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAndSaveIndexMethod(), getCallOptions(), request); - } - - /** - *
-     * Represent the RPC to get the agent index information.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Info.Index.Count indexInfo(org.vdaas.vald.api.v1.payload.Empty request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getIndexInfoMethod(), getCallOptions(), request); - } - - /** - *
-     * Represent the RPC to get the vector metadata. This RPC is mainly used for index correction process
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Timestamp getTimestamp(org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTimestampMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Agent. - *
-   * Represent the agent service.
-   * 
- */ - public static final class AgentFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AgentFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AgentFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AgentFutureStub(channel, callOptions); - } - - /** - *
-     * Represent the creating index RPC.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createIndex( - org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateIndexMethod(), getCallOptions()), request); - } - - /** - *
-     * Represent the saving index RPC.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture saveIndex( - org.vdaas.vald.api.v1.payload.Empty request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSaveIndexMethod(), getCallOptions()), request); - } - - /** - *
-     * Represent the creating and saving index RPC.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createAndSaveIndex( - org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAndSaveIndexMethod(), getCallOptions()), request); - } - - /** - *
-     * Represent the RPC to get the agent index information.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture indexInfo( - org.vdaas.vald.api.v1.payload.Empty request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getIndexInfoMethod(), getCallOptions()), request); - } - - /** - *
-     * Represent the RPC to get the vector metadata. This RPC is mainly used for index correction process
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getTimestamp( - org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTimestampMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_INDEX = 0; - private static final int METHODID_SAVE_INDEX = 1; - private static final int METHODID_CREATE_AND_SAVE_INDEX = 2; - private static final int METHODID_INDEX_INFO = 3; - private static final int METHODID_GET_TIMESTAMP = 4; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_INDEX: - serviceImpl.createIndex((org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SAVE_INDEX: - serviceImpl.saveIndex((org.vdaas.vald.api.v1.payload.Empty) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_AND_SAVE_INDEX: - serviceImpl.createAndSaveIndex((org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_INDEX_INFO: - serviceImpl.indexInfo((org.vdaas.vald.api.v1.payload.Empty) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_TIMESTAMP: - serviceImpl.getTimestamp((org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateIndexMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest, - org.vdaas.vald.api.v1.payload.Empty>( - service, METHODID_CREATE_INDEX))) - .addMethod( - getSaveIndexMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Empty, - org.vdaas.vald.api.v1.payload.Empty>( - service, METHODID_SAVE_INDEX))) - .addMethod( - getCreateAndSaveIndexMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest, - org.vdaas.vald.api.v1.payload.Empty>( - service, METHODID_CREATE_AND_SAVE_INDEX))) - .addMethod( - getIndexInfoMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Empty, - org.vdaas.vald.api.v1.payload.Info.Index.Count>( - service, METHODID_INDEX_INFO))) - .addMethod( - getGetTimestampMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest, - org.vdaas.vald.api.v1.payload.Object.Timestamp>( - service, METHODID_GET_TIMESTAMP))) - .build(); - } - - private static abstract class AgentBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AgentBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return org.vdaas.vald.api.v1.agent.core.ValdAgent.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Agent"); - } - } - - private static final class AgentFileDescriptorSupplier - extends AgentBaseDescriptorSupplier { - AgentFileDescriptorSupplier() {} - } - - private static final class AgentMethodDescriptorSupplier - extends AgentBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - AgentMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AgentGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AgentFileDescriptorSupplier()) - .addMethod(getCreateIndexMethod()) - .addMethod(getSaveIndexMethod()) - .addMethod(getCreateAndSaveIndexMethod()) - .addMethod(getIndexInfoMethod()) - .addMethod(getGetTimestampMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/main/java/org/vdaas/vald/api/v1/agent/core/ValdAgent.java b/src/main/java/org/vdaas/vald/api/v1/agent/core/ValdAgent.java deleted file mode 100644 index c8c20a7b..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/agent/core/ValdAgent.java +++ /dev/null @@ -1,62 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/agent/core/agent.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.agent.core; - -public final class ValdAgent { - private ValdAgent() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031v1/agent/core/agent.proto\022\007core.v1\032\034go" + - "ogle/api/annotations.proto\032\030v1/payload/p" + - "ayload.proto2\336\003\n\005Agent\022_\n\013CreateIndex\022&." + - "payload.v1.Control.CreateIndexRequest\032\021." + - "payload.v1.Empty\"\025\202\323\344\223\002\017\022\r/index/create\022" + - "F\n\tSaveIndex\022\021.payload.v1.Empty\032\021.payloa" + - "d.v1.Empty\"\023\202\323\344\223\002\r\022\013/index/save\022m\n\022Creat" + - "eAndSaveIndex\022&.payload.v1.Control.Creat" + - "eIndexRequest\032\021.payload.v1.Empty\"\034\202\323\344\223\002\026" + - "\022\024/index/createandsave\022Q\n\tIndexInfo\022\021.pa" + - "yload.v1.Empty\032\034.payload.v1.Info.Index.C" + - "ount\"\023\202\323\344\223\002\r\022\013/index/info\022j\n\014GetTimestam" + - "p\022&.payload.v1.Object.GetTimestampReques" + - "t\032\034.payload.v1.Object.Timestamp\"\024\202\323\344\223\002\016\022" + - "\014/object/metaBc\n org.vdaas.vald.api.v1.a" + - "gent.coreB\tValdAgentP\001Z2github.com/vdaas" + - "/vald/apis/grpc/v1/agent/core;coreb\006prot" + - "o3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/org/vdaas/vald/api/v1/filter/egress/FilterGrpc.java b/src/main/java/org/vdaas/vald/api/v1/filter/egress/FilterGrpc.java deleted file mode 100644 index 71cb2db5..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/filter/egress/FilterGrpc.java +++ /dev/null @@ -1,409 +0,0 @@ -package org.vdaas.vald.api.v1.filter.egress; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Represent the egress filter service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.64.0)", - comments = "Source: v1/filter/egress/egress_filter.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class FilterGrpc { - - private FilterGrpc() {} - - public static final java.lang.String SERVICE_NAME = "filter.egress.v1.Filter"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getFilterDistanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FilterDistance", - requestType = org.vdaas.vald.api.v1.payload.Object.Distance.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Distance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFilterDistanceMethod() { - io.grpc.MethodDescriptor getFilterDistanceMethod; - if ((getFilterDistanceMethod = FilterGrpc.getFilterDistanceMethod) == null) { - synchronized (FilterGrpc.class) { - if ((getFilterDistanceMethod = FilterGrpc.getFilterDistanceMethod) == null) { - FilterGrpc.getFilterDistanceMethod = getFilterDistanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FilterDistance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Distance.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Distance.getDefaultInstance())) - .setSchemaDescriptor(new FilterMethodDescriptorSupplier("FilterDistance")) - .build(); - } - } - } - return getFilterDistanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getFilterVectorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FilterVector", - requestType = org.vdaas.vald.api.v1.payload.Object.Vector.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Vector.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFilterVectorMethod() { - io.grpc.MethodDescriptor getFilterVectorMethod; - if ((getFilterVectorMethod = FilterGrpc.getFilterVectorMethod) == null) { - synchronized (FilterGrpc.class) { - if ((getFilterVectorMethod = FilterGrpc.getFilterVectorMethod) == null) { - FilterGrpc.getFilterVectorMethod = getFilterVectorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FilterVector")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance())) - .setSchemaDescriptor(new FilterMethodDescriptorSupplier("FilterVector")) - .build(); - } - } - } - return getFilterVectorMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static FilterStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FilterStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FilterStub(channel, callOptions); - } - }; - return FilterStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static FilterBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FilterBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FilterBlockingStub(channel, callOptions); - } - }; - return FilterBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static FilterFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FilterFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FilterFutureStub(channel, callOptions); - } - }; - return FilterFutureStub.newStub(factory, channel); - } - - /** - *
-   * Represent the egress filter service.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Represent the RPC to filter the distance.
-     * 
- */ - default void filterDistance(org.vdaas.vald.api.v1.payload.Object.Distance request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFilterDistanceMethod(), responseObserver); - } - - /** - *
-     * Represent the RPC to filter the vector.
-     * 
- */ - default void filterVector(org.vdaas.vald.api.v1.payload.Object.Vector request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFilterVectorMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Filter. - *
-   * Represent the egress filter service.
-   * 
- */ - public static abstract class FilterImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return FilterGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Filter. - *
-   * Represent the egress filter service.
-   * 
- */ - public static final class FilterStub - extends io.grpc.stub.AbstractAsyncStub { - private FilterStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FilterStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FilterStub(channel, callOptions); - } - - /** - *
-     * Represent the RPC to filter the distance.
-     * 
- */ - public void filterDistance(org.vdaas.vald.api.v1.payload.Object.Distance request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFilterDistanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Represent the RPC to filter the vector.
-     * 
- */ - public void filterVector(org.vdaas.vald.api.v1.payload.Object.Vector request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFilterVectorMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Filter. - *
-   * Represent the egress filter service.
-   * 
- */ - public static final class FilterBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private FilterBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FilterBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FilterBlockingStub(channel, callOptions); - } - - /** - *
-     * Represent the RPC to filter the distance.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Distance filterDistance(org.vdaas.vald.api.v1.payload.Object.Distance request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFilterDistanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Represent the RPC to filter the vector.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Vector filterVector(org.vdaas.vald.api.v1.payload.Object.Vector request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFilterVectorMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Filter. - *
-   * Represent the egress filter service.
-   * 
- */ - public static final class FilterFutureStub - extends io.grpc.stub.AbstractFutureStub { - private FilterFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FilterFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FilterFutureStub(channel, callOptions); - } - - /** - *
-     * Represent the RPC to filter the distance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture filterDistance( - org.vdaas.vald.api.v1.payload.Object.Distance request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFilterDistanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Represent the RPC to filter the vector.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture filterVector( - org.vdaas.vald.api.v1.payload.Object.Vector request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFilterVectorMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_FILTER_DISTANCE = 0; - private static final int METHODID_FILTER_VECTOR = 1; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_FILTER_DISTANCE: - serviceImpl.filterDistance((org.vdaas.vald.api.v1.payload.Object.Distance) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FILTER_VECTOR: - serviceImpl.filterVector((org.vdaas.vald.api.v1.payload.Object.Vector) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getFilterDistanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Object.Distance, - org.vdaas.vald.api.v1.payload.Object.Distance>( - service, METHODID_FILTER_DISTANCE))) - .addMethod( - getFilterVectorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Object.Vector, - org.vdaas.vald.api.v1.payload.Object.Vector>( - service, METHODID_FILTER_VECTOR))) - .build(); - } - - private static abstract class FilterBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - FilterBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return org.vdaas.vald.api.v1.filter.egress.ValdEgressFilter.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Filter"); - } - } - - private static final class FilterFileDescriptorSupplier - extends FilterBaseDescriptorSupplier { - FilterFileDescriptorSupplier() {} - } - - private static final class FilterMethodDescriptorSupplier - extends FilterBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - FilterMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (FilterGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new FilterFileDescriptorSupplier()) - .addMethod(getFilterDistanceMethod()) - .addMethod(getFilterVectorMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/main/java/org/vdaas/vald/api/v1/filter/egress/ValdEgressFilter.java b/src/main/java/org/vdaas/vald/api/v1/filter/egress/ValdEgressFilter.java deleted file mode 100644 index a1051354..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/filter/egress/ValdEgressFilter.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/filter/egress/egress_filter.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.filter.egress; - -public final class ValdEgressFilter { - private ValdEgressFilter() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n$v1/filter/egress/egress_filter.proto\022\020" + - "filter.egress.v1\032\034google/api/annotations" + - ".proto\032\030v1/payload/payload.proto2\340\001\n\006Fil" + - "ter\022n\n\016FilterDistance\022\033.payload.v1.Objec" + - "t.Distance\032\033.payload.v1.Object.Distance\"" + - "\"\202\323\344\223\002\034\"\027/filter/egress/distance:\001*\022f\n\014F" + - "ilterVector\022\031.payload.v1.Object.Vector\032\031" + - ".payload.v1.Object.Vector\" \202\323\344\223\002\032\"\025/filt" + - "er/egress/vector:\001*Bk\n#org.vdaas.vald.ap" + - "i.v1.filter.egressB\020ValdEgressFilterP\001Z0" + - "github.com/vdaas/vald/apis/grpc/v1/filte" + - "r/egressb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/org/vdaas/vald/api/v1/filter/ingress/FilterGrpc.java b/src/main/java/org/vdaas/vald/api/v1/filter/ingress/FilterGrpc.java deleted file mode 100644 index e0ae23fd..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/filter/ingress/FilterGrpc.java +++ /dev/null @@ -1,409 +0,0 @@ -package org.vdaas.vald.api.v1.filter.ingress; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Represent the ingress filter service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.64.0)", - comments = "Source: v1/filter/ingress/ingress_filter.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class FilterGrpc { - - private FilterGrpc() {} - - public static final java.lang.String SERVICE_NAME = "filter.ingress.v1.Filter"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGenVectorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenVector", - requestType = org.vdaas.vald.api.v1.payload.Object.Blob.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Vector.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenVectorMethod() { - io.grpc.MethodDescriptor getGenVectorMethod; - if ((getGenVectorMethod = FilterGrpc.getGenVectorMethod) == null) { - synchronized (FilterGrpc.class) { - if ((getGenVectorMethod = FilterGrpc.getGenVectorMethod) == null) { - FilterGrpc.getGenVectorMethod = getGenVectorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenVector")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance())) - .setSchemaDescriptor(new FilterMethodDescriptorSupplier("GenVector")) - .build(); - } - } - } - return getGenVectorMethod; - } - - private static volatile io.grpc.MethodDescriptor getFilterVectorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FilterVector", - requestType = org.vdaas.vald.api.v1.payload.Object.Vector.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Vector.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFilterVectorMethod() { - io.grpc.MethodDescriptor getFilterVectorMethod; - if ((getFilterVectorMethod = FilterGrpc.getFilterVectorMethod) == null) { - synchronized (FilterGrpc.class) { - if ((getFilterVectorMethod = FilterGrpc.getFilterVectorMethod) == null) { - FilterGrpc.getFilterVectorMethod = getFilterVectorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FilterVector")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance())) - .setSchemaDescriptor(new FilterMethodDescriptorSupplier("FilterVector")) - .build(); - } - } - } - return getFilterVectorMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static FilterStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FilterStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FilterStub(channel, callOptions); - } - }; - return FilterStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static FilterBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FilterBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FilterBlockingStub(channel, callOptions); - } - }; - return FilterBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static FilterFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FilterFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FilterFutureStub(channel, callOptions); - } - }; - return FilterFutureStub.newStub(factory, channel); - } - - /** - *
-   * Represent the ingress filter service.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Represent the RPC to generate the vector.
-     * 
- */ - default void genVector(org.vdaas.vald.api.v1.payload.Object.Blob request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenVectorMethod(), responseObserver); - } - - /** - *
-     * Represent the RPC to filter the vector.
-     * 
- */ - default void filterVector(org.vdaas.vald.api.v1.payload.Object.Vector request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFilterVectorMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Filter. - *
-   * Represent the ingress filter service.
-   * 
- */ - public static abstract class FilterImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return FilterGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Filter. - *
-   * Represent the ingress filter service.
-   * 
- */ - public static final class FilterStub - extends io.grpc.stub.AbstractAsyncStub { - private FilterStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FilterStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FilterStub(channel, callOptions); - } - - /** - *
-     * Represent the RPC to generate the vector.
-     * 
- */ - public void genVector(org.vdaas.vald.api.v1.payload.Object.Blob request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenVectorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Represent the RPC to filter the vector.
-     * 
- */ - public void filterVector(org.vdaas.vald.api.v1.payload.Object.Vector request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFilterVectorMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Filter. - *
-   * Represent the ingress filter service.
-   * 
- */ - public static final class FilterBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private FilterBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FilterBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FilterBlockingStub(channel, callOptions); - } - - /** - *
-     * Represent the RPC to generate the vector.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Vector genVector(org.vdaas.vald.api.v1.payload.Object.Blob request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenVectorMethod(), getCallOptions(), request); - } - - /** - *
-     * Represent the RPC to filter the vector.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Vector filterVector(org.vdaas.vald.api.v1.payload.Object.Vector request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFilterVectorMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Filter. - *
-   * Represent the ingress filter service.
-   * 
- */ - public static final class FilterFutureStub - extends io.grpc.stub.AbstractFutureStub { - private FilterFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FilterFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FilterFutureStub(channel, callOptions); - } - - /** - *
-     * Represent the RPC to generate the vector.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture genVector( - org.vdaas.vald.api.v1.payload.Object.Blob request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenVectorMethod(), getCallOptions()), request); - } - - /** - *
-     * Represent the RPC to filter the vector.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture filterVector( - org.vdaas.vald.api.v1.payload.Object.Vector request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFilterVectorMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GEN_VECTOR = 0; - private static final int METHODID_FILTER_VECTOR = 1; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GEN_VECTOR: - serviceImpl.genVector((org.vdaas.vald.api.v1.payload.Object.Blob) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FILTER_VECTOR: - serviceImpl.filterVector((org.vdaas.vald.api.v1.payload.Object.Vector) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGenVectorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Object.Blob, - org.vdaas.vald.api.v1.payload.Object.Vector>( - service, METHODID_GEN_VECTOR))) - .addMethod( - getFilterVectorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Object.Vector, - org.vdaas.vald.api.v1.payload.Object.Vector>( - service, METHODID_FILTER_VECTOR))) - .build(); - } - - private static abstract class FilterBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - FilterBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return org.vdaas.vald.api.v1.filter.ingress.ValdIngressFilter.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Filter"); - } - } - - private static final class FilterFileDescriptorSupplier - extends FilterBaseDescriptorSupplier { - FilterFileDescriptorSupplier() {} - } - - private static final class FilterMethodDescriptorSupplier - extends FilterBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - FilterMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (FilterGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new FilterFileDescriptorSupplier()) - .addMethod(getGenVectorMethod()) - .addMethod(getFilterVectorMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/main/java/org/vdaas/vald/api/v1/filter/ingress/ValdIngressFilter.java b/src/main/java/org/vdaas/vald/api/v1/filter/ingress/ValdIngressFilter.java deleted file mode 100644 index a9642e53..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/filter/ingress/ValdIngressFilter.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/filter/ingress/ingress_filter.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.filter.ingress; - -public final class ValdIngressFilter { - private ValdIngressFilter() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n&v1/filter/ingress/ingress_filter.proto" + - "\022\021filter.ingress.v1\032\034google/api/annotati" + - "ons.proto\032\030v1/payload/payload.proto2\325\001\n\006" + - "Filter\022b\n\tGenVector\022\027.payload.v1.Object." + - "Blob\032\031.payload.v1.Object.Vector\"!\202\323\344\223\002\033\"" + - "\026/filter/ingress/object:\001*\022g\n\014FilterVect" + - "or\022\031.payload.v1.Object.Vector\032\031.payload." + - "v1.Object.Vector\"!\202\323\344\223\002\033\"\026/filter/ingres" + - "s/vector:\001*Bn\n$org.vdaas.vald.api.v1.fil" + - "ter.ingressB\021ValdIngressFilterP\001Z1github" + - ".com/vdaas/vald/apis/grpc/v1/filter/ingr" + - "essb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/org/vdaas/vald/api/v1/mirror/MirrorGrpc.java b/src/main/java/org/vdaas/vald/api/v1/mirror/MirrorGrpc.java deleted file mode 100644 index 12302fbf..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/mirror/MirrorGrpc.java +++ /dev/null @@ -1,323 +0,0 @@ -package org.vdaas.vald.api.v1.mirror; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Represent the mirror service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.64.0)", - comments = "Source: v1/mirror/mirror.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class MirrorGrpc { - - private MirrorGrpc() {} - - public static final java.lang.String SERVICE_NAME = "mirror.v1.Mirror"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getRegisterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Register", - requestType = org.vdaas.vald.api.v1.payload.Mirror.Targets.class, - responseType = org.vdaas.vald.api.v1.payload.Mirror.Targets.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRegisterMethod() { - io.grpc.MethodDescriptor getRegisterMethod; - if ((getRegisterMethod = MirrorGrpc.getRegisterMethod) == null) { - synchronized (MirrorGrpc.class) { - if ((getRegisterMethod = MirrorGrpc.getRegisterMethod) == null) { - MirrorGrpc.getRegisterMethod = getRegisterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Register")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Mirror.Targets.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Mirror.Targets.getDefaultInstance())) - .setSchemaDescriptor(new MirrorMethodDescriptorSupplier("Register")) - .build(); - } - } - } - return getRegisterMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MirrorStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MirrorStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MirrorStub(channel, callOptions); - } - }; - return MirrorStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MirrorBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MirrorBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MirrorBlockingStub(channel, callOptions); - } - }; - return MirrorBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MirrorFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MirrorFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MirrorFutureStub(channel, callOptions); - } - }; - return MirrorFutureStub.newStub(factory, channel); - } - - /** - *
-   * Represent the mirror service.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Register is the RPC to register other mirror servers.
-     * 
- */ - default void register(org.vdaas.vald.api.v1.payload.Mirror.Targets request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRegisterMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Mirror. - *
-   * Represent the mirror service.
-   * 
- */ - public static abstract class MirrorImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return MirrorGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Mirror. - *
-   * Represent the mirror service.
-   * 
- */ - public static final class MirrorStub - extends io.grpc.stub.AbstractAsyncStub { - private MirrorStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MirrorStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MirrorStub(channel, callOptions); - } - - /** - *
-     * Register is the RPC to register other mirror servers.
-     * 
- */ - public void register(org.vdaas.vald.api.v1.payload.Mirror.Targets request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRegisterMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Mirror. - *
-   * Represent the mirror service.
-   * 
- */ - public static final class MirrorBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private MirrorBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MirrorBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MirrorBlockingStub(channel, callOptions); - } - - /** - *
-     * Register is the RPC to register other mirror servers.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Mirror.Targets register(org.vdaas.vald.api.v1.payload.Mirror.Targets request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRegisterMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Mirror. - *
-   * Represent the mirror service.
-   * 
- */ - public static final class MirrorFutureStub - extends io.grpc.stub.AbstractFutureStub { - private MirrorFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MirrorFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MirrorFutureStub(channel, callOptions); - } - - /** - *
-     * Register is the RPC to register other mirror servers.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture register( - org.vdaas.vald.api.v1.payload.Mirror.Targets request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRegisterMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_REGISTER = 0; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_REGISTER: - serviceImpl.register((org.vdaas.vald.api.v1.payload.Mirror.Targets) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getRegisterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Mirror.Targets, - org.vdaas.vald.api.v1.payload.Mirror.Targets>( - service, METHODID_REGISTER))) - .build(); - } - - private static abstract class MirrorBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MirrorBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return org.vdaas.vald.api.v1.mirror.ValdMirror.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Mirror"); - } - } - - private static final class MirrorFileDescriptorSupplier - extends MirrorBaseDescriptorSupplier { - MirrorFileDescriptorSupplier() {} - } - - private static final class MirrorMethodDescriptorSupplier - extends MirrorBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - MirrorMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MirrorGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MirrorFileDescriptorSupplier()) - .addMethod(getRegisterMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/main/java/org/vdaas/vald/api/v1/mirror/ValdMirror.java b/src/main/java/org/vdaas/vald/api/v1/mirror/ValdMirror.java deleted file mode 100644 index c8612d94..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/mirror/ValdMirror.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/mirror/mirror.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.mirror; - -public final class ValdMirror { - private ValdMirror() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026v1/mirror/mirror.proto\022\tmirror.v1\032\034goo" + - "gle/api/annotations.proto\032\030v1/payload/pa" + - "yload.proto2i\n\006Mirror\022_\n\010Register\022\032.payl" + - "oad.v1.Mirror.Targets\032\032.payload.v1.Mirro" + - "r.Targets\"\033\202\323\344\223\002\025\"\020/mirror/register:\001*BW" + - "\n\034org.vdaas.vald.api.v1.mirrorB\nValdMirr" + - "orP\001Z)github.com/vdaas/vald/apis/grpc/v1" + - "/mirrorb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Control.java b/src/main/java/org/vdaas/vald/api/v1/payload/Control.java deleted file mode 100644 index c9403f5c..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/Control.java +++ /dev/null @@ -1,911 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -/** - *
- * Control related messages.
- * 
- * - * Protobuf type {@code payload.v1.Control} - */ -public final class Control extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Control) - ControlOrBuilder { -private static final long serialVersionUID = 0L; - // Use Control.newBuilder() to construct. - private Control(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Control() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Control(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Control_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Control_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Control.class, org.vdaas.vald.api.v1.payload.Control.Builder.class); - } - - public interface CreateIndexRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Control.CreateIndexRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The pool size of the create index operation.
-     * 
- * - * uint32 pool_size = 1 [json_name = "poolSize", (.buf.validate.field) = { ... } - * @return The poolSize. - */ - int getPoolSize(); - } - /** - *
-   * Represent the create index request.
-   * 
- * - * Protobuf type {@code payload.v1.Control.CreateIndexRequest} - */ - public static final class CreateIndexRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Control.CreateIndexRequest) - CreateIndexRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateIndexRequest.newBuilder() to construct. - private CreateIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateIndexRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateIndexRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Control_CreateIndexRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Control_CreateIndexRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest.class, org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest.Builder.class); - } - - public static final int POOL_SIZE_FIELD_NUMBER = 1; - private int poolSize_ = 0; - /** - *
-     * The pool size of the create index operation.
-     * 
- * - * uint32 pool_size = 1 [json_name = "poolSize", (.buf.validate.field) = { ... } - * @return The poolSize. - */ - @java.lang.Override - public int getPoolSize() { - return poolSize_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (poolSize_ != 0) { - output.writeUInt32(1, poolSize_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (poolSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, poolSize_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest other = (org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest) obj; - - if (getPoolSize() - != other.getPoolSize()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + POOL_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPoolSize(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest 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 org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Control.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); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the create index request.
-     * 
- * - * Protobuf type {@code payload.v1.Control.CreateIndexRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Control.CreateIndexRequest) - org.vdaas.vald.api.v1.payload.Control.CreateIndexRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Control_CreateIndexRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Control_CreateIndexRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest.class, org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - poolSize_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Control_CreateIndexRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest build() { - org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest result = new org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.poolSize_ = poolSize_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest.getDefaultInstance()) return this; - if (other.getPoolSize() != 0) { - setPoolSize(other.getPoolSize()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - poolSize_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int poolSize_ ; - /** - *
-       * The pool size of the create index operation.
-       * 
- * - * uint32 pool_size = 1 [json_name = "poolSize", (.buf.validate.field) = { ... } - * @return The poolSize. - */ - @java.lang.Override - public int getPoolSize() { - return poolSize_; - } - /** - *
-       * The pool size of the create index operation.
-       * 
- * - * uint32 pool_size = 1 [json_name = "poolSize", (.buf.validate.field) = { ... } - * @param value The poolSize to set. - * @return This builder for chaining. - */ - public Builder setPoolSize(int value) { - - poolSize_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The pool size of the create index operation.
-       * 
- * - * uint32 pool_size = 1 [json_name = "poolSize", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearPoolSize() { - bitField0_ = (bitField0_ & ~0x00000001); - poolSize_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Control.CreateIndexRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Control.CreateIndexRequest) - private static final org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest getDefaultInstance() { - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Control.CreateIndexRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Control)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Control other = (org.vdaas.vald.api.v1.payload.Control) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Control parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Control parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Control parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Control parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Control parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Control parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Control parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Control 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 org.vdaas.vald.api.v1.payload.Control parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Control parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Control parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Control parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Control prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Control related messages.
-   * 
- * - * Protobuf type {@code payload.v1.Control} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Control) - org.vdaas.vald.api.v1.payload.ControlOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Control_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Control_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Control.class, org.vdaas.vald.api.v1.payload.Control.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Control.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Control_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Control getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Control.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Control build() { - org.vdaas.vald.api.v1.payload.Control result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Control buildPartial() { - org.vdaas.vald.api.v1.payload.Control result = new org.vdaas.vald.api.v1.payload.Control(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Control) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Control)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Control other) { - if (other == org.vdaas.vald.api.v1.payload.Control.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Control) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Control) - private static final org.vdaas.vald.api.v1.payload.Control DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Control(); - } - - public static org.vdaas.vald.api.v1.payload.Control getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Control parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Control getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/ControlOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/payload/ControlOrBuilder.java deleted file mode 100644 index 84f40e44..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/ControlOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -public interface ControlOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Control) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Discoverer.java b/src/main/java/org/vdaas/vald/api/v1/payload/Discoverer.java deleted file mode 100644 index c3ca6e85..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/Discoverer.java +++ /dev/null @@ -1,1371 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -/** - *
- * Discoverer related messages.
- * 
- * - * Protobuf type {@code payload.v1.Discoverer} - */ -public final class Discoverer extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Discoverer) - DiscovererOrBuilder { -private static final long serialVersionUID = 0L; - // Use Discoverer.newBuilder() to construct. - private Discoverer(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Discoverer() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Discoverer(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Discoverer_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Discoverer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Discoverer.class, org.vdaas.vald.api.v1.payload.Discoverer.Builder.class); - } - - public interface RequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Discoverer.Request) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The agent name to be discovered.
-     * 
- * - * string name = 1 [json_name = "name", (.buf.validate.field) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-     * The agent name to be discovered.
-     * 
- * - * string name = 1 [json_name = "name", (.buf.validate.field) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * The namespace to be discovered.
-     * 
- * - * string namespace = 2 [json_name = "namespace"]; - * @return The namespace. - */ - java.lang.String getNamespace(); - /** - *
-     * The namespace to be discovered.
-     * 
- * - * string namespace = 2 [json_name = "namespace"]; - * @return The bytes for namespace. - */ - com.google.protobuf.ByteString - getNamespaceBytes(); - - /** - *
-     * The node to be discovered.
-     * 
- * - * string node = 3 [json_name = "node"]; - * @return The node. - */ - java.lang.String getNode(); - /** - *
-     * The node to be discovered.
-     * 
- * - * string node = 3 [json_name = "node"]; - * @return The bytes for node. - */ - com.google.protobuf.ByteString - getNodeBytes(); - } - /** - *
-   * Represent the dicoverer request.
-   * 
- * - * Protobuf type {@code payload.v1.Discoverer.Request} - */ - public static final class Request extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Discoverer.Request) - RequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use Request.newBuilder() to construct. - private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Request() { - name_ = ""; - namespace_ = ""; - node_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Request(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Discoverer_Request_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Discoverer_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Discoverer.Request.class, org.vdaas.vald.api.v1.payload.Discoverer.Request.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-     * The agent name to be discovered.
-     * 
- * - * string name = 1 [json_name = "name", (.buf.validate.field) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * The agent name to be discovered.
-     * 
- * - * string name = 1 [json_name = "name", (.buf.validate.field) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAMESPACE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object namespace_ = ""; - /** - *
-     * The namespace to be discovered.
-     * 
- * - * string namespace = 2 [json_name = "namespace"]; - * @return The namespace. - */ - @java.lang.Override - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - namespace_ = s; - return s; - } - } - /** - *
-     * The namespace to be discovered.
-     * 
- * - * string namespace = 2 [json_name = "namespace"]; - * @return The bytes for namespace. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNamespaceBytes() { - java.lang.Object ref = namespace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - namespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object node_ = ""; - /** - *
-     * The node to be discovered.
-     * 
- * - * string node = 3 [json_name = "node"]; - * @return The node. - */ - @java.lang.Override - public java.lang.String getNode() { - java.lang.Object ref = node_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - node_ = s; - return s; - } - } - /** - *
-     * The node to be discovered.
-     * 
- * - * string node = 3 [json_name = "node"]; - * @return The bytes for node. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNodeBytes() { - java.lang.Object ref = node_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - node_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(node_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, node_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(node_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, node_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Discoverer.Request)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Discoverer.Request other = (org.vdaas.vald.api.v1.payload.Discoverer.Request) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getNamespace() - .equals(other.getNamespace())) return false; - if (!getNode() - .equals(other.getNode())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; - hash = (53 * hash) + getNamespace().hashCode(); - hash = (37 * hash) + NODE_FIELD_NUMBER; - hash = (53 * hash) + getNode().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Discoverer.Request parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Discoverer.Request parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Discoverer.Request parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Discoverer.Request parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Discoverer.Request parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Discoverer.Request parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Discoverer.Request parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Discoverer.Request 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 org.vdaas.vald.api.v1.payload.Discoverer.Request parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Discoverer.Request parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Discoverer.Request parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Discoverer.Request parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Discoverer.Request prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the dicoverer request.
-     * 
- * - * Protobuf type {@code payload.v1.Discoverer.Request} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Discoverer.Request) - org.vdaas.vald.api.v1.payload.Discoverer.RequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Discoverer_Request_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Discoverer_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Discoverer.Request.class, org.vdaas.vald.api.v1.payload.Discoverer.Request.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Discoverer.Request.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - namespace_ = ""; - node_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Discoverer_Request_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Discoverer.Request getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Discoverer.Request.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Discoverer.Request build() { - org.vdaas.vald.api.v1.payload.Discoverer.Request result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Discoverer.Request buildPartial() { - org.vdaas.vald.api.v1.payload.Discoverer.Request result = new org.vdaas.vald.api.v1.payload.Discoverer.Request(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Discoverer.Request result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.namespace_ = namespace_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.node_ = node_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Discoverer.Request) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Discoverer.Request)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Discoverer.Request other) { - if (other == org.vdaas.vald.api.v1.payload.Discoverer.Request.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getNamespace().isEmpty()) { - namespace_ = other.namespace_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getNode().isEmpty()) { - node_ = other.node_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - namespace_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - node_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-       * The agent name to be discovered.
-       * 
- * - * string name = 1 [json_name = "name", (.buf.validate.field) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The agent name to be discovered.
-       * 
- * - * string name = 1 [json_name = "name", (.buf.validate.field) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The agent name to be discovered.
-       * 
- * - * string name = 1 [json_name = "name", (.buf.validate.field) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The agent name to be discovered.
-       * 
- * - * string name = 1 [json_name = "name", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The agent name to be discovered.
-       * 
- * - * string name = 1 [json_name = "name", (.buf.validate.field) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object namespace_ = ""; - /** - *
-       * The namespace to be discovered.
-       * 
- * - * string namespace = 2 [json_name = "namespace"]; - * @return The namespace. - */ - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - namespace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The namespace to be discovered.
-       * 
- * - * string namespace = 2 [json_name = "namespace"]; - * @return The bytes for namespace. - */ - public com.google.protobuf.ByteString - getNamespaceBytes() { - java.lang.Object ref = namespace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - namespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The namespace to be discovered.
-       * 
- * - * string namespace = 2 [json_name = "namespace"]; - * @param value The namespace to set. - * @return This builder for chaining. - */ - public Builder setNamespace( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - namespace_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The namespace to be discovered.
-       * 
- * - * string namespace = 2 [json_name = "namespace"]; - * @return This builder for chaining. - */ - public Builder clearNamespace() { - namespace_ = getDefaultInstance().getNamespace(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * The namespace to be discovered.
-       * 
- * - * string namespace = 2 [json_name = "namespace"]; - * @param value The bytes for namespace to set. - * @return This builder for chaining. - */ - public Builder setNamespaceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - namespace_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object node_ = ""; - /** - *
-       * The node to be discovered.
-       * 
- * - * string node = 3 [json_name = "node"]; - * @return The node. - */ - public java.lang.String getNode() { - java.lang.Object ref = node_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - node_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The node to be discovered.
-       * 
- * - * string node = 3 [json_name = "node"]; - * @return The bytes for node. - */ - public com.google.protobuf.ByteString - getNodeBytes() { - java.lang.Object ref = node_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - node_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The node to be discovered.
-       * 
- * - * string node = 3 [json_name = "node"]; - * @param value The node to set. - * @return This builder for chaining. - */ - public Builder setNode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - node_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * The node to be discovered.
-       * 
- * - * string node = 3 [json_name = "node"]; - * @return This builder for chaining. - */ - public Builder clearNode() { - node_ = getDefaultInstance().getNode(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-       * The node to be discovered.
-       * 
- * - * string node = 3 [json_name = "node"]; - * @param value The bytes for node to set. - * @return This builder for chaining. - */ - public Builder setNodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - node_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Discoverer.Request) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Discoverer.Request) - private static final org.vdaas.vald.api.v1.payload.Discoverer.Request DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Discoverer.Request(); - } - - public static org.vdaas.vald.api.v1.payload.Discoverer.Request getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Request parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Discoverer.Request getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Discoverer)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Discoverer other = (org.vdaas.vald.api.v1.payload.Discoverer) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Discoverer parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Discoverer parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Discoverer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Discoverer parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Discoverer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Discoverer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Discoverer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Discoverer 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 org.vdaas.vald.api.v1.payload.Discoverer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Discoverer parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Discoverer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Discoverer parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Discoverer prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Discoverer related messages.
-   * 
- * - * Protobuf type {@code payload.v1.Discoverer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Discoverer) - org.vdaas.vald.api.v1.payload.DiscovererOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Discoverer_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Discoverer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Discoverer.class, org.vdaas.vald.api.v1.payload.Discoverer.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Discoverer.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Discoverer_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Discoverer getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Discoverer.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Discoverer build() { - org.vdaas.vald.api.v1.payload.Discoverer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Discoverer buildPartial() { - org.vdaas.vald.api.v1.payload.Discoverer result = new org.vdaas.vald.api.v1.payload.Discoverer(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Discoverer) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Discoverer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Discoverer other) { - if (other == org.vdaas.vald.api.v1.payload.Discoverer.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Discoverer) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Discoverer) - private static final org.vdaas.vald.api.v1.payload.Discoverer DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Discoverer(); - } - - public static org.vdaas.vald.api.v1.payload.Discoverer getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Discoverer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Discoverer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/DiscovererOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/payload/DiscovererOrBuilder.java deleted file mode 100644 index ff4c1e93..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/DiscovererOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -public interface DiscovererOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Discoverer) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Empty.java b/src/main/java/org/vdaas/vald/api/v1/payload/Empty.java deleted file mode 100644 index f360a9a6..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/Empty.java +++ /dev/null @@ -1,407 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -/** - *
- * Represent an empty message.
- * 
- * - * Protobuf type {@code payload.v1.Empty} - */ -public final class Empty extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Empty) - EmptyOrBuilder { -private static final long serialVersionUID = 0L; - // Use Empty.newBuilder() to construct. - private Empty(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Empty() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Empty(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Empty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Empty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Empty.class, org.vdaas.vald.api.v1.payload.Empty.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Empty)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Empty other = (org.vdaas.vald.api.v1.payload.Empty) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Empty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Empty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Empty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Empty parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Empty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Empty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Empty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Empty 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 org.vdaas.vald.api.v1.payload.Empty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Empty parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Empty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Empty parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Empty prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Represent an empty message.
-   * 
- * - * Protobuf type {@code payload.v1.Empty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Empty) - org.vdaas.vald.api.v1.payload.EmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Empty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Empty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Empty.class, org.vdaas.vald.api.v1.payload.Empty.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Empty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Empty_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Empty getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Empty.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Empty build() { - org.vdaas.vald.api.v1.payload.Empty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Empty buildPartial() { - org.vdaas.vald.api.v1.payload.Empty result = new org.vdaas.vald.api.v1.payload.Empty(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Empty) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Empty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Empty other) { - if (other == org.vdaas.vald.api.v1.payload.Empty.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Empty) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Empty) - private static final org.vdaas.vald.api.v1.payload.Empty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Empty(); - } - - public static org.vdaas.vald.api.v1.payload.Empty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Empty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Empty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/EmptyOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/payload/EmptyOrBuilder.java deleted file mode 100644 index 9c9fc7ac..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/EmptyOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -public interface EmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Empty) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Filter.java b/src/main/java/org/vdaas/vald/api/v1/payload/Filter.java deleted file mode 100644 index 30e89f10..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/Filter.java +++ /dev/null @@ -1,1997 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -/** - *
- * Filter related messages.
- * 
- * - * Protobuf type {@code payload.v1.Filter} - */ -public final class Filter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Filter) - FilterOrBuilder { -private static final long serialVersionUID = 0L; - // Use Filter.newBuilder() to construct. - private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Filter() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Filter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Filter.class, org.vdaas.vald.api.v1.payload.Filter.Builder.class); - } - - public interface TargetOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Filter.Target) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The target hostname.
-     * 
- * - * string host = 1 [json_name = "host"]; - * @return The host. - */ - java.lang.String getHost(); - /** - *
-     * The target hostname.
-     * 
- * - * string host = 1 [json_name = "host"]; - * @return The bytes for host. - */ - com.google.protobuf.ByteString - getHostBytes(); - - /** - *
-     * The target port.
-     * 
- * - * uint32 port = 2 [json_name = "port"]; - * @return The port. - */ - int getPort(); - } - /** - *
-   * Represent the target filter server.
-   * 
- * - * Protobuf type {@code payload.v1.Filter.Target} - */ - public static final class Target extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Filter.Target) - TargetOrBuilder { - private static final long serialVersionUID = 0L; - // Use Target.newBuilder() to construct. - private Target(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Target() { - host_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Target(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Filter_Target_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Filter_Target_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Filter.Target.class, org.vdaas.vald.api.v1.payload.Filter.Target.Builder.class); - } - - public static final int HOST_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object host_ = ""; - /** - *
-     * The target hostname.
-     * 
- * - * string host = 1 [json_name = "host"]; - * @return The host. - */ - @java.lang.Override - public java.lang.String getHost() { - java.lang.Object ref = host_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - host_ = s; - return s; - } - } - /** - *
-     * The target hostname.
-     * 
- * - * string host = 1 [json_name = "host"]; - * @return The bytes for host. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getHostBytes() { - java.lang.Object ref = host_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - host_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PORT_FIELD_NUMBER = 2; - private int port_ = 0; - /** - *
-     * The target port.
-     * 
- * - * uint32 port = 2 [json_name = "port"]; - * @return The port. - */ - @java.lang.Override - public int getPort() { - return port_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, host_); - } - if (port_ != 0) { - output.writeUInt32(2, port_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, host_); - } - if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, port_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Filter.Target)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Filter.Target other = (org.vdaas.vald.api.v1.payload.Filter.Target) obj; - - if (!getHost() - .equals(other.getHost())) return false; - if (getPort() - != other.getPort()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HOST_FIELD_NUMBER; - hash = (53 * hash) + getHost().hashCode(); - hash = (37 * hash) + PORT_FIELD_NUMBER; - hash = (53 * hash) + getPort(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Filter.Target parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Filter.Target parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Filter.Target parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Filter.Target parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Filter.Target parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Filter.Target parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Filter.Target parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Filter.Target 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 org.vdaas.vald.api.v1.payload.Filter.Target parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Filter.Target parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Filter.Target parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Filter.Target parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Filter.Target prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the target filter server.
-     * 
- * - * Protobuf type {@code payload.v1.Filter.Target} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Filter.Target) - org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Filter_Target_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Filter_Target_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Filter.Target.class, org.vdaas.vald.api.v1.payload.Filter.Target.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Filter.Target.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - host_ = ""; - port_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Filter_Target_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Target getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Target build() { - org.vdaas.vald.api.v1.payload.Filter.Target result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Target buildPartial() { - org.vdaas.vald.api.v1.payload.Filter.Target result = new org.vdaas.vald.api.v1.payload.Filter.Target(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Filter.Target result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.host_ = host_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.port_ = port_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Filter.Target) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Filter.Target)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Filter.Target other) { - if (other == org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance()) return this; - if (!other.getHost().isEmpty()) { - host_ = other.host_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPort() != 0) { - setPort(other.getPort()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - host_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - port_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object host_ = ""; - /** - *
-       * The target hostname.
-       * 
- * - * string host = 1 [json_name = "host"]; - * @return The host. - */ - public java.lang.String getHost() { - java.lang.Object ref = host_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - host_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The target hostname.
-       * 
- * - * string host = 1 [json_name = "host"]; - * @return The bytes for host. - */ - public com.google.protobuf.ByteString - getHostBytes() { - java.lang.Object ref = host_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - host_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The target hostname.
-       * 
- * - * string host = 1 [json_name = "host"]; - * @param value The host to set. - * @return This builder for chaining. - */ - public Builder setHost( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - host_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The target hostname.
-       * 
- * - * string host = 1 [json_name = "host"]; - * @return This builder for chaining. - */ - public Builder clearHost() { - host_ = getDefaultInstance().getHost(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The target hostname.
-       * 
- * - * string host = 1 [json_name = "host"]; - * @param value The bytes for host to set. - * @return This builder for chaining. - */ - public Builder setHostBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - host_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int port_ ; - /** - *
-       * The target port.
-       * 
- * - * uint32 port = 2 [json_name = "port"]; - * @return The port. - */ - @java.lang.Override - public int getPort() { - return port_; - } - /** - *
-       * The target port.
-       * 
- * - * uint32 port = 2 [json_name = "port"]; - * @param value The port to set. - * @return This builder for chaining. - */ - public Builder setPort(int value) { - - port_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The target port.
-       * 
- * - * uint32 port = 2 [json_name = "port"]; - * @return This builder for chaining. - */ - public Builder clearPort() { - bitField0_ = (bitField0_ & ~0x00000002); - port_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Filter.Target) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Filter.Target) - private static final org.vdaas.vald.api.v1.payload.Filter.Target DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Filter.Target(); - } - - public static org.vdaas.vald.api.v1.payload.Filter.Target getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Target parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Target getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Filter.Config) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represent the filter target configuration.
-     * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - java.util.List - getTargetsList(); - /** - *
-     * Represent the filter target configuration.
-     * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - org.vdaas.vald.api.v1.payload.Filter.Target getTargets(int index); - /** - *
-     * Represent the filter target configuration.
-     * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - int getTargetsCount(); - /** - *
-     * Represent the filter target configuration.
-     * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - java.util.List - getTargetsOrBuilderList(); - /** - *
-     * Represent the filter target configuration.
-     * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder getTargetsOrBuilder( - int index); - } - /** - *
-   * Represent filter configuration.
-   * 
- * - * Protobuf type {@code payload.v1.Filter.Config} - */ - public static final class Config extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Filter.Config) - ConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use Config.newBuilder() to construct. - private Config(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Config() { - targets_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Config(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Filter_Config_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Filter_Config_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Filter.Config.class, org.vdaas.vald.api.v1.payload.Filter.Config.Builder.class); - } - - public static final int TARGETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List targets_; - /** - *
-     * Represent the filter target configuration.
-     * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - @java.lang.Override - public java.util.List getTargetsList() { - return targets_; - } - /** - *
-     * Represent the filter target configuration.
-     * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - @java.lang.Override - public java.util.List - getTargetsOrBuilderList() { - return targets_; - } - /** - *
-     * Represent the filter target configuration.
-     * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - @java.lang.Override - public int getTargetsCount() { - return targets_.size(); - } - /** - *
-     * Represent the filter target configuration.
-     * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Target getTargets(int index) { - return targets_.get(index); - } - /** - *
-     * Represent the filter target configuration.
-     * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder getTargetsOrBuilder( - int index) { - return targets_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < targets_.size(); i++) { - output.writeMessage(1, targets_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < targets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, targets_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Filter.Config)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Filter.Config other = (org.vdaas.vald.api.v1.payload.Filter.Config) obj; - - if (!getTargetsList() - .equals(other.getTargetsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTargetsCount() > 0) { - hash = (37 * hash) + TARGETS_FIELD_NUMBER; - hash = (53 * hash) + getTargetsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Filter.Config parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Filter.Config parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Filter.Config parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Filter.Config parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Filter.Config parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Filter.Config parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Filter.Config parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Filter.Config 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 org.vdaas.vald.api.v1.payload.Filter.Config parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Filter.Config parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Filter.Config parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Filter.Config parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Filter.Config prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent filter configuration.
-     * 
- * - * Protobuf type {@code payload.v1.Filter.Config} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Filter.Config) - org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Filter_Config_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Filter_Config_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Filter.Config.class, org.vdaas.vald.api.v1.payload.Filter.Config.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Filter.Config.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (targetsBuilder_ == null) { - targets_ = java.util.Collections.emptyList(); - } else { - targets_ = null; - targetsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Filter_Config_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Config getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Config build() { - org.vdaas.vald.api.v1.payload.Filter.Config result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Config buildPartial() { - org.vdaas.vald.api.v1.payload.Filter.Config result = new org.vdaas.vald.api.v1.payload.Filter.Config(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Filter.Config result) { - if (targetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - targets_ = java.util.Collections.unmodifiableList(targets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.targets_ = targets_; - } else { - result.targets_ = targetsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Filter.Config result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Filter.Config) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Filter.Config)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Filter.Config other) { - if (other == org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance()) return this; - if (targetsBuilder_ == null) { - if (!other.targets_.isEmpty()) { - if (targets_.isEmpty()) { - targets_ = other.targets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTargetsIsMutable(); - targets_.addAll(other.targets_); - } - onChanged(); - } - } else { - if (!other.targets_.isEmpty()) { - if (targetsBuilder_.isEmpty()) { - targetsBuilder_.dispose(); - targetsBuilder_ = null; - targets_ = other.targets_; - bitField0_ = (bitField0_ & ~0x00000001); - targetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTargetsFieldBuilder() : null; - } else { - targetsBuilder_.addAllMessages(other.targets_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Filter.Target m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Filter.Target.parser(), - extensionRegistry); - if (targetsBuilder_ == null) { - ensureTargetsIsMutable(); - targets_.add(m); - } else { - targetsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List targets_ = - java.util.Collections.emptyList(); - private void ensureTargetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - targets_ = new java.util.ArrayList(targets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Target, org.vdaas.vald.api.v1.payload.Filter.Target.Builder, org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder> targetsBuilder_; - - /** - *
-       * Represent the filter target configuration.
-       * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - public java.util.List getTargetsList() { - if (targetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(targets_); - } else { - return targetsBuilder_.getMessageList(); - } - } - /** - *
-       * Represent the filter target configuration.
-       * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - public int getTargetsCount() { - if (targetsBuilder_ == null) { - return targets_.size(); - } else { - return targetsBuilder_.getCount(); - } - } - /** - *
-       * Represent the filter target configuration.
-       * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.Target getTargets(int index) { - if (targetsBuilder_ == null) { - return targets_.get(index); - } else { - return targetsBuilder_.getMessage(index); - } - } - /** - *
-       * Represent the filter target configuration.
-       * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - public Builder setTargets( - int index, org.vdaas.vald.api.v1.payload.Filter.Target value) { - if (targetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTargetsIsMutable(); - targets_.set(index, value); - onChanged(); - } else { - targetsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Represent the filter target configuration.
-       * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - public Builder setTargets( - int index, org.vdaas.vald.api.v1.payload.Filter.Target.Builder builderForValue) { - if (targetsBuilder_ == null) { - ensureTargetsIsMutable(); - targets_.set(index, builderForValue.build()); - onChanged(); - } else { - targetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the filter target configuration.
-       * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - public Builder addTargets(org.vdaas.vald.api.v1.payload.Filter.Target value) { - if (targetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTargetsIsMutable(); - targets_.add(value); - onChanged(); - } else { - targetsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Represent the filter target configuration.
-       * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - public Builder addTargets( - int index, org.vdaas.vald.api.v1.payload.Filter.Target value) { - if (targetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTargetsIsMutable(); - targets_.add(index, value); - onChanged(); - } else { - targetsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Represent the filter target configuration.
-       * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - public Builder addTargets( - org.vdaas.vald.api.v1.payload.Filter.Target.Builder builderForValue) { - if (targetsBuilder_ == null) { - ensureTargetsIsMutable(); - targets_.add(builderForValue.build()); - onChanged(); - } else { - targetsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the filter target configuration.
-       * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - public Builder addTargets( - int index, org.vdaas.vald.api.v1.payload.Filter.Target.Builder builderForValue) { - if (targetsBuilder_ == null) { - ensureTargetsIsMutable(); - targets_.add(index, builderForValue.build()); - onChanged(); - } else { - targetsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the filter target configuration.
-       * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - public Builder addAllTargets( - java.lang.Iterable values) { - if (targetsBuilder_ == null) { - ensureTargetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, targets_); - onChanged(); - } else { - targetsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Represent the filter target configuration.
-       * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - public Builder clearTargets() { - if (targetsBuilder_ == null) { - targets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - targetsBuilder_.clear(); - } - return this; - } - /** - *
-       * Represent the filter target configuration.
-       * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - public Builder removeTargets(int index) { - if (targetsBuilder_ == null) { - ensureTargetsIsMutable(); - targets_.remove(index); - onChanged(); - } else { - targetsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Represent the filter target configuration.
-       * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.Target.Builder getTargetsBuilder( - int index) { - return getTargetsFieldBuilder().getBuilder(index); - } - /** - *
-       * Represent the filter target configuration.
-       * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder getTargetsOrBuilder( - int index) { - if (targetsBuilder_ == null) { - return targets_.get(index); } else { - return targetsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Represent the filter target configuration.
-       * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - public java.util.List - getTargetsOrBuilderList() { - if (targetsBuilder_ != null) { - return targetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(targets_); - } - } - /** - *
-       * Represent the filter target configuration.
-       * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.Target.Builder addTargetsBuilder() { - return getTargetsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance()); - } - /** - *
-       * Represent the filter target configuration.
-       * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.Target.Builder addTargetsBuilder( - int index) { - return getTargetsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance()); - } - /** - *
-       * Represent the filter target configuration.
-       * 
- * - * repeated .payload.v1.Filter.Target targets = 1 [json_name = "targets"]; - */ - public java.util.List - getTargetsBuilderList() { - return getTargetsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Target, org.vdaas.vald.api.v1.payload.Filter.Target.Builder, org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder> - getTargetsFieldBuilder() { - if (targetsBuilder_ == null) { - targetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Target, org.vdaas.vald.api.v1.payload.Filter.Target.Builder, org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder>( - targets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - targets_ = null; - } - return targetsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Filter.Config) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Filter.Config) - private static final org.vdaas.vald.api.v1.payload.Filter.Config DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Filter.Config(); - } - - public static org.vdaas.vald.api.v1.payload.Filter.Config getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Config parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Config getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Filter)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Filter other = (org.vdaas.vald.api.v1.payload.Filter) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Filter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Filter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Filter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Filter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Filter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Filter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Filter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Filter 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 org.vdaas.vald.api.v1.payload.Filter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Filter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Filter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.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); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Filter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Filter related messages.
-   * 
- * - * Protobuf type {@code payload.v1.Filter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Filter) - org.vdaas.vald.api.v1.payload.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Filter.class, org.vdaas.vald.api.v1.payload.Filter.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Filter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Filter_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Filter.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter build() { - org.vdaas.vald.api.v1.payload.Filter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter buildPartial() { - org.vdaas.vald.api.v1.payload.Filter result = new org.vdaas.vald.api.v1.payload.Filter(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Filter) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Filter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Filter other) { - if (other == org.vdaas.vald.api.v1.payload.Filter.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Filter) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Filter) - private static final org.vdaas.vald.api.v1.payload.Filter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Filter(); - } - - public static org.vdaas.vald.api.v1.payload.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/FilterOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/payload/FilterOrBuilder.java deleted file mode 100644 index 43afff78..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/FilterOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -public interface FilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Filter) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Flush.java b/src/main/java/org/vdaas/vald/api/v1/payload/Flush.java deleted file mode 100644 index 4edad30f..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/Flush.java +++ /dev/null @@ -1,804 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -/** - *
- * Flush related messages.
- * 
- * - * Protobuf type {@code payload.v1.Flush} - */ -public final class Flush extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Flush) - FlushOrBuilder { -private static final long serialVersionUID = 0L; - // Use Flush.newBuilder() to construct. - private Flush(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Flush() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Flush(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Flush_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Flush_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Flush.class, org.vdaas.vald.api.v1.payload.Flush.Builder.class); - } - - public interface RequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Flush.Request) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code payload.v1.Flush.Request} - */ - public static final class Request extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Flush.Request) - RequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use Request.newBuilder() to construct. - private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Request() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Request(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Flush_Request_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Flush_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Flush.Request.class, org.vdaas.vald.api.v1.payload.Flush.Request.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Flush.Request)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Flush.Request other = (org.vdaas.vald.api.v1.payload.Flush.Request) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Flush.Request parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Flush.Request parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Flush.Request parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Flush.Request parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Flush.Request parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Flush.Request parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Flush.Request parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Flush.Request 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 org.vdaas.vald.api.v1.payload.Flush.Request parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Flush.Request parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Flush.Request parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Flush.Request parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Flush.Request prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code payload.v1.Flush.Request} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Flush.Request) - org.vdaas.vald.api.v1.payload.Flush.RequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Flush_Request_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Flush_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Flush.Request.class, org.vdaas.vald.api.v1.payload.Flush.Request.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Flush.Request.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Flush_Request_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Flush.Request getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Flush.Request.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Flush.Request build() { - org.vdaas.vald.api.v1.payload.Flush.Request result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Flush.Request buildPartial() { - org.vdaas.vald.api.v1.payload.Flush.Request result = new org.vdaas.vald.api.v1.payload.Flush.Request(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Flush.Request) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Flush.Request)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Flush.Request other) { - if (other == org.vdaas.vald.api.v1.payload.Flush.Request.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Flush.Request) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Flush.Request) - private static final org.vdaas.vald.api.v1.payload.Flush.Request DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Flush.Request(); - } - - public static org.vdaas.vald.api.v1.payload.Flush.Request getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Request parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Flush.Request getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Flush)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Flush other = (org.vdaas.vald.api.v1.payload.Flush) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Flush parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Flush parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Flush parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Flush parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Flush parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Flush parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Flush parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Flush 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 org.vdaas.vald.api.v1.payload.Flush parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Flush parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Flush parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Flush parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Flush prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Flush related messages.
-   * 
- * - * Protobuf type {@code payload.v1.Flush} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Flush) - org.vdaas.vald.api.v1.payload.FlushOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Flush_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Flush_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Flush.class, org.vdaas.vald.api.v1.payload.Flush.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Flush.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Flush_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Flush getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Flush.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Flush build() { - org.vdaas.vald.api.v1.payload.Flush result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Flush buildPartial() { - org.vdaas.vald.api.v1.payload.Flush result = new org.vdaas.vald.api.v1.payload.Flush(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Flush) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Flush)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Flush other) { - if (other == org.vdaas.vald.api.v1.payload.Flush.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Flush) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Flush) - private static final org.vdaas.vald.api.v1.payload.Flush DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Flush(); - } - - public static org.vdaas.vald.api.v1.payload.Flush getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Flush parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Flush getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/FlushOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/payload/FlushOrBuilder.java deleted file mode 100644 index 8426b131..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/FlushOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -public interface FlushOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Flush) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Info.java b/src/main/java/org/vdaas/vald/api/v1/payload/Info.java deleted file mode 100644 index e2a3d5d1..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/Info.java +++ /dev/null @@ -1,15746 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -/** - *
- * Info related messages.
- * 
- * - * Protobuf type {@code payload.v1.Info} - */ -public final class Info extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Info) - InfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use Info.newBuilder() to construct. - private Info(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Info() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Info(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.class, org.vdaas.vald.api.v1.payload.Info.Builder.class); - } - - public interface IndexOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Info.Index) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Represent the index information messages.
-   * 
- * - * Protobuf type {@code payload.v1.Info.Index} - */ - public static final class Index extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Info.Index) - IndexOrBuilder { - private static final long serialVersionUID = 0L; - // Use Index.newBuilder() to construct. - private Index(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Index() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Index(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Index.class, org.vdaas.vald.api.v1.payload.Info.Index.Builder.class); - } - - public interface CountOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Info.Index.Count) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * The stored index count.
-       * 
- * - * uint32 stored = 1 [json_name = "stored"]; - * @return The stored. - */ - int getStored(); - - /** - *
-       * The uncommitted index count.
-       * 
- * - * uint32 uncommitted = 2 [json_name = "uncommitted"]; - * @return The uncommitted. - */ - int getUncommitted(); - - /** - *
-       * The indexing index count.
-       * 
- * - * bool indexing = 3 [json_name = "indexing"]; - * @return The indexing. - */ - boolean getIndexing(); - - /** - *
-       * The saving index count.
-       * 
- * - * bool saving = 4 [json_name = "saving"]; - * @return The saving. - */ - boolean getSaving(); - } - /** - *
-     * Represent the index count message.
-     * 
- * - * Protobuf type {@code payload.v1.Info.Index.Count} - */ - public static final class Count extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Info.Index.Count) - CountOrBuilder { - private static final long serialVersionUID = 0L; - // Use Count.newBuilder() to construct. - private Count(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Count() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Count(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_Count_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_Count_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Index.Count.class, org.vdaas.vald.api.v1.payload.Info.Index.Count.Builder.class); - } - - public static final int STORED_FIELD_NUMBER = 1; - private int stored_ = 0; - /** - *
-       * The stored index count.
-       * 
- * - * uint32 stored = 1 [json_name = "stored"]; - * @return The stored. - */ - @java.lang.Override - public int getStored() { - return stored_; - } - - public static final int UNCOMMITTED_FIELD_NUMBER = 2; - private int uncommitted_ = 0; - /** - *
-       * The uncommitted index count.
-       * 
- * - * uint32 uncommitted = 2 [json_name = "uncommitted"]; - * @return The uncommitted. - */ - @java.lang.Override - public int getUncommitted() { - return uncommitted_; - } - - public static final int INDEXING_FIELD_NUMBER = 3; - private boolean indexing_ = false; - /** - *
-       * The indexing index count.
-       * 
- * - * bool indexing = 3 [json_name = "indexing"]; - * @return The indexing. - */ - @java.lang.Override - public boolean getIndexing() { - return indexing_; - } - - public static final int SAVING_FIELD_NUMBER = 4; - private boolean saving_ = false; - /** - *
-       * The saving index count.
-       * 
- * - * bool saving = 4 [json_name = "saving"]; - * @return The saving. - */ - @java.lang.Override - public boolean getSaving() { - return saving_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (stored_ != 0) { - output.writeUInt32(1, stored_); - } - if (uncommitted_ != 0) { - output.writeUInt32(2, uncommitted_); - } - if (indexing_ != false) { - output.writeBool(3, indexing_); - } - if (saving_ != false) { - output.writeBool(4, saving_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (stored_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, stored_); - } - if (uncommitted_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, uncommitted_); - } - if (indexing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, indexing_); - } - if (saving_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, saving_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Info.Index.Count)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Info.Index.Count other = (org.vdaas.vald.api.v1.payload.Info.Index.Count) obj; - - if (getStored() - != other.getStored()) return false; - if (getUncommitted() - != other.getUncommitted()) return false; - if (getIndexing() - != other.getIndexing()) return false; - if (getSaving() - != other.getSaving()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STORED_FIELD_NUMBER; - hash = (53 * hash) + getStored(); - hash = (37 * hash) + UNCOMMITTED_FIELD_NUMBER; - hash = (53 * hash) + getUncommitted(); - hash = (37 * hash) + INDEXING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIndexing()); - hash = (37 * hash) + SAVING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSaving()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Info.Index.Count parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.Count parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.Count parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.Count parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.Count parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.Count parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.Count parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.Count 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 org.vdaas.vald.api.v1.payload.Info.Index.Count parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Info.Index.Count parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.Count parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.Count parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Info.Index.Count prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-       * Represent the index count message.
-       * 
- * - * Protobuf type {@code payload.v1.Info.Index.Count} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Info.Index.Count) - org.vdaas.vald.api.v1.payload.Info.Index.CountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_Count_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_Count_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Index.Count.class, org.vdaas.vald.api.v1.payload.Info.Index.Count.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Info.Index.Count.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - stored_ = 0; - uncommitted_ = 0; - indexing_ = false; - saving_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_Count_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index.Count getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Info.Index.Count.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index.Count build() { - org.vdaas.vald.api.v1.payload.Info.Index.Count result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index.Count buildPartial() { - org.vdaas.vald.api.v1.payload.Info.Index.Count result = new org.vdaas.vald.api.v1.payload.Info.Index.Count(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Info.Index.Count result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.stored_ = stored_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.uncommitted_ = uncommitted_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.indexing_ = indexing_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.saving_ = saving_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Info.Index.Count) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Info.Index.Count)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Info.Index.Count other) { - if (other == org.vdaas.vald.api.v1.payload.Info.Index.Count.getDefaultInstance()) return this; - if (other.getStored() != 0) { - setStored(other.getStored()); - } - if (other.getUncommitted() != 0) { - setUncommitted(other.getUncommitted()); - } - if (other.getIndexing() != false) { - setIndexing(other.getIndexing()); - } - if (other.getSaving() != false) { - setSaving(other.getSaving()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - stored_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - uncommitted_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - indexing_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - saving_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int stored_ ; - /** - *
-         * The stored index count.
-         * 
- * - * uint32 stored = 1 [json_name = "stored"]; - * @return The stored. - */ - @java.lang.Override - public int getStored() { - return stored_; - } - /** - *
-         * The stored index count.
-         * 
- * - * uint32 stored = 1 [json_name = "stored"]; - * @param value The stored to set. - * @return This builder for chaining. - */ - public Builder setStored(int value) { - - stored_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-         * The stored index count.
-         * 
- * - * uint32 stored = 1 [json_name = "stored"]; - * @return This builder for chaining. - */ - public Builder clearStored() { - bitField0_ = (bitField0_ & ~0x00000001); - stored_ = 0; - onChanged(); - return this; - } - - private int uncommitted_ ; - /** - *
-         * The uncommitted index count.
-         * 
- * - * uint32 uncommitted = 2 [json_name = "uncommitted"]; - * @return The uncommitted. - */ - @java.lang.Override - public int getUncommitted() { - return uncommitted_; - } - /** - *
-         * The uncommitted index count.
-         * 
- * - * uint32 uncommitted = 2 [json_name = "uncommitted"]; - * @param value The uncommitted to set. - * @return This builder for chaining. - */ - public Builder setUncommitted(int value) { - - uncommitted_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-         * The uncommitted index count.
-         * 
- * - * uint32 uncommitted = 2 [json_name = "uncommitted"]; - * @return This builder for chaining. - */ - public Builder clearUncommitted() { - bitField0_ = (bitField0_ & ~0x00000002); - uncommitted_ = 0; - onChanged(); - return this; - } - - private boolean indexing_ ; - /** - *
-         * The indexing index count.
-         * 
- * - * bool indexing = 3 [json_name = "indexing"]; - * @return The indexing. - */ - @java.lang.Override - public boolean getIndexing() { - return indexing_; - } - /** - *
-         * The indexing index count.
-         * 
- * - * bool indexing = 3 [json_name = "indexing"]; - * @param value The indexing to set. - * @return This builder for chaining. - */ - public Builder setIndexing(boolean value) { - - indexing_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-         * The indexing index count.
-         * 
- * - * bool indexing = 3 [json_name = "indexing"]; - * @return This builder for chaining. - */ - public Builder clearIndexing() { - bitField0_ = (bitField0_ & ~0x00000004); - indexing_ = false; - onChanged(); - return this; - } - - private boolean saving_ ; - /** - *
-         * The saving index count.
-         * 
- * - * bool saving = 4 [json_name = "saving"]; - * @return The saving. - */ - @java.lang.Override - public boolean getSaving() { - return saving_; - } - /** - *
-         * The saving index count.
-         * 
- * - * bool saving = 4 [json_name = "saving"]; - * @param value The saving to set. - * @return This builder for chaining. - */ - public Builder setSaving(boolean value) { - - saving_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-         * The saving index count.
-         * 
- * - * bool saving = 4 [json_name = "saving"]; - * @return This builder for chaining. - */ - public Builder clearSaving() { - bitField0_ = (bitField0_ & ~0x00000008); - saving_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Info.Index.Count) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Info.Index.Count) - private static final org.vdaas.vald.api.v1.payload.Info.Index.Count DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Info.Index.Count(); - } - - public static org.vdaas.vald.api.v1.payload.Info.Index.Count getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Count parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index.Count getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UUIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Info.Index.UUID) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-     * Represent the UUID message.
-     * 
- * - * Protobuf type {@code payload.v1.Info.Index.UUID} - */ - public static final class UUID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Info.Index.UUID) - UUIDOrBuilder { - private static final long serialVersionUID = 0L; - // Use UUID.newBuilder() to construct. - private UUID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UUID() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UUID(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_UUID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_UUID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Index.UUID.class, org.vdaas.vald.api.v1.payload.Info.Index.UUID.Builder.class); - } - - public interface CommittedOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Info.Index.UUID.Committed) - com.google.protobuf.MessageOrBuilder { - - /** - * string uuid = 1 [json_name = "uuid"]; - * @return The uuid. - */ - java.lang.String getUuid(); - /** - * string uuid = 1 [json_name = "uuid"]; - * @return The bytes for uuid. - */ - com.google.protobuf.ByteString - getUuidBytes(); - } - /** - *
-       * The committed UUID.
-       * 
- * - * Protobuf type {@code payload.v1.Info.Index.UUID.Committed} - */ - public static final class Committed extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Info.Index.UUID.Committed) - CommittedOrBuilder { - private static final long serialVersionUID = 0L; - // Use Committed.newBuilder() to construct. - private Committed(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Committed() { - uuid_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Committed(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_UUID_Committed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_UUID_Committed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed.class, org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed.Builder.class); - } - - public static final int UUID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object uuid_ = ""; - /** - * string uuid = 1 [json_name = "uuid"]; - * @return The uuid. - */ - @java.lang.Override - public java.lang.String getUuid() { - java.lang.Object ref = uuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uuid_ = s; - return s; - } - } - /** - * string uuid = 1 [json_name = "uuid"]; - * @return The bytes for uuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUuidBytes() { - java.lang.Object ref = uuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uuid_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed other = (org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed) obj; - - if (!getUuid() - .equals(other.getUuid())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + UUID_FIELD_NUMBER; - hash = (53 * hash) + getUuid().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed 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 org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-         * The committed UUID.
-         * 
- * - * Protobuf type {@code payload.v1.Info.Index.UUID.Committed} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Info.Index.UUID.Committed) - org.vdaas.vald.api.v1.payload.Info.Index.UUID.CommittedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_UUID_Committed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_UUID_Committed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed.class, org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - uuid_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_UUID_Committed_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed build() { - org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed buildPartial() { - org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed result = new org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.uuid_ = uuid_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed other) { - if (other == org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed.getDefaultInstance()) return this; - if (!other.getUuid().isEmpty()) { - uuid_ = other.uuid_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - uuid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object uuid_ = ""; - /** - * string uuid = 1 [json_name = "uuid"]; - * @return The uuid. - */ - public java.lang.String getUuid() { - java.lang.Object ref = uuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string uuid = 1 [json_name = "uuid"]; - * @return The bytes for uuid. - */ - public com.google.protobuf.ByteString - getUuidBytes() { - java.lang.Object ref = uuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string uuid = 1 [json_name = "uuid"]; - * @param value The uuid to set. - * @return This builder for chaining. - */ - public Builder setUuid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - uuid_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string uuid = 1 [json_name = "uuid"]; - * @return This builder for chaining. - */ - public Builder clearUuid() { - uuid_ = getDefaultInstance().getUuid(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string uuid = 1 [json_name = "uuid"]; - * @param value The bytes for uuid to set. - * @return This builder for chaining. - */ - public Builder setUuidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - uuid_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Info.Index.UUID.Committed) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Info.Index.UUID.Committed) - private static final org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed(); - } - - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Committed parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index.UUID.Committed getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UncommittedOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Info.Index.UUID.Uncommitted) - com.google.protobuf.MessageOrBuilder { - - /** - * string uuid = 1 [json_name = "uuid"]; - * @return The uuid. - */ - java.lang.String getUuid(); - /** - * string uuid = 1 [json_name = "uuid"]; - * @return The bytes for uuid. - */ - com.google.protobuf.ByteString - getUuidBytes(); - } - /** - *
-       * The uncommitted UUID.
-       * 
- * - * Protobuf type {@code payload.v1.Info.Index.UUID.Uncommitted} - */ - public static final class Uncommitted extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Info.Index.UUID.Uncommitted) - UncommittedOrBuilder { - private static final long serialVersionUID = 0L; - // Use Uncommitted.newBuilder() to construct. - private Uncommitted(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Uncommitted() { - uuid_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Uncommitted(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_UUID_Uncommitted_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_UUID_Uncommitted_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted.class, org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted.Builder.class); - } - - public static final int UUID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object uuid_ = ""; - /** - * string uuid = 1 [json_name = "uuid"]; - * @return The uuid. - */ - @java.lang.Override - public java.lang.String getUuid() { - java.lang.Object ref = uuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uuid_ = s; - return s; - } - } - /** - * string uuid = 1 [json_name = "uuid"]; - * @return The bytes for uuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUuidBytes() { - java.lang.Object ref = uuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uuid_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted other = (org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted) obj; - - if (!getUuid() - .equals(other.getUuid())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + UUID_FIELD_NUMBER; - hash = (53 * hash) + getUuid().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted 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 org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-         * The uncommitted UUID.
-         * 
- * - * Protobuf type {@code payload.v1.Info.Index.UUID.Uncommitted} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Info.Index.UUID.Uncommitted) - org.vdaas.vald.api.v1.payload.Info.Index.UUID.UncommittedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_UUID_Uncommitted_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_UUID_Uncommitted_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted.class, org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - uuid_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_UUID_Uncommitted_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted build() { - org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted buildPartial() { - org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted result = new org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.uuid_ = uuid_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted other) { - if (other == org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted.getDefaultInstance()) return this; - if (!other.getUuid().isEmpty()) { - uuid_ = other.uuid_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - uuid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object uuid_ = ""; - /** - * string uuid = 1 [json_name = "uuid"]; - * @return The uuid. - */ - public java.lang.String getUuid() { - java.lang.Object ref = uuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string uuid = 1 [json_name = "uuid"]; - * @return The bytes for uuid. - */ - public com.google.protobuf.ByteString - getUuidBytes() { - java.lang.Object ref = uuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string uuid = 1 [json_name = "uuid"]; - * @param value The uuid to set. - * @return This builder for chaining. - */ - public Builder setUuid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - uuid_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string uuid = 1 [json_name = "uuid"]; - * @return This builder for chaining. - */ - public Builder clearUuid() { - uuid_ = getDefaultInstance().getUuid(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string uuid = 1 [json_name = "uuid"]; - * @param value The bytes for uuid to set. - * @return This builder for chaining. - */ - public Builder setUuidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - uuid_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Info.Index.UUID.Uncommitted) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Info.Index.UUID.Uncommitted) - private static final org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted(); - } - - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Uncommitted parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index.UUID.Uncommitted getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Info.Index.UUID)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Info.Index.UUID other = (org.vdaas.vald.api.v1.payload.Info.Index.UUID) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID 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 org.vdaas.vald.api.v1.payload.Info.Index.UUID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Info.Index.UUID prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-       * Represent the UUID message.
-       * 
- * - * Protobuf type {@code payload.v1.Info.Index.UUID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Info.Index.UUID) - org.vdaas.vald.api.v1.payload.Info.Index.UUIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_UUID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_UUID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Index.UUID.class, org.vdaas.vald.api.v1.payload.Info.Index.UUID.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Info.Index.UUID.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_UUID_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index.UUID getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Info.Index.UUID.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index.UUID build() { - org.vdaas.vald.api.v1.payload.Info.Index.UUID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index.UUID buildPartial() { - org.vdaas.vald.api.v1.payload.Info.Index.UUID result = new org.vdaas.vald.api.v1.payload.Info.Index.UUID(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Info.Index.UUID) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Info.Index.UUID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Info.Index.UUID other) { - if (other == org.vdaas.vald.api.v1.payload.Info.Index.UUID.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Info.Index.UUID) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Info.Index.UUID) - private static final org.vdaas.vald.api.v1.payload.Info.Index.UUID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Info.Index.UUID(); - } - - public static org.vdaas.vald.api.v1.payload.Info.Index.UUID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UUID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index.UUID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Info.Index)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Info.Index other = (org.vdaas.vald.api.v1.payload.Info.Index) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Info.Index parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Index parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Index parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Index parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Index 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 org.vdaas.vald.api.v1.payload.Info.Index parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Info.Index parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Index parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.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); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Info.Index prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the index information messages.
-     * 
- * - * Protobuf type {@code payload.v1.Info.Index} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Info.Index) - org.vdaas.vald.api.v1.payload.Info.IndexOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Index.class, org.vdaas.vald.api.v1.payload.Info.Index.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Info.Index.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Index_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Info.Index.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index build() { - org.vdaas.vald.api.v1.payload.Info.Index result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index buildPartial() { - org.vdaas.vald.api.v1.payload.Info.Index result = new org.vdaas.vald.api.v1.payload.Info.Index(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Info.Index) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Info.Index)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Info.Index other) { - if (other == org.vdaas.vald.api.v1.payload.Info.Index.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Info.Index) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Info.Index) - private static final org.vdaas.vald.api.v1.payload.Info.Index DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Info.Index(); - } - - public static org.vdaas.vald.api.v1.payload.Info.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Index getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PodOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Info.Pod) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The app name of the pod on the label.
-     * 
- * - * string app_name = 1 [json_name = "appName"]; - * @return The appName. - */ - java.lang.String getAppName(); - /** - *
-     * The app name of the pod on the label.
-     * 
- * - * string app_name = 1 [json_name = "appName"]; - * @return The bytes for appName. - */ - com.google.protobuf.ByteString - getAppNameBytes(); - - /** - *
-     * The name of the pod.
-     * 
- * - * string name = 2 [json_name = "name"]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-     * The name of the pod.
-     * 
- * - * string name = 2 [json_name = "name"]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * The namespace of the pod.
-     * 
- * - * string namespace = 3 [json_name = "namespace"]; - * @return The namespace. - */ - java.lang.String getNamespace(); - /** - *
-     * The namespace of the pod.
-     * 
- * - * string namespace = 3 [json_name = "namespace"]; - * @return The bytes for namespace. - */ - com.google.protobuf.ByteString - getNamespaceBytes(); - - /** - *
-     * The IP of the pod.
-     * 
- * - * string ip = 4 [json_name = "ip", (.buf.validate.field) = { ... } - * @return The ip. - */ - java.lang.String getIp(); - /** - *
-     * The IP of the pod.
-     * 
- * - * string ip = 4 [json_name = "ip", (.buf.validate.field) = { ... } - * @return The bytes for ip. - */ - com.google.protobuf.ByteString - getIpBytes(); - - /** - *
-     * The CPU information of the pod.
-     * 
- * - * .payload.v1.Info.CPU cpu = 5 [json_name = "cpu"]; - * @return Whether the cpu field is set. - */ - boolean hasCpu(); - /** - *
-     * The CPU information of the pod.
-     * 
- * - * .payload.v1.Info.CPU cpu = 5 [json_name = "cpu"]; - * @return The cpu. - */ - org.vdaas.vald.api.v1.payload.Info.CPU getCpu(); - /** - *
-     * The CPU information of the pod.
-     * 
- * - * .payload.v1.Info.CPU cpu = 5 [json_name = "cpu"]; - */ - org.vdaas.vald.api.v1.payload.Info.CPUOrBuilder getCpuOrBuilder(); - - /** - *
-     * The memory information of the pod.
-     * 
- * - * .payload.v1.Info.Memory memory = 6 [json_name = "memory"]; - * @return Whether the memory field is set. - */ - boolean hasMemory(); - /** - *
-     * The memory information of the pod.
-     * 
- * - * .payload.v1.Info.Memory memory = 6 [json_name = "memory"]; - * @return The memory. - */ - org.vdaas.vald.api.v1.payload.Info.Memory getMemory(); - /** - *
-     * The memory information of the pod.
-     * 
- * - * .payload.v1.Info.Memory memory = 6 [json_name = "memory"]; - */ - org.vdaas.vald.api.v1.payload.Info.MemoryOrBuilder getMemoryOrBuilder(); - - /** - *
-     * The node information of the pod.
-     * 
- * - * .payload.v1.Info.Node node = 7 [json_name = "node"]; - * @return Whether the node field is set. - */ - boolean hasNode(); - /** - *
-     * The node information of the pod.
-     * 
- * - * .payload.v1.Info.Node node = 7 [json_name = "node"]; - * @return The node. - */ - org.vdaas.vald.api.v1.payload.Info.Node getNode(); - /** - *
-     * The node information of the pod.
-     * 
- * - * .payload.v1.Info.Node node = 7 [json_name = "node"]; - */ - org.vdaas.vald.api.v1.payload.Info.NodeOrBuilder getNodeOrBuilder(); - } - /** - *
-   * Represent the pod information message.
-   * 
- * - * Protobuf type {@code payload.v1.Info.Pod} - */ - public static final class Pod extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Info.Pod) - PodOrBuilder { - private static final long serialVersionUID = 0L; - // Use Pod.newBuilder() to construct. - private Pod(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Pod() { - appName_ = ""; - name_ = ""; - namespace_ = ""; - ip_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Pod(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Pod_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Pod_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Pod.class, org.vdaas.vald.api.v1.payload.Info.Pod.Builder.class); - } - - private int bitField0_; - public static final int APP_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object appName_ = ""; - /** - *
-     * The app name of the pod on the label.
-     * 
- * - * string app_name = 1 [json_name = "appName"]; - * @return The appName. - */ - @java.lang.Override - public java.lang.String getAppName() { - java.lang.Object ref = appName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - appName_ = s; - return s; - } - } - /** - *
-     * The app name of the pod on the label.
-     * 
- * - * string app_name = 1 [json_name = "appName"]; - * @return The bytes for appName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAppNameBytes() { - java.lang.Object ref = appName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - appName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-     * The name of the pod.
-     * 
- * - * string name = 2 [json_name = "name"]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * The name of the pod.
-     * 
- * - * string name = 2 [json_name = "name"]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAMESPACE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object namespace_ = ""; - /** - *
-     * The namespace of the pod.
-     * 
- * - * string namespace = 3 [json_name = "namespace"]; - * @return The namespace. - */ - @java.lang.Override - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - namespace_ = s; - return s; - } - } - /** - *
-     * The namespace of the pod.
-     * 
- * - * string namespace = 3 [json_name = "namespace"]; - * @return The bytes for namespace. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNamespaceBytes() { - java.lang.Object ref = namespace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - namespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IP_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object ip_ = ""; - /** - *
-     * The IP of the pod.
-     * 
- * - * string ip = 4 [json_name = "ip", (.buf.validate.field) = { ... } - * @return The ip. - */ - @java.lang.Override - public java.lang.String getIp() { - java.lang.Object ref = ip_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ip_ = s; - return s; - } - } - /** - *
-     * The IP of the pod.
-     * 
- * - * string ip = 4 [json_name = "ip", (.buf.validate.field) = { ... } - * @return The bytes for ip. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIpBytes() { - java.lang.Object ref = ip_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ip_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CPU_FIELD_NUMBER = 5; - private org.vdaas.vald.api.v1.payload.Info.CPU cpu_; - /** - *
-     * The CPU information of the pod.
-     * 
- * - * .payload.v1.Info.CPU cpu = 5 [json_name = "cpu"]; - * @return Whether the cpu field is set. - */ - @java.lang.Override - public boolean hasCpu() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The CPU information of the pod.
-     * 
- * - * .payload.v1.Info.CPU cpu = 5 [json_name = "cpu"]; - * @return The cpu. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.CPU getCpu() { - return cpu_ == null ? org.vdaas.vald.api.v1.payload.Info.CPU.getDefaultInstance() : cpu_; - } - /** - *
-     * The CPU information of the pod.
-     * 
- * - * .payload.v1.Info.CPU cpu = 5 [json_name = "cpu"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.CPUOrBuilder getCpuOrBuilder() { - return cpu_ == null ? org.vdaas.vald.api.v1.payload.Info.CPU.getDefaultInstance() : cpu_; - } - - public static final int MEMORY_FIELD_NUMBER = 6; - private org.vdaas.vald.api.v1.payload.Info.Memory memory_; - /** - *
-     * The memory information of the pod.
-     * 
- * - * .payload.v1.Info.Memory memory = 6 [json_name = "memory"]; - * @return Whether the memory field is set. - */ - @java.lang.Override - public boolean hasMemory() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * The memory information of the pod.
-     * 
- * - * .payload.v1.Info.Memory memory = 6 [json_name = "memory"]; - * @return The memory. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Memory getMemory() { - return memory_ == null ? org.vdaas.vald.api.v1.payload.Info.Memory.getDefaultInstance() : memory_; - } - /** - *
-     * The memory information of the pod.
-     * 
- * - * .payload.v1.Info.Memory memory = 6 [json_name = "memory"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.MemoryOrBuilder getMemoryOrBuilder() { - return memory_ == null ? org.vdaas.vald.api.v1.payload.Info.Memory.getDefaultInstance() : memory_; - } - - public static final int NODE_FIELD_NUMBER = 7; - private org.vdaas.vald.api.v1.payload.Info.Node node_; - /** - *
-     * The node information of the pod.
-     * 
- * - * .payload.v1.Info.Node node = 7 [json_name = "node"]; - * @return Whether the node field is set. - */ - @java.lang.Override - public boolean hasNode() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * The node information of the pod.
-     * 
- * - * .payload.v1.Info.Node node = 7 [json_name = "node"]; - * @return The node. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Node getNode() { - return node_ == null ? org.vdaas.vald.api.v1.payload.Info.Node.getDefaultInstance() : node_; - } - /** - *
-     * The node information of the pod.
-     * 
- * - * .payload.v1.Info.Node node = 7 [json_name = "node"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.NodeOrBuilder getNodeOrBuilder() { - return node_ == null ? org.vdaas.vald.api.v1.payload.Info.Node.getDefaultInstance() : node_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, appName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, namespace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ip_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getCpu()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(6, getMemory()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(7, getNode()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, appName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, namespace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, ip_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCpu()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getMemory()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getNode()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Info.Pod)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Info.Pod other = (org.vdaas.vald.api.v1.payload.Info.Pod) obj; - - if (!getAppName() - .equals(other.getAppName())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!getNamespace() - .equals(other.getNamespace())) return false; - if (!getIp() - .equals(other.getIp())) return false; - if (hasCpu() != other.hasCpu()) return false; - if (hasCpu()) { - if (!getCpu() - .equals(other.getCpu())) return false; - } - if (hasMemory() != other.hasMemory()) return false; - if (hasMemory()) { - if (!getMemory() - .equals(other.getMemory())) return false; - } - if (hasNode() != other.hasNode()) return false; - if (hasNode()) { - if (!getNode() - .equals(other.getNode())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + APP_NAME_FIELD_NUMBER; - hash = (53 * hash) + getAppName().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; - hash = (53 * hash) + getNamespace().hashCode(); - hash = (37 * hash) + IP_FIELD_NUMBER; - hash = (53 * hash) + getIp().hashCode(); - if (hasCpu()) { - hash = (37 * hash) + CPU_FIELD_NUMBER; - hash = (53 * hash) + getCpu().hashCode(); - } - if (hasMemory()) { - hash = (37 * hash) + MEMORY_FIELD_NUMBER; - hash = (53 * hash) + getMemory().hashCode(); - } - if (hasNode()) { - hash = (37 * hash) + NODE_FIELD_NUMBER; - hash = (53 * hash) + getNode().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Info.Pod parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Pod parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Pod parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Pod parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Pod parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Pod parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Pod parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Pod 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 org.vdaas.vald.api.v1.payload.Info.Pod parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Info.Pod parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Pod parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Pod parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Info.Pod prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the pod information message.
-     * 
- * - * Protobuf type {@code payload.v1.Info.Pod} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Info.Pod) - org.vdaas.vald.api.v1.payload.Info.PodOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Pod_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Pod_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Pod.class, org.vdaas.vald.api.v1.payload.Info.Pod.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Info.Pod.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCpuFieldBuilder(); - getMemoryFieldBuilder(); - getNodeFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - appName_ = ""; - name_ = ""; - namespace_ = ""; - ip_ = ""; - cpu_ = null; - if (cpuBuilder_ != null) { - cpuBuilder_.dispose(); - cpuBuilder_ = null; - } - memory_ = null; - if (memoryBuilder_ != null) { - memoryBuilder_.dispose(); - memoryBuilder_ = null; - } - node_ = null; - if (nodeBuilder_ != null) { - nodeBuilder_.dispose(); - nodeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Pod_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Pod getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Info.Pod.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Pod build() { - org.vdaas.vald.api.v1.payload.Info.Pod result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Pod buildPartial() { - org.vdaas.vald.api.v1.payload.Info.Pod result = new org.vdaas.vald.api.v1.payload.Info.Pod(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Info.Pod result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.appName_ = appName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.namespace_ = namespace_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.ip_ = ip_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.cpu_ = cpuBuilder_ == null - ? cpu_ - : cpuBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.memory_ = memoryBuilder_ == null - ? memory_ - : memoryBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.node_ = nodeBuilder_ == null - ? node_ - : nodeBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Info.Pod) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Info.Pod)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Info.Pod other) { - if (other == org.vdaas.vald.api.v1.payload.Info.Pod.getDefaultInstance()) return this; - if (!other.getAppName().isEmpty()) { - appName_ = other.appName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getNamespace().isEmpty()) { - namespace_ = other.namespace_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getIp().isEmpty()) { - ip_ = other.ip_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasCpu()) { - mergeCpu(other.getCpu()); - } - if (other.hasMemory()) { - mergeMemory(other.getMemory()); - } - if (other.hasNode()) { - mergeNode(other.getNode()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - appName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - namespace_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - ip_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getCpuFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getMemoryFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getNodeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object appName_ = ""; - /** - *
-       * The app name of the pod on the label.
-       * 
- * - * string app_name = 1 [json_name = "appName"]; - * @return The appName. - */ - public java.lang.String getAppName() { - java.lang.Object ref = appName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - appName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The app name of the pod on the label.
-       * 
- * - * string app_name = 1 [json_name = "appName"]; - * @return The bytes for appName. - */ - public com.google.protobuf.ByteString - getAppNameBytes() { - java.lang.Object ref = appName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - appName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The app name of the pod on the label.
-       * 
- * - * string app_name = 1 [json_name = "appName"]; - * @param value The appName to set. - * @return This builder for chaining. - */ - public Builder setAppName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - appName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The app name of the pod on the label.
-       * 
- * - * string app_name = 1 [json_name = "appName"]; - * @return This builder for chaining. - */ - public Builder clearAppName() { - appName_ = getDefaultInstance().getAppName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The app name of the pod on the label.
-       * 
- * - * string app_name = 1 [json_name = "appName"]; - * @param value The bytes for appName to set. - * @return This builder for chaining. - */ - public Builder setAppNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - appName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * The name of the pod.
-       * 
- * - * string name = 2 [json_name = "name"]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The name of the pod.
-       * 
- * - * string name = 2 [json_name = "name"]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The name of the pod.
-       * 
- * - * string name = 2 [json_name = "name"]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The name of the pod.
-       * 
- * - * string name = 2 [json_name = "name"]; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * The name of the pod.
-       * 
- * - * string name = 2 [json_name = "name"]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object namespace_ = ""; - /** - *
-       * The namespace of the pod.
-       * 
- * - * string namespace = 3 [json_name = "namespace"]; - * @return The namespace. - */ - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - namespace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The namespace of the pod.
-       * 
- * - * string namespace = 3 [json_name = "namespace"]; - * @return The bytes for namespace. - */ - public com.google.protobuf.ByteString - getNamespaceBytes() { - java.lang.Object ref = namespace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - namespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The namespace of the pod.
-       * 
- * - * string namespace = 3 [json_name = "namespace"]; - * @param value The namespace to set. - * @return This builder for chaining. - */ - public Builder setNamespace( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - namespace_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * The namespace of the pod.
-       * 
- * - * string namespace = 3 [json_name = "namespace"]; - * @return This builder for chaining. - */ - public Builder clearNamespace() { - namespace_ = getDefaultInstance().getNamespace(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-       * The namespace of the pod.
-       * 
- * - * string namespace = 3 [json_name = "namespace"]; - * @param value The bytes for namespace to set. - * @return This builder for chaining. - */ - public Builder setNamespaceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - namespace_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object ip_ = ""; - /** - *
-       * The IP of the pod.
-       * 
- * - * string ip = 4 [json_name = "ip", (.buf.validate.field) = { ... } - * @return The ip. - */ - public java.lang.String getIp() { - java.lang.Object ref = ip_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ip_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The IP of the pod.
-       * 
- * - * string ip = 4 [json_name = "ip", (.buf.validate.field) = { ... } - * @return The bytes for ip. - */ - public com.google.protobuf.ByteString - getIpBytes() { - java.lang.Object ref = ip_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ip_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The IP of the pod.
-       * 
- * - * string ip = 4 [json_name = "ip", (.buf.validate.field) = { ... } - * @param value The ip to set. - * @return This builder for chaining. - */ - public Builder setIp( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ip_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * The IP of the pod.
-       * 
- * - * string ip = 4 [json_name = "ip", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearIp() { - ip_ = getDefaultInstance().getIp(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-       * The IP of the pod.
-       * 
- * - * string ip = 4 [json_name = "ip", (.buf.validate.field) = { ... } - * @param value The bytes for ip to set. - * @return This builder for chaining. - */ - public Builder setIpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ip_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private org.vdaas.vald.api.v1.payload.Info.CPU cpu_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.CPU, org.vdaas.vald.api.v1.payload.Info.CPU.Builder, org.vdaas.vald.api.v1.payload.Info.CPUOrBuilder> cpuBuilder_; - /** - *
-       * The CPU information of the pod.
-       * 
- * - * .payload.v1.Info.CPU cpu = 5 [json_name = "cpu"]; - * @return Whether the cpu field is set. - */ - public boolean hasCpu() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-       * The CPU information of the pod.
-       * 
- * - * .payload.v1.Info.CPU cpu = 5 [json_name = "cpu"]; - * @return The cpu. - */ - public org.vdaas.vald.api.v1.payload.Info.CPU getCpu() { - if (cpuBuilder_ == null) { - return cpu_ == null ? org.vdaas.vald.api.v1.payload.Info.CPU.getDefaultInstance() : cpu_; - } else { - return cpuBuilder_.getMessage(); - } - } - /** - *
-       * The CPU information of the pod.
-       * 
- * - * .payload.v1.Info.CPU cpu = 5 [json_name = "cpu"]; - */ - public Builder setCpu(org.vdaas.vald.api.v1.payload.Info.CPU value) { - if (cpuBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cpu_ = value; - } else { - cpuBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-       * The CPU information of the pod.
-       * 
- * - * .payload.v1.Info.CPU cpu = 5 [json_name = "cpu"]; - */ - public Builder setCpu( - org.vdaas.vald.api.v1.payload.Info.CPU.Builder builderForValue) { - if (cpuBuilder_ == null) { - cpu_ = builderForValue.build(); - } else { - cpuBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-       * The CPU information of the pod.
-       * 
- * - * .payload.v1.Info.CPU cpu = 5 [json_name = "cpu"]; - */ - public Builder mergeCpu(org.vdaas.vald.api.v1.payload.Info.CPU value) { - if (cpuBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - cpu_ != null && - cpu_ != org.vdaas.vald.api.v1.payload.Info.CPU.getDefaultInstance()) { - getCpuBuilder().mergeFrom(value); - } else { - cpu_ = value; - } - } else { - cpuBuilder_.mergeFrom(value); - } - if (cpu_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - *
-       * The CPU information of the pod.
-       * 
- * - * .payload.v1.Info.CPU cpu = 5 [json_name = "cpu"]; - */ - public Builder clearCpu() { - bitField0_ = (bitField0_ & ~0x00000010); - cpu_ = null; - if (cpuBuilder_ != null) { - cpuBuilder_.dispose(); - cpuBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The CPU information of the pod.
-       * 
- * - * .payload.v1.Info.CPU cpu = 5 [json_name = "cpu"]; - */ - public org.vdaas.vald.api.v1.payload.Info.CPU.Builder getCpuBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getCpuFieldBuilder().getBuilder(); - } - /** - *
-       * The CPU information of the pod.
-       * 
- * - * .payload.v1.Info.CPU cpu = 5 [json_name = "cpu"]; - */ - public org.vdaas.vald.api.v1.payload.Info.CPUOrBuilder getCpuOrBuilder() { - if (cpuBuilder_ != null) { - return cpuBuilder_.getMessageOrBuilder(); - } else { - return cpu_ == null ? - org.vdaas.vald.api.v1.payload.Info.CPU.getDefaultInstance() : cpu_; - } - } - /** - *
-       * The CPU information of the pod.
-       * 
- * - * .payload.v1.Info.CPU cpu = 5 [json_name = "cpu"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.CPU, org.vdaas.vald.api.v1.payload.Info.CPU.Builder, org.vdaas.vald.api.v1.payload.Info.CPUOrBuilder> - getCpuFieldBuilder() { - if (cpuBuilder_ == null) { - cpuBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.CPU, org.vdaas.vald.api.v1.payload.Info.CPU.Builder, org.vdaas.vald.api.v1.payload.Info.CPUOrBuilder>( - getCpu(), - getParentForChildren(), - isClean()); - cpu_ = null; - } - return cpuBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Info.Memory memory_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Memory, org.vdaas.vald.api.v1.payload.Info.Memory.Builder, org.vdaas.vald.api.v1.payload.Info.MemoryOrBuilder> memoryBuilder_; - /** - *
-       * The memory information of the pod.
-       * 
- * - * .payload.v1.Info.Memory memory = 6 [json_name = "memory"]; - * @return Whether the memory field is set. - */ - public boolean hasMemory() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-       * The memory information of the pod.
-       * 
- * - * .payload.v1.Info.Memory memory = 6 [json_name = "memory"]; - * @return The memory. - */ - public org.vdaas.vald.api.v1.payload.Info.Memory getMemory() { - if (memoryBuilder_ == null) { - return memory_ == null ? org.vdaas.vald.api.v1.payload.Info.Memory.getDefaultInstance() : memory_; - } else { - return memoryBuilder_.getMessage(); - } - } - /** - *
-       * The memory information of the pod.
-       * 
- * - * .payload.v1.Info.Memory memory = 6 [json_name = "memory"]; - */ - public Builder setMemory(org.vdaas.vald.api.v1.payload.Info.Memory value) { - if (memoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - memory_ = value; - } else { - memoryBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-       * The memory information of the pod.
-       * 
- * - * .payload.v1.Info.Memory memory = 6 [json_name = "memory"]; - */ - public Builder setMemory( - org.vdaas.vald.api.v1.payload.Info.Memory.Builder builderForValue) { - if (memoryBuilder_ == null) { - memory_ = builderForValue.build(); - } else { - memoryBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-       * The memory information of the pod.
-       * 
- * - * .payload.v1.Info.Memory memory = 6 [json_name = "memory"]; - */ - public Builder mergeMemory(org.vdaas.vald.api.v1.payload.Info.Memory value) { - if (memoryBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - memory_ != null && - memory_ != org.vdaas.vald.api.v1.payload.Info.Memory.getDefaultInstance()) { - getMemoryBuilder().mergeFrom(value); - } else { - memory_ = value; - } - } else { - memoryBuilder_.mergeFrom(value); - } - if (memory_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; - } - /** - *
-       * The memory information of the pod.
-       * 
- * - * .payload.v1.Info.Memory memory = 6 [json_name = "memory"]; - */ - public Builder clearMemory() { - bitField0_ = (bitField0_ & ~0x00000020); - memory_ = null; - if (memoryBuilder_ != null) { - memoryBuilder_.dispose(); - memoryBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The memory information of the pod.
-       * 
- * - * .payload.v1.Info.Memory memory = 6 [json_name = "memory"]; - */ - public org.vdaas.vald.api.v1.payload.Info.Memory.Builder getMemoryBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getMemoryFieldBuilder().getBuilder(); - } - /** - *
-       * The memory information of the pod.
-       * 
- * - * .payload.v1.Info.Memory memory = 6 [json_name = "memory"]; - */ - public org.vdaas.vald.api.v1.payload.Info.MemoryOrBuilder getMemoryOrBuilder() { - if (memoryBuilder_ != null) { - return memoryBuilder_.getMessageOrBuilder(); - } else { - return memory_ == null ? - org.vdaas.vald.api.v1.payload.Info.Memory.getDefaultInstance() : memory_; - } - } - /** - *
-       * The memory information of the pod.
-       * 
- * - * .payload.v1.Info.Memory memory = 6 [json_name = "memory"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Memory, org.vdaas.vald.api.v1.payload.Info.Memory.Builder, org.vdaas.vald.api.v1.payload.Info.MemoryOrBuilder> - getMemoryFieldBuilder() { - if (memoryBuilder_ == null) { - memoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Memory, org.vdaas.vald.api.v1.payload.Info.Memory.Builder, org.vdaas.vald.api.v1.payload.Info.MemoryOrBuilder>( - getMemory(), - getParentForChildren(), - isClean()); - memory_ = null; - } - return memoryBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Info.Node node_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Node, org.vdaas.vald.api.v1.payload.Info.Node.Builder, org.vdaas.vald.api.v1.payload.Info.NodeOrBuilder> nodeBuilder_; - /** - *
-       * The node information of the pod.
-       * 
- * - * .payload.v1.Info.Node node = 7 [json_name = "node"]; - * @return Whether the node field is set. - */ - public boolean hasNode() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-       * The node information of the pod.
-       * 
- * - * .payload.v1.Info.Node node = 7 [json_name = "node"]; - * @return The node. - */ - public org.vdaas.vald.api.v1.payload.Info.Node getNode() { - if (nodeBuilder_ == null) { - return node_ == null ? org.vdaas.vald.api.v1.payload.Info.Node.getDefaultInstance() : node_; - } else { - return nodeBuilder_.getMessage(); - } - } - /** - *
-       * The node information of the pod.
-       * 
- * - * .payload.v1.Info.Node node = 7 [json_name = "node"]; - */ - public Builder setNode(org.vdaas.vald.api.v1.payload.Info.Node value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - node_ = value; - } else { - nodeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-       * The node information of the pod.
-       * 
- * - * .payload.v1.Info.Node node = 7 [json_name = "node"]; - */ - public Builder setNode( - org.vdaas.vald.api.v1.payload.Info.Node.Builder builderForValue) { - if (nodeBuilder_ == null) { - node_ = builderForValue.build(); - } else { - nodeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-       * The node information of the pod.
-       * 
- * - * .payload.v1.Info.Node node = 7 [json_name = "node"]; - */ - public Builder mergeNode(org.vdaas.vald.api.v1.payload.Info.Node value) { - if (nodeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - node_ != null && - node_ != org.vdaas.vald.api.v1.payload.Info.Node.getDefaultInstance()) { - getNodeBuilder().mergeFrom(value); - } else { - node_ = value; - } - } else { - nodeBuilder_.mergeFrom(value); - } - if (node_ != null) { - bitField0_ |= 0x00000040; - onChanged(); - } - return this; - } - /** - *
-       * The node information of the pod.
-       * 
- * - * .payload.v1.Info.Node node = 7 [json_name = "node"]; - */ - public Builder clearNode() { - bitField0_ = (bitField0_ & ~0x00000040); - node_ = null; - if (nodeBuilder_ != null) { - nodeBuilder_.dispose(); - nodeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The node information of the pod.
-       * 
- * - * .payload.v1.Info.Node node = 7 [json_name = "node"]; - */ - public org.vdaas.vald.api.v1.payload.Info.Node.Builder getNodeBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getNodeFieldBuilder().getBuilder(); - } - /** - *
-       * The node information of the pod.
-       * 
- * - * .payload.v1.Info.Node node = 7 [json_name = "node"]; - */ - public org.vdaas.vald.api.v1.payload.Info.NodeOrBuilder getNodeOrBuilder() { - if (nodeBuilder_ != null) { - return nodeBuilder_.getMessageOrBuilder(); - } else { - return node_ == null ? - org.vdaas.vald.api.v1.payload.Info.Node.getDefaultInstance() : node_; - } - } - /** - *
-       * The node information of the pod.
-       * 
- * - * .payload.v1.Info.Node node = 7 [json_name = "node"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Node, org.vdaas.vald.api.v1.payload.Info.Node.Builder, org.vdaas.vald.api.v1.payload.Info.NodeOrBuilder> - getNodeFieldBuilder() { - if (nodeBuilder_ == null) { - nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Node, org.vdaas.vald.api.v1.payload.Info.Node.Builder, org.vdaas.vald.api.v1.payload.Info.NodeOrBuilder>( - getNode(), - getParentForChildren(), - isClean()); - node_ = null; - } - return nodeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Info.Pod) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Info.Pod) - private static final org.vdaas.vald.api.v1.payload.Info.Pod DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Info.Pod(); - } - - public static org.vdaas.vald.api.v1.payload.Info.Pod getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Pod parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Pod getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Info.Node) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The name of the node.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-     * The name of the node.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * The internal IP address of the node.
-     * 
- * - * string internal_addr = 2 [json_name = "internalAddr"]; - * @return The internalAddr. - */ - java.lang.String getInternalAddr(); - /** - *
-     * The internal IP address of the node.
-     * 
- * - * string internal_addr = 2 [json_name = "internalAddr"]; - * @return The bytes for internalAddr. - */ - com.google.protobuf.ByteString - getInternalAddrBytes(); - - /** - *
-     * The external IP address of the node.
-     * 
- * - * string external_addr = 3 [json_name = "externalAddr"]; - * @return The externalAddr. - */ - java.lang.String getExternalAddr(); - /** - *
-     * The external IP address of the node.
-     * 
- * - * string external_addr = 3 [json_name = "externalAddr"]; - * @return The bytes for externalAddr. - */ - com.google.protobuf.ByteString - getExternalAddrBytes(); - - /** - *
-     * The CPU information of the node.
-     * 
- * - * .payload.v1.Info.CPU cpu = 4 [json_name = "cpu"]; - * @return Whether the cpu field is set. - */ - boolean hasCpu(); - /** - *
-     * The CPU information of the node.
-     * 
- * - * .payload.v1.Info.CPU cpu = 4 [json_name = "cpu"]; - * @return The cpu. - */ - org.vdaas.vald.api.v1.payload.Info.CPU getCpu(); - /** - *
-     * The CPU information of the node.
-     * 
- * - * .payload.v1.Info.CPU cpu = 4 [json_name = "cpu"]; - */ - org.vdaas.vald.api.v1.payload.Info.CPUOrBuilder getCpuOrBuilder(); - - /** - *
-     * The memory information of the node.
-     * 
- * - * .payload.v1.Info.Memory memory = 5 [json_name = "memory"]; - * @return Whether the memory field is set. - */ - boolean hasMemory(); - /** - *
-     * The memory information of the node.
-     * 
- * - * .payload.v1.Info.Memory memory = 5 [json_name = "memory"]; - * @return The memory. - */ - org.vdaas.vald.api.v1.payload.Info.Memory getMemory(); - /** - *
-     * The memory information of the node.
-     * 
- * - * .payload.v1.Info.Memory memory = 5 [json_name = "memory"]; - */ - org.vdaas.vald.api.v1.payload.Info.MemoryOrBuilder getMemoryOrBuilder(); - - /** - *
-     * The pod information of the node.
-     * 
- * - * .payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; - * @return Whether the pods field is set. - */ - boolean hasPods(); - /** - *
-     * The pod information of the node.
-     * 
- * - * .payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; - * @return The pods. - */ - org.vdaas.vald.api.v1.payload.Info.Pods getPods(); - /** - *
-     * The pod information of the node.
-     * 
- * - * .payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; - */ - org.vdaas.vald.api.v1.payload.Info.PodsOrBuilder getPodsOrBuilder(); - } - /** - *
-   * Represent the node information message.
-   * 
- * - * Protobuf type {@code payload.v1.Info.Node} - */ - public static final class Node extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Info.Node) - NodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use Node.newBuilder() to construct. - private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Node() { - name_ = ""; - internalAddr_ = ""; - externalAddr_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Node(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Node_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Node_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Node.class, org.vdaas.vald.api.v1.payload.Info.Node.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-     * The name of the node.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * The name of the node.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INTERNAL_ADDR_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object internalAddr_ = ""; - /** - *
-     * The internal IP address of the node.
-     * 
- * - * string internal_addr = 2 [json_name = "internalAddr"]; - * @return The internalAddr. - */ - @java.lang.Override - public java.lang.String getInternalAddr() { - java.lang.Object ref = internalAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - internalAddr_ = s; - return s; - } - } - /** - *
-     * The internal IP address of the node.
-     * 
- * - * string internal_addr = 2 [json_name = "internalAddr"]; - * @return The bytes for internalAddr. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getInternalAddrBytes() { - java.lang.Object ref = internalAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - internalAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXTERNAL_ADDR_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object externalAddr_ = ""; - /** - *
-     * The external IP address of the node.
-     * 
- * - * string external_addr = 3 [json_name = "externalAddr"]; - * @return The externalAddr. - */ - @java.lang.Override - public java.lang.String getExternalAddr() { - java.lang.Object ref = externalAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - externalAddr_ = s; - return s; - } - } - /** - *
-     * The external IP address of the node.
-     * 
- * - * string external_addr = 3 [json_name = "externalAddr"]; - * @return The bytes for externalAddr. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getExternalAddrBytes() { - java.lang.Object ref = externalAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - externalAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CPU_FIELD_NUMBER = 4; - private org.vdaas.vald.api.v1.payload.Info.CPU cpu_; - /** - *
-     * The CPU information of the node.
-     * 
- * - * .payload.v1.Info.CPU cpu = 4 [json_name = "cpu"]; - * @return Whether the cpu field is set. - */ - @java.lang.Override - public boolean hasCpu() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The CPU information of the node.
-     * 
- * - * .payload.v1.Info.CPU cpu = 4 [json_name = "cpu"]; - * @return The cpu. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.CPU getCpu() { - return cpu_ == null ? org.vdaas.vald.api.v1.payload.Info.CPU.getDefaultInstance() : cpu_; - } - /** - *
-     * The CPU information of the node.
-     * 
- * - * .payload.v1.Info.CPU cpu = 4 [json_name = "cpu"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.CPUOrBuilder getCpuOrBuilder() { - return cpu_ == null ? org.vdaas.vald.api.v1.payload.Info.CPU.getDefaultInstance() : cpu_; - } - - public static final int MEMORY_FIELD_NUMBER = 5; - private org.vdaas.vald.api.v1.payload.Info.Memory memory_; - /** - *
-     * The memory information of the node.
-     * 
- * - * .payload.v1.Info.Memory memory = 5 [json_name = "memory"]; - * @return Whether the memory field is set. - */ - @java.lang.Override - public boolean hasMemory() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * The memory information of the node.
-     * 
- * - * .payload.v1.Info.Memory memory = 5 [json_name = "memory"]; - * @return The memory. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Memory getMemory() { - return memory_ == null ? org.vdaas.vald.api.v1.payload.Info.Memory.getDefaultInstance() : memory_; - } - /** - *
-     * The memory information of the node.
-     * 
- * - * .payload.v1.Info.Memory memory = 5 [json_name = "memory"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.MemoryOrBuilder getMemoryOrBuilder() { - return memory_ == null ? org.vdaas.vald.api.v1.payload.Info.Memory.getDefaultInstance() : memory_; - } - - public static final int PODS_FIELD_NUMBER = 6; - private org.vdaas.vald.api.v1.payload.Info.Pods pods_; - /** - *
-     * The pod information of the node.
-     * 
- * - * .payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; - * @return Whether the pods field is set. - */ - @java.lang.Override - public boolean hasPods() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * The pod information of the node.
-     * 
- * - * .payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; - * @return The pods. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Pods getPods() { - return pods_ == null ? org.vdaas.vald.api.v1.payload.Info.Pods.getDefaultInstance() : pods_; - } - /** - *
-     * The pod information of the node.
-     * 
- * - * .payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.PodsOrBuilder getPodsOrBuilder() { - return pods_ == null ? org.vdaas.vald.api.v1.payload.Info.Pods.getDefaultInstance() : pods_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalAddr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, internalAddr_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalAddr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, externalAddr_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getCpu()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(5, getMemory()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(6, getPods()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalAddr_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, internalAddr_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalAddr_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, externalAddr_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCpu()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getMemory()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getPods()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Info.Node)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Info.Node other = (org.vdaas.vald.api.v1.payload.Info.Node) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getInternalAddr() - .equals(other.getInternalAddr())) return false; - if (!getExternalAddr() - .equals(other.getExternalAddr())) return false; - if (hasCpu() != other.hasCpu()) return false; - if (hasCpu()) { - if (!getCpu() - .equals(other.getCpu())) return false; - } - if (hasMemory() != other.hasMemory()) return false; - if (hasMemory()) { - if (!getMemory() - .equals(other.getMemory())) return false; - } - if (hasPods() != other.hasPods()) return false; - if (hasPods()) { - if (!getPods() - .equals(other.getPods())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + INTERNAL_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getInternalAddr().hashCode(); - hash = (37 * hash) + EXTERNAL_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getExternalAddr().hashCode(); - if (hasCpu()) { - hash = (37 * hash) + CPU_FIELD_NUMBER; - hash = (53 * hash) + getCpu().hashCode(); - } - if (hasMemory()) { - hash = (37 * hash) + MEMORY_FIELD_NUMBER; - hash = (53 * hash) + getMemory().hashCode(); - } - if (hasPods()) { - hash = (37 * hash) + PODS_FIELD_NUMBER; - hash = (53 * hash) + getPods().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Info.Node parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Node parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Node parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Node parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Node parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Node parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Node parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Node 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 org.vdaas.vald.api.v1.payload.Info.Node parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Info.Node parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Node parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Node parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Info.Node prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the node information message.
-     * 
- * - * Protobuf type {@code payload.v1.Info.Node} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Info.Node) - org.vdaas.vald.api.v1.payload.Info.NodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Node_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Node_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Node.class, org.vdaas.vald.api.v1.payload.Info.Node.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Info.Node.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCpuFieldBuilder(); - getMemoryFieldBuilder(); - getPodsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - internalAddr_ = ""; - externalAddr_ = ""; - cpu_ = null; - if (cpuBuilder_ != null) { - cpuBuilder_.dispose(); - cpuBuilder_ = null; - } - memory_ = null; - if (memoryBuilder_ != null) { - memoryBuilder_.dispose(); - memoryBuilder_ = null; - } - pods_ = null; - if (podsBuilder_ != null) { - podsBuilder_.dispose(); - podsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Node_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Node getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Info.Node.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Node build() { - org.vdaas.vald.api.v1.payload.Info.Node result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Node buildPartial() { - org.vdaas.vald.api.v1.payload.Info.Node result = new org.vdaas.vald.api.v1.payload.Info.Node(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Info.Node result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.internalAddr_ = internalAddr_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.externalAddr_ = externalAddr_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.cpu_ = cpuBuilder_ == null - ? cpu_ - : cpuBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.memory_ = memoryBuilder_ == null - ? memory_ - : memoryBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.pods_ = podsBuilder_ == null - ? pods_ - : podsBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Info.Node) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Info.Node)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Info.Node other) { - if (other == org.vdaas.vald.api.v1.payload.Info.Node.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getInternalAddr().isEmpty()) { - internalAddr_ = other.internalAddr_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getExternalAddr().isEmpty()) { - externalAddr_ = other.externalAddr_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasCpu()) { - mergeCpu(other.getCpu()); - } - if (other.hasMemory()) { - mergeMemory(other.getMemory()); - } - if (other.hasPods()) { - mergePods(other.getPods()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - internalAddr_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - externalAddr_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getCpuFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getMemoryFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getPodsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-       * The name of the node.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The name of the node.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The name of the node.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The name of the node.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The name of the node.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object internalAddr_ = ""; - /** - *
-       * The internal IP address of the node.
-       * 
- * - * string internal_addr = 2 [json_name = "internalAddr"]; - * @return The internalAddr. - */ - public java.lang.String getInternalAddr() { - java.lang.Object ref = internalAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - internalAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The internal IP address of the node.
-       * 
- * - * string internal_addr = 2 [json_name = "internalAddr"]; - * @return The bytes for internalAddr. - */ - public com.google.protobuf.ByteString - getInternalAddrBytes() { - java.lang.Object ref = internalAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - internalAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The internal IP address of the node.
-       * 
- * - * string internal_addr = 2 [json_name = "internalAddr"]; - * @param value The internalAddr to set. - * @return This builder for chaining. - */ - public Builder setInternalAddr( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - internalAddr_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The internal IP address of the node.
-       * 
- * - * string internal_addr = 2 [json_name = "internalAddr"]; - * @return This builder for chaining. - */ - public Builder clearInternalAddr() { - internalAddr_ = getDefaultInstance().getInternalAddr(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * The internal IP address of the node.
-       * 
- * - * string internal_addr = 2 [json_name = "internalAddr"]; - * @param value The bytes for internalAddr to set. - * @return This builder for chaining. - */ - public Builder setInternalAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - internalAddr_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object externalAddr_ = ""; - /** - *
-       * The external IP address of the node.
-       * 
- * - * string external_addr = 3 [json_name = "externalAddr"]; - * @return The externalAddr. - */ - public java.lang.String getExternalAddr() { - java.lang.Object ref = externalAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - externalAddr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The external IP address of the node.
-       * 
- * - * string external_addr = 3 [json_name = "externalAddr"]; - * @return The bytes for externalAddr. - */ - public com.google.protobuf.ByteString - getExternalAddrBytes() { - java.lang.Object ref = externalAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - externalAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The external IP address of the node.
-       * 
- * - * string external_addr = 3 [json_name = "externalAddr"]; - * @param value The externalAddr to set. - * @return This builder for chaining. - */ - public Builder setExternalAddr( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - externalAddr_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * The external IP address of the node.
-       * 
- * - * string external_addr = 3 [json_name = "externalAddr"]; - * @return This builder for chaining. - */ - public Builder clearExternalAddr() { - externalAddr_ = getDefaultInstance().getExternalAddr(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-       * The external IP address of the node.
-       * 
- * - * string external_addr = 3 [json_name = "externalAddr"]; - * @param value The bytes for externalAddr to set. - * @return This builder for chaining. - */ - public Builder setExternalAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - externalAddr_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private org.vdaas.vald.api.v1.payload.Info.CPU cpu_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.CPU, org.vdaas.vald.api.v1.payload.Info.CPU.Builder, org.vdaas.vald.api.v1.payload.Info.CPUOrBuilder> cpuBuilder_; - /** - *
-       * The CPU information of the node.
-       * 
- * - * .payload.v1.Info.CPU cpu = 4 [json_name = "cpu"]; - * @return Whether the cpu field is set. - */ - public boolean hasCpu() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-       * The CPU information of the node.
-       * 
- * - * .payload.v1.Info.CPU cpu = 4 [json_name = "cpu"]; - * @return The cpu. - */ - public org.vdaas.vald.api.v1.payload.Info.CPU getCpu() { - if (cpuBuilder_ == null) { - return cpu_ == null ? org.vdaas.vald.api.v1.payload.Info.CPU.getDefaultInstance() : cpu_; - } else { - return cpuBuilder_.getMessage(); - } - } - /** - *
-       * The CPU information of the node.
-       * 
- * - * .payload.v1.Info.CPU cpu = 4 [json_name = "cpu"]; - */ - public Builder setCpu(org.vdaas.vald.api.v1.payload.Info.CPU value) { - if (cpuBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cpu_ = value; - } else { - cpuBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * The CPU information of the node.
-       * 
- * - * .payload.v1.Info.CPU cpu = 4 [json_name = "cpu"]; - */ - public Builder setCpu( - org.vdaas.vald.api.v1.payload.Info.CPU.Builder builderForValue) { - if (cpuBuilder_ == null) { - cpu_ = builderForValue.build(); - } else { - cpuBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * The CPU information of the node.
-       * 
- * - * .payload.v1.Info.CPU cpu = 4 [json_name = "cpu"]; - */ - public Builder mergeCpu(org.vdaas.vald.api.v1.payload.Info.CPU value) { - if (cpuBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - cpu_ != null && - cpu_ != org.vdaas.vald.api.v1.payload.Info.CPU.getDefaultInstance()) { - getCpuBuilder().mergeFrom(value); - } else { - cpu_ = value; - } - } else { - cpuBuilder_.mergeFrom(value); - } - if (cpu_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - *
-       * The CPU information of the node.
-       * 
- * - * .payload.v1.Info.CPU cpu = 4 [json_name = "cpu"]; - */ - public Builder clearCpu() { - bitField0_ = (bitField0_ & ~0x00000008); - cpu_ = null; - if (cpuBuilder_ != null) { - cpuBuilder_.dispose(); - cpuBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The CPU information of the node.
-       * 
- * - * .payload.v1.Info.CPU cpu = 4 [json_name = "cpu"]; - */ - public org.vdaas.vald.api.v1.payload.Info.CPU.Builder getCpuBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getCpuFieldBuilder().getBuilder(); - } - /** - *
-       * The CPU information of the node.
-       * 
- * - * .payload.v1.Info.CPU cpu = 4 [json_name = "cpu"]; - */ - public org.vdaas.vald.api.v1.payload.Info.CPUOrBuilder getCpuOrBuilder() { - if (cpuBuilder_ != null) { - return cpuBuilder_.getMessageOrBuilder(); - } else { - return cpu_ == null ? - org.vdaas.vald.api.v1.payload.Info.CPU.getDefaultInstance() : cpu_; - } - } - /** - *
-       * The CPU information of the node.
-       * 
- * - * .payload.v1.Info.CPU cpu = 4 [json_name = "cpu"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.CPU, org.vdaas.vald.api.v1.payload.Info.CPU.Builder, org.vdaas.vald.api.v1.payload.Info.CPUOrBuilder> - getCpuFieldBuilder() { - if (cpuBuilder_ == null) { - cpuBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.CPU, org.vdaas.vald.api.v1.payload.Info.CPU.Builder, org.vdaas.vald.api.v1.payload.Info.CPUOrBuilder>( - getCpu(), - getParentForChildren(), - isClean()); - cpu_ = null; - } - return cpuBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Info.Memory memory_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Memory, org.vdaas.vald.api.v1.payload.Info.Memory.Builder, org.vdaas.vald.api.v1.payload.Info.MemoryOrBuilder> memoryBuilder_; - /** - *
-       * The memory information of the node.
-       * 
- * - * .payload.v1.Info.Memory memory = 5 [json_name = "memory"]; - * @return Whether the memory field is set. - */ - public boolean hasMemory() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-       * The memory information of the node.
-       * 
- * - * .payload.v1.Info.Memory memory = 5 [json_name = "memory"]; - * @return The memory. - */ - public org.vdaas.vald.api.v1.payload.Info.Memory getMemory() { - if (memoryBuilder_ == null) { - return memory_ == null ? org.vdaas.vald.api.v1.payload.Info.Memory.getDefaultInstance() : memory_; - } else { - return memoryBuilder_.getMessage(); - } - } - /** - *
-       * The memory information of the node.
-       * 
- * - * .payload.v1.Info.Memory memory = 5 [json_name = "memory"]; - */ - public Builder setMemory(org.vdaas.vald.api.v1.payload.Info.Memory value) { - if (memoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - memory_ = value; - } else { - memoryBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-       * The memory information of the node.
-       * 
- * - * .payload.v1.Info.Memory memory = 5 [json_name = "memory"]; - */ - public Builder setMemory( - org.vdaas.vald.api.v1.payload.Info.Memory.Builder builderForValue) { - if (memoryBuilder_ == null) { - memory_ = builderForValue.build(); - } else { - memoryBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-       * The memory information of the node.
-       * 
- * - * .payload.v1.Info.Memory memory = 5 [json_name = "memory"]; - */ - public Builder mergeMemory(org.vdaas.vald.api.v1.payload.Info.Memory value) { - if (memoryBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - memory_ != null && - memory_ != org.vdaas.vald.api.v1.payload.Info.Memory.getDefaultInstance()) { - getMemoryBuilder().mergeFrom(value); - } else { - memory_ = value; - } - } else { - memoryBuilder_.mergeFrom(value); - } - if (memory_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - *
-       * The memory information of the node.
-       * 
- * - * .payload.v1.Info.Memory memory = 5 [json_name = "memory"]; - */ - public Builder clearMemory() { - bitField0_ = (bitField0_ & ~0x00000010); - memory_ = null; - if (memoryBuilder_ != null) { - memoryBuilder_.dispose(); - memoryBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The memory information of the node.
-       * 
- * - * .payload.v1.Info.Memory memory = 5 [json_name = "memory"]; - */ - public org.vdaas.vald.api.v1.payload.Info.Memory.Builder getMemoryBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getMemoryFieldBuilder().getBuilder(); - } - /** - *
-       * The memory information of the node.
-       * 
- * - * .payload.v1.Info.Memory memory = 5 [json_name = "memory"]; - */ - public org.vdaas.vald.api.v1.payload.Info.MemoryOrBuilder getMemoryOrBuilder() { - if (memoryBuilder_ != null) { - return memoryBuilder_.getMessageOrBuilder(); - } else { - return memory_ == null ? - org.vdaas.vald.api.v1.payload.Info.Memory.getDefaultInstance() : memory_; - } - } - /** - *
-       * The memory information of the node.
-       * 
- * - * .payload.v1.Info.Memory memory = 5 [json_name = "memory"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Memory, org.vdaas.vald.api.v1.payload.Info.Memory.Builder, org.vdaas.vald.api.v1.payload.Info.MemoryOrBuilder> - getMemoryFieldBuilder() { - if (memoryBuilder_ == null) { - memoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Memory, org.vdaas.vald.api.v1.payload.Info.Memory.Builder, org.vdaas.vald.api.v1.payload.Info.MemoryOrBuilder>( - getMemory(), - getParentForChildren(), - isClean()); - memory_ = null; - } - return memoryBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Info.Pods pods_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Pods, org.vdaas.vald.api.v1.payload.Info.Pods.Builder, org.vdaas.vald.api.v1.payload.Info.PodsOrBuilder> podsBuilder_; - /** - *
-       * The pod information of the node.
-       * 
- * - * .payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; - * @return Whether the pods field is set. - */ - public boolean hasPods() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-       * The pod information of the node.
-       * 
- * - * .payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; - * @return The pods. - */ - public org.vdaas.vald.api.v1.payload.Info.Pods getPods() { - if (podsBuilder_ == null) { - return pods_ == null ? org.vdaas.vald.api.v1.payload.Info.Pods.getDefaultInstance() : pods_; - } else { - return podsBuilder_.getMessage(); - } - } - /** - *
-       * The pod information of the node.
-       * 
- * - * .payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; - */ - public Builder setPods(org.vdaas.vald.api.v1.payload.Info.Pods value) { - if (podsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pods_ = value; - } else { - podsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-       * The pod information of the node.
-       * 
- * - * .payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; - */ - public Builder setPods( - org.vdaas.vald.api.v1.payload.Info.Pods.Builder builderForValue) { - if (podsBuilder_ == null) { - pods_ = builderForValue.build(); - } else { - podsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-       * The pod information of the node.
-       * 
- * - * .payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; - */ - public Builder mergePods(org.vdaas.vald.api.v1.payload.Info.Pods value) { - if (podsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - pods_ != null && - pods_ != org.vdaas.vald.api.v1.payload.Info.Pods.getDefaultInstance()) { - getPodsBuilder().mergeFrom(value); - } else { - pods_ = value; - } - } else { - podsBuilder_.mergeFrom(value); - } - if (pods_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; - } - /** - *
-       * The pod information of the node.
-       * 
- * - * .payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; - */ - public Builder clearPods() { - bitField0_ = (bitField0_ & ~0x00000020); - pods_ = null; - if (podsBuilder_ != null) { - podsBuilder_.dispose(); - podsBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The pod information of the node.
-       * 
- * - * .payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; - */ - public org.vdaas.vald.api.v1.payload.Info.Pods.Builder getPodsBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getPodsFieldBuilder().getBuilder(); - } - /** - *
-       * The pod information of the node.
-       * 
- * - * .payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; - */ - public org.vdaas.vald.api.v1.payload.Info.PodsOrBuilder getPodsOrBuilder() { - if (podsBuilder_ != null) { - return podsBuilder_.getMessageOrBuilder(); - } else { - return pods_ == null ? - org.vdaas.vald.api.v1.payload.Info.Pods.getDefaultInstance() : pods_; - } - } - /** - *
-       * The pod information of the node.
-       * 
- * - * .payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Pods, org.vdaas.vald.api.v1.payload.Info.Pods.Builder, org.vdaas.vald.api.v1.payload.Info.PodsOrBuilder> - getPodsFieldBuilder() { - if (podsBuilder_ == null) { - podsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Pods, org.vdaas.vald.api.v1.payload.Info.Pods.Builder, org.vdaas.vald.api.v1.payload.Info.PodsOrBuilder>( - getPods(), - getParentForChildren(), - isClean()); - pods_ = null; - } - return podsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Info.Node) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Info.Node) - private static final org.vdaas.vald.api.v1.payload.Info.Node DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Info.Node(); - } - - public static org.vdaas.vald.api.v1.payload.Info.Node getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Node parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Node getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ServiceOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Info.Service) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The name of the svc.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-     * The name of the svc.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * The cluster ip of the svc.
-     * 
- * - * string cluster_ip = 2 [json_name = "clusterIp"]; - * @return The clusterIp. - */ - java.lang.String getClusterIp(); - /** - *
-     * The cluster ip of the svc.
-     * 
- * - * string cluster_ip = 2 [json_name = "clusterIp"]; - * @return The bytes for clusterIp. - */ - com.google.protobuf.ByteString - getClusterIpBytes(); - - /** - *
-     * The cluster ips of the svc.
-     * 
- * - * repeated string cluster_ips = 3 [json_name = "clusterIps"]; - * @return A list containing the clusterIps. - */ - java.util.List - getClusterIpsList(); - /** - *
-     * The cluster ips of the svc.
-     * 
- * - * repeated string cluster_ips = 3 [json_name = "clusterIps"]; - * @return The count of clusterIps. - */ - int getClusterIpsCount(); - /** - *
-     * The cluster ips of the svc.
-     * 
- * - * repeated string cluster_ips = 3 [json_name = "clusterIps"]; - * @param index The index of the element to return. - * @return The clusterIps at the given index. - */ - java.lang.String getClusterIps(int index); - /** - *
-     * The cluster ips of the svc.
-     * 
- * - * repeated string cluster_ips = 3 [json_name = "clusterIps"]; - * @param index The index of the value to return. - * @return The bytes of the clusterIps at the given index. - */ - com.google.protobuf.ByteString - getClusterIpsBytes(int index); - - /** - *
-     * The port of the svc.
-     * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - java.util.List - getPortsList(); - /** - *
-     * The port of the svc.
-     * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - org.vdaas.vald.api.v1.payload.Info.ServicePort getPorts(int index); - /** - *
-     * The port of the svc.
-     * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - int getPortsCount(); - /** - *
-     * The port of the svc.
-     * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - java.util.List - getPortsOrBuilderList(); - /** - *
-     * The port of the svc.
-     * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - org.vdaas.vald.api.v1.payload.Info.ServicePortOrBuilder getPortsOrBuilder( - int index); - - /** - *
-     * The labels of the service.
-     * 
- * - * .payload.v1.Info.Labels labels = 5 [json_name = "labels"]; - * @return Whether the labels field is set. - */ - boolean hasLabels(); - /** - *
-     * The labels of the service.
-     * 
- * - * .payload.v1.Info.Labels labels = 5 [json_name = "labels"]; - * @return The labels. - */ - org.vdaas.vald.api.v1.payload.Info.Labels getLabels(); - /** - *
-     * The labels of the service.
-     * 
- * - * .payload.v1.Info.Labels labels = 5 [json_name = "labels"]; - */ - org.vdaas.vald.api.v1.payload.Info.LabelsOrBuilder getLabelsOrBuilder(); - - /** - *
-     * The annotations of the service.
-     * 
- * - * .payload.v1.Info.Annotations annotations = 6 [json_name = "annotations"]; - * @return Whether the annotations field is set. - */ - boolean hasAnnotations(); - /** - *
-     * The annotations of the service.
-     * 
- * - * .payload.v1.Info.Annotations annotations = 6 [json_name = "annotations"]; - * @return The annotations. - */ - org.vdaas.vald.api.v1.payload.Info.Annotations getAnnotations(); - /** - *
-     * The annotations of the service.
-     * 
- * - * .payload.v1.Info.Annotations annotations = 6 [json_name = "annotations"]; - */ - org.vdaas.vald.api.v1.payload.Info.AnnotationsOrBuilder getAnnotationsOrBuilder(); - } - /** - *
-   * Represent the service information message.
-   * 
- * - * Protobuf type {@code payload.v1.Info.Service} - */ - public static final class Service extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Info.Service) - ServiceOrBuilder { - private static final long serialVersionUID = 0L; - // Use Service.newBuilder() to construct. - private Service(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Service() { - name_ = ""; - clusterIp_ = ""; - clusterIps_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - ports_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Service(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Service_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Service_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Service.class, org.vdaas.vald.api.v1.payload.Info.Service.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-     * The name of the svc.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * The name of the svc.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_IP_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object clusterIp_ = ""; - /** - *
-     * The cluster ip of the svc.
-     * 
- * - * string cluster_ip = 2 [json_name = "clusterIp"]; - * @return The clusterIp. - */ - @java.lang.Override - public java.lang.String getClusterIp() { - java.lang.Object ref = clusterIp_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterIp_ = s; - return s; - } - } - /** - *
-     * The cluster ip of the svc.
-     * 
- * - * string cluster_ip = 2 [json_name = "clusterIp"]; - * @return The bytes for clusterIp. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClusterIpBytes() { - java.lang.Object ref = clusterIp_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterIp_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_IPS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList clusterIps_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-     * The cluster ips of the svc.
-     * 
- * - * repeated string cluster_ips = 3 [json_name = "clusterIps"]; - * @return A list containing the clusterIps. - */ - public com.google.protobuf.ProtocolStringList - getClusterIpsList() { - return clusterIps_; - } - /** - *
-     * The cluster ips of the svc.
-     * 
- * - * repeated string cluster_ips = 3 [json_name = "clusterIps"]; - * @return The count of clusterIps. - */ - public int getClusterIpsCount() { - return clusterIps_.size(); - } - /** - *
-     * The cluster ips of the svc.
-     * 
- * - * repeated string cluster_ips = 3 [json_name = "clusterIps"]; - * @param index The index of the element to return. - * @return The clusterIps at the given index. - */ - public java.lang.String getClusterIps(int index) { - return clusterIps_.get(index); - } - /** - *
-     * The cluster ips of the svc.
-     * 
- * - * repeated string cluster_ips = 3 [json_name = "clusterIps"]; - * @param index The index of the value to return. - * @return The bytes of the clusterIps at the given index. - */ - public com.google.protobuf.ByteString - getClusterIpsBytes(int index) { - return clusterIps_.getByteString(index); - } - - public static final int PORTS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private java.util.List ports_; - /** - *
-     * The port of the svc.
-     * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - @java.lang.Override - public java.util.List getPortsList() { - return ports_; - } - /** - *
-     * The port of the svc.
-     * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - @java.lang.Override - public java.util.List - getPortsOrBuilderList() { - return ports_; - } - /** - *
-     * The port of the svc.
-     * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - @java.lang.Override - public int getPortsCount() { - return ports_.size(); - } - /** - *
-     * The port of the svc.
-     * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.ServicePort getPorts(int index) { - return ports_.get(index); - } - /** - *
-     * The port of the svc.
-     * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.ServicePortOrBuilder getPortsOrBuilder( - int index) { - return ports_.get(index); - } - - public static final int LABELS_FIELD_NUMBER = 5; - private org.vdaas.vald.api.v1.payload.Info.Labels labels_; - /** - *
-     * The labels of the service.
-     * 
- * - * .payload.v1.Info.Labels labels = 5 [json_name = "labels"]; - * @return Whether the labels field is set. - */ - @java.lang.Override - public boolean hasLabels() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The labels of the service.
-     * 
- * - * .payload.v1.Info.Labels labels = 5 [json_name = "labels"]; - * @return The labels. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Labels getLabels() { - return labels_ == null ? org.vdaas.vald.api.v1.payload.Info.Labels.getDefaultInstance() : labels_; - } - /** - *
-     * The labels of the service.
-     * 
- * - * .payload.v1.Info.Labels labels = 5 [json_name = "labels"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.LabelsOrBuilder getLabelsOrBuilder() { - return labels_ == null ? org.vdaas.vald.api.v1.payload.Info.Labels.getDefaultInstance() : labels_; - } - - public static final int ANNOTATIONS_FIELD_NUMBER = 6; - private org.vdaas.vald.api.v1.payload.Info.Annotations annotations_; - /** - *
-     * The annotations of the service.
-     * 
- * - * .payload.v1.Info.Annotations annotations = 6 [json_name = "annotations"]; - * @return Whether the annotations field is set. - */ - @java.lang.Override - public boolean hasAnnotations() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * The annotations of the service.
-     * 
- * - * .payload.v1.Info.Annotations annotations = 6 [json_name = "annotations"]; - * @return The annotations. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Annotations getAnnotations() { - return annotations_ == null ? org.vdaas.vald.api.v1.payload.Info.Annotations.getDefaultInstance() : annotations_; - } - /** - *
-     * The annotations of the service.
-     * 
- * - * .payload.v1.Info.Annotations annotations = 6 [json_name = "annotations"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.AnnotationsOrBuilder getAnnotationsOrBuilder() { - return annotations_ == null ? org.vdaas.vald.api.v1.payload.Info.Annotations.getDefaultInstance() : annotations_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIp_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterIp_); - } - for (int i = 0; i < clusterIps_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterIps_.getRaw(i)); - } - for (int i = 0; i < ports_.size(); i++) { - output.writeMessage(4, ports_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getLabels()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(6, getAnnotations()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIp_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterIp_); - } - { - int dataSize = 0; - for (int i = 0; i < clusterIps_.size(); i++) { - dataSize += computeStringSizeNoTag(clusterIps_.getRaw(i)); - } - size += dataSize; - size += 1 * getClusterIpsList().size(); - } - for (int i = 0; i < ports_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, ports_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getLabels()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getAnnotations()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Info.Service)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Info.Service other = (org.vdaas.vald.api.v1.payload.Info.Service) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getClusterIp() - .equals(other.getClusterIp())) return false; - if (!getClusterIpsList() - .equals(other.getClusterIpsList())) return false; - if (!getPortsList() - .equals(other.getPortsList())) return false; - if (hasLabels() != other.hasLabels()) return false; - if (hasLabels()) { - if (!getLabels() - .equals(other.getLabels())) return false; - } - if (hasAnnotations() != other.hasAnnotations()) return false; - if (hasAnnotations()) { - if (!getAnnotations() - .equals(other.getAnnotations())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + CLUSTER_IP_FIELD_NUMBER; - hash = (53 * hash) + getClusterIp().hashCode(); - if (getClusterIpsCount() > 0) { - hash = (37 * hash) + CLUSTER_IPS_FIELD_NUMBER; - hash = (53 * hash) + getClusterIpsList().hashCode(); - } - if (getPortsCount() > 0) { - hash = (37 * hash) + PORTS_FIELD_NUMBER; - hash = (53 * hash) + getPortsList().hashCode(); - } - if (hasLabels()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + getLabels().hashCode(); - } - if (hasAnnotations()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + getAnnotations().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Info.Service parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Service parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Service parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Service parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Service parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Service parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Service parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Service 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 org.vdaas.vald.api.v1.payload.Info.Service parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Info.Service parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Service parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Service parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Info.Service prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the service information message.
-     * 
- * - * Protobuf type {@code payload.v1.Info.Service} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Info.Service) - org.vdaas.vald.api.v1.payload.Info.ServiceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Service_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Service_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Service.class, org.vdaas.vald.api.v1.payload.Info.Service.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Info.Service.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPortsFieldBuilder(); - getLabelsFieldBuilder(); - getAnnotationsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - clusterIp_ = ""; - clusterIps_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - if (portsBuilder_ == null) { - ports_ = java.util.Collections.emptyList(); - } else { - ports_ = null; - portsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - labels_ = null; - if (labelsBuilder_ != null) { - labelsBuilder_.dispose(); - labelsBuilder_ = null; - } - annotations_ = null; - if (annotationsBuilder_ != null) { - annotationsBuilder_.dispose(); - annotationsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Service_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Service getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Info.Service.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Service build() { - org.vdaas.vald.api.v1.payload.Info.Service result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Service buildPartial() { - org.vdaas.vald.api.v1.payload.Info.Service result = new org.vdaas.vald.api.v1.payload.Info.Service(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Info.Service result) { - if (portsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - ports_ = java.util.Collections.unmodifiableList(ports_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.ports_ = ports_; - } else { - result.ports_ = portsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Info.Service result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.clusterIp_ = clusterIp_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - clusterIps_.makeImmutable(); - result.clusterIps_ = clusterIps_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.labels_ = labelsBuilder_ == null - ? labels_ - : labelsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.annotations_ = annotationsBuilder_ == null - ? annotations_ - : annotationsBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Info.Service) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Info.Service)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Info.Service other) { - if (other == org.vdaas.vald.api.v1.payload.Info.Service.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getClusterIp().isEmpty()) { - clusterIp_ = other.clusterIp_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.clusterIps_.isEmpty()) { - if (clusterIps_.isEmpty()) { - clusterIps_ = other.clusterIps_; - bitField0_ |= 0x00000004; - } else { - ensureClusterIpsIsMutable(); - clusterIps_.addAll(other.clusterIps_); - } - onChanged(); - } - if (portsBuilder_ == null) { - if (!other.ports_.isEmpty()) { - if (ports_.isEmpty()) { - ports_ = other.ports_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensurePortsIsMutable(); - ports_.addAll(other.ports_); - } - onChanged(); - } - } else { - if (!other.ports_.isEmpty()) { - if (portsBuilder_.isEmpty()) { - portsBuilder_.dispose(); - portsBuilder_ = null; - ports_ = other.ports_; - bitField0_ = (bitField0_ & ~0x00000008); - portsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPortsFieldBuilder() : null; - } else { - portsBuilder_.addAllMessages(other.ports_); - } - } - } - if (other.hasLabels()) { - mergeLabels(other.getLabels()); - } - if (other.hasAnnotations()) { - mergeAnnotations(other.getAnnotations()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - clusterIp_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureClusterIpsIsMutable(); - clusterIps_.add(s); - break; - } // case 26 - case 34: { - org.vdaas.vald.api.v1.payload.Info.ServicePort m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Info.ServicePort.parser(), - extensionRegistry); - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - ports_.add(m); - } else { - portsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: { - input.readMessage( - getLabelsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getAnnotationsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-       * The name of the svc.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The name of the svc.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The name of the svc.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The name of the svc.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The name of the svc.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object clusterIp_ = ""; - /** - *
-       * The cluster ip of the svc.
-       * 
- * - * string cluster_ip = 2 [json_name = "clusterIp"]; - * @return The clusterIp. - */ - public java.lang.String getClusterIp() { - java.lang.Object ref = clusterIp_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterIp_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The cluster ip of the svc.
-       * 
- * - * string cluster_ip = 2 [json_name = "clusterIp"]; - * @return The bytes for clusterIp. - */ - public com.google.protobuf.ByteString - getClusterIpBytes() { - java.lang.Object ref = clusterIp_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterIp_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The cluster ip of the svc.
-       * 
- * - * string cluster_ip = 2 [json_name = "clusterIp"]; - * @param value The clusterIp to set. - * @return This builder for chaining. - */ - public Builder setClusterIp( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - clusterIp_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The cluster ip of the svc.
-       * 
- * - * string cluster_ip = 2 [json_name = "clusterIp"]; - * @return This builder for chaining. - */ - public Builder clearClusterIp() { - clusterIp_ = getDefaultInstance().getClusterIp(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * The cluster ip of the svc.
-       * 
- * - * string cluster_ip = 2 [json_name = "clusterIp"]; - * @param value The bytes for clusterIp to set. - * @return This builder for chaining. - */ - public Builder setClusterIpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - clusterIp_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList clusterIps_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureClusterIpsIsMutable() { - if (!clusterIps_.isModifiable()) { - clusterIps_ = new com.google.protobuf.LazyStringArrayList(clusterIps_); - } - bitField0_ |= 0x00000004; - } - /** - *
-       * The cluster ips of the svc.
-       * 
- * - * repeated string cluster_ips = 3 [json_name = "clusterIps"]; - * @return A list containing the clusterIps. - */ - public com.google.protobuf.ProtocolStringList - getClusterIpsList() { - clusterIps_.makeImmutable(); - return clusterIps_; - } - /** - *
-       * The cluster ips of the svc.
-       * 
- * - * repeated string cluster_ips = 3 [json_name = "clusterIps"]; - * @return The count of clusterIps. - */ - public int getClusterIpsCount() { - return clusterIps_.size(); - } - /** - *
-       * The cluster ips of the svc.
-       * 
- * - * repeated string cluster_ips = 3 [json_name = "clusterIps"]; - * @param index The index of the element to return. - * @return The clusterIps at the given index. - */ - public java.lang.String getClusterIps(int index) { - return clusterIps_.get(index); - } - /** - *
-       * The cluster ips of the svc.
-       * 
- * - * repeated string cluster_ips = 3 [json_name = "clusterIps"]; - * @param index The index of the value to return. - * @return The bytes of the clusterIps at the given index. - */ - public com.google.protobuf.ByteString - getClusterIpsBytes(int index) { - return clusterIps_.getByteString(index); - } - /** - *
-       * The cluster ips of the svc.
-       * 
- * - * repeated string cluster_ips = 3 [json_name = "clusterIps"]; - * @param index The index to set the value at. - * @param value The clusterIps to set. - * @return This builder for chaining. - */ - public Builder setClusterIps( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureClusterIpsIsMutable(); - clusterIps_.set(index, value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * The cluster ips of the svc.
-       * 
- * - * repeated string cluster_ips = 3 [json_name = "clusterIps"]; - * @param value The clusterIps to add. - * @return This builder for chaining. - */ - public Builder addClusterIps( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureClusterIpsIsMutable(); - clusterIps_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * The cluster ips of the svc.
-       * 
- * - * repeated string cluster_ips = 3 [json_name = "clusterIps"]; - * @param values The clusterIps to add. - * @return This builder for chaining. - */ - public Builder addAllClusterIps( - java.lang.Iterable values) { - ensureClusterIpsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, clusterIps_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * The cluster ips of the svc.
-       * 
- * - * repeated string cluster_ips = 3 [json_name = "clusterIps"]; - * @return This builder for chaining. - */ - public Builder clearClusterIps() { - clusterIps_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; - onChanged(); - return this; - } - /** - *
-       * The cluster ips of the svc.
-       * 
- * - * repeated string cluster_ips = 3 [json_name = "clusterIps"]; - * @param value The bytes of the clusterIps to add. - * @return This builder for chaining. - */ - public Builder addClusterIpsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureClusterIpsIsMutable(); - clusterIps_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.util.List ports_ = - java.util.Collections.emptyList(); - private void ensurePortsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - ports_ = new java.util.ArrayList(ports_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.ServicePort, org.vdaas.vald.api.v1.payload.Info.ServicePort.Builder, org.vdaas.vald.api.v1.payload.Info.ServicePortOrBuilder> portsBuilder_; - - /** - *
-       * The port of the svc.
-       * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - public java.util.List getPortsList() { - if (portsBuilder_ == null) { - return java.util.Collections.unmodifiableList(ports_); - } else { - return portsBuilder_.getMessageList(); - } - } - /** - *
-       * The port of the svc.
-       * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - public int getPortsCount() { - if (portsBuilder_ == null) { - return ports_.size(); - } else { - return portsBuilder_.getCount(); - } - } - /** - *
-       * The port of the svc.
-       * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - public org.vdaas.vald.api.v1.payload.Info.ServicePort getPorts(int index) { - if (portsBuilder_ == null) { - return ports_.get(index); - } else { - return portsBuilder_.getMessage(index); - } - } - /** - *
-       * The port of the svc.
-       * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - public Builder setPorts( - int index, org.vdaas.vald.api.v1.payload.Info.ServicePort value) { - if (portsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePortsIsMutable(); - ports_.set(index, value); - onChanged(); - } else { - portsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The port of the svc.
-       * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - public Builder setPorts( - int index, org.vdaas.vald.api.v1.payload.Info.ServicePort.Builder builderForValue) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - ports_.set(index, builderForValue.build()); - onChanged(); - } else { - portsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The port of the svc.
-       * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - public Builder addPorts(org.vdaas.vald.api.v1.payload.Info.ServicePort value) { - if (portsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePortsIsMutable(); - ports_.add(value); - onChanged(); - } else { - portsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The port of the svc.
-       * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - public Builder addPorts( - int index, org.vdaas.vald.api.v1.payload.Info.ServicePort value) { - if (portsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePortsIsMutable(); - ports_.add(index, value); - onChanged(); - } else { - portsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The port of the svc.
-       * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - public Builder addPorts( - org.vdaas.vald.api.v1.payload.Info.ServicePort.Builder builderForValue) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - ports_.add(builderForValue.build()); - onChanged(); - } else { - portsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The port of the svc.
-       * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - public Builder addPorts( - int index, org.vdaas.vald.api.v1.payload.Info.ServicePort.Builder builderForValue) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - ports_.add(index, builderForValue.build()); - onChanged(); - } else { - portsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The port of the svc.
-       * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - public Builder addAllPorts( - java.lang.Iterable values) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ports_); - onChanged(); - } else { - portsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The port of the svc.
-       * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - public Builder clearPorts() { - if (portsBuilder_ == null) { - ports_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - portsBuilder_.clear(); - } - return this; - } - /** - *
-       * The port of the svc.
-       * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - public Builder removePorts(int index) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - ports_.remove(index); - onChanged(); - } else { - portsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The port of the svc.
-       * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - public org.vdaas.vald.api.v1.payload.Info.ServicePort.Builder getPortsBuilder( - int index) { - return getPortsFieldBuilder().getBuilder(index); - } - /** - *
-       * The port of the svc.
-       * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - public org.vdaas.vald.api.v1.payload.Info.ServicePortOrBuilder getPortsOrBuilder( - int index) { - if (portsBuilder_ == null) { - return ports_.get(index); } else { - return portsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The port of the svc.
-       * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - public java.util.List - getPortsOrBuilderList() { - if (portsBuilder_ != null) { - return portsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(ports_); - } - } - /** - *
-       * The port of the svc.
-       * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - public org.vdaas.vald.api.v1.payload.Info.ServicePort.Builder addPortsBuilder() { - return getPortsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Info.ServicePort.getDefaultInstance()); - } - /** - *
-       * The port of the svc.
-       * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - public org.vdaas.vald.api.v1.payload.Info.ServicePort.Builder addPortsBuilder( - int index) { - return getPortsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Info.ServicePort.getDefaultInstance()); - } - /** - *
-       * The port of the svc.
-       * 
- * - * repeated .payload.v1.Info.ServicePort ports = 4 [json_name = "ports"]; - */ - public java.util.List - getPortsBuilderList() { - return getPortsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.ServicePort, org.vdaas.vald.api.v1.payload.Info.ServicePort.Builder, org.vdaas.vald.api.v1.payload.Info.ServicePortOrBuilder> - getPortsFieldBuilder() { - if (portsBuilder_ == null) { - portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.ServicePort, org.vdaas.vald.api.v1.payload.Info.ServicePort.Builder, org.vdaas.vald.api.v1.payload.Info.ServicePortOrBuilder>( - ports_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - ports_ = null; - } - return portsBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Info.Labels labels_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Labels, org.vdaas.vald.api.v1.payload.Info.Labels.Builder, org.vdaas.vald.api.v1.payload.Info.LabelsOrBuilder> labelsBuilder_; - /** - *
-       * The labels of the service.
-       * 
- * - * .payload.v1.Info.Labels labels = 5 [json_name = "labels"]; - * @return Whether the labels field is set. - */ - public boolean hasLabels() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-       * The labels of the service.
-       * 
- * - * .payload.v1.Info.Labels labels = 5 [json_name = "labels"]; - * @return The labels. - */ - public org.vdaas.vald.api.v1.payload.Info.Labels getLabels() { - if (labelsBuilder_ == null) { - return labels_ == null ? org.vdaas.vald.api.v1.payload.Info.Labels.getDefaultInstance() : labels_; - } else { - return labelsBuilder_.getMessage(); - } - } - /** - *
-       * The labels of the service.
-       * 
- * - * .payload.v1.Info.Labels labels = 5 [json_name = "labels"]; - */ - public Builder setLabels(org.vdaas.vald.api.v1.payload.Info.Labels value) { - if (labelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - labels_ = value; - } else { - labelsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-       * The labels of the service.
-       * 
- * - * .payload.v1.Info.Labels labels = 5 [json_name = "labels"]; - */ - public Builder setLabels( - org.vdaas.vald.api.v1.payload.Info.Labels.Builder builderForValue) { - if (labelsBuilder_ == null) { - labels_ = builderForValue.build(); - } else { - labelsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-       * The labels of the service.
-       * 
- * - * .payload.v1.Info.Labels labels = 5 [json_name = "labels"]; - */ - public Builder mergeLabels(org.vdaas.vald.api.v1.payload.Info.Labels value) { - if (labelsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - labels_ != null && - labels_ != org.vdaas.vald.api.v1.payload.Info.Labels.getDefaultInstance()) { - getLabelsBuilder().mergeFrom(value); - } else { - labels_ = value; - } - } else { - labelsBuilder_.mergeFrom(value); - } - if (labels_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - *
-       * The labels of the service.
-       * 
- * - * .payload.v1.Info.Labels labels = 5 [json_name = "labels"]; - */ - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000010); - labels_ = null; - if (labelsBuilder_ != null) { - labelsBuilder_.dispose(); - labelsBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The labels of the service.
-       * 
- * - * .payload.v1.Info.Labels labels = 5 [json_name = "labels"]; - */ - public org.vdaas.vald.api.v1.payload.Info.Labels.Builder getLabelsBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getLabelsFieldBuilder().getBuilder(); - } - /** - *
-       * The labels of the service.
-       * 
- * - * .payload.v1.Info.Labels labels = 5 [json_name = "labels"]; - */ - public org.vdaas.vald.api.v1.payload.Info.LabelsOrBuilder getLabelsOrBuilder() { - if (labelsBuilder_ != null) { - return labelsBuilder_.getMessageOrBuilder(); - } else { - return labels_ == null ? - org.vdaas.vald.api.v1.payload.Info.Labels.getDefaultInstance() : labels_; - } - } - /** - *
-       * The labels of the service.
-       * 
- * - * .payload.v1.Info.Labels labels = 5 [json_name = "labels"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Labels, org.vdaas.vald.api.v1.payload.Info.Labels.Builder, org.vdaas.vald.api.v1.payload.Info.LabelsOrBuilder> - getLabelsFieldBuilder() { - if (labelsBuilder_ == null) { - labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Labels, org.vdaas.vald.api.v1.payload.Info.Labels.Builder, org.vdaas.vald.api.v1.payload.Info.LabelsOrBuilder>( - getLabels(), - getParentForChildren(), - isClean()); - labels_ = null; - } - return labelsBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Info.Annotations annotations_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Annotations, org.vdaas.vald.api.v1.payload.Info.Annotations.Builder, org.vdaas.vald.api.v1.payload.Info.AnnotationsOrBuilder> annotationsBuilder_; - /** - *
-       * The annotations of the service.
-       * 
- * - * .payload.v1.Info.Annotations annotations = 6 [json_name = "annotations"]; - * @return Whether the annotations field is set. - */ - public boolean hasAnnotations() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-       * The annotations of the service.
-       * 
- * - * .payload.v1.Info.Annotations annotations = 6 [json_name = "annotations"]; - * @return The annotations. - */ - public org.vdaas.vald.api.v1.payload.Info.Annotations getAnnotations() { - if (annotationsBuilder_ == null) { - return annotations_ == null ? org.vdaas.vald.api.v1.payload.Info.Annotations.getDefaultInstance() : annotations_; - } else { - return annotationsBuilder_.getMessage(); - } - } - /** - *
-       * The annotations of the service.
-       * 
- * - * .payload.v1.Info.Annotations annotations = 6 [json_name = "annotations"]; - */ - public Builder setAnnotations(org.vdaas.vald.api.v1.payload.Info.Annotations value) { - if (annotationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - annotations_ = value; - } else { - annotationsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-       * The annotations of the service.
-       * 
- * - * .payload.v1.Info.Annotations annotations = 6 [json_name = "annotations"]; - */ - public Builder setAnnotations( - org.vdaas.vald.api.v1.payload.Info.Annotations.Builder builderForValue) { - if (annotationsBuilder_ == null) { - annotations_ = builderForValue.build(); - } else { - annotationsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-       * The annotations of the service.
-       * 
- * - * .payload.v1.Info.Annotations annotations = 6 [json_name = "annotations"]; - */ - public Builder mergeAnnotations(org.vdaas.vald.api.v1.payload.Info.Annotations value) { - if (annotationsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - annotations_ != null && - annotations_ != org.vdaas.vald.api.v1.payload.Info.Annotations.getDefaultInstance()) { - getAnnotationsBuilder().mergeFrom(value); - } else { - annotations_ = value; - } - } else { - annotationsBuilder_.mergeFrom(value); - } - if (annotations_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; - } - /** - *
-       * The annotations of the service.
-       * 
- * - * .payload.v1.Info.Annotations annotations = 6 [json_name = "annotations"]; - */ - public Builder clearAnnotations() { - bitField0_ = (bitField0_ & ~0x00000020); - annotations_ = null; - if (annotationsBuilder_ != null) { - annotationsBuilder_.dispose(); - annotationsBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The annotations of the service.
-       * 
- * - * .payload.v1.Info.Annotations annotations = 6 [json_name = "annotations"]; - */ - public org.vdaas.vald.api.v1.payload.Info.Annotations.Builder getAnnotationsBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getAnnotationsFieldBuilder().getBuilder(); - } - /** - *
-       * The annotations of the service.
-       * 
- * - * .payload.v1.Info.Annotations annotations = 6 [json_name = "annotations"]; - */ - public org.vdaas.vald.api.v1.payload.Info.AnnotationsOrBuilder getAnnotationsOrBuilder() { - if (annotationsBuilder_ != null) { - return annotationsBuilder_.getMessageOrBuilder(); - } else { - return annotations_ == null ? - org.vdaas.vald.api.v1.payload.Info.Annotations.getDefaultInstance() : annotations_; - } - } - /** - *
-       * The annotations of the service.
-       * 
- * - * .payload.v1.Info.Annotations annotations = 6 [json_name = "annotations"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Annotations, org.vdaas.vald.api.v1.payload.Info.Annotations.Builder, org.vdaas.vald.api.v1.payload.Info.AnnotationsOrBuilder> - getAnnotationsFieldBuilder() { - if (annotationsBuilder_ == null) { - annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Annotations, org.vdaas.vald.api.v1.payload.Info.Annotations.Builder, org.vdaas.vald.api.v1.payload.Info.AnnotationsOrBuilder>( - getAnnotations(), - getParentForChildren(), - isClean()); - annotations_ = null; - } - return annotationsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Info.Service) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Info.Service) - private static final org.vdaas.vald.api.v1.payload.Info.Service DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Info.Service(); - } - - public static org.vdaas.vald.api.v1.payload.Info.Service getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Service parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Service getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ServicePortOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Info.ServicePort) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The name of the port.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-     * The name of the port.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * The port number
-     * 
- * - * int32 port = 2 [json_name = "port"]; - * @return The port. - */ - int getPort(); - } - /** - *
-   * Represets the service port information message.
-   * 
- * - * Protobuf type {@code payload.v1.Info.ServicePort} - */ - public static final class ServicePort extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Info.ServicePort) - ServicePortOrBuilder { - private static final long serialVersionUID = 0L; - // Use ServicePort.newBuilder() to construct. - private ServicePort(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ServicePort() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ServicePort(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_ServicePort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_ServicePort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.ServicePort.class, org.vdaas.vald.api.v1.payload.Info.ServicePort.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-     * The name of the port.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * The name of the port.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PORT_FIELD_NUMBER = 2; - private int port_ = 0; - /** - *
-     * The port number
-     * 
- * - * int32 port = 2 [json_name = "port"]; - * @return The port. - */ - @java.lang.Override - public int getPort() { - return port_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (port_ != 0) { - output.writeInt32(2, port_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, port_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Info.ServicePort)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Info.ServicePort other = (org.vdaas.vald.api.v1.payload.Info.ServicePort) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getPort() - != other.getPort()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + PORT_FIELD_NUMBER; - hash = (53 * hash) + getPort(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Info.ServicePort parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.ServicePort parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.ServicePort parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.ServicePort parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.ServicePort parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.ServicePort parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.ServicePort parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.ServicePort 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 org.vdaas.vald.api.v1.payload.Info.ServicePort parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Info.ServicePort parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.ServicePort parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.ServicePort parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Info.ServicePort prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represets the service port information message.
-     * 
- * - * Protobuf type {@code payload.v1.Info.ServicePort} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Info.ServicePort) - org.vdaas.vald.api.v1.payload.Info.ServicePortOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_ServicePort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_ServicePort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.ServicePort.class, org.vdaas.vald.api.v1.payload.Info.ServicePort.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Info.ServicePort.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - port_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_ServicePort_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.ServicePort getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Info.ServicePort.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.ServicePort build() { - org.vdaas.vald.api.v1.payload.Info.ServicePort result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.ServicePort buildPartial() { - org.vdaas.vald.api.v1.payload.Info.ServicePort result = new org.vdaas.vald.api.v1.payload.Info.ServicePort(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Info.ServicePort result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.port_ = port_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Info.ServicePort) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Info.ServicePort)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Info.ServicePort other) { - if (other == org.vdaas.vald.api.v1.payload.Info.ServicePort.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPort() != 0) { - setPort(other.getPort()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - port_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-       * The name of the port.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The name of the port.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The name of the port.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The name of the port.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The name of the port.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int port_ ; - /** - *
-       * The port number
-       * 
- * - * int32 port = 2 [json_name = "port"]; - * @return The port. - */ - @java.lang.Override - public int getPort() { - return port_; - } - /** - *
-       * The port number
-       * 
- * - * int32 port = 2 [json_name = "port"]; - * @param value The port to set. - * @return This builder for chaining. - */ - public Builder setPort(int value) { - - port_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The port number
-       * 
- * - * int32 port = 2 [json_name = "port"]; - * @return This builder for chaining. - */ - public Builder clearPort() { - bitField0_ = (bitField0_ & ~0x00000002); - port_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Info.ServicePort) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Info.ServicePort) - private static final org.vdaas.vald.api.v1.payload.Info.ServicePort DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Info.ServicePort(); - } - - public static org.vdaas.vald.api.v1.payload.Info.ServicePort getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServicePort parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.ServicePort getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LabelsOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Info.Labels) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, string> labels = 1 [json_name = "labels"]; - */ - int getLabelsCount(); - /** - * map<string, string> labels = 1 [json_name = "labels"]; - */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getLabels(); - /** - * map<string, string> labels = 1 [json_name = "labels"]; - */ - java.util.Map - getLabelsMap(); - /** - * map<string, string> labels = 1 [json_name = "labels"]; - */ - /* nullable */ -java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<string, string> labels = 1 [json_name = "labels"]; - */ - java.lang.String getLabelsOrThrow( - java.lang.String key); - } - /** - *
-   * Represent the kubernetes labels.
-   * 
- * - * Protobuf type {@code payload.v1.Info.Labels} - */ - public static final class Labels extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Info.Labels) - LabelsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Labels.newBuilder() to construct. - private Labels(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Labels() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Labels(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Labels_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Labels_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Labels.class, org.vdaas.vald.api.v1.payload.Info.Labels.Builder.class); - } - - public static final int LABELS_FIELD_NUMBER = 1; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Labels_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * map<string, string> labels = 1 [json_name = "labels"]; - */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetLabels().getMap().containsKey(key); - } - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * map<string, string> labels = 1 [json_name = "labels"]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * map<string, string> labels = 1 [json_name = "labels"]; - */ - @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ -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; - } - /** - * map<string, string> labels = 1 [json_name = "labels"]; - */ - @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(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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(1, labels__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Info.Labels)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Info.Labels other = (org.vdaas.vald.api.v1.payload.Info.Labels) obj; - - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Info.Labels parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Labels parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Labels parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Labels parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Labels parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Labels parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Labels parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Labels 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 org.vdaas.vald.api.v1.payload.Info.Labels parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Info.Labels parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Labels parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Labels parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Info.Labels prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the kubernetes labels.
-     * 
- * - * Protobuf type {@code payload.v1.Info.Labels} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Info.Labels) - org.vdaas.vald.api.v1.payload.Info.LabelsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Labels_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Labels_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Labels.class, org.vdaas.vald.api.v1.payload.Info.Labels.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Info.Labels.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableLabels().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Labels_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Labels getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Info.Labels.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Labels build() { - org.vdaas.vald.api.v1.payload.Info.Labels result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Labels buildPartial() { - org.vdaas.vald.api.v1.payload.Info.Labels result = new org.vdaas.vald.api.v1.payload.Info.Labels(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Info.Labels result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Info.Labels) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Info.Labels)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Info.Labels other) { - if (other == org.vdaas.vald.api.v1.payload.Info.Labels.getDefaultInstance()) return this; - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); - bitField0_ |= 0x00000001; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - 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 labels_; - } - private com.google.protobuf.MapField - internalGetMutableLabels() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return labels_; - } - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * map<string, string> labels = 1 [json_name = "labels"]; - */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetLabels().getMap().containsKey(key); - } - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * map<string, string> labels = 1 [json_name = "labels"]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * map<string, string> labels = 1 [json_name = "labels"]; - */ - @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ -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; - } - /** - * map<string, string> labels = 1 [json_name = "labels"]; - */ - @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(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableLabels().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> labels = 1 [json_name = "labels"]; - */ - 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. - */ - @java.lang.Deprecated - public java.util.Map - getMutableLabels() { - bitField0_ |= 0x00000001; - return internalGetMutableLabels().getMutableMap(); - } - /** - * map<string, string> labels = 1 [json_name = "labels"]; - */ - 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"); } - internalGetMutableLabels().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, string> labels = 1 [json_name = "labels"]; - */ - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Info.Labels) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Info.Labels) - private static final org.vdaas.vald.api.v1.payload.Info.Labels DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Info.Labels(); - } - - public static org.vdaas.vald.api.v1.payload.Info.Labels getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Labels parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Labels getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AnnotationsOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Info.Annotations) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, string> annotations = 1 [json_name = "annotations"]; - */ - int getAnnotationsCount(); - /** - * map<string, string> annotations = 1 [json_name = "annotations"]; - */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getAnnotations(); - /** - * map<string, string> annotations = 1 [json_name = "annotations"]; - */ - java.util.Map - getAnnotationsMap(); - /** - * map<string, string> annotations = 1 [json_name = "annotations"]; - */ - /* nullable */ -java.lang.String getAnnotationsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<string, string> annotations = 1 [json_name = "annotations"]; - */ - java.lang.String getAnnotationsOrThrow( - java.lang.String key); - } - /** - *
-   * Represent the kubernetes annotations.
-   * 
- * - * Protobuf type {@code payload.v1.Info.Annotations} - */ - public static final class Annotations extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Info.Annotations) - AnnotationsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Annotations.newBuilder() to construct. - private Annotations(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Annotations() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Annotations(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Annotations_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetAnnotations(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Annotations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Annotations.class, org.vdaas.vald.api.v1.payload.Info.Annotations.Builder.class); - } - - public static final int ANNOTATIONS_FIELD_NUMBER = 1; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Annotations_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - * map<string, string> annotations = 1 [json_name = "annotations"]; - */ - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - * map<string, string> annotations = 1 [json_name = "annotations"]; - */ - @java.lang.Override - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - * map<string, string> annotations = 1 [json_name = "annotations"]; - */ - @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> annotations = 1 [json_name = "annotations"]; - */ - @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, annotations__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Info.Annotations)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Info.Annotations other = (org.vdaas.vald.api.v1.payload.Info.Annotations) obj; - - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetAnnotations().getMap().isEmpty()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetAnnotations().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Info.Annotations parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Annotations parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Annotations parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Annotations parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Annotations parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Annotations parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Annotations parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Annotations 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 org.vdaas.vald.api.v1.payload.Info.Annotations parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Info.Annotations parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Annotations parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Annotations parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Info.Annotations prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the kubernetes annotations.
-     * 
- * - * Protobuf type {@code payload.v1.Info.Annotations} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Info.Annotations) - org.vdaas.vald.api.v1.payload.Info.AnnotationsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Annotations_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetAnnotations(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableAnnotations(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Annotations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Annotations.class, org.vdaas.vald.api.v1.payload.Info.Annotations.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Info.Annotations.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableAnnotations().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Annotations_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Annotations getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Info.Annotations.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Annotations build() { - org.vdaas.vald.api.v1.payload.Info.Annotations result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Annotations buildPartial() { - org.vdaas.vald.api.v1.payload.Info.Annotations result = new org.vdaas.vald.api.v1.payload.Info.Annotations(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Info.Annotations result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.annotations_ = internalGetAnnotations(); - result.annotations_.makeImmutable(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Info.Annotations) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Info.Annotations)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Info.Annotations other) { - if (other == org.vdaas.vald.api.v1.payload.Info.Annotations.getDefaultInstance()) return this; - internalGetMutableAnnotations().mergeFrom( - other.internalGetAnnotations()); - bitField0_ |= 0x00000001; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.MapEntry - annotations__ = input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableAnnotations().getMutableMap().put( - annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - private com.google.protobuf.MapField - internalGetMutableAnnotations() { - if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - if (!annotations_.isMutable()) { - annotations_ = annotations_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return annotations_; - } - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - * map<string, string> annotations = 1 [json_name = "annotations"]; - */ - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - * map<string, string> annotations = 1 [json_name = "annotations"]; - */ - @java.lang.Override - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - * map<string, string> annotations = 1 [json_name = "annotations"]; - */ - @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> annotations = 1 [json_name = "annotations"]; - */ - @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearAnnotations() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableAnnotations().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> annotations = 1 [json_name = "annotations"]; - */ - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { - bitField0_ |= 0x00000001; - return internalGetMutableAnnotations().getMutableMap(); - } - /** - * map<string, string> annotations = 1 [json_name = "annotations"]; - */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, string> annotations = 1 [json_name = "annotations"]; - */ - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Info.Annotations) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Info.Annotations) - private static final org.vdaas.vald.api.v1.payload.Info.Annotations DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Info.Annotations(); - } - - public static org.vdaas.vald.api.v1.payload.Info.Annotations getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Annotations parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Annotations getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CPUOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Info.CPU) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The CPU resource limit.
-     * 
- * - * double limit = 1 [json_name = "limit"]; - * @return The limit. - */ - double getLimit(); - - /** - *
-     * The CPU resource requested.
-     * 
- * - * double request = 2 [json_name = "request"]; - * @return The request. - */ - double getRequest(); - - /** - *
-     * The CPU usage.
-     * 
- * - * double usage = 3 [json_name = "usage"]; - * @return The usage. - */ - double getUsage(); - } - /** - *
-   * Represent the CPU information message.
-   * 
- * - * Protobuf type {@code payload.v1.Info.CPU} - */ - public static final class CPU extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Info.CPU) - CPUOrBuilder { - private static final long serialVersionUID = 0L; - // Use CPU.newBuilder() to construct. - private CPU(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CPU() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CPU(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_CPU_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_CPU_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.CPU.class, org.vdaas.vald.api.v1.payload.Info.CPU.Builder.class); - } - - public static final int LIMIT_FIELD_NUMBER = 1; - private double limit_ = 0D; - /** - *
-     * The CPU resource limit.
-     * 
- * - * double limit = 1 [json_name = "limit"]; - * @return The limit. - */ - @java.lang.Override - public double getLimit() { - return limit_; - } - - public static final int REQUEST_FIELD_NUMBER = 2; - private double request_ = 0D; - /** - *
-     * The CPU resource requested.
-     * 
- * - * double request = 2 [json_name = "request"]; - * @return The request. - */ - @java.lang.Override - public double getRequest() { - return request_; - } - - public static final int USAGE_FIELD_NUMBER = 3; - private double usage_ = 0D; - /** - *
-     * The CPU usage.
-     * 
- * - * double usage = 3 [json_name = "usage"]; - * @return The usage. - */ - @java.lang.Override - public double getUsage() { - return usage_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (java.lang.Double.doubleToRawLongBits(limit_) != 0) { - output.writeDouble(1, limit_); - } - if (java.lang.Double.doubleToRawLongBits(request_) != 0) { - output.writeDouble(2, request_); - } - if (java.lang.Double.doubleToRawLongBits(usage_) != 0) { - output.writeDouble(3, usage_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(limit_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, limit_); - } - if (java.lang.Double.doubleToRawLongBits(request_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, request_); - } - if (java.lang.Double.doubleToRawLongBits(usage_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, usage_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Info.CPU)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Info.CPU other = (org.vdaas.vald.api.v1.payload.Info.CPU) obj; - - if (java.lang.Double.doubleToLongBits(getLimit()) - != java.lang.Double.doubleToLongBits( - other.getLimit())) return false; - if (java.lang.Double.doubleToLongBits(getRequest()) - != java.lang.Double.doubleToLongBits( - other.getRequest())) return false; - if (java.lang.Double.doubleToLongBits(getUsage()) - != java.lang.Double.doubleToLongBits( - other.getUsage())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getLimit())); - hash = (37 * hash) + REQUEST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getRequest())); - hash = (37 * hash) + USAGE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getUsage())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Info.CPU parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.CPU parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.CPU parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.CPU parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.CPU parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.CPU parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.CPU parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.CPU 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 org.vdaas.vald.api.v1.payload.Info.CPU parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Info.CPU parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.CPU parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.CPU parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Info.CPU prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the CPU information message.
-     * 
- * - * Protobuf type {@code payload.v1.Info.CPU} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Info.CPU) - org.vdaas.vald.api.v1.payload.Info.CPUOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_CPU_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_CPU_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.CPU.class, org.vdaas.vald.api.v1.payload.Info.CPU.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Info.CPU.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - limit_ = 0D; - request_ = 0D; - usage_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_CPU_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.CPU getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Info.CPU.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.CPU build() { - org.vdaas.vald.api.v1.payload.Info.CPU result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.CPU buildPartial() { - org.vdaas.vald.api.v1.payload.Info.CPU result = new org.vdaas.vald.api.v1.payload.Info.CPU(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Info.CPU result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.limit_ = limit_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.request_ = request_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.usage_ = usage_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Info.CPU) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Info.CPU)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Info.CPU other) { - if (other == org.vdaas.vald.api.v1.payload.Info.CPU.getDefaultInstance()) return this; - if (other.getLimit() != 0D) { - setLimit(other.getLimit()); - } - if (other.getRequest() != 0D) { - setRequest(other.getRequest()); - } - if (other.getUsage() != 0D) { - setUsage(other.getUsage()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 9: { - limit_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - case 17: { - request_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - case 25: { - usage_ = input.readDouble(); - bitField0_ |= 0x00000004; - break; - } // case 25 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private double limit_ ; - /** - *
-       * The CPU resource limit.
-       * 
- * - * double limit = 1 [json_name = "limit"]; - * @return The limit. - */ - @java.lang.Override - public double getLimit() { - return limit_; - } - /** - *
-       * The CPU resource limit.
-       * 
- * - * double limit = 1 [json_name = "limit"]; - * @param value The limit to set. - * @return This builder for chaining. - */ - public Builder setLimit(double value) { - - limit_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The CPU resource limit.
-       * 
- * - * double limit = 1 [json_name = "limit"]; - * @return This builder for chaining. - */ - public Builder clearLimit() { - bitField0_ = (bitField0_ & ~0x00000001); - limit_ = 0D; - onChanged(); - return this; - } - - private double request_ ; - /** - *
-       * The CPU resource requested.
-       * 
- * - * double request = 2 [json_name = "request"]; - * @return The request. - */ - @java.lang.Override - public double getRequest() { - return request_; - } - /** - *
-       * The CPU resource requested.
-       * 
- * - * double request = 2 [json_name = "request"]; - * @param value The request to set. - * @return This builder for chaining. - */ - public Builder setRequest(double value) { - - request_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The CPU resource requested.
-       * 
- * - * double request = 2 [json_name = "request"]; - * @return This builder for chaining. - */ - public Builder clearRequest() { - bitField0_ = (bitField0_ & ~0x00000002); - request_ = 0D; - onChanged(); - return this; - } - - private double usage_ ; - /** - *
-       * The CPU usage.
-       * 
- * - * double usage = 3 [json_name = "usage"]; - * @return The usage. - */ - @java.lang.Override - public double getUsage() { - return usage_; - } - /** - *
-       * The CPU usage.
-       * 
- * - * double usage = 3 [json_name = "usage"]; - * @param value The usage to set. - * @return This builder for chaining. - */ - public Builder setUsage(double value) { - - usage_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * The CPU usage.
-       * 
- * - * double usage = 3 [json_name = "usage"]; - * @return This builder for chaining. - */ - public Builder clearUsage() { - bitField0_ = (bitField0_ & ~0x00000004); - usage_ = 0D; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Info.CPU) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Info.CPU) - private static final org.vdaas.vald.api.v1.payload.Info.CPU DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Info.CPU(); - } - - public static org.vdaas.vald.api.v1.payload.Info.CPU getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CPU parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.CPU getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MemoryOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Info.Memory) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The memory limit.
-     * 
- * - * double limit = 1 [json_name = "limit"]; - * @return The limit. - */ - double getLimit(); - - /** - *
-     * The memory requested.
-     * 
- * - * double request = 2 [json_name = "request"]; - * @return The request. - */ - double getRequest(); - - /** - *
-     * The memory usage.
-     * 
- * - * double usage = 3 [json_name = "usage"]; - * @return The usage. - */ - double getUsage(); - } - /** - *
-   * Represent the memory information message.
-   * 
- * - * Protobuf type {@code payload.v1.Info.Memory} - */ - public static final class Memory extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Info.Memory) - MemoryOrBuilder { - private static final long serialVersionUID = 0L; - // Use Memory.newBuilder() to construct. - private Memory(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Memory() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Memory(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Memory_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Memory_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Memory.class, org.vdaas.vald.api.v1.payload.Info.Memory.Builder.class); - } - - public static final int LIMIT_FIELD_NUMBER = 1; - private double limit_ = 0D; - /** - *
-     * The memory limit.
-     * 
- * - * double limit = 1 [json_name = "limit"]; - * @return The limit. - */ - @java.lang.Override - public double getLimit() { - return limit_; - } - - public static final int REQUEST_FIELD_NUMBER = 2; - private double request_ = 0D; - /** - *
-     * The memory requested.
-     * 
- * - * double request = 2 [json_name = "request"]; - * @return The request. - */ - @java.lang.Override - public double getRequest() { - return request_; - } - - public static final int USAGE_FIELD_NUMBER = 3; - private double usage_ = 0D; - /** - *
-     * The memory usage.
-     * 
- * - * double usage = 3 [json_name = "usage"]; - * @return The usage. - */ - @java.lang.Override - public double getUsage() { - return usage_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (java.lang.Double.doubleToRawLongBits(limit_) != 0) { - output.writeDouble(1, limit_); - } - if (java.lang.Double.doubleToRawLongBits(request_) != 0) { - output.writeDouble(2, request_); - } - if (java.lang.Double.doubleToRawLongBits(usage_) != 0) { - output.writeDouble(3, usage_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(limit_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, limit_); - } - if (java.lang.Double.doubleToRawLongBits(request_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, request_); - } - if (java.lang.Double.doubleToRawLongBits(usage_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, usage_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Info.Memory)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Info.Memory other = (org.vdaas.vald.api.v1.payload.Info.Memory) obj; - - if (java.lang.Double.doubleToLongBits(getLimit()) - != java.lang.Double.doubleToLongBits( - other.getLimit())) return false; - if (java.lang.Double.doubleToLongBits(getRequest()) - != java.lang.Double.doubleToLongBits( - other.getRequest())) return false; - if (java.lang.Double.doubleToLongBits(getUsage()) - != java.lang.Double.doubleToLongBits( - other.getUsage())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getLimit())); - hash = (37 * hash) + REQUEST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getRequest())); - hash = (37 * hash) + USAGE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getUsage())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Info.Memory parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Memory parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Memory parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Memory parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Memory parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Memory parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Memory parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Memory 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 org.vdaas.vald.api.v1.payload.Info.Memory parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Info.Memory parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Memory parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Memory parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Info.Memory prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the memory information message.
-     * 
- * - * Protobuf type {@code payload.v1.Info.Memory} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Info.Memory) - org.vdaas.vald.api.v1.payload.Info.MemoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Memory_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Memory_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Memory.class, org.vdaas.vald.api.v1.payload.Info.Memory.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Info.Memory.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - limit_ = 0D; - request_ = 0D; - usage_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Memory_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Memory getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Info.Memory.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Memory build() { - org.vdaas.vald.api.v1.payload.Info.Memory result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Memory buildPartial() { - org.vdaas.vald.api.v1.payload.Info.Memory result = new org.vdaas.vald.api.v1.payload.Info.Memory(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Info.Memory result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.limit_ = limit_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.request_ = request_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.usage_ = usage_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Info.Memory) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Info.Memory)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Info.Memory other) { - if (other == org.vdaas.vald.api.v1.payload.Info.Memory.getDefaultInstance()) return this; - if (other.getLimit() != 0D) { - setLimit(other.getLimit()); - } - if (other.getRequest() != 0D) { - setRequest(other.getRequest()); - } - if (other.getUsage() != 0D) { - setUsage(other.getUsage()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 9: { - limit_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - case 17: { - request_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - case 25: { - usage_ = input.readDouble(); - bitField0_ |= 0x00000004; - break; - } // case 25 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private double limit_ ; - /** - *
-       * The memory limit.
-       * 
- * - * double limit = 1 [json_name = "limit"]; - * @return The limit. - */ - @java.lang.Override - public double getLimit() { - return limit_; - } - /** - *
-       * The memory limit.
-       * 
- * - * double limit = 1 [json_name = "limit"]; - * @param value The limit to set. - * @return This builder for chaining. - */ - public Builder setLimit(double value) { - - limit_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The memory limit.
-       * 
- * - * double limit = 1 [json_name = "limit"]; - * @return This builder for chaining. - */ - public Builder clearLimit() { - bitField0_ = (bitField0_ & ~0x00000001); - limit_ = 0D; - onChanged(); - return this; - } - - private double request_ ; - /** - *
-       * The memory requested.
-       * 
- * - * double request = 2 [json_name = "request"]; - * @return The request. - */ - @java.lang.Override - public double getRequest() { - return request_; - } - /** - *
-       * The memory requested.
-       * 
- * - * double request = 2 [json_name = "request"]; - * @param value The request to set. - * @return This builder for chaining. - */ - public Builder setRequest(double value) { - - request_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The memory requested.
-       * 
- * - * double request = 2 [json_name = "request"]; - * @return This builder for chaining. - */ - public Builder clearRequest() { - bitField0_ = (bitField0_ & ~0x00000002); - request_ = 0D; - onChanged(); - return this; - } - - private double usage_ ; - /** - *
-       * The memory usage.
-       * 
- * - * double usage = 3 [json_name = "usage"]; - * @return The usage. - */ - @java.lang.Override - public double getUsage() { - return usage_; - } - /** - *
-       * The memory usage.
-       * 
- * - * double usage = 3 [json_name = "usage"]; - * @param value The usage to set. - * @return This builder for chaining. - */ - public Builder setUsage(double value) { - - usage_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * The memory usage.
-       * 
- * - * double usage = 3 [json_name = "usage"]; - * @return This builder for chaining. - */ - public Builder clearUsage() { - bitField0_ = (bitField0_ & ~0x00000004); - usage_ = 0D; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Info.Memory) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Info.Memory) - private static final org.vdaas.vald.api.v1.payload.Info.Memory DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Info.Memory(); - } - - public static org.vdaas.vald.api.v1.payload.Info.Memory getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Memory parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Memory getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PodsOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Info.Pods) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The multiple pod information.
-     * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - java.util.List - getPodsList(); - /** - *
-     * The multiple pod information.
-     * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - org.vdaas.vald.api.v1.payload.Info.Pod getPods(int index); - /** - *
-     * The multiple pod information.
-     * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - int getPodsCount(); - /** - *
-     * The multiple pod information.
-     * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - java.util.List - getPodsOrBuilderList(); - /** - *
-     * The multiple pod information.
-     * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - org.vdaas.vald.api.v1.payload.Info.PodOrBuilder getPodsOrBuilder( - int index); - } - /** - *
-   * Represent the multiple pod information message.
-   * 
- * - * Protobuf type {@code payload.v1.Info.Pods} - */ - public static final class Pods extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Info.Pods) - PodsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Pods.newBuilder() to construct. - private Pods(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Pods() { - pods_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Pods(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Pods_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Pods_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Pods.class, org.vdaas.vald.api.v1.payload.Info.Pods.Builder.class); - } - - public static final int PODS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List pods_; - /** - *
-     * The multiple pod information.
-     * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List getPodsList() { - return pods_; - } - /** - *
-     * The multiple pod information.
-     * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List - getPodsOrBuilderList() { - return pods_; - } - /** - *
-     * The multiple pod information.
-     * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getPodsCount() { - return pods_.size(); - } - /** - *
-     * The multiple pod information.
-     * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Pod getPods(int index) { - return pods_.get(index); - } - /** - *
-     * The multiple pod information.
-     * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.PodOrBuilder getPodsOrBuilder( - int index) { - return pods_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < pods_.size(); i++) { - output.writeMessage(1, pods_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < pods_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, pods_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Info.Pods)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Info.Pods other = (org.vdaas.vald.api.v1.payload.Info.Pods) obj; - - if (!getPodsList() - .equals(other.getPodsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPodsCount() > 0) { - hash = (37 * hash) + PODS_FIELD_NUMBER; - hash = (53 * hash) + getPodsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Info.Pods parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Pods parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Pods parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Pods parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Pods parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Pods parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Pods parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Pods 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 org.vdaas.vald.api.v1.payload.Info.Pods parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Info.Pods parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Pods parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Pods parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Info.Pods prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the multiple pod information message.
-     * 
- * - * Protobuf type {@code payload.v1.Info.Pods} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Info.Pods) - org.vdaas.vald.api.v1.payload.Info.PodsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Pods_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Pods_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Pods.class, org.vdaas.vald.api.v1.payload.Info.Pods.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Info.Pods.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (podsBuilder_ == null) { - pods_ = java.util.Collections.emptyList(); - } else { - pods_ = null; - podsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Pods_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Pods getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Info.Pods.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Pods build() { - org.vdaas.vald.api.v1.payload.Info.Pods result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Pods buildPartial() { - org.vdaas.vald.api.v1.payload.Info.Pods result = new org.vdaas.vald.api.v1.payload.Info.Pods(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Info.Pods result) { - if (podsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - pods_ = java.util.Collections.unmodifiableList(pods_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.pods_ = pods_; - } else { - result.pods_ = podsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Info.Pods result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Info.Pods) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Info.Pods)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Info.Pods other) { - if (other == org.vdaas.vald.api.v1.payload.Info.Pods.getDefaultInstance()) return this; - if (podsBuilder_ == null) { - if (!other.pods_.isEmpty()) { - if (pods_.isEmpty()) { - pods_ = other.pods_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePodsIsMutable(); - pods_.addAll(other.pods_); - } - onChanged(); - } - } else { - if (!other.pods_.isEmpty()) { - if (podsBuilder_.isEmpty()) { - podsBuilder_.dispose(); - podsBuilder_ = null; - pods_ = other.pods_; - bitField0_ = (bitField0_ & ~0x00000001); - podsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPodsFieldBuilder() : null; - } else { - podsBuilder_.addAllMessages(other.pods_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Info.Pod m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Info.Pod.parser(), - extensionRegistry); - if (podsBuilder_ == null) { - ensurePodsIsMutable(); - pods_.add(m); - } else { - podsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List pods_ = - java.util.Collections.emptyList(); - private void ensurePodsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - pods_ = new java.util.ArrayList(pods_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Pod, org.vdaas.vald.api.v1.payload.Info.Pod.Builder, org.vdaas.vald.api.v1.payload.Info.PodOrBuilder> podsBuilder_; - - /** - *
-       * The multiple pod information.
-       * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - public java.util.List getPodsList() { - if (podsBuilder_ == null) { - return java.util.Collections.unmodifiableList(pods_); - } else { - return podsBuilder_.getMessageList(); - } - } - /** - *
-       * The multiple pod information.
-       * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - public int getPodsCount() { - if (podsBuilder_ == null) { - return pods_.size(); - } else { - return podsBuilder_.getCount(); - } - } - /** - *
-       * The multiple pod information.
-       * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Info.Pod getPods(int index) { - if (podsBuilder_ == null) { - return pods_.get(index); - } else { - return podsBuilder_.getMessage(index); - } - } - /** - *
-       * The multiple pod information.
-       * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - public Builder setPods( - int index, org.vdaas.vald.api.v1.payload.Info.Pod value) { - if (podsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePodsIsMutable(); - pods_.set(index, value); - onChanged(); - } else { - podsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The multiple pod information.
-       * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - public Builder setPods( - int index, org.vdaas.vald.api.v1.payload.Info.Pod.Builder builderForValue) { - if (podsBuilder_ == null) { - ensurePodsIsMutable(); - pods_.set(index, builderForValue.build()); - onChanged(); - } else { - podsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The multiple pod information.
-       * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - public Builder addPods(org.vdaas.vald.api.v1.payload.Info.Pod value) { - if (podsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePodsIsMutable(); - pods_.add(value); - onChanged(); - } else { - podsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The multiple pod information.
-       * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - public Builder addPods( - int index, org.vdaas.vald.api.v1.payload.Info.Pod value) { - if (podsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePodsIsMutable(); - pods_.add(index, value); - onChanged(); - } else { - podsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The multiple pod information.
-       * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - public Builder addPods( - org.vdaas.vald.api.v1.payload.Info.Pod.Builder builderForValue) { - if (podsBuilder_ == null) { - ensurePodsIsMutable(); - pods_.add(builderForValue.build()); - onChanged(); - } else { - podsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The multiple pod information.
-       * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - public Builder addPods( - int index, org.vdaas.vald.api.v1.payload.Info.Pod.Builder builderForValue) { - if (podsBuilder_ == null) { - ensurePodsIsMutable(); - pods_.add(index, builderForValue.build()); - onChanged(); - } else { - podsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The multiple pod information.
-       * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - public Builder addAllPods( - java.lang.Iterable values) { - if (podsBuilder_ == null) { - ensurePodsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pods_); - onChanged(); - } else { - podsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The multiple pod information.
-       * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - public Builder clearPods() { - if (podsBuilder_ == null) { - pods_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - podsBuilder_.clear(); - } - return this; - } - /** - *
-       * The multiple pod information.
-       * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - public Builder removePods(int index) { - if (podsBuilder_ == null) { - ensurePodsIsMutable(); - pods_.remove(index); - onChanged(); - } else { - podsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The multiple pod information.
-       * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Info.Pod.Builder getPodsBuilder( - int index) { - return getPodsFieldBuilder().getBuilder(index); - } - /** - *
-       * The multiple pod information.
-       * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Info.PodOrBuilder getPodsOrBuilder( - int index) { - if (podsBuilder_ == null) { - return pods_.get(index); } else { - return podsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The multiple pod information.
-       * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - public java.util.List - getPodsOrBuilderList() { - if (podsBuilder_ != null) { - return podsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(pods_); - } - } - /** - *
-       * The multiple pod information.
-       * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Info.Pod.Builder addPodsBuilder() { - return getPodsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Info.Pod.getDefaultInstance()); - } - /** - *
-       * The multiple pod information.
-       * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Info.Pod.Builder addPodsBuilder( - int index) { - return getPodsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Info.Pod.getDefaultInstance()); - } - /** - *
-       * The multiple pod information.
-       * 
- * - * repeated .payload.v1.Info.Pod pods = 1 [json_name = "pods", (.buf.validate.field) = { ... } - */ - public java.util.List - getPodsBuilderList() { - return getPodsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Pod, org.vdaas.vald.api.v1.payload.Info.Pod.Builder, org.vdaas.vald.api.v1.payload.Info.PodOrBuilder> - getPodsFieldBuilder() { - if (podsBuilder_ == null) { - podsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Pod, org.vdaas.vald.api.v1.payload.Info.Pod.Builder, org.vdaas.vald.api.v1.payload.Info.PodOrBuilder>( - pods_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - pods_ = null; - } - return podsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Info.Pods) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Info.Pods) - private static final org.vdaas.vald.api.v1.payload.Info.Pods DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Info.Pods(); - } - - public static org.vdaas.vald.api.v1.payload.Info.Pods getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Pods parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Pods getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodesOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Info.Nodes) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The multiple node information.
-     * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - java.util.List - getNodesList(); - /** - *
-     * The multiple node information.
-     * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - org.vdaas.vald.api.v1.payload.Info.Node getNodes(int index); - /** - *
-     * The multiple node information.
-     * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - int getNodesCount(); - /** - *
-     * The multiple node information.
-     * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - java.util.List - getNodesOrBuilderList(); - /** - *
-     * The multiple node information.
-     * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - org.vdaas.vald.api.v1.payload.Info.NodeOrBuilder getNodesOrBuilder( - int index); - } - /** - *
-   * Represent the multiple node information message.
-   * 
- * - * Protobuf type {@code payload.v1.Info.Nodes} - */ - public static final class Nodes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Info.Nodes) - NodesOrBuilder { - private static final long serialVersionUID = 0L; - // Use Nodes.newBuilder() to construct. - private Nodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Nodes() { - nodes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Nodes(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Nodes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Nodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Nodes.class, org.vdaas.vald.api.v1.payload.Info.Nodes.Builder.class); - } - - public static final int NODES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List nodes_; - /** - *
-     * The multiple node information.
-     * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List getNodesList() { - return nodes_; - } - /** - *
-     * The multiple node information.
-     * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List - getNodesOrBuilderList() { - return nodes_; - } - /** - *
-     * The multiple node information.
-     * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getNodesCount() { - return nodes_.size(); - } - /** - *
-     * The multiple node information.
-     * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Node getNodes(int index) { - return nodes_.get(index); - } - /** - *
-     * The multiple node information.
-     * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.NodeOrBuilder getNodesOrBuilder( - int index) { - return nodes_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < nodes_.size(); i++) { - output.writeMessage(1, nodes_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nodes_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Info.Nodes)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Info.Nodes other = (org.vdaas.vald.api.v1.payload.Info.Nodes) obj; - - if (!getNodesList() - .equals(other.getNodesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getNodesCount() > 0) { - hash = (37 * hash) + NODES_FIELD_NUMBER; - hash = (53 * hash) + getNodesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Info.Nodes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Nodes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Nodes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Nodes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Nodes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Nodes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Nodes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Nodes 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 org.vdaas.vald.api.v1.payload.Info.Nodes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Info.Nodes parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Nodes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Nodes parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Info.Nodes prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the multiple node information message.
-     * 
- * - * Protobuf type {@code payload.v1.Info.Nodes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Info.Nodes) - org.vdaas.vald.api.v1.payload.Info.NodesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Nodes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Nodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Nodes.class, org.vdaas.vald.api.v1.payload.Info.Nodes.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Info.Nodes.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - } else { - nodes_ = null; - nodesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Nodes_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Nodes getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Info.Nodes.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Nodes build() { - org.vdaas.vald.api.v1.payload.Info.Nodes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Nodes buildPartial() { - org.vdaas.vald.api.v1.payload.Info.Nodes result = new org.vdaas.vald.api.v1.payload.Info.Nodes(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Info.Nodes result) { - if (nodesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodes_ = nodes_; - } else { - result.nodes_ = nodesBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Info.Nodes result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Info.Nodes) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Info.Nodes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Info.Nodes other) { - if (other == org.vdaas.vald.api.v1.payload.Info.Nodes.getDefaultInstance()) return this; - if (nodesBuilder_ == null) { - if (!other.nodes_.isEmpty()) { - if (nodes_.isEmpty()) { - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodesIsMutable(); - nodes_.addAll(other.nodes_); - } - onChanged(); - } - } else { - if (!other.nodes_.isEmpty()) { - if (nodesBuilder_.isEmpty()) { - nodesBuilder_.dispose(); - nodesBuilder_ = null; - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000001); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodesFieldBuilder() : null; - } else { - nodesBuilder_.addAllMessages(other.nodes_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Info.Node m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Info.Node.parser(), - extensionRegistry); - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(m); - } else { - nodesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List nodes_ = - java.util.Collections.emptyList(); - private void ensureNodesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodes_ = new java.util.ArrayList(nodes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Node, org.vdaas.vald.api.v1.payload.Info.Node.Builder, org.vdaas.vald.api.v1.payload.Info.NodeOrBuilder> nodesBuilder_; - - /** - *
-       * The multiple node information.
-       * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - public java.util.List getNodesList() { - if (nodesBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodes_); - } else { - return nodesBuilder_.getMessageList(); - } - } - /** - *
-       * The multiple node information.
-       * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - public int getNodesCount() { - if (nodesBuilder_ == null) { - return nodes_.size(); - } else { - return nodesBuilder_.getCount(); - } - } - /** - *
-       * The multiple node information.
-       * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Info.Node getNodes(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { - return nodesBuilder_.getMessage(index); - } - } - /** - *
-       * The multiple node information.
-       * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - public Builder setNodes( - int index, org.vdaas.vald.api.v1.payload.Info.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.set(index, value); - onChanged(); - } else { - nodesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The multiple node information.
-       * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - public Builder setNodes( - int index, org.vdaas.vald.api.v1.payload.Info.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.set(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The multiple node information.
-       * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - public Builder addNodes(org.vdaas.vald.api.v1.payload.Info.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(value); - onChanged(); - } else { - nodesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The multiple node information.
-       * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - public Builder addNodes( - int index, org.vdaas.vald.api.v1.payload.Info.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(index, value); - onChanged(); - } else { - nodesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The multiple node information.
-       * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - public Builder addNodes( - org.vdaas.vald.api.v1.payload.Info.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The multiple node information.
-       * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - public Builder addNodes( - int index, org.vdaas.vald.api.v1.payload.Info.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The multiple node information.
-       * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - public Builder addAllNodes( - java.lang.Iterable values) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodes_); - onChanged(); - } else { - nodesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The multiple node information.
-       * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - public Builder clearNodes() { - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodesBuilder_.clear(); - } - return this; - } - /** - *
-       * The multiple node information.
-       * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - public Builder removeNodes(int index) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.remove(index); - onChanged(); - } else { - nodesBuilder_.remove(index); - } - return this; - } - /** - *
-       * The multiple node information.
-       * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Info.Node.Builder getNodesBuilder( - int index) { - return getNodesFieldBuilder().getBuilder(index); - } - /** - *
-       * The multiple node information.
-       * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Info.NodeOrBuilder getNodesOrBuilder( - int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); } else { - return nodesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The multiple node information.
-       * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - public java.util.List - getNodesOrBuilderList() { - if (nodesBuilder_ != null) { - return nodesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodes_); - } - } - /** - *
-       * The multiple node information.
-       * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Info.Node.Builder addNodesBuilder() { - return getNodesFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Info.Node.getDefaultInstance()); - } - /** - *
-       * The multiple node information.
-       * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Info.Node.Builder addNodesBuilder( - int index) { - return getNodesFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Info.Node.getDefaultInstance()); - } - /** - *
-       * The multiple node information.
-       * 
- * - * repeated .payload.v1.Info.Node nodes = 1 [json_name = "nodes", (.buf.validate.field) = { ... } - */ - public java.util.List - getNodesBuilderList() { - return getNodesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Node, org.vdaas.vald.api.v1.payload.Info.Node.Builder, org.vdaas.vald.api.v1.payload.Info.NodeOrBuilder> - getNodesFieldBuilder() { - if (nodesBuilder_ == null) { - nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Node, org.vdaas.vald.api.v1.payload.Info.Node.Builder, org.vdaas.vald.api.v1.payload.Info.NodeOrBuilder>( - nodes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - nodes_ = null; - } - return nodesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Info.Nodes) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Info.Nodes) - private static final org.vdaas.vald.api.v1.payload.Info.Nodes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Info.Nodes(); - } - - public static org.vdaas.vald.api.v1.payload.Info.Nodes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Nodes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Nodes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ServicesOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Info.Services) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The multiple service information.
-     * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - java.util.List - getServicesList(); - /** - *
-     * The multiple service information.
-     * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - org.vdaas.vald.api.v1.payload.Info.Service getServices(int index); - /** - *
-     * The multiple service information.
-     * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - int getServicesCount(); - /** - *
-     * The multiple service information.
-     * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - java.util.List - getServicesOrBuilderList(); - /** - *
-     * The multiple service information.
-     * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - org.vdaas.vald.api.v1.payload.Info.ServiceOrBuilder getServicesOrBuilder( - int index); - } - /** - *
-   * Represent the multiple service information message.
-   * 
- * - * Protobuf type {@code payload.v1.Info.Services} - */ - public static final class Services extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Info.Services) - ServicesOrBuilder { - private static final long serialVersionUID = 0L; - // Use Services.newBuilder() to construct. - private Services(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Services() { - services_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Services(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Services_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Services_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Services.class, org.vdaas.vald.api.v1.payload.Info.Services.Builder.class); - } - - public static final int SERVICES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List services_; - /** - *
-     * The multiple service information.
-     * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List getServicesList() { - return services_; - } - /** - *
-     * The multiple service information.
-     * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List - getServicesOrBuilderList() { - return services_; - } - /** - *
-     * The multiple service information.
-     * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getServicesCount() { - return services_.size(); - } - /** - *
-     * The multiple service information.
-     * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Service getServices(int index) { - return services_.get(index); - } - /** - *
-     * The multiple service information.
-     * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.ServiceOrBuilder getServicesOrBuilder( - int index) { - return services_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < services_.size(); i++) { - output.writeMessage(1, services_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < services_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, services_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Info.Services)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Info.Services other = (org.vdaas.vald.api.v1.payload.Info.Services) obj; - - if (!getServicesList() - .equals(other.getServicesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getServicesCount() > 0) { - hash = (37 * hash) + SERVICES_FIELD_NUMBER; - hash = (53 * hash) + getServicesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Info.Services parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Services parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Services parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Services parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Services parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.Services parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Services parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Services 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 org.vdaas.vald.api.v1.payload.Info.Services parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Info.Services parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.Services parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.Services parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Info.Services prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the multiple service information message.
-     * 
- * - * Protobuf type {@code payload.v1.Info.Services} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Info.Services) - org.vdaas.vald.api.v1.payload.Info.ServicesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Services_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Services_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.Services.class, org.vdaas.vald.api.v1.payload.Info.Services.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Info.Services.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (servicesBuilder_ == null) { - services_ = java.util.Collections.emptyList(); - } else { - services_ = null; - servicesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_Services_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Services getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Info.Services.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Services build() { - org.vdaas.vald.api.v1.payload.Info.Services result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Services buildPartial() { - org.vdaas.vald.api.v1.payload.Info.Services result = new org.vdaas.vald.api.v1.payload.Info.Services(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Info.Services result) { - if (servicesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - services_ = java.util.Collections.unmodifiableList(services_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.services_ = services_; - } else { - result.services_ = servicesBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Info.Services result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Info.Services) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Info.Services)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Info.Services other) { - if (other == org.vdaas.vald.api.v1.payload.Info.Services.getDefaultInstance()) return this; - if (servicesBuilder_ == null) { - if (!other.services_.isEmpty()) { - if (services_.isEmpty()) { - services_ = other.services_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureServicesIsMutable(); - services_.addAll(other.services_); - } - onChanged(); - } - } else { - if (!other.services_.isEmpty()) { - if (servicesBuilder_.isEmpty()) { - servicesBuilder_.dispose(); - servicesBuilder_ = null; - services_ = other.services_; - bitField0_ = (bitField0_ & ~0x00000001); - servicesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getServicesFieldBuilder() : null; - } else { - servicesBuilder_.addAllMessages(other.services_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Info.Service m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Info.Service.parser(), - extensionRegistry); - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.add(m); - } else { - servicesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List services_ = - java.util.Collections.emptyList(); - private void ensureServicesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - services_ = new java.util.ArrayList(services_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Service, org.vdaas.vald.api.v1.payload.Info.Service.Builder, org.vdaas.vald.api.v1.payload.Info.ServiceOrBuilder> servicesBuilder_; - - /** - *
-       * The multiple service information.
-       * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - public java.util.List getServicesList() { - if (servicesBuilder_ == null) { - return java.util.Collections.unmodifiableList(services_); - } else { - return servicesBuilder_.getMessageList(); - } - } - /** - *
-       * The multiple service information.
-       * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - public int getServicesCount() { - if (servicesBuilder_ == null) { - return services_.size(); - } else { - return servicesBuilder_.getCount(); - } - } - /** - *
-       * The multiple service information.
-       * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Info.Service getServices(int index) { - if (servicesBuilder_ == null) { - return services_.get(index); - } else { - return servicesBuilder_.getMessage(index); - } - } - /** - *
-       * The multiple service information.
-       * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - public Builder setServices( - int index, org.vdaas.vald.api.v1.payload.Info.Service value) { - if (servicesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServicesIsMutable(); - services_.set(index, value); - onChanged(); - } else { - servicesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The multiple service information.
-       * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - public Builder setServices( - int index, org.vdaas.vald.api.v1.payload.Info.Service.Builder builderForValue) { - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.set(index, builderForValue.build()); - onChanged(); - } else { - servicesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The multiple service information.
-       * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - public Builder addServices(org.vdaas.vald.api.v1.payload.Info.Service value) { - if (servicesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServicesIsMutable(); - services_.add(value); - onChanged(); - } else { - servicesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The multiple service information.
-       * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - public Builder addServices( - int index, org.vdaas.vald.api.v1.payload.Info.Service value) { - if (servicesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServicesIsMutable(); - services_.add(index, value); - onChanged(); - } else { - servicesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The multiple service information.
-       * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - public Builder addServices( - org.vdaas.vald.api.v1.payload.Info.Service.Builder builderForValue) { - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.add(builderForValue.build()); - onChanged(); - } else { - servicesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The multiple service information.
-       * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - public Builder addServices( - int index, org.vdaas.vald.api.v1.payload.Info.Service.Builder builderForValue) { - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.add(index, builderForValue.build()); - onChanged(); - } else { - servicesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The multiple service information.
-       * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - public Builder addAllServices( - java.lang.Iterable values) { - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, services_); - onChanged(); - } else { - servicesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The multiple service information.
-       * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - public Builder clearServices() { - if (servicesBuilder_ == null) { - services_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - servicesBuilder_.clear(); - } - return this; - } - /** - *
-       * The multiple service information.
-       * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - public Builder removeServices(int index) { - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.remove(index); - onChanged(); - } else { - servicesBuilder_.remove(index); - } - return this; - } - /** - *
-       * The multiple service information.
-       * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Info.Service.Builder getServicesBuilder( - int index) { - return getServicesFieldBuilder().getBuilder(index); - } - /** - *
-       * The multiple service information.
-       * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Info.ServiceOrBuilder getServicesOrBuilder( - int index) { - if (servicesBuilder_ == null) { - return services_.get(index); } else { - return servicesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The multiple service information.
-       * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - public java.util.List - getServicesOrBuilderList() { - if (servicesBuilder_ != null) { - return servicesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(services_); - } - } - /** - *
-       * The multiple service information.
-       * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Info.Service.Builder addServicesBuilder() { - return getServicesFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Info.Service.getDefaultInstance()); - } - /** - *
-       * The multiple service information.
-       * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Info.Service.Builder addServicesBuilder( - int index) { - return getServicesFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Info.Service.getDefaultInstance()); - } - /** - *
-       * The multiple service information.
-       * 
- * - * repeated .payload.v1.Info.Service services = 1 [json_name = "services", (.buf.validate.field) = { ... } - */ - public java.util.List - getServicesBuilderList() { - return getServicesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Service, org.vdaas.vald.api.v1.payload.Info.Service.Builder, org.vdaas.vald.api.v1.payload.Info.ServiceOrBuilder> - getServicesFieldBuilder() { - if (servicesBuilder_ == null) { - servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Info.Service, org.vdaas.vald.api.v1.payload.Info.Service.Builder, org.vdaas.vald.api.v1.payload.Info.ServiceOrBuilder>( - services_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - services_ = null; - } - return servicesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Info.Services) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Info.Services) - private static final org.vdaas.vald.api.v1.payload.Info.Services DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Info.Services(); - } - - public static org.vdaas.vald.api.v1.payload.Info.Services getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Services parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.Services getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IPsOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Info.IPs) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string ip = 1 [json_name = "ip"]; - * @return A list containing the ip. - */ - java.util.List - getIpList(); - /** - * repeated string ip = 1 [json_name = "ip"]; - * @return The count of ip. - */ - int getIpCount(); - /** - * repeated string ip = 1 [json_name = "ip"]; - * @param index The index of the element to return. - * @return The ip at the given index. - */ - java.lang.String getIp(int index); - /** - * repeated string ip = 1 [json_name = "ip"]; - * @param index The index of the value to return. - * @return The bytes of the ip at the given index. - */ - com.google.protobuf.ByteString - getIpBytes(int index); - } - /** - *
-   * Represent the multiple IP message.
-   * 
- * - * Protobuf type {@code payload.v1.Info.IPs} - */ - public static final class IPs extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Info.IPs) - IPsOrBuilder { - private static final long serialVersionUID = 0L; - // Use IPs.newBuilder() to construct. - private IPs(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IPs() { - ip_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new IPs(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_IPs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_IPs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.IPs.class, org.vdaas.vald.api.v1.payload.Info.IPs.Builder.class); - } - - public static final int IP_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList ip_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string ip = 1 [json_name = "ip"]; - * @return A list containing the ip. - */ - public com.google.protobuf.ProtocolStringList - getIpList() { - return ip_; - } - /** - * repeated string ip = 1 [json_name = "ip"]; - * @return The count of ip. - */ - public int getIpCount() { - return ip_.size(); - } - /** - * repeated string ip = 1 [json_name = "ip"]; - * @param index The index of the element to return. - * @return The ip at the given index. - */ - public java.lang.String getIp(int index) { - return ip_.get(index); - } - /** - * repeated string ip = 1 [json_name = "ip"]; - * @param index The index of the value to return. - * @return The bytes of the ip at the given index. - */ - public com.google.protobuf.ByteString - getIpBytes(int index) { - return ip_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < ip_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ip_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < ip_.size(); i++) { - dataSize += computeStringSizeNoTag(ip_.getRaw(i)); - } - size += dataSize; - size += 1 * getIpList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Info.IPs)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Info.IPs other = (org.vdaas.vald.api.v1.payload.Info.IPs) obj; - - if (!getIpList() - .equals(other.getIpList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getIpCount() > 0) { - hash = (37 * hash) + IP_FIELD_NUMBER; - hash = (53 * hash) + getIpList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Info.IPs parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.IPs parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.IPs parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.IPs parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.IPs parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info.IPs parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.IPs parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.IPs 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 org.vdaas.vald.api.v1.payload.Info.IPs parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Info.IPs parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info.IPs parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info.IPs parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Info.IPs prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the multiple IP message.
-     * 
- * - * Protobuf type {@code payload.v1.Info.IPs} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Info.IPs) - org.vdaas.vald.api.v1.payload.Info.IPsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_IPs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_IPs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.IPs.class, org.vdaas.vald.api.v1.payload.Info.IPs.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Info.IPs.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - ip_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_IPs_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.IPs getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Info.IPs.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.IPs build() { - org.vdaas.vald.api.v1.payload.Info.IPs result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.IPs buildPartial() { - org.vdaas.vald.api.v1.payload.Info.IPs result = new org.vdaas.vald.api.v1.payload.Info.IPs(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Info.IPs result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - ip_.makeImmutable(); - result.ip_ = ip_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Info.IPs) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Info.IPs)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Info.IPs other) { - if (other == org.vdaas.vald.api.v1.payload.Info.IPs.getDefaultInstance()) return this; - if (!other.ip_.isEmpty()) { - if (ip_.isEmpty()) { - ip_ = other.ip_; - bitField0_ |= 0x00000001; - } else { - ensureIpIsMutable(); - ip_.addAll(other.ip_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpIsMutable(); - ip_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList ip_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureIpIsMutable() { - if (!ip_.isModifiable()) { - ip_ = new com.google.protobuf.LazyStringArrayList(ip_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string ip = 1 [json_name = "ip"]; - * @return A list containing the ip. - */ - public com.google.protobuf.ProtocolStringList - getIpList() { - ip_.makeImmutable(); - return ip_; - } - /** - * repeated string ip = 1 [json_name = "ip"]; - * @return The count of ip. - */ - public int getIpCount() { - return ip_.size(); - } - /** - * repeated string ip = 1 [json_name = "ip"]; - * @param index The index of the element to return. - * @return The ip at the given index. - */ - public java.lang.String getIp(int index) { - return ip_.get(index); - } - /** - * repeated string ip = 1 [json_name = "ip"]; - * @param index The index of the value to return. - * @return The bytes of the ip at the given index. - */ - public com.google.protobuf.ByteString - getIpBytes(int index) { - return ip_.getByteString(index); - } - /** - * repeated string ip = 1 [json_name = "ip"]; - * @param index The index to set the value at. - * @param value The ip to set. - * @return This builder for chaining. - */ - public Builder setIp( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureIpIsMutable(); - ip_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string ip = 1 [json_name = "ip"]; - * @param value The ip to add. - * @return This builder for chaining. - */ - public Builder addIp( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureIpIsMutable(); - ip_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string ip = 1 [json_name = "ip"]; - * @param values The ip to add. - * @return This builder for chaining. - */ - public Builder addAllIp( - java.lang.Iterable values) { - ensureIpIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ip_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string ip = 1 [json_name = "ip"]; - * @return This builder for chaining. - */ - public Builder clearIp() { - ip_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string ip = 1 [json_name = "ip"]; - * @param value The bytes of the ip to add. - * @return This builder for chaining. - */ - public Builder addIpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureIpIsMutable(); - ip_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Info.IPs) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Info.IPs) - private static final org.vdaas.vald.api.v1.payload.Info.IPs DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Info.IPs(); - } - - public static org.vdaas.vald.api.v1.payload.Info.IPs getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IPs parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info.IPs getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Info)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Info other = (org.vdaas.vald.api.v1.payload.Info) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Info parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Info parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info 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 org.vdaas.vald.api.v1.payload.Info parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Info parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Info parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Info parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Info prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Info related messages.
-   * 
- * - * Protobuf type {@code payload.v1.Info} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Info) - org.vdaas.vald.api.v1.payload.InfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Info.class, org.vdaas.vald.api.v1.payload.Info.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Info.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Info_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Info.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info build() { - org.vdaas.vald.api.v1.payload.Info result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info buildPartial() { - org.vdaas.vald.api.v1.payload.Info result = new org.vdaas.vald.api.v1.payload.Info(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Info) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Info)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Info other) { - if (other == org.vdaas.vald.api.v1.payload.Info.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Info) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Info) - private static final org.vdaas.vald.api.v1.payload.Info DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Info(); - } - - public static org.vdaas.vald.api.v1.payload.Info getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Info parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Info getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/InfoOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/payload/InfoOrBuilder.java deleted file mode 100644 index f79cb7ac..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/InfoOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -public interface InfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Info) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Insert.java b/src/main/java/org/vdaas/vald/api/v1/payload/Insert.java deleted file mode 100644 index 45412610..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/Insert.java +++ /dev/null @@ -1,5217 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -/** - *
- * Insert related messages.
- * 
- * - * Protobuf type {@code payload.v1.Insert} - */ -public final class Insert extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Insert) - InsertOrBuilder { -private static final long serialVersionUID = 0L; - // Use Insert.newBuilder() to construct. - private Insert(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Insert() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Insert(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Insert.class, org.vdaas.vald.api.v1.payload.Insert.Builder.class); - } - - public interface RequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Insert.Request) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The vector to be inserted.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return Whether the vector field is set. - */ - boolean hasVector(); - /** - *
-     * The vector to be inserted.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return The vector. - */ - org.vdaas.vald.api.v1.payload.Object.Vector getVector(); - /** - *
-     * The vector to be inserted.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder(); - - /** - *
-     * The configuration of the insert request.
-     * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - *
-     * The configuration of the insert request.
-     * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - * @return The config. - */ - org.vdaas.vald.api.v1.payload.Insert.Config getConfig(); - /** - *
-     * The configuration of the insert request.
-     * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - */ - org.vdaas.vald.api.v1.payload.Insert.ConfigOrBuilder getConfigOrBuilder(); - } - /** - *
-   * Represent the insert request.
-   * 
- * - * Protobuf type {@code payload.v1.Insert.Request} - */ - public static final class Request extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Insert.Request) - RequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use Request.newBuilder() to construct. - private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Request() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Request(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_Request_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Insert.Request.class, org.vdaas.vald.api.v1.payload.Insert.Request.Builder.class); - } - - private int bitField0_; - public static final int VECTOR_FIELD_NUMBER = 1; - private org.vdaas.vald.api.v1.payload.Object.Vector vector_; - /** - *
-     * The vector to be inserted.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return Whether the vector field is set. - */ - @java.lang.Override - public boolean hasVector() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The vector to be inserted.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return The vector. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Vector getVector() { - return vector_ == null ? org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance() : vector_; - } - /** - *
-     * The vector to be inserted.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder() { - return vector_ == null ? org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance() : vector_; - } - - public static final int CONFIG_FIELD_NUMBER = 2; - private org.vdaas.vald.api.v1.payload.Insert.Config config_; - /** - *
-     * The configuration of the insert request.
-     * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * The configuration of the insert request.
-     * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - * @return The config. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.Config getConfig() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Insert.Config.getDefaultInstance() : config_; - } - /** - *
-     * The configuration of the insert request.
-     * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.ConfigOrBuilder getConfigOrBuilder() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Insert.Config.getDefaultInstance() : config_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVector()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVector()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Insert.Request)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Insert.Request other = (org.vdaas.vald.api.v1.payload.Insert.Request) obj; - - if (hasVector() != other.hasVector()) return false; - if (hasVector()) { - if (!getVector() - .equals(other.getVector())) return false; - } - if (hasConfig() != other.hasConfig()) return false; - if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasVector()) { - hash = (37 * hash) + VECTOR_FIELD_NUMBER; - hash = (53 * hash) + getVector().hashCode(); - } - if (hasConfig()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Insert.Request parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Insert.Request parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.Request parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Insert.Request parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.Request parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Insert.Request parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.Request parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Insert.Request 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 org.vdaas.vald.api.v1.payload.Insert.Request parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Insert.Request parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.Request parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Insert.Request parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Insert.Request prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the insert request.
-     * 
- * - * Protobuf type {@code payload.v1.Insert.Request} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Insert.Request) - org.vdaas.vald.api.v1.payload.Insert.RequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_Request_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Insert.Request.class, org.vdaas.vald.api.v1.payload.Insert.Request.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Insert.Request.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getVectorFieldBuilder(); - getConfigFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - vector_ = null; - if (vectorBuilder_ != null) { - vectorBuilder_.dispose(); - vectorBuilder_ = null; - } - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_Request_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.Request getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Insert.Request.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.Request build() { - org.vdaas.vald.api.v1.payload.Insert.Request result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.Request buildPartial() { - org.vdaas.vald.api.v1.payload.Insert.Request result = new org.vdaas.vald.api.v1.payload.Insert.Request(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Insert.Request result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.vector_ = vectorBuilder_ == null - ? vector_ - : vectorBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Insert.Request) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Insert.Request)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Insert.Request other) { - if (other == org.vdaas.vald.api.v1.payload.Insert.Request.getDefaultInstance()) return this; - if (other.hasVector()) { - mergeVector(other.getVector()); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getVectorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private org.vdaas.vald.api.v1.payload.Object.Vector vector_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder> vectorBuilder_; - /** - *
-       * The vector to be inserted.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return Whether the vector field is set. - */ - public boolean hasVector() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * The vector to be inserted.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return The vector. - */ - public org.vdaas.vald.api.v1.payload.Object.Vector getVector() { - if (vectorBuilder_ == null) { - return vector_ == null ? org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance() : vector_; - } else { - return vectorBuilder_.getMessage(); - } - } - /** - *
-       * The vector to be inserted.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - public Builder setVector(org.vdaas.vald.api.v1.payload.Object.Vector value) { - if (vectorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - vector_ = value; - } else { - vectorBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The vector to be inserted.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - public Builder setVector( - org.vdaas.vald.api.v1.payload.Object.Vector.Builder builderForValue) { - if (vectorBuilder_ == null) { - vector_ = builderForValue.build(); - } else { - vectorBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The vector to be inserted.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - public Builder mergeVector(org.vdaas.vald.api.v1.payload.Object.Vector value) { - if (vectorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - vector_ != null && - vector_ != org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance()) { - getVectorBuilder().mergeFrom(value); - } else { - vector_ = value; - } - } else { - vectorBuilder_.mergeFrom(value); - } - if (vector_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - *
-       * The vector to be inserted.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - public Builder clearVector() { - bitField0_ = (bitField0_ & ~0x00000001); - vector_ = null; - if (vectorBuilder_ != null) { - vectorBuilder_.dispose(); - vectorBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The vector to be inserted.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Object.Vector.Builder getVectorBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getVectorFieldBuilder().getBuilder(); - } - /** - *
-       * The vector to be inserted.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder() { - if (vectorBuilder_ != null) { - return vectorBuilder_.getMessageOrBuilder(); - } else { - return vector_ == null ? - org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance() : vector_; - } - } - /** - *
-       * The vector to be inserted.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder> - getVectorFieldBuilder() { - if (vectorBuilder_ == null) { - vectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder>( - getVector(), - getParentForChildren(), - isClean()); - vector_ = null; - } - return vectorBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Insert.Config config_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Insert.Config, org.vdaas.vald.api.v1.payload.Insert.Config.Builder, org.vdaas.vald.api.v1.payload.Insert.ConfigOrBuilder> configBuilder_; - /** - *
-       * The configuration of the insert request.
-       * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * The configuration of the insert request.
-       * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - * @return The config. - */ - public org.vdaas.vald.api.v1.payload.Insert.Config getConfig() { - if (configBuilder_ == null) { - return config_ == null ? org.vdaas.vald.api.v1.payload.Insert.Config.getDefaultInstance() : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - *
-       * The configuration of the insert request.
-       * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig(org.vdaas.vald.api.v1.payload.Insert.Config value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - } else { - configBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the insert request.
-       * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig( - org.vdaas.vald.api.v1.payload.Insert.Config.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the insert request.
-       * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - */ - public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Insert.Config value) { - if (configBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - config_ != null && - config_ != org.vdaas.vald.api.v1.payload.Insert.Config.getDefaultInstance()) { - getConfigBuilder().mergeFrom(value); - } else { - config_ = value; - } - } else { - configBuilder_.mergeFrom(value); - } - if (config_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - *
-       * The configuration of the insert request.
-       * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - */ - public Builder clearConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The configuration of the insert request.
-       * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Insert.Config.Builder getConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - *
-       * The configuration of the insert request.
-       * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Insert.ConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null ? - org.vdaas.vald.api.v1.payload.Insert.Config.getDefaultInstance() : config_; - } - } - /** - *
-       * The configuration of the insert request.
-       * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Insert.Config, org.vdaas.vald.api.v1.payload.Insert.Config.Builder, org.vdaas.vald.api.v1.payload.Insert.ConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Insert.Config, org.vdaas.vald.api.v1.payload.Insert.Config.Builder, org.vdaas.vald.api.v1.payload.Insert.ConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); - config_ = null; - } - return configBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Insert.Request) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Insert.Request) - private static final org.vdaas.vald.api.v1.payload.Insert.Request DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Insert.Request(); - } - - public static org.vdaas.vald.api.v1.payload.Insert.Request getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Request parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.Request getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MultiRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Insert.MultiRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represent multiple insert request content.
-     * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsList(); - /** - *
-     * Represent multiple insert request content.
-     * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Insert.Request getRequests(int index); - /** - *
-     * Represent multiple insert request content.
-     * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - int getRequestsCount(); - /** - *
-     * Represent multiple insert request content.
-     * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-     * Represent multiple insert request content.
-     * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Insert.RequestOrBuilder getRequestsOrBuilder( - int index); - } - /** - *
-   * Represent the multiple insert request.
-   * 
- * - * Protobuf type {@code payload.v1.Insert.MultiRequest} - */ - public static final class MultiRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Insert.MultiRequest) - MultiRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MultiRequest.newBuilder() to construct. - private MultiRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MultiRequest() { - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MultiRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_MultiRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_MultiRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Insert.MultiRequest.class, org.vdaas.vald.api.v1.payload.Insert.MultiRequest.Builder.class); - } - - public static final int REQUESTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List requests_; - /** - *
-     * Represent multiple insert request content.
-     * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List getRequestsList() { - return requests_; - } - /** - *
-     * Represent multiple insert request content.
-     * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - *
-     * Represent multiple insert request content.
-     * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - *
-     * Represent multiple insert request content.
-     * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.Request getRequests(int index) { - return requests_.get(index); - } - /** - *
-     * Represent multiple insert request content.
-     * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.RequestOrBuilder getRequestsOrBuilder( - int index) { - return requests_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(1, requests_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Insert.MultiRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Insert.MultiRequest other = (org.vdaas.vald.api.v1.payload.Insert.MultiRequest) obj; - - if (!getRequestsList() - .equals(other.getRequestsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Insert.MultiRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Insert.MultiRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.MultiRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Insert.MultiRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.MultiRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Insert.MultiRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.MultiRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Insert.MultiRequest 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 org.vdaas.vald.api.v1.payload.Insert.MultiRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Insert.MultiRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.MultiRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Insert.MultiRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Insert.MultiRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the multiple insert request.
-     * 
- * - * Protobuf type {@code payload.v1.Insert.MultiRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Insert.MultiRequest) - org.vdaas.vald.api.v1.payload.Insert.MultiRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_MultiRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_MultiRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Insert.MultiRequest.class, org.vdaas.vald.api.v1.payload.Insert.MultiRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Insert.MultiRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_MultiRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.MultiRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Insert.MultiRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.MultiRequest build() { - org.vdaas.vald.api.v1.payload.Insert.MultiRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.MultiRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Insert.MultiRequest result = new org.vdaas.vald.api.v1.payload.Insert.MultiRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Insert.MultiRequest result) { - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Insert.MultiRequest result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Insert.MultiRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Insert.MultiRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Insert.MultiRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Insert.MultiRequest.getDefaultInstance()) return this; - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Insert.Request m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Insert.Request.parser(), - extensionRegistry); - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(m); - } else { - requestsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List requests_ = - java.util.Collections.emptyList(); - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Insert.Request, org.vdaas.vald.api.v1.payload.Insert.Request.Builder, org.vdaas.vald.api.v1.payload.Insert.RequestOrBuilder> requestsBuilder_; - - /** - *
-       * Represent multiple insert request content.
-       * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - public java.util.List getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - *
-       * Represent multiple insert request content.
-       * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - *
-       * Represent multiple insert request content.
-       * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Insert.Request getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - *
-       * Represent multiple insert request content.
-       * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Insert.Request value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Represent multiple insert request content.
-       * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Insert.Request.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent multiple insert request content.
-       * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests(org.vdaas.vald.api.v1.payload.Insert.Request value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Represent multiple insert request content.
-       * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Insert.Request value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Represent multiple insert request content.
-       * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - org.vdaas.vald.api.v1.payload.Insert.Request.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Represent multiple insert request content.
-       * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Insert.Request.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent multiple insert request content.
-       * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - public Builder addAllRequests( - java.lang.Iterable values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Represent multiple insert request content.
-       * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - *
-       * Represent multiple insert request content.
-       * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Represent multiple insert request content.
-       * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Insert.Request.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - *
-       * Represent multiple insert request content.
-       * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Insert.RequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Represent multiple insert request content.
-       * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - *
-       * Represent multiple insert request content.
-       * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Insert.Request.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Insert.Request.getDefaultInstance()); - } - /** - *
-       * Represent multiple insert request content.
-       * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Insert.Request.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Insert.Request.getDefaultInstance()); - } - /** - *
-       * Represent multiple insert request content.
-       * 
- * - * repeated .payload.v1.Insert.Request requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Insert.Request, org.vdaas.vald.api.v1.payload.Insert.Request.Builder, org.vdaas.vald.api.v1.payload.Insert.RequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Insert.Request, org.vdaas.vald.api.v1.payload.Insert.Request.Builder, org.vdaas.vald.api.v1.payload.Insert.RequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - requests_ = null; - } - return requestsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Insert.MultiRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Insert.MultiRequest) - private static final org.vdaas.vald.api.v1.payload.Insert.MultiRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Insert.MultiRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Insert.MultiRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MultiRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.MultiRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ObjectRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Insert.ObjectRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The binary object to be inserted.
-     * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - * @return Whether the object field is set. - */ - boolean hasObject(); - /** - *
-     * The binary object to be inserted.
-     * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - * @return The object. - */ - org.vdaas.vald.api.v1.payload.Object.Blob getObject(); - /** - *
-     * The binary object to be inserted.
-     * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder getObjectOrBuilder(); - - /** - *
-     * The configuration of the insert request.
-     * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - *
-     * The configuration of the insert request.
-     * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - * @return The config. - */ - org.vdaas.vald.api.v1.payload.Insert.Config getConfig(); - /** - *
-     * The configuration of the insert request.
-     * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - */ - org.vdaas.vald.api.v1.payload.Insert.ConfigOrBuilder getConfigOrBuilder(); - - /** - *
-     * Filter configurations.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return Whether the vectorizer field is set. - */ - boolean hasVectorizer(); - /** - *
-     * Filter configurations.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return The vectorizer. - */ - org.vdaas.vald.api.v1.payload.Filter.Target getVectorizer(); - /** - *
-     * Filter configurations.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder getVectorizerOrBuilder(); - } - /** - *
-   * Represent the insert by binary object request.
-   * 
- * - * Protobuf type {@code payload.v1.Insert.ObjectRequest} - */ - public static final class ObjectRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Insert.ObjectRequest) - ObjectRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ObjectRequest.newBuilder() to construct. - private ObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ObjectRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ObjectRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_ObjectRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_ObjectRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.class, org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.Builder.class); - } - - private int bitField0_; - public static final int OBJECT_FIELD_NUMBER = 1; - private org.vdaas.vald.api.v1.payload.Object.Blob object_; - /** - *
-     * The binary object to be inserted.
-     * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - * @return Whether the object field is set. - */ - @java.lang.Override - public boolean hasObject() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The binary object to be inserted.
-     * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - * @return The object. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Blob getObject() { - return object_ == null ? org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance() : object_; - } - /** - *
-     * The binary object to be inserted.
-     * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder getObjectOrBuilder() { - return object_ == null ? org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance() : object_; - } - - public static final int CONFIG_FIELD_NUMBER = 2; - private org.vdaas.vald.api.v1.payload.Insert.Config config_; - /** - *
-     * The configuration of the insert request.
-     * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * The configuration of the insert request.
-     * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - * @return The config. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.Config getConfig() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Insert.Config.getDefaultInstance() : config_; - } - /** - *
-     * The configuration of the insert request.
-     * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.ConfigOrBuilder getConfigOrBuilder() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Insert.Config.getDefaultInstance() : config_; - } - - public static final int VECTORIZER_FIELD_NUMBER = 3; - private org.vdaas.vald.api.v1.payload.Filter.Target vectorizer_; - /** - *
-     * Filter configurations.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return Whether the vectorizer field is set. - */ - @java.lang.Override - public boolean hasVectorizer() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Filter configurations.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return The vectorizer. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Target getVectorizer() { - return vectorizer_ == null ? org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance() : vectorizer_; - } - /** - *
-     * Filter configurations.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder getVectorizerOrBuilder() { - return vectorizer_ == null ? org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance() : vectorizer_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getObject()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getVectorizer()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getObject()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getVectorizer()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Insert.ObjectRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Insert.ObjectRequest other = (org.vdaas.vald.api.v1.payload.Insert.ObjectRequest) obj; - - if (hasObject() != other.hasObject()) return false; - if (hasObject()) { - if (!getObject() - .equals(other.getObject())) return false; - } - if (hasConfig() != other.hasConfig()) return false; - if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; - } - if (hasVectorizer() != other.hasVectorizer()) return false; - if (hasVectorizer()) { - if (!getVectorizer() - .equals(other.getVectorizer())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasObject()) { - hash = (37 * hash) + OBJECT_FIELD_NUMBER; - hash = (53 * hash) + getObject().hashCode(); - } - if (hasConfig()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - } - if (hasVectorizer()) { - hash = (37 * hash) + VECTORIZER_FIELD_NUMBER; - hash = (53 * hash) + getVectorizer().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Insert.ObjectRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Insert.ObjectRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.ObjectRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Insert.ObjectRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.ObjectRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Insert.ObjectRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.ObjectRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Insert.ObjectRequest 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 org.vdaas.vald.api.v1.payload.Insert.ObjectRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Insert.ObjectRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.ObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Insert.ObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Insert.ObjectRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the insert by binary object request.
-     * 
- * - * Protobuf type {@code payload.v1.Insert.ObjectRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Insert.ObjectRequest) - org.vdaas.vald.api.v1.payload.Insert.ObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_ObjectRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_ObjectRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.class, org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getObjectFieldBuilder(); - getConfigFieldBuilder(); - getVectorizerFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - object_ = null; - if (objectBuilder_ != null) { - objectBuilder_.dispose(); - objectBuilder_ = null; - } - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - vectorizer_ = null; - if (vectorizerBuilder_ != null) { - vectorizerBuilder_.dispose(); - vectorizerBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_ObjectRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.ObjectRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.ObjectRequest build() { - org.vdaas.vald.api.v1.payload.Insert.ObjectRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.ObjectRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Insert.ObjectRequest result = new org.vdaas.vald.api.v1.payload.Insert.ObjectRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Insert.ObjectRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.object_ = objectBuilder_ == null - ? object_ - : objectBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.vectorizer_ = vectorizerBuilder_ == null - ? vectorizer_ - : vectorizerBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Insert.ObjectRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Insert.ObjectRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Insert.ObjectRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.getDefaultInstance()) return this; - if (other.hasObject()) { - mergeObject(other.getObject()); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - if (other.hasVectorizer()) { - mergeVectorizer(other.getVectorizer()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getObjectFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getVectorizerFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private org.vdaas.vald.api.v1.payload.Object.Blob object_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Blob, org.vdaas.vald.api.v1.payload.Object.Blob.Builder, org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder> objectBuilder_; - /** - *
-       * The binary object to be inserted.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - * @return Whether the object field is set. - */ - public boolean hasObject() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * The binary object to be inserted.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - * @return The object. - */ - public org.vdaas.vald.api.v1.payload.Object.Blob getObject() { - if (objectBuilder_ == null) { - return object_ == null ? org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance() : object_; - } else { - return objectBuilder_.getMessage(); - } - } - /** - *
-       * The binary object to be inserted.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - public Builder setObject(org.vdaas.vald.api.v1.payload.Object.Blob value) { - if (objectBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - object_ = value; - } else { - objectBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The binary object to be inserted.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - public Builder setObject( - org.vdaas.vald.api.v1.payload.Object.Blob.Builder builderForValue) { - if (objectBuilder_ == null) { - object_ = builderForValue.build(); - } else { - objectBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The binary object to be inserted.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - public Builder mergeObject(org.vdaas.vald.api.v1.payload.Object.Blob value) { - if (objectBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - object_ != null && - object_ != org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance()) { - getObjectBuilder().mergeFrom(value); - } else { - object_ = value; - } - } else { - objectBuilder_.mergeFrom(value); - } - if (object_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - *
-       * The binary object to be inserted.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - public Builder clearObject() { - bitField0_ = (bitField0_ & ~0x00000001); - object_ = null; - if (objectBuilder_ != null) { - objectBuilder_.dispose(); - objectBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The binary object to be inserted.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Blob.Builder getObjectBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getObjectFieldBuilder().getBuilder(); - } - /** - *
-       * The binary object to be inserted.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - public org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder getObjectOrBuilder() { - if (objectBuilder_ != null) { - return objectBuilder_.getMessageOrBuilder(); - } else { - return object_ == null ? - org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance() : object_; - } - } - /** - *
-       * The binary object to be inserted.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Blob, org.vdaas.vald.api.v1.payload.Object.Blob.Builder, org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder> - getObjectFieldBuilder() { - if (objectBuilder_ == null) { - objectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Blob, org.vdaas.vald.api.v1.payload.Object.Blob.Builder, org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder>( - getObject(), - getParentForChildren(), - isClean()); - object_ = null; - } - return objectBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Insert.Config config_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Insert.Config, org.vdaas.vald.api.v1.payload.Insert.Config.Builder, org.vdaas.vald.api.v1.payload.Insert.ConfigOrBuilder> configBuilder_; - /** - *
-       * The configuration of the insert request.
-       * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * The configuration of the insert request.
-       * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - * @return The config. - */ - public org.vdaas.vald.api.v1.payload.Insert.Config getConfig() { - if (configBuilder_ == null) { - return config_ == null ? org.vdaas.vald.api.v1.payload.Insert.Config.getDefaultInstance() : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - *
-       * The configuration of the insert request.
-       * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig(org.vdaas.vald.api.v1.payload.Insert.Config value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - } else { - configBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the insert request.
-       * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig( - org.vdaas.vald.api.v1.payload.Insert.Config.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the insert request.
-       * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - */ - public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Insert.Config value) { - if (configBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - config_ != null && - config_ != org.vdaas.vald.api.v1.payload.Insert.Config.getDefaultInstance()) { - getConfigBuilder().mergeFrom(value); - } else { - config_ = value; - } - } else { - configBuilder_.mergeFrom(value); - } - if (config_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - *
-       * The configuration of the insert request.
-       * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - */ - public Builder clearConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The configuration of the insert request.
-       * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Insert.Config.Builder getConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - *
-       * The configuration of the insert request.
-       * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Insert.ConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null ? - org.vdaas.vald.api.v1.payload.Insert.Config.getDefaultInstance() : config_; - } - } - /** - *
-       * The configuration of the insert request.
-       * 
- * - * .payload.v1.Insert.Config config = 2 [json_name = "config"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Insert.Config, org.vdaas.vald.api.v1.payload.Insert.Config.Builder, org.vdaas.vald.api.v1.payload.Insert.ConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Insert.Config, org.vdaas.vald.api.v1.payload.Insert.Config.Builder, org.vdaas.vald.api.v1.payload.Insert.ConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); - config_ = null; - } - return configBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Filter.Target vectorizer_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Target, org.vdaas.vald.api.v1.payload.Filter.Target.Builder, org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder> vectorizerBuilder_; - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return Whether the vectorizer field is set. - */ - public boolean hasVectorizer() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return The vectorizer. - */ - public org.vdaas.vald.api.v1.payload.Filter.Target getVectorizer() { - if (vectorizerBuilder_ == null) { - return vectorizer_ == null ? org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance() : vectorizer_; - } else { - return vectorizerBuilder_.getMessage(); - } - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public Builder setVectorizer(org.vdaas.vald.api.v1.payload.Filter.Target value) { - if (vectorizerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - vectorizer_ = value; - } else { - vectorizerBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public Builder setVectorizer( - org.vdaas.vald.api.v1.payload.Filter.Target.Builder builderForValue) { - if (vectorizerBuilder_ == null) { - vectorizer_ = builderForValue.build(); - } else { - vectorizerBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public Builder mergeVectorizer(org.vdaas.vald.api.v1.payload.Filter.Target value) { - if (vectorizerBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - vectorizer_ != null && - vectorizer_ != org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance()) { - getVectorizerBuilder().mergeFrom(value); - } else { - vectorizer_ = value; - } - } else { - vectorizerBuilder_.mergeFrom(value); - } - if (vectorizer_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public Builder clearVectorizer() { - bitField0_ = (bitField0_ & ~0x00000004); - vectorizer_ = null; - if (vectorizerBuilder_ != null) { - vectorizerBuilder_.dispose(); - vectorizerBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.Target.Builder getVectorizerBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getVectorizerFieldBuilder().getBuilder(); - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder getVectorizerOrBuilder() { - if (vectorizerBuilder_ != null) { - return vectorizerBuilder_.getMessageOrBuilder(); - } else { - return vectorizer_ == null ? - org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance() : vectorizer_; - } - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Target, org.vdaas.vald.api.v1.payload.Filter.Target.Builder, org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder> - getVectorizerFieldBuilder() { - if (vectorizerBuilder_ == null) { - vectorizerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Target, org.vdaas.vald.api.v1.payload.Filter.Target.Builder, org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder>( - getVectorizer(), - getParentForChildren(), - isClean()); - vectorizer_ = null; - } - return vectorizerBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Insert.ObjectRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Insert.ObjectRequest) - private static final org.vdaas.vald.api.v1.payload.Insert.ObjectRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Insert.ObjectRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Insert.ObjectRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.ObjectRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MultiObjectRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Insert.MultiObjectRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represent multiple insert by object content.
-     * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsList(); - /** - *
-     * Represent multiple insert by object content.
-     * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Insert.ObjectRequest getRequests(int index); - /** - *
-     * Represent multiple insert by object content.
-     * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - int getRequestsCount(); - /** - *
-     * Represent multiple insert by object content.
-     * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-     * Represent multiple insert by object content.
-     * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Insert.ObjectRequestOrBuilder getRequestsOrBuilder( - int index); - } - /** - *
-   * Represent the multiple insert by binary object request.
-   * 
- * - * Protobuf type {@code payload.v1.Insert.MultiObjectRequest} - */ - public static final class MultiObjectRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Insert.MultiObjectRequest) - MultiObjectRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MultiObjectRequest.newBuilder() to construct. - private MultiObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MultiObjectRequest() { - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MultiObjectRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_MultiObjectRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_MultiObjectRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest.class, org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest.Builder.class); - } - - public static final int REQUESTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List requests_; - /** - *
-     * Represent multiple insert by object content.
-     * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List getRequestsList() { - return requests_; - } - /** - *
-     * Represent multiple insert by object content.
-     * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - *
-     * Represent multiple insert by object content.
-     * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - *
-     * Represent multiple insert by object content.
-     * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.ObjectRequest getRequests(int index) { - return requests_.get(index); - } - /** - *
-     * Represent multiple insert by object content.
-     * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.ObjectRequestOrBuilder getRequestsOrBuilder( - int index) { - return requests_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(1, requests_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest other = (org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest) obj; - - if (!getRequestsList() - .equals(other.getRequestsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest 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 org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the multiple insert by binary object request.
-     * 
- * - * Protobuf type {@code payload.v1.Insert.MultiObjectRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Insert.MultiObjectRequest) - org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_MultiObjectRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_MultiObjectRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest.class, org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_MultiObjectRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest build() { - org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest result = new org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest result) { - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest.getDefaultInstance()) return this; - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Insert.ObjectRequest m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.parser(), - extensionRegistry); - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(m); - } else { - requestsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List requests_ = - java.util.Collections.emptyList(); - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Insert.ObjectRequest, org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.Builder, org.vdaas.vald.api.v1.payload.Insert.ObjectRequestOrBuilder> requestsBuilder_; - - /** - *
-       * Represent multiple insert by object content.
-       * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public java.util.List getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - *
-       * Represent multiple insert by object content.
-       * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - *
-       * Represent multiple insert by object content.
-       * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Insert.ObjectRequest getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - *
-       * Represent multiple insert by object content.
-       * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Insert.ObjectRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Represent multiple insert by object content.
-       * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent multiple insert by object content.
-       * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests(org.vdaas.vald.api.v1.payload.Insert.ObjectRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Represent multiple insert by object content.
-       * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Insert.ObjectRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Represent multiple insert by object content.
-       * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Represent multiple insert by object content.
-       * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent multiple insert by object content.
-       * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addAllRequests( - java.lang.Iterable values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Represent multiple insert by object content.
-       * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - *
-       * Represent multiple insert by object content.
-       * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Represent multiple insert by object content.
-       * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - *
-       * Represent multiple insert by object content.
-       * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Insert.ObjectRequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Represent multiple insert by object content.
-       * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - *
-       * Represent multiple insert by object content.
-       * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.getDefaultInstance()); - } - /** - *
-       * Represent multiple insert by object content.
-       * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.getDefaultInstance()); - } - /** - *
-       * Represent multiple insert by object content.
-       * 
- * - * repeated .payload.v1.Insert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Insert.ObjectRequest, org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.Builder, org.vdaas.vald.api.v1.payload.Insert.ObjectRequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Insert.ObjectRequest, org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.Builder, org.vdaas.vald.api.v1.payload.Insert.ObjectRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - requests_ = null; - } - return requestsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Insert.MultiObjectRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Insert.MultiObjectRequest) - private static final org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MultiObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Insert.Config) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A flag to skip exist check during insert operation.
-     * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @return The skipStrictExistCheck. - */ - boolean getSkipStrictExistCheck(); - - /** - *
-     * Filter configurations.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return Whether the filters field is set. - */ - boolean hasFilters(); - /** - *
-     * Filter configurations.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return The filters. - */ - org.vdaas.vald.api.v1.payload.Filter.Config getFilters(); - /** - *
-     * Filter configurations.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getFiltersOrBuilder(); - - /** - *
-     * Insert timestamp.
-     * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return The timestamp. - */ - long getTimestamp(); - } - /** - *
-   * Represent insert configurations.
-   * 
- * - * Protobuf type {@code payload.v1.Insert.Config} - */ - public static final class Config extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Insert.Config) - ConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use Config.newBuilder() to construct. - private Config(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Config() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Config(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_Config_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_Config_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Insert.Config.class, org.vdaas.vald.api.v1.payload.Insert.Config.Builder.class); - } - - private int bitField0_; - public static final int SKIP_STRICT_EXIST_CHECK_FIELD_NUMBER = 1; - private boolean skipStrictExistCheck_ = false; - /** - *
-     * A flag to skip exist check during insert operation.
-     * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @return The skipStrictExistCheck. - */ - @java.lang.Override - public boolean getSkipStrictExistCheck() { - return skipStrictExistCheck_; - } - - public static final int FILTERS_FIELD_NUMBER = 2; - private org.vdaas.vald.api.v1.payload.Filter.Config filters_; - /** - *
-     * Filter configurations.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return Whether the filters field is set. - */ - @java.lang.Override - public boolean hasFilters() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Filter configurations.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return The filters. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Config getFilters() { - return filters_ == null ? org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : filters_; - } - /** - *
-     * Filter configurations.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getFiltersOrBuilder() { - return filters_ == null ? org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : filters_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 3; - private long timestamp_ = 0L; - /** - *
-     * Insert timestamp.
-     * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (skipStrictExistCheck_ != false) { - output.writeBool(1, skipStrictExistCheck_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getFilters()); - } - if (timestamp_ != 0L) { - output.writeInt64(3, timestamp_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (skipStrictExistCheck_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, skipStrictExistCheck_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFilters()); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, timestamp_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Insert.Config)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Insert.Config other = (org.vdaas.vald.api.v1.payload.Insert.Config) obj; - - if (getSkipStrictExistCheck() - != other.getSkipStrictExistCheck()) return false; - if (hasFilters() != other.hasFilters()) return false; - if (hasFilters()) { - if (!getFilters() - .equals(other.getFilters())) return false; - } - if (getTimestamp() - != other.getTimestamp()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SKIP_STRICT_EXIST_CHECK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSkipStrictExistCheck()); - if (hasFilters()) { - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - } - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Insert.Config parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Insert.Config parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.Config parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Insert.Config parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.Config parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Insert.Config parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.Config parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Insert.Config 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 org.vdaas.vald.api.v1.payload.Insert.Config parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Insert.Config parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert.Config parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Insert.Config parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Insert.Config prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent insert configurations.
-     * 
- * - * Protobuf type {@code payload.v1.Insert.Config} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Insert.Config) - org.vdaas.vald.api.v1.payload.Insert.ConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_Config_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_Config_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Insert.Config.class, org.vdaas.vald.api.v1.payload.Insert.Config.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Insert.Config.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getFiltersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - skipStrictExistCheck_ = false; - filters_ = null; - if (filtersBuilder_ != null) { - filtersBuilder_.dispose(); - filtersBuilder_ = null; - } - timestamp_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_Config_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.Config getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Insert.Config.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.Config build() { - org.vdaas.vald.api.v1.payload.Insert.Config result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.Config buildPartial() { - org.vdaas.vald.api.v1.payload.Insert.Config result = new org.vdaas.vald.api.v1.payload.Insert.Config(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Insert.Config result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.skipStrictExistCheck_ = skipStrictExistCheck_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.filters_ = filtersBuilder_ == null - ? filters_ - : filtersBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.timestamp_ = timestamp_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Insert.Config) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Insert.Config)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Insert.Config other) { - if (other == org.vdaas.vald.api.v1.payload.Insert.Config.getDefaultInstance()) return this; - if (other.getSkipStrictExistCheck() != false) { - setSkipStrictExistCheck(other.getSkipStrictExistCheck()); - } - if (other.hasFilters()) { - mergeFilters(other.getFilters()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - skipStrictExistCheck_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getFiltersFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - timestamp_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean skipStrictExistCheck_ ; - /** - *
-       * A flag to skip exist check during insert operation.
-       * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @return The skipStrictExistCheck. - */ - @java.lang.Override - public boolean getSkipStrictExistCheck() { - return skipStrictExistCheck_; - } - /** - *
-       * A flag to skip exist check during insert operation.
-       * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @param value The skipStrictExistCheck to set. - * @return This builder for chaining. - */ - public Builder setSkipStrictExistCheck(boolean value) { - - skipStrictExistCheck_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * A flag to skip exist check during insert operation.
-       * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @return This builder for chaining. - */ - public Builder clearSkipStrictExistCheck() { - bitField0_ = (bitField0_ & ~0x00000001); - skipStrictExistCheck_ = false; - onChanged(); - return this; - } - - private org.vdaas.vald.api.v1.payload.Filter.Config filters_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Config, org.vdaas.vald.api.v1.payload.Filter.Config.Builder, org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder> filtersBuilder_; - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return Whether the filters field is set. - */ - public boolean hasFilters() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return The filters. - */ - public org.vdaas.vald.api.v1.payload.Filter.Config getFilters() { - if (filtersBuilder_ == null) { - return filters_ == null ? org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : filters_; - } else { - return filtersBuilder_.getMessage(); - } - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public Builder setFilters(org.vdaas.vald.api.v1.payload.Filter.Config value) { - if (filtersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filters_ = value; - } else { - filtersBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public Builder setFilters( - org.vdaas.vald.api.v1.payload.Filter.Config.Builder builderForValue) { - if (filtersBuilder_ == null) { - filters_ = builderForValue.build(); - } else { - filtersBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public Builder mergeFilters(org.vdaas.vald.api.v1.payload.Filter.Config value) { - if (filtersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - filters_ != null && - filters_ != org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance()) { - getFiltersBuilder().mergeFrom(value); - } else { - filters_ = value; - } - } else { - filtersBuilder_.mergeFrom(value); - } - if (filters_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public Builder clearFilters() { - bitField0_ = (bitField0_ & ~0x00000002); - filters_ = null; - if (filtersBuilder_ != null) { - filtersBuilder_.dispose(); - filtersBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.Config.Builder getFiltersBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getFiltersFieldBuilder().getBuilder(); - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getFiltersOrBuilder() { - if (filtersBuilder_ != null) { - return filtersBuilder_.getMessageOrBuilder(); - } else { - return filters_ == null ? - org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : filters_; - } - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Config, org.vdaas.vald.api.v1.payload.Filter.Config.Builder, org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder> - getFiltersFieldBuilder() { - if (filtersBuilder_ == null) { - filtersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Config, org.vdaas.vald.api.v1.payload.Filter.Config.Builder, org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder>( - getFilters(), - getParentForChildren(), - isClean()); - filters_ = null; - } - return filtersBuilder_; - } - - private long timestamp_ ; - /** - *
-       * Insert timestamp.
-       * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - /** - *
-       * Insert timestamp.
-       * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Insert timestamp.
-       * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000004); - timestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Insert.Config) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Insert.Config) - private static final org.vdaas.vald.api.v1.payload.Insert.Config DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Insert.Config(); - } - - public static org.vdaas.vald.api.v1.payload.Insert.Config getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Config parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert.Config getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Insert)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Insert other = (org.vdaas.vald.api.v1.payload.Insert) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Insert parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Insert parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Insert parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Insert parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Insert 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 org.vdaas.vald.api.v1.payload.Insert parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Insert parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Insert parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Insert parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Insert prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Insert related messages.
-   * 
- * - * Protobuf type {@code payload.v1.Insert} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Insert) - org.vdaas.vald.api.v1.payload.InsertOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Insert.class, org.vdaas.vald.api.v1.payload.Insert.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Insert.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Insert_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Insert.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert build() { - org.vdaas.vald.api.v1.payload.Insert result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert buildPartial() { - org.vdaas.vald.api.v1.payload.Insert result = new org.vdaas.vald.api.v1.payload.Insert(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Insert) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Insert)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Insert other) { - if (other == org.vdaas.vald.api.v1.payload.Insert.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Insert) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Insert) - private static final org.vdaas.vald.api.v1.payload.Insert DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Insert(); - } - - public static org.vdaas.vald.api.v1.payload.Insert getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Insert parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Insert getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/InsertOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/payload/InsertOrBuilder.java deleted file mode 100644 index 05b1de4f..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/InsertOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -public interface InsertOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Insert) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Mirror.java b/src/main/java/org/vdaas/vald/api/v1/payload/Mirror.java deleted file mode 100644 index a9a786aa..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/Mirror.java +++ /dev/null @@ -1,1997 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -/** - *
- * Mirror related messages.
- * 
- * - * Protobuf type {@code payload.v1.Mirror} - */ -public final class Mirror extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Mirror) - MirrorOrBuilder { -private static final long serialVersionUID = 0L; - // Use Mirror.newBuilder() to construct. - private Mirror(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Mirror() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Mirror(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Mirror_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Mirror_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Mirror.class, org.vdaas.vald.api.v1.payload.Mirror.Builder.class); - } - - public interface TargetOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Mirror.Target) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The target hostname.
-     * 
- * - * string host = 1 [json_name = "host"]; - * @return The host. - */ - java.lang.String getHost(); - /** - *
-     * The target hostname.
-     * 
- * - * string host = 1 [json_name = "host"]; - * @return The bytes for host. - */ - com.google.protobuf.ByteString - getHostBytes(); - - /** - *
-     * The target port.
-     * 
- * - * uint32 port = 2 [json_name = "port"]; - * @return The port. - */ - int getPort(); - } - /** - *
-   * Represent server information.
-   * 
- * - * Protobuf type {@code payload.v1.Mirror.Target} - */ - public static final class Target extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Mirror.Target) - TargetOrBuilder { - private static final long serialVersionUID = 0L; - // Use Target.newBuilder() to construct. - private Target(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Target() { - host_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Target(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Mirror_Target_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Mirror_Target_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Mirror.Target.class, org.vdaas.vald.api.v1.payload.Mirror.Target.Builder.class); - } - - public static final int HOST_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object host_ = ""; - /** - *
-     * The target hostname.
-     * 
- * - * string host = 1 [json_name = "host"]; - * @return The host. - */ - @java.lang.Override - public java.lang.String getHost() { - java.lang.Object ref = host_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - host_ = s; - return s; - } - } - /** - *
-     * The target hostname.
-     * 
- * - * string host = 1 [json_name = "host"]; - * @return The bytes for host. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getHostBytes() { - java.lang.Object ref = host_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - host_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PORT_FIELD_NUMBER = 2; - private int port_ = 0; - /** - *
-     * The target port.
-     * 
- * - * uint32 port = 2 [json_name = "port"]; - * @return The port. - */ - @java.lang.Override - public int getPort() { - return port_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, host_); - } - if (port_ != 0) { - output.writeUInt32(2, port_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, host_); - } - if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, port_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Mirror.Target)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Mirror.Target other = (org.vdaas.vald.api.v1.payload.Mirror.Target) obj; - - if (!getHost() - .equals(other.getHost())) return false; - if (getPort() - != other.getPort()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HOST_FIELD_NUMBER; - hash = (53 * hash) + getHost().hashCode(); - hash = (37 * hash) + PORT_FIELD_NUMBER; - hash = (53 * hash) + getPort(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Mirror.Target parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Mirror.Target parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Mirror.Target parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Mirror.Target parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Mirror.Target parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Mirror.Target parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Mirror.Target parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Mirror.Target 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 org.vdaas.vald.api.v1.payload.Mirror.Target parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Mirror.Target parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Mirror.Target parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Mirror.Target parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Mirror.Target prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent server information.
-     * 
- * - * Protobuf type {@code payload.v1.Mirror.Target} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Mirror.Target) - org.vdaas.vald.api.v1.payload.Mirror.TargetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Mirror_Target_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Mirror_Target_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Mirror.Target.class, org.vdaas.vald.api.v1.payload.Mirror.Target.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Mirror.Target.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - host_ = ""; - port_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Mirror_Target_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Mirror.Target getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Mirror.Target.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Mirror.Target build() { - org.vdaas.vald.api.v1.payload.Mirror.Target result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Mirror.Target buildPartial() { - org.vdaas.vald.api.v1.payload.Mirror.Target result = new org.vdaas.vald.api.v1.payload.Mirror.Target(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Mirror.Target result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.host_ = host_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.port_ = port_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Mirror.Target) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Mirror.Target)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Mirror.Target other) { - if (other == org.vdaas.vald.api.v1.payload.Mirror.Target.getDefaultInstance()) return this; - if (!other.getHost().isEmpty()) { - host_ = other.host_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPort() != 0) { - setPort(other.getPort()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - host_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - port_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object host_ = ""; - /** - *
-       * The target hostname.
-       * 
- * - * string host = 1 [json_name = "host"]; - * @return The host. - */ - public java.lang.String getHost() { - java.lang.Object ref = host_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - host_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The target hostname.
-       * 
- * - * string host = 1 [json_name = "host"]; - * @return The bytes for host. - */ - public com.google.protobuf.ByteString - getHostBytes() { - java.lang.Object ref = host_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - host_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The target hostname.
-       * 
- * - * string host = 1 [json_name = "host"]; - * @param value The host to set. - * @return This builder for chaining. - */ - public Builder setHost( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - host_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The target hostname.
-       * 
- * - * string host = 1 [json_name = "host"]; - * @return This builder for chaining. - */ - public Builder clearHost() { - host_ = getDefaultInstance().getHost(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The target hostname.
-       * 
- * - * string host = 1 [json_name = "host"]; - * @param value The bytes for host to set. - * @return This builder for chaining. - */ - public Builder setHostBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - host_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int port_ ; - /** - *
-       * The target port.
-       * 
- * - * uint32 port = 2 [json_name = "port"]; - * @return The port. - */ - @java.lang.Override - public int getPort() { - return port_; - } - /** - *
-       * The target port.
-       * 
- * - * uint32 port = 2 [json_name = "port"]; - * @param value The port to set. - * @return This builder for chaining. - */ - public Builder setPort(int value) { - - port_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The target port.
-       * 
- * - * uint32 port = 2 [json_name = "port"]; - * @return This builder for chaining. - */ - public Builder clearPort() { - bitField0_ = (bitField0_ & ~0x00000002); - port_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Mirror.Target) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Mirror.Target) - private static final org.vdaas.vald.api.v1.payload.Mirror.Target DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Mirror.Target(); - } - - public static org.vdaas.vald.api.v1.payload.Mirror.Target getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Target parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Mirror.Target getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TargetsOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Mirror.Targets) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The multiple target information.
-     * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - java.util.List - getTargetsList(); - /** - *
-     * The multiple target information.
-     * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - org.vdaas.vald.api.v1.payload.Mirror.Target getTargets(int index); - /** - *
-     * The multiple target information.
-     * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - int getTargetsCount(); - /** - *
-     * The multiple target information.
-     * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - java.util.List - getTargetsOrBuilderList(); - /** - *
-     * The multiple target information.
-     * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - org.vdaas.vald.api.v1.payload.Mirror.TargetOrBuilder getTargetsOrBuilder( - int index); - } - /** - *
-   * Represent the multiple Target message.
-   * 
- * - * Protobuf type {@code payload.v1.Mirror.Targets} - */ - public static final class Targets extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Mirror.Targets) - TargetsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Targets.newBuilder() to construct. - private Targets(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Targets() { - targets_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Targets(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Mirror_Targets_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Mirror_Targets_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Mirror.Targets.class, org.vdaas.vald.api.v1.payload.Mirror.Targets.Builder.class); - } - - public static final int TARGETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List targets_; - /** - *
-     * The multiple target information.
-     * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - @java.lang.Override - public java.util.List getTargetsList() { - return targets_; - } - /** - *
-     * The multiple target information.
-     * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - @java.lang.Override - public java.util.List - getTargetsOrBuilderList() { - return targets_; - } - /** - *
-     * The multiple target information.
-     * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - @java.lang.Override - public int getTargetsCount() { - return targets_.size(); - } - /** - *
-     * The multiple target information.
-     * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Mirror.Target getTargets(int index) { - return targets_.get(index); - } - /** - *
-     * The multiple target information.
-     * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Mirror.TargetOrBuilder getTargetsOrBuilder( - int index) { - return targets_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < targets_.size(); i++) { - output.writeMessage(1, targets_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < targets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, targets_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Mirror.Targets)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Mirror.Targets other = (org.vdaas.vald.api.v1.payload.Mirror.Targets) obj; - - if (!getTargetsList() - .equals(other.getTargetsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTargetsCount() > 0) { - hash = (37 * hash) + TARGETS_FIELD_NUMBER; - hash = (53 * hash) + getTargetsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Mirror.Targets parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Mirror.Targets parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Mirror.Targets parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Mirror.Targets parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Mirror.Targets parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Mirror.Targets parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Mirror.Targets parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Mirror.Targets 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 org.vdaas.vald.api.v1.payload.Mirror.Targets parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Mirror.Targets parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Mirror.Targets parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Mirror.Targets parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Mirror.Targets prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the multiple Target message.
-     * 
- * - * Protobuf type {@code payload.v1.Mirror.Targets} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Mirror.Targets) - org.vdaas.vald.api.v1.payload.Mirror.TargetsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Mirror_Targets_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Mirror_Targets_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Mirror.Targets.class, org.vdaas.vald.api.v1.payload.Mirror.Targets.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Mirror.Targets.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (targetsBuilder_ == null) { - targets_ = java.util.Collections.emptyList(); - } else { - targets_ = null; - targetsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Mirror_Targets_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Mirror.Targets getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Mirror.Targets.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Mirror.Targets build() { - org.vdaas.vald.api.v1.payload.Mirror.Targets result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Mirror.Targets buildPartial() { - org.vdaas.vald.api.v1.payload.Mirror.Targets result = new org.vdaas.vald.api.v1.payload.Mirror.Targets(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Mirror.Targets result) { - if (targetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - targets_ = java.util.Collections.unmodifiableList(targets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.targets_ = targets_; - } else { - result.targets_ = targetsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Mirror.Targets result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Mirror.Targets) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Mirror.Targets)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Mirror.Targets other) { - if (other == org.vdaas.vald.api.v1.payload.Mirror.Targets.getDefaultInstance()) return this; - if (targetsBuilder_ == null) { - if (!other.targets_.isEmpty()) { - if (targets_.isEmpty()) { - targets_ = other.targets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTargetsIsMutable(); - targets_.addAll(other.targets_); - } - onChanged(); - } - } else { - if (!other.targets_.isEmpty()) { - if (targetsBuilder_.isEmpty()) { - targetsBuilder_.dispose(); - targetsBuilder_ = null; - targets_ = other.targets_; - bitField0_ = (bitField0_ & ~0x00000001); - targetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTargetsFieldBuilder() : null; - } else { - targetsBuilder_.addAllMessages(other.targets_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Mirror.Target m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Mirror.Target.parser(), - extensionRegistry); - if (targetsBuilder_ == null) { - ensureTargetsIsMutable(); - targets_.add(m); - } else { - targetsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List targets_ = - java.util.Collections.emptyList(); - private void ensureTargetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - targets_ = new java.util.ArrayList(targets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Mirror.Target, org.vdaas.vald.api.v1.payload.Mirror.Target.Builder, org.vdaas.vald.api.v1.payload.Mirror.TargetOrBuilder> targetsBuilder_; - - /** - *
-       * The multiple target information.
-       * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - public java.util.List getTargetsList() { - if (targetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(targets_); - } else { - return targetsBuilder_.getMessageList(); - } - } - /** - *
-       * The multiple target information.
-       * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - public int getTargetsCount() { - if (targetsBuilder_ == null) { - return targets_.size(); - } else { - return targetsBuilder_.getCount(); - } - } - /** - *
-       * The multiple target information.
-       * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - public org.vdaas.vald.api.v1.payload.Mirror.Target getTargets(int index) { - if (targetsBuilder_ == null) { - return targets_.get(index); - } else { - return targetsBuilder_.getMessage(index); - } - } - /** - *
-       * The multiple target information.
-       * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - public Builder setTargets( - int index, org.vdaas.vald.api.v1.payload.Mirror.Target value) { - if (targetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTargetsIsMutable(); - targets_.set(index, value); - onChanged(); - } else { - targetsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The multiple target information.
-       * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - public Builder setTargets( - int index, org.vdaas.vald.api.v1.payload.Mirror.Target.Builder builderForValue) { - if (targetsBuilder_ == null) { - ensureTargetsIsMutable(); - targets_.set(index, builderForValue.build()); - onChanged(); - } else { - targetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The multiple target information.
-       * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - public Builder addTargets(org.vdaas.vald.api.v1.payload.Mirror.Target value) { - if (targetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTargetsIsMutable(); - targets_.add(value); - onChanged(); - } else { - targetsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The multiple target information.
-       * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - public Builder addTargets( - int index, org.vdaas.vald.api.v1.payload.Mirror.Target value) { - if (targetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTargetsIsMutable(); - targets_.add(index, value); - onChanged(); - } else { - targetsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The multiple target information.
-       * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - public Builder addTargets( - org.vdaas.vald.api.v1.payload.Mirror.Target.Builder builderForValue) { - if (targetsBuilder_ == null) { - ensureTargetsIsMutable(); - targets_.add(builderForValue.build()); - onChanged(); - } else { - targetsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The multiple target information.
-       * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - public Builder addTargets( - int index, org.vdaas.vald.api.v1.payload.Mirror.Target.Builder builderForValue) { - if (targetsBuilder_ == null) { - ensureTargetsIsMutable(); - targets_.add(index, builderForValue.build()); - onChanged(); - } else { - targetsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The multiple target information.
-       * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - public Builder addAllTargets( - java.lang.Iterable values) { - if (targetsBuilder_ == null) { - ensureTargetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, targets_); - onChanged(); - } else { - targetsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The multiple target information.
-       * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - public Builder clearTargets() { - if (targetsBuilder_ == null) { - targets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - targetsBuilder_.clear(); - } - return this; - } - /** - *
-       * The multiple target information.
-       * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - public Builder removeTargets(int index) { - if (targetsBuilder_ == null) { - ensureTargetsIsMutable(); - targets_.remove(index); - onChanged(); - } else { - targetsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The multiple target information.
-       * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - public org.vdaas.vald.api.v1.payload.Mirror.Target.Builder getTargetsBuilder( - int index) { - return getTargetsFieldBuilder().getBuilder(index); - } - /** - *
-       * The multiple target information.
-       * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - public org.vdaas.vald.api.v1.payload.Mirror.TargetOrBuilder getTargetsOrBuilder( - int index) { - if (targetsBuilder_ == null) { - return targets_.get(index); } else { - return targetsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The multiple target information.
-       * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - public java.util.List - getTargetsOrBuilderList() { - if (targetsBuilder_ != null) { - return targetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(targets_); - } - } - /** - *
-       * The multiple target information.
-       * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - public org.vdaas.vald.api.v1.payload.Mirror.Target.Builder addTargetsBuilder() { - return getTargetsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Mirror.Target.getDefaultInstance()); - } - /** - *
-       * The multiple target information.
-       * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - public org.vdaas.vald.api.v1.payload.Mirror.Target.Builder addTargetsBuilder( - int index) { - return getTargetsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Mirror.Target.getDefaultInstance()); - } - /** - *
-       * The multiple target information.
-       * 
- * - * repeated .payload.v1.Mirror.Target targets = 1 [json_name = "targets"]; - */ - public java.util.List - getTargetsBuilderList() { - return getTargetsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Mirror.Target, org.vdaas.vald.api.v1.payload.Mirror.Target.Builder, org.vdaas.vald.api.v1.payload.Mirror.TargetOrBuilder> - getTargetsFieldBuilder() { - if (targetsBuilder_ == null) { - targetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Mirror.Target, org.vdaas.vald.api.v1.payload.Mirror.Target.Builder, org.vdaas.vald.api.v1.payload.Mirror.TargetOrBuilder>( - targets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - targets_ = null; - } - return targetsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Mirror.Targets) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Mirror.Targets) - private static final org.vdaas.vald.api.v1.payload.Mirror.Targets DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Mirror.Targets(); - } - - public static org.vdaas.vald.api.v1.payload.Mirror.Targets getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Targets parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Mirror.Targets getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Mirror)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Mirror other = (org.vdaas.vald.api.v1.payload.Mirror) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Mirror parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Mirror parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Mirror parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Mirror parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Mirror parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Mirror parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Mirror parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Mirror 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 org.vdaas.vald.api.v1.payload.Mirror parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Mirror parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Mirror parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Mirror parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Mirror prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Mirror related messages.
-   * 
- * - * Protobuf type {@code payload.v1.Mirror} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Mirror) - org.vdaas.vald.api.v1.payload.MirrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Mirror_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Mirror_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Mirror.class, org.vdaas.vald.api.v1.payload.Mirror.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Mirror.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Mirror_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Mirror getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Mirror.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Mirror build() { - org.vdaas.vald.api.v1.payload.Mirror result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Mirror buildPartial() { - org.vdaas.vald.api.v1.payload.Mirror result = new org.vdaas.vald.api.v1.payload.Mirror(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Mirror) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Mirror)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Mirror other) { - if (other == org.vdaas.vald.api.v1.payload.Mirror.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Mirror) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Mirror) - private static final org.vdaas.vald.api.v1.payload.Mirror DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Mirror(); - } - - public static org.vdaas.vald.api.v1.payload.Mirror getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Mirror parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Mirror getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/MirrorOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/payload/MirrorOrBuilder.java deleted file mode 100644 index f8dc331d..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/MirrorOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -public interface MirrorOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Mirror) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Object.java b/src/main/java/org/vdaas/vald/api/v1/payload/Object.java deleted file mode 100644 index ddc6ac55..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/Object.java +++ /dev/null @@ -1,15678 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -/** - *
- * Common messages.
- * 
- * - * Protobuf type {@code payload.v1.Object} - */ -public final class Object extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object) - ObjectOrBuilder { -private static final long serialVersionUID = 0L; - // Use Object.newBuilder() to construct. - private Object(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Object() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Object(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.class, org.vdaas.vald.api.v1.payload.Object.Builder.class); - } - - public interface VectorRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.VectorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The vector ID to be fetched.
-     * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return Whether the id field is set. - */ - boolean hasId(); - /** - *
-     * The vector ID to be fetched.
-     * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The id. - */ - org.vdaas.vald.api.v1.payload.Object.ID getId(); - /** - *
-     * The vector ID to be fetched.
-     * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - */ - org.vdaas.vald.api.v1.payload.Object.IDOrBuilder getIdOrBuilder(); - - /** - *
-     * Filter configurations.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return Whether the filters field is set. - */ - boolean hasFilters(); - /** - *
-     * Filter configurations.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return The filters. - */ - org.vdaas.vald.api.v1.payload.Filter.Config getFilters(); - /** - *
-     * Filter configurations.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getFiltersOrBuilder(); - } - /** - *
-   * Represent a request to fetch raw vector.
-   * 
- * - * Protobuf type {@code payload.v1.Object.VectorRequest} - */ - public static final class VectorRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.VectorRequest) - VectorRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use VectorRequest.newBuilder() to construct. - private VectorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VectorRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new VectorRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_VectorRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_VectorRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.VectorRequest.class, org.vdaas.vald.api.v1.payload.Object.VectorRequest.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private org.vdaas.vald.api.v1.payload.Object.ID id_; - /** - *
-     * The vector ID to be fetched.
-     * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return Whether the id field is set. - */ - @java.lang.Override - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The vector ID to be fetched.
-     * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The id. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.ID getId() { - return id_ == null ? org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance() : id_; - } - /** - *
-     * The vector ID to be fetched.
-     * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.IDOrBuilder getIdOrBuilder() { - return id_ == null ? org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance() : id_; - } - - public static final int FILTERS_FIELD_NUMBER = 2; - private org.vdaas.vald.api.v1.payload.Filter.Config filters_; - /** - *
-     * Filter configurations.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return Whether the filters field is set. - */ - @java.lang.Override - public boolean hasFilters() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Filter configurations.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return The filters. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Config getFilters() { - return filters_ == null ? org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : filters_; - } - /** - *
-     * Filter configurations.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getFiltersOrBuilder() { - return filters_ == null ? org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : filters_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getId()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getFilters()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getId()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFilters()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.VectorRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.VectorRequest other = (org.vdaas.vald.api.v1.payload.Object.VectorRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasFilters() != other.hasFilters()) return false; - if (hasFilters()) { - if (!getFilters() - .equals(other.getFilters())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - if (hasFilters()) { - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.VectorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.VectorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.VectorRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.VectorRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.VectorRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.VectorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.VectorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.VectorRequest 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 org.vdaas.vald.api.v1.payload.Object.VectorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.VectorRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.VectorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.VectorRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.VectorRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent a request to fetch raw vector.
-     * 
- * - * Protobuf type {@code payload.v1.Object.VectorRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.VectorRequest) - org.vdaas.vald.api.v1.payload.Object.VectorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_VectorRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_VectorRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.VectorRequest.class, org.vdaas.vald.api.v1.payload.Object.VectorRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.VectorRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getIdFieldBuilder(); - getFiltersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = null; - if (idBuilder_ != null) { - idBuilder_.dispose(); - idBuilder_ = null; - } - filters_ = null; - if (filtersBuilder_ != null) { - filtersBuilder_.dispose(); - filtersBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_VectorRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.VectorRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.VectorRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.VectorRequest build() { - org.vdaas.vald.api.v1.payload.Object.VectorRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.VectorRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Object.VectorRequest result = new org.vdaas.vald.api.v1.payload.Object.VectorRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.VectorRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = idBuilder_ == null - ? id_ - : idBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.filters_ = filtersBuilder_ == null - ? filters_ - : filtersBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.VectorRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.VectorRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.VectorRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Object.VectorRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasFilters()) { - mergeFilters(other.getFilters()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getIdFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getFiltersFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private org.vdaas.vald.api.v1.payload.Object.ID id_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.ID, org.vdaas.vald.api.v1.payload.Object.ID.Builder, org.vdaas.vald.api.v1.payload.Object.IDOrBuilder> idBuilder_; - /** - *
-       * The vector ID to be fetched.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return Whether the id field is set. - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * The vector ID to be fetched.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The id. - */ - public org.vdaas.vald.api.v1.payload.Object.ID getId() { - if (idBuilder_ == null) { - return id_ == null ? org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * The vector ID to be fetched.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - */ - public Builder setId(org.vdaas.vald.api.v1.payload.Object.ID value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - } else { - idBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The vector ID to be fetched.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - */ - public Builder setId( - org.vdaas.vald.api.v1.payload.Object.ID.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The vector ID to be fetched.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - */ - public Builder mergeId(org.vdaas.vald.api.v1.payload.Object.ID value) { - if (idBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - id_ != null && - id_ != org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance()) { - getIdBuilder().mergeFrom(value); - } else { - id_ = value; - } - } else { - idBuilder_.mergeFrom(value); - } - if (id_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - *
-       * The vector ID to be fetched.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = null; - if (idBuilder_ != null) { - idBuilder_.dispose(); - idBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The vector ID to be fetched.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Object.ID.Builder getIdBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * The vector ID to be fetched.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Object.IDOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance() : id_; - } - } - /** - *
-       * The vector ID to be fetched.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.ID, org.vdaas.vald.api.v1.payload.Object.ID.Builder, org.vdaas.vald.api.v1.payload.Object.IDOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.ID, org.vdaas.vald.api.v1.payload.Object.ID.Builder, org.vdaas.vald.api.v1.payload.Object.IDOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Filter.Config filters_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Config, org.vdaas.vald.api.v1.payload.Filter.Config.Builder, org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder> filtersBuilder_; - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return Whether the filters field is set. - */ - public boolean hasFilters() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return The filters. - */ - public org.vdaas.vald.api.v1.payload.Filter.Config getFilters() { - if (filtersBuilder_ == null) { - return filters_ == null ? org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : filters_; - } else { - return filtersBuilder_.getMessage(); - } - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public Builder setFilters(org.vdaas.vald.api.v1.payload.Filter.Config value) { - if (filtersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filters_ = value; - } else { - filtersBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public Builder setFilters( - org.vdaas.vald.api.v1.payload.Filter.Config.Builder builderForValue) { - if (filtersBuilder_ == null) { - filters_ = builderForValue.build(); - } else { - filtersBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public Builder mergeFilters(org.vdaas.vald.api.v1.payload.Filter.Config value) { - if (filtersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - filters_ != null && - filters_ != org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance()) { - getFiltersBuilder().mergeFrom(value); - } else { - filters_ = value; - } - } else { - filtersBuilder_.mergeFrom(value); - } - if (filters_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public Builder clearFilters() { - bitField0_ = (bitField0_ & ~0x00000002); - filters_ = null; - if (filtersBuilder_ != null) { - filtersBuilder_.dispose(); - filtersBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.Config.Builder getFiltersBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getFiltersFieldBuilder().getBuilder(); - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getFiltersOrBuilder() { - if (filtersBuilder_ != null) { - return filtersBuilder_.getMessageOrBuilder(); - } else { - return filters_ == null ? - org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : filters_; - } - } - /** - *
-       * Filter configurations.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Config, org.vdaas.vald.api.v1.payload.Filter.Config.Builder, org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder> - getFiltersFieldBuilder() { - if (filtersBuilder_ == null) { - filtersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Config, org.vdaas.vald.api.v1.payload.Filter.Config.Builder, org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder>( - getFilters(), - getParentForChildren(), - isClean()); - filters_ = null; - } - return filtersBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.VectorRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.VectorRequest) - private static final org.vdaas.vald.api.v1.payload.Object.VectorRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.VectorRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Object.VectorRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VectorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.VectorRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DistanceOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.Distance) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The vector ID.
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - java.lang.String getId(); - /** - *
-     * The vector ID.
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-     * The distance.
-     * 
- * - * float distance = 2 [json_name = "distance"]; - * @return The distance. - */ - float getDistance(); - } - /** - *
-   * Represent the ID and distance pair.
-   * 
- * - * Protobuf type {@code payload.v1.Object.Distance} - */ - public static final class Distance extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.Distance) - DistanceOrBuilder { - private static final long serialVersionUID = 0L; - // Use Distance.newBuilder() to construct. - private Distance(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Distance() { - id_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Distance(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Distance_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Distance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.Distance.class, org.vdaas.vald.api.v1.payload.Object.Distance.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - *
-     * The vector ID.
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-     * The vector ID.
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISTANCE_FIELD_NUMBER = 2; - private float distance_ = 0F; - /** - *
-     * The distance.
-     * 
- * - * float distance = 2 [json_name = "distance"]; - * @return The distance. - */ - @java.lang.Override - public float getDistance() { - return distance_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (java.lang.Float.floatToRawIntBits(distance_) != 0) { - output.writeFloat(2, distance_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (java.lang.Float.floatToRawIntBits(distance_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, distance_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.Distance)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.Distance other = (org.vdaas.vald.api.v1.payload.Object.Distance) obj; - - if (!getId() - .equals(other.getId())) return false; - if (java.lang.Float.floatToIntBits(getDistance()) - != java.lang.Float.floatToIntBits( - other.getDistance())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + DISTANCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getDistance()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.Distance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Distance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Distance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Distance parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Distance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Distance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Distance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.Distance 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 org.vdaas.vald.api.v1.payload.Object.Distance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.Distance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Distance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.Distance parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.Distance prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the ID and distance pair.
-     * 
- * - * Protobuf type {@code payload.v1.Object.Distance} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.Distance) - org.vdaas.vald.api.v1.payload.Object.DistanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Distance_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Distance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.Distance.class, org.vdaas.vald.api.v1.payload.Object.Distance.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.Distance.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - distance_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Distance_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Distance getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.Distance.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Distance build() { - org.vdaas.vald.api.v1.payload.Object.Distance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Distance buildPartial() { - org.vdaas.vald.api.v1.payload.Object.Distance result = new org.vdaas.vald.api.v1.payload.Object.Distance(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.Distance result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.distance_ = distance_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.Distance) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.Distance)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.Distance other) { - if (other == org.vdaas.vald.api.v1.payload.Object.Distance.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getDistance() != 0F) { - setDistance(other.getDistance()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: { - distance_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - *
-       * The vector ID.
-       * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The vector ID.
-       * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The vector ID.
-       * 
- * - * string id = 1 [json_name = "id"]; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The vector ID.
-       * 
- * - * string id = 1 [json_name = "id"]; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The vector ID.
-       * 
- * - * string id = 1 [json_name = "id"]; - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private float distance_ ; - /** - *
-       * The distance.
-       * 
- * - * float distance = 2 [json_name = "distance"]; - * @return The distance. - */ - @java.lang.Override - public float getDistance() { - return distance_; - } - /** - *
-       * The distance.
-       * 
- * - * float distance = 2 [json_name = "distance"]; - * @param value The distance to set. - * @return This builder for chaining. - */ - public Builder setDistance(float value) { - - distance_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The distance.
-       * 
- * - * float distance = 2 [json_name = "distance"]; - * @return This builder for chaining. - */ - public Builder clearDistance() { - bitField0_ = (bitField0_ & ~0x00000002); - distance_ = 0F; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.Distance) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.Distance) - private static final org.vdaas.vald.api.v1.payload.Object.Distance DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.Distance(); - } - - public static org.vdaas.vald.api.v1.payload.Object.Distance getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Distance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Distance getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StreamDistanceOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.StreamDistance) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The distance.
-     * 
- * - * .payload.v1.Object.Distance distance = 1 [json_name = "distance"]; - * @return Whether the distance field is set. - */ - boolean hasDistance(); - /** - *
-     * The distance.
-     * 
- * - * .payload.v1.Object.Distance distance = 1 [json_name = "distance"]; - * @return The distance. - */ - org.vdaas.vald.api.v1.payload.Object.Distance getDistance(); - /** - *
-     * The distance.
-     * 
- * - * .payload.v1.Object.Distance distance = 1 [json_name = "distance"]; - */ - org.vdaas.vald.api.v1.payload.Object.DistanceOrBuilder getDistanceOrBuilder(); - - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return The status. - */ - com.google.rpc.Status getStatus(); - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - com.google.rpc.StatusOrBuilder getStatusOrBuilder(); - - org.vdaas.vald.api.v1.payload.Object.StreamDistance.PayloadCase getPayloadCase(); - } - /** - *
-   * Represent stream response of distances.
-   * 
- * - * Protobuf type {@code payload.v1.Object.StreamDistance} - */ - public static final class StreamDistance extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.StreamDistance) - StreamDistanceOrBuilder { - private static final long serialVersionUID = 0L; - // Use StreamDistance.newBuilder() to construct. - private StreamDistance(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StreamDistance() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StreamDistance(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamDistance_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamDistance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.StreamDistance.class, org.vdaas.vald.api.v1.payload.Object.StreamDistance.Builder.class); - } - - private int payloadCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object payload_; - public enum PayloadCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - DISTANCE(1), - STATUS(2), - PAYLOAD_NOT_SET(0); - private final int value; - private PayloadCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PayloadCase valueOf(int value) { - return forNumber(value); - } - - public static PayloadCase forNumber(int value) { - switch (value) { - case 1: return DISTANCE; - case 2: return STATUS; - case 0: return PAYLOAD_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public PayloadCase - getPayloadCase() { - return PayloadCase.forNumber( - payloadCase_); - } - - public static final int DISTANCE_FIELD_NUMBER = 1; - /** - *
-     * The distance.
-     * 
- * - * .payload.v1.Object.Distance distance = 1 [json_name = "distance"]; - * @return Whether the distance field is set. - */ - @java.lang.Override - public boolean hasDistance() { - return payloadCase_ == 1; - } - /** - *
-     * The distance.
-     * 
- * - * .payload.v1.Object.Distance distance = 1 [json_name = "distance"]; - * @return The distance. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Distance getDistance() { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Distance) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Distance.getDefaultInstance(); - } - /** - *
-     * The distance.
-     * 
- * - * .payload.v1.Object.Distance distance = 1 [json_name = "distance"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.DistanceOrBuilder getDistanceOrBuilder() { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Distance) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Distance.getDefaultInstance(); - } - - public static final int STATUS_FIELD_NUMBER = 2; - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return payloadCase_ == 2; - } - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return The status. - */ - @java.lang.Override - public com.google.rpc.Status getStatus() { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (payloadCase_ == 1) { - output.writeMessage(1, (org.vdaas.vald.api.v1.payload.Object.Distance) payload_); - } - if (payloadCase_ == 2) { - output.writeMessage(2, (com.google.rpc.Status) payload_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (payloadCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (org.vdaas.vald.api.v1.payload.Object.Distance) payload_); - } - if (payloadCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.rpc.Status) payload_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.StreamDistance)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.StreamDistance other = (org.vdaas.vald.api.v1.payload.Object.StreamDistance) obj; - - if (!getPayloadCase().equals(other.getPayloadCase())) return false; - switch (payloadCase_) { - case 1: - if (!getDistance() - .equals(other.getDistance())) return false; - break; - case 2: - if (!getStatus() - .equals(other.getStatus())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (payloadCase_) { - case 1: - hash = (37 * hash) + DISTANCE_FIELD_NUMBER; - hash = (53 * hash) + getDistance().hashCode(); - break; - case 2: - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.StreamDistance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamDistance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamDistance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamDistance parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamDistance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamDistance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamDistance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamDistance 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 org.vdaas.vald.api.v1.payload.Object.StreamDistance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.StreamDistance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamDistance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamDistance parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.StreamDistance prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent stream response of distances.
-     * 
- * - * Protobuf type {@code payload.v1.Object.StreamDistance} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.StreamDistance) - org.vdaas.vald.api.v1.payload.Object.StreamDistanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamDistance_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamDistance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.StreamDistance.class, org.vdaas.vald.api.v1.payload.Object.StreamDistance.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.StreamDistance.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (distanceBuilder_ != null) { - distanceBuilder_.clear(); - } - if (statusBuilder_ != null) { - statusBuilder_.clear(); - } - payloadCase_ = 0; - payload_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamDistance_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.StreamDistance getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.StreamDistance.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.StreamDistance build() { - org.vdaas.vald.api.v1.payload.Object.StreamDistance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.StreamDistance buildPartial() { - org.vdaas.vald.api.v1.payload.Object.StreamDistance result = new org.vdaas.vald.api.v1.payload.Object.StreamDistance(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.StreamDistance result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(org.vdaas.vald.api.v1.payload.Object.StreamDistance result) { - result.payloadCase_ = payloadCase_; - result.payload_ = this.payload_; - if (payloadCase_ == 1 && - distanceBuilder_ != null) { - result.payload_ = distanceBuilder_.build(); - } - if (payloadCase_ == 2 && - statusBuilder_ != null) { - result.payload_ = statusBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.StreamDistance) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.StreamDistance)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.StreamDistance other) { - if (other == org.vdaas.vald.api.v1.payload.Object.StreamDistance.getDefaultInstance()) return this; - switch (other.getPayloadCase()) { - case DISTANCE: { - mergeDistance(other.getDistance()); - break; - } - case STATUS: { - mergeStatus(other.getStatus()); - break; - } - case PAYLOAD_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getDistanceFieldBuilder().getBuilder(), - extensionRegistry); - payloadCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); - payloadCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int payloadCase_ = 0; - private java.lang.Object payload_; - public PayloadCase - getPayloadCase() { - return PayloadCase.forNumber( - payloadCase_); - } - - public Builder clearPayload() { - payloadCase_ = 0; - payload_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Distance, org.vdaas.vald.api.v1.payload.Object.Distance.Builder, org.vdaas.vald.api.v1.payload.Object.DistanceOrBuilder> distanceBuilder_; - /** - *
-       * The distance.
-       * 
- * - * .payload.v1.Object.Distance distance = 1 [json_name = "distance"]; - * @return Whether the distance field is set. - */ - @java.lang.Override - public boolean hasDistance() { - return payloadCase_ == 1; - } - /** - *
-       * The distance.
-       * 
- * - * .payload.v1.Object.Distance distance = 1 [json_name = "distance"]; - * @return The distance. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Distance getDistance() { - if (distanceBuilder_ == null) { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Distance) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Distance.getDefaultInstance(); - } else { - if (payloadCase_ == 1) { - return distanceBuilder_.getMessage(); - } - return org.vdaas.vald.api.v1.payload.Object.Distance.getDefaultInstance(); - } - } - /** - *
-       * The distance.
-       * 
- * - * .payload.v1.Object.Distance distance = 1 [json_name = "distance"]; - */ - public Builder setDistance(org.vdaas.vald.api.v1.payload.Object.Distance value) { - if (distanceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - distanceBuilder_.setMessage(value); - } - payloadCase_ = 1; - return this; - } - /** - *
-       * The distance.
-       * 
- * - * .payload.v1.Object.Distance distance = 1 [json_name = "distance"]; - */ - public Builder setDistance( - org.vdaas.vald.api.v1.payload.Object.Distance.Builder builderForValue) { - if (distanceBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - distanceBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 1; - return this; - } - /** - *
-       * The distance.
-       * 
- * - * .payload.v1.Object.Distance distance = 1 [json_name = "distance"]; - */ - public Builder mergeDistance(org.vdaas.vald.api.v1.payload.Object.Distance value) { - if (distanceBuilder_ == null) { - if (payloadCase_ == 1 && - payload_ != org.vdaas.vald.api.v1.payload.Object.Distance.getDefaultInstance()) { - payload_ = org.vdaas.vald.api.v1.payload.Object.Distance.newBuilder((org.vdaas.vald.api.v1.payload.Object.Distance) payload_) - .mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 1) { - distanceBuilder_.mergeFrom(value); - } else { - distanceBuilder_.setMessage(value); - } - } - payloadCase_ = 1; - return this; - } - /** - *
-       * The distance.
-       * 
- * - * .payload.v1.Object.Distance distance = 1 [json_name = "distance"]; - */ - public Builder clearDistance() { - if (distanceBuilder_ == null) { - if (payloadCase_ == 1) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 1) { - payloadCase_ = 0; - payload_ = null; - } - distanceBuilder_.clear(); - } - return this; - } - /** - *
-       * The distance.
-       * 
- * - * .payload.v1.Object.Distance distance = 1 [json_name = "distance"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Distance.Builder getDistanceBuilder() { - return getDistanceFieldBuilder().getBuilder(); - } - /** - *
-       * The distance.
-       * 
- * - * .payload.v1.Object.Distance distance = 1 [json_name = "distance"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.DistanceOrBuilder getDistanceOrBuilder() { - if ((payloadCase_ == 1) && (distanceBuilder_ != null)) { - return distanceBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Distance) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Distance.getDefaultInstance(); - } - } - /** - *
-       * The distance.
-       * 
- * - * .payload.v1.Object.Distance distance = 1 [json_name = "distance"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Distance, org.vdaas.vald.api.v1.payload.Object.Distance.Builder, org.vdaas.vald.api.v1.payload.Object.DistanceOrBuilder> - getDistanceFieldBuilder() { - if (distanceBuilder_ == null) { - if (!(payloadCase_ == 1)) { - payload_ = org.vdaas.vald.api.v1.payload.Object.Distance.getDefaultInstance(); - } - distanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Distance, org.vdaas.vald.api.v1.payload.Object.Distance.Builder, org.vdaas.vald.api.v1.payload.Object.DistanceOrBuilder>( - (org.vdaas.vald.api.v1.payload.Object.Distance) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 1; - onChanged(); - return distanceBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return payloadCase_ == 2; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return The status. - */ - @java.lang.Override - public com.google.rpc.Status getStatus() { - if (statusBuilder_ == null) { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } else { - if (payloadCase_ == 2) { - return statusBuilder_.getMessage(); - } - return com.google.rpc.Status.getDefaultInstance(); - } - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder setStatus(com.google.rpc.Status value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - statusBuilder_.setMessage(value); - } - payloadCase_ = 2; - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder setStatus( - com.google.rpc.Status.Builder builderForValue) { - if (statusBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 2; - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder mergeStatus(com.google.rpc.Status value) { - if (statusBuilder_ == null) { - if (payloadCase_ == 2 && - payload_ != com.google.rpc.Status.getDefaultInstance()) { - payload_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) payload_) - .mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 2) { - statusBuilder_.mergeFrom(value); - } else { - statusBuilder_.setMessage(value); - } - } - payloadCase_ = 2; - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - if (payloadCase_ == 2) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 2) { - payloadCase_ = 0; - payload_ = null; - } - statusBuilder_.clear(); - } - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public com.google.rpc.Status.Builder getStatusBuilder() { - return getStatusFieldBuilder().getBuilder(); - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - if ((payloadCase_ == 2) && (statusBuilder_ != null)) { - return statusBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - if (!(payloadCase_ == 2)) { - payload_ = com.google.rpc.Status.getDefaultInstance(); - } - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - (com.google.rpc.Status) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 2; - onChanged(); - return statusBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.StreamDistance) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.StreamDistance) - private static final org.vdaas.vald.api.v1.payload.Object.StreamDistance DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.StreamDistance(); - } - - public static org.vdaas.vald.api.v1.payload.Object.StreamDistance getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamDistance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.StreamDistance getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IDOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.ID) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The id. - */ - java.lang.String getId(); - /** - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - } - /** - *
-   * Represent the vector ID.
-   * 
- * - * Protobuf type {@code payload.v1.Object.ID} - */ - public static final class ID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.ID) - IDOrBuilder { - private static final long serialVersionUID = 0L; - // Use ID.newBuilder() to construct. - private ID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ID() { - id_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ID(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_ID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_ID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.ID.class, org.vdaas.vald.api.v1.payload.Object.ID.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.ID)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.ID other = (org.vdaas.vald.api.v1.payload.Object.ID) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.ID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.ID parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.ID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.ID parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.ID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.ID parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.ID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.ID 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 org.vdaas.vald.api.v1.payload.Object.ID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.ID parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.ID parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.ID parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.ID prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the vector ID.
-     * 
- * - * Protobuf type {@code payload.v1.Object.ID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.ID) - org.vdaas.vald.api.v1.payload.Object.IDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_ID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_ID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.ID.class, org.vdaas.vald.api.v1.payload.Object.ID.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.ID.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_ID_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.ID getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.ID build() { - org.vdaas.vald.api.v1.payload.Object.ID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.ID buildPartial() { - org.vdaas.vald.api.v1.payload.Object.ID result = new org.vdaas.vald.api.v1.payload.Object.ID(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.ID result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.ID) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.ID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.ID other) { - if (other == org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.ID) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.ID) - private static final org.vdaas.vald.api.v1.payload.Object.ID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.ID(); - } - - public static org.vdaas.vald.api.v1.payload.Object.ID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.ID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IDsOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.IDs) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string ids = 1 [json_name = "ids"]; - * @return A list containing the ids. - */ - java.util.List - getIdsList(); - /** - * repeated string ids = 1 [json_name = "ids"]; - * @return The count of ids. - */ - int getIdsCount(); - /** - * repeated string ids = 1 [json_name = "ids"]; - * @param index The index of the element to return. - * @return The ids at the given index. - */ - java.lang.String getIds(int index); - /** - * repeated string ids = 1 [json_name = "ids"]; - * @param index The index of the value to return. - * @return The bytes of the ids at the given index. - */ - com.google.protobuf.ByteString - getIdsBytes(int index); - } - /** - *
-   * Represent multiple vector IDs.
-   * 
- * - * Protobuf type {@code payload.v1.Object.IDs} - */ - public static final class IDs extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.IDs) - IDsOrBuilder { - private static final long serialVersionUID = 0L; - // Use IDs.newBuilder() to construct. - private IDs(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IDs() { - ids_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new IDs(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_IDs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_IDs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.IDs.class, org.vdaas.vald.api.v1.payload.Object.IDs.Builder.class); - } - - public static final int IDS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList ids_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string ids = 1 [json_name = "ids"]; - * @return A list containing the ids. - */ - public com.google.protobuf.ProtocolStringList - getIdsList() { - return ids_; - } - /** - * repeated string ids = 1 [json_name = "ids"]; - * @return The count of ids. - */ - public int getIdsCount() { - return ids_.size(); - } - /** - * repeated string ids = 1 [json_name = "ids"]; - * @param index The index of the element to return. - * @return The ids at the given index. - */ - public java.lang.String getIds(int index) { - return ids_.get(index); - } - /** - * repeated string ids = 1 [json_name = "ids"]; - * @param index The index of the value to return. - * @return The bytes of the ids at the given index. - */ - public com.google.protobuf.ByteString - getIdsBytes(int index) { - return ids_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < ids_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ids_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < ids_.size(); i++) { - dataSize += computeStringSizeNoTag(ids_.getRaw(i)); - } - size += dataSize; - size += 1 * getIdsList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.IDs)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.IDs other = (org.vdaas.vald.api.v1.payload.Object.IDs) obj; - - if (!getIdsList() - .equals(other.getIdsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getIdsCount() > 0) { - hash = (37 * hash) + IDS_FIELD_NUMBER; - hash = (53 * hash) + getIdsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.IDs parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.IDs parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.IDs parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.IDs parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.IDs parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.IDs parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.IDs parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.IDs 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 org.vdaas.vald.api.v1.payload.Object.IDs parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.IDs parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.IDs parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.IDs parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.IDs prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent multiple vector IDs.
-     * 
- * - * Protobuf type {@code payload.v1.Object.IDs} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.IDs) - org.vdaas.vald.api.v1.payload.Object.IDsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_IDs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_IDs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.IDs.class, org.vdaas.vald.api.v1.payload.Object.IDs.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.IDs.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - ids_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_IDs_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.IDs getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.IDs.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.IDs build() { - org.vdaas.vald.api.v1.payload.Object.IDs result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.IDs buildPartial() { - org.vdaas.vald.api.v1.payload.Object.IDs result = new org.vdaas.vald.api.v1.payload.Object.IDs(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.IDs result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - ids_.makeImmutable(); - result.ids_ = ids_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.IDs) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.IDs)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.IDs other) { - if (other == org.vdaas.vald.api.v1.payload.Object.IDs.getDefaultInstance()) return this; - if (!other.ids_.isEmpty()) { - if (ids_.isEmpty()) { - ids_ = other.ids_; - bitField0_ |= 0x00000001; - } else { - ensureIdsIsMutable(); - ids_.addAll(other.ids_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureIdsIsMutable(); - ids_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList ids_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureIdsIsMutable() { - if (!ids_.isModifiable()) { - ids_ = new com.google.protobuf.LazyStringArrayList(ids_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string ids = 1 [json_name = "ids"]; - * @return A list containing the ids. - */ - public com.google.protobuf.ProtocolStringList - getIdsList() { - ids_.makeImmutable(); - return ids_; - } - /** - * repeated string ids = 1 [json_name = "ids"]; - * @return The count of ids. - */ - public int getIdsCount() { - return ids_.size(); - } - /** - * repeated string ids = 1 [json_name = "ids"]; - * @param index The index of the element to return. - * @return The ids at the given index. - */ - public java.lang.String getIds(int index) { - return ids_.get(index); - } - /** - * repeated string ids = 1 [json_name = "ids"]; - * @param index The index of the value to return. - * @return The bytes of the ids at the given index. - */ - public com.google.protobuf.ByteString - getIdsBytes(int index) { - return ids_.getByteString(index); - } - /** - * repeated string ids = 1 [json_name = "ids"]; - * @param index The index to set the value at. - * @param value The ids to set. - * @return This builder for chaining. - */ - public Builder setIds( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureIdsIsMutable(); - ids_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string ids = 1 [json_name = "ids"]; - * @param value The ids to add. - * @return This builder for chaining. - */ - public Builder addIds( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureIdsIsMutable(); - ids_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string ids = 1 [json_name = "ids"]; - * @param values The ids to add. - * @return This builder for chaining. - */ - public Builder addAllIds( - java.lang.Iterable values) { - ensureIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ids_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string ids = 1 [json_name = "ids"]; - * @return This builder for chaining. - */ - public Builder clearIds() { - ids_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string ids = 1 [json_name = "ids"]; - * @param value The bytes of the ids to add. - * @return This builder for chaining. - */ - public Builder addIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureIdsIsMutable(); - ids_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.IDs) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.IDs) - private static final org.vdaas.vald.api.v1.payload.Object.IDs DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.IDs(); - } - - public static org.vdaas.vald.api.v1.payload.Object.IDs getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IDs parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.IDs getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface VectorOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.Vector) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The vector ID.
-     * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The id. - */ - java.lang.String getId(); - /** - *
-     * The vector ID.
-     * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-     * The vector.
-     * 
- * - * repeated float vector = 2 [json_name = "vector", (.buf.validate.field) = { ... } - * @return A list containing the vector. - */ - java.util.List getVectorList(); - /** - *
-     * The vector.
-     * 
- * - * repeated float vector = 2 [json_name = "vector", (.buf.validate.field) = { ... } - * @return The count of vector. - */ - int getVectorCount(); - /** - *
-     * The vector.
-     * 
- * - * repeated float vector = 2 [json_name = "vector", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The vector at the given index. - */ - float getVector(int index); - - /** - *
-     * timestamp represents when this vector inserted.
-     * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return The timestamp. - */ - long getTimestamp(); - } - /** - *
-   * Represent a vector.
-   * 
- * - * Protobuf type {@code payload.v1.Object.Vector} - */ - public static final class Vector extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.Vector) - VectorOrBuilder { - private static final long serialVersionUID = 0L; - // Use Vector.newBuilder() to construct. - private Vector(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Vector() { - id_ = ""; - vector_ = emptyFloatList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Vector(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Vector_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Vector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.Vector.class, org.vdaas.vald.api.v1.payload.Object.Vector.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - *
-     * The vector ID.
-     * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-     * The vector ID.
-     * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VECTOR_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.FloatList vector_ = - emptyFloatList(); - /** - *
-     * The vector.
-     * 
- * - * repeated float vector = 2 [json_name = "vector", (.buf.validate.field) = { ... } - * @return A list containing the vector. - */ - @java.lang.Override - public java.util.List - getVectorList() { - return vector_; - } - /** - *
-     * The vector.
-     * 
- * - * repeated float vector = 2 [json_name = "vector", (.buf.validate.field) = { ... } - * @return The count of vector. - */ - public int getVectorCount() { - return vector_.size(); - } - /** - *
-     * The vector.
-     * 
- * - * repeated float vector = 2 [json_name = "vector", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The vector at the given index. - */ - public float getVector(int index) { - return vector_.getFloat(index); - } - private int vectorMemoizedSerializedSize = -1; - - public static final int TIMESTAMP_FIELD_NUMBER = 3; - private long timestamp_ = 0L; - /** - *
-     * timestamp represents when this vector inserted.
-     * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (getVectorList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(vectorMemoizedSerializedSize); - } - for (int i = 0; i < vector_.size(); i++) { - output.writeFloatNoTag(vector_.getFloat(i)); - } - if (timestamp_ != 0L) { - output.writeInt64(3, timestamp_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - { - int dataSize = 0; - dataSize = 4 * getVectorList().size(); - size += dataSize; - if (!getVectorList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - vectorMemoizedSerializedSize = dataSize; - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, timestamp_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.Vector)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.Vector other = (org.vdaas.vald.api.v1.payload.Object.Vector) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!getVectorList() - .equals(other.getVectorList())) return false; - if (getTimestamp() - != other.getTimestamp()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (getVectorCount() > 0) { - hash = (37 * hash) + VECTOR_FIELD_NUMBER; - hash = (53 * hash) + getVectorList().hashCode(); - } - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.Vector parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Vector parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Vector parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Vector parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Vector parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Vector parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Vector parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.Vector 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 org.vdaas.vald.api.v1.payload.Object.Vector parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.Vector parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Vector parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.Vector parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.Vector prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent a vector.
-     * 
- * - * Protobuf type {@code payload.v1.Object.Vector} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.Vector) - org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Vector_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Vector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.Vector.class, org.vdaas.vald.api.v1.payload.Object.Vector.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.Vector.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - vector_ = emptyFloatList(); - timestamp_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Vector_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Vector getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Vector build() { - org.vdaas.vald.api.v1.payload.Object.Vector result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Vector buildPartial() { - org.vdaas.vald.api.v1.payload.Object.Vector result = new org.vdaas.vald.api.v1.payload.Object.Vector(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.Vector result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - vector_.makeImmutable(); - result.vector_ = vector_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.timestamp_ = timestamp_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.Vector) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.Vector)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.Vector other) { - if (other == org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.vector_.isEmpty()) { - if (vector_.isEmpty()) { - vector_ = other.vector_; - vector_.makeImmutable(); - bitField0_ |= 0x00000002; - } else { - ensureVectorIsMutable(); - vector_.addAll(other.vector_); - } - onChanged(); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: { - float v = input.readFloat(); - ensureVectorIsMutable(); - vector_.addFloat(v); - break; - } // case 21 - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureVectorIsMutable(alloc / 4); - while (input.getBytesUntilLimit() > 0) { - vector_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; - } // case 18 - case 24: { - timestamp_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - *
-       * The vector ID.
-       * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The vector ID.
-       * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The vector ID.
-       * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The vector ID.
-       * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The vector ID.
-       * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList(); - private void ensureVectorIsMutable() { - if (!vector_.isModifiable()) { - vector_ = makeMutableCopy(vector_); - } - bitField0_ |= 0x00000002; - } - private void ensureVectorIsMutable(int capacity) { - if (!vector_.isModifiable()) { - vector_ = makeMutableCopy(vector_, capacity); - } - bitField0_ |= 0x00000002; - } - /** - *
-       * The vector.
-       * 
- * - * repeated float vector = 2 [json_name = "vector", (.buf.validate.field) = { ... } - * @return A list containing the vector. - */ - public java.util.List - getVectorList() { - vector_.makeImmutable(); - return vector_; - } - /** - *
-       * The vector.
-       * 
- * - * repeated float vector = 2 [json_name = "vector", (.buf.validate.field) = { ... } - * @return The count of vector. - */ - public int getVectorCount() { - return vector_.size(); - } - /** - *
-       * The vector.
-       * 
- * - * repeated float vector = 2 [json_name = "vector", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The vector at the given index. - */ - public float getVector(int index) { - return vector_.getFloat(index); - } - /** - *
-       * The vector.
-       * 
- * - * repeated float vector = 2 [json_name = "vector", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The vector to set. - * @return This builder for chaining. - */ - public Builder setVector( - int index, float value) { - - ensureVectorIsMutable(); - vector_.setFloat(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The vector.
-       * 
- * - * repeated float vector = 2 [json_name = "vector", (.buf.validate.field) = { ... } - * @param value The vector to add. - * @return This builder for chaining. - */ - public Builder addVector(float value) { - - ensureVectorIsMutable(); - vector_.addFloat(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The vector.
-       * 
- * - * repeated float vector = 2 [json_name = "vector", (.buf.validate.field) = { ... } - * @param values The vector to add. - * @return This builder for chaining. - */ - public Builder addAllVector( - java.lang.Iterable values) { - ensureVectorIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vector_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The vector.
-       * 
- * - * repeated float vector = 2 [json_name = "vector", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVector() { - vector_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - private long timestamp_ ; - /** - *
-       * timestamp represents when this vector inserted.
-       * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - /** - *
-       * timestamp represents when this vector inserted.
-       * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * timestamp represents when this vector inserted.
-       * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000004); - timestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.Vector) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.Vector) - private static final org.vdaas.vald.api.v1.payload.Object.Vector DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.Vector(); - } - - public static org.vdaas.vald.api.v1.payload.Object.Vector getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Vector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Vector getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetTimestampRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.GetTimestampRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The vector ID to be fetched.
-     * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return Whether the id field is set. - */ - boolean hasId(); - /** - *
-     * The vector ID to be fetched.
-     * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The id. - */ - org.vdaas.vald.api.v1.payload.Object.ID getId(); - /** - *
-     * The vector ID to be fetched.
-     * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - */ - org.vdaas.vald.api.v1.payload.Object.IDOrBuilder getIdOrBuilder(); - } - /** - *
-   * Represent a request to fetch vector meta data.
-   * 
- * - * Protobuf type {@code payload.v1.Object.GetTimestampRequest} - */ - public static final class GetTimestampRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.GetTimestampRequest) - GetTimestampRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetTimestampRequest.newBuilder() to construct. - private GetTimestampRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTimestampRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetTimestampRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_GetTimestampRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_GetTimestampRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest.class, org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private org.vdaas.vald.api.v1.payload.Object.ID id_; - /** - *
-     * The vector ID to be fetched.
-     * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return Whether the id field is set. - */ - @java.lang.Override - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The vector ID to be fetched.
-     * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The id. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.ID getId() { - return id_ == null ? org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance() : id_; - } - /** - *
-     * The vector ID to be fetched.
-     * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.IDOrBuilder getIdOrBuilder() { - return id_ == null ? org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance() : id_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getId()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getId()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest other = (org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest 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 org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent a request to fetch vector meta data.
-     * 
- * - * Protobuf type {@code payload.v1.Object.GetTimestampRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.GetTimestampRequest) - org.vdaas.vald.api.v1.payload.Object.GetTimestampRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_GetTimestampRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_GetTimestampRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest.class, org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getIdFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = null; - if (idBuilder_ != null) { - idBuilder_.dispose(); - idBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_GetTimestampRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest build() { - org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest result = new org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = idBuilder_ == null - ? id_ - : idBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getIdFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private org.vdaas.vald.api.v1.payload.Object.ID id_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.ID, org.vdaas.vald.api.v1.payload.Object.ID.Builder, org.vdaas.vald.api.v1.payload.Object.IDOrBuilder> idBuilder_; - /** - *
-       * The vector ID to be fetched.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return Whether the id field is set. - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * The vector ID to be fetched.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The id. - */ - public org.vdaas.vald.api.v1.payload.Object.ID getId() { - if (idBuilder_ == null) { - return id_ == null ? org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * The vector ID to be fetched.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - */ - public Builder setId(org.vdaas.vald.api.v1.payload.Object.ID value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - } else { - idBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The vector ID to be fetched.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - */ - public Builder setId( - org.vdaas.vald.api.v1.payload.Object.ID.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The vector ID to be fetched.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - */ - public Builder mergeId(org.vdaas.vald.api.v1.payload.Object.ID value) { - if (idBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - id_ != null && - id_ != org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance()) { - getIdBuilder().mergeFrom(value); - } else { - id_ = value; - } - } else { - idBuilder_.mergeFrom(value); - } - if (id_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - *
-       * The vector ID to be fetched.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = null; - if (idBuilder_ != null) { - idBuilder_.dispose(); - idBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The vector ID to be fetched.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Object.ID.Builder getIdBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * The vector ID to be fetched.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Object.IDOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance() : id_; - } - } - /** - *
-       * The vector ID to be fetched.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.ID, org.vdaas.vald.api.v1.payload.Object.ID.Builder, org.vdaas.vald.api.v1.payload.Object.IDOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.ID, org.vdaas.vald.api.v1.payload.Object.ID.Builder, org.vdaas.vald.api.v1.payload.Object.IDOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.GetTimestampRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.GetTimestampRequest) - private static final org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTimestampRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.GetTimestampRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TimestampOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.Timestamp) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The vector ID.
-     * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The id. - */ - java.lang.String getId(); - /** - *
-     * The vector ID.
-     * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-     * timestamp represents when this vector inserted.
-     * 
- * - * int64 timestamp = 2 [json_name = "timestamp"]; - * @return The timestamp. - */ - long getTimestamp(); - } - /** - *
-   * Represent a vector meta data.
-   * 
- * - * Protobuf type {@code payload.v1.Object.Timestamp} - */ - public static final class Timestamp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.Timestamp) - TimestampOrBuilder { - private static final long serialVersionUID = 0L; - // Use Timestamp.newBuilder() to construct. - private Timestamp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Timestamp() { - id_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Timestamp(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Timestamp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Timestamp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.Timestamp.class, org.vdaas.vald.api.v1.payload.Object.Timestamp.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - *
-     * The vector ID.
-     * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-     * The vector ID.
-     * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private long timestamp_ = 0L; - /** - *
-     * timestamp represents when this vector inserted.
-     * 
- * - * int64 timestamp = 2 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (timestamp_ != 0L) { - output.writeInt64(2, timestamp_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, timestamp_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.Timestamp)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.Timestamp other = (org.vdaas.vald.api.v1.payload.Object.Timestamp) obj; - - if (!getId() - .equals(other.getId())) return false; - if (getTimestamp() - != other.getTimestamp()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.Timestamp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Timestamp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Timestamp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Timestamp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Timestamp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Timestamp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Timestamp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.Timestamp 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 org.vdaas.vald.api.v1.payload.Object.Timestamp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.Timestamp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Timestamp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.Timestamp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.Timestamp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent a vector meta data.
-     * 
- * - * Protobuf type {@code payload.v1.Object.Timestamp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.Timestamp) - org.vdaas.vald.api.v1.payload.Object.TimestampOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Timestamp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Timestamp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.Timestamp.class, org.vdaas.vald.api.v1.payload.Object.Timestamp.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.Timestamp.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - timestamp_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Timestamp_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Timestamp getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.Timestamp.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Timestamp build() { - org.vdaas.vald.api.v1.payload.Object.Timestamp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Timestamp buildPartial() { - org.vdaas.vald.api.v1.payload.Object.Timestamp result = new org.vdaas.vald.api.v1.payload.Object.Timestamp(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.Timestamp result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.timestamp_ = timestamp_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.Timestamp) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.Timestamp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.Timestamp other) { - if (other == org.vdaas.vald.api.v1.payload.Object.Timestamp.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - timestamp_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - *
-       * The vector ID.
-       * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The vector ID.
-       * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The vector ID.
-       * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The vector ID.
-       * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The vector ID.
-       * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private long timestamp_ ; - /** - *
-       * timestamp represents when this vector inserted.
-       * 
- * - * int64 timestamp = 2 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - /** - *
-       * timestamp represents when this vector inserted.
-       * 
- * - * int64 timestamp = 2 [json_name = "timestamp"]; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * timestamp represents when this vector inserted.
-       * 
- * - * int64 timestamp = 2 [json_name = "timestamp"]; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000002); - timestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.Timestamp) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.Timestamp) - private static final org.vdaas.vald.api.v1.payload.Object.Timestamp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.Timestamp(); - } - - public static org.vdaas.vald.api.v1.payload.Object.Timestamp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Timestamp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Timestamp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface VectorsOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.Vectors) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - java.util.List - getVectorsList(); - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - org.vdaas.vald.api.v1.payload.Object.Vector getVectors(int index); - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - int getVectorsCount(); - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - java.util.List - getVectorsOrBuilderList(); - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorsOrBuilder( - int index); - } - /** - *
-   * Represent multiple vectors.
-   * 
- * - * Protobuf type {@code payload.v1.Object.Vectors} - */ - public static final class Vectors extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.Vectors) - VectorsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Vectors.newBuilder() to construct. - private Vectors(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Vectors() { - vectors_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Vectors(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Vectors_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Vectors_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.Vectors.class, org.vdaas.vald.api.v1.payload.Object.Vectors.Builder.class); - } - - public static final int VECTORS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List vectors_; - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - @java.lang.Override - public java.util.List getVectorsList() { - return vectors_; - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - @java.lang.Override - public java.util.List - getVectorsOrBuilderList() { - return vectors_; - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - @java.lang.Override - public int getVectorsCount() { - return vectors_.size(); - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Vector getVectors(int index) { - return vectors_.get(index); - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorsOrBuilder( - int index) { - return vectors_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < vectors_.size(); i++) { - output.writeMessage(1, vectors_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < vectors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, vectors_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.Vectors)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.Vectors other = (org.vdaas.vald.api.v1.payload.Object.Vectors) obj; - - if (!getVectorsList() - .equals(other.getVectorsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getVectorsCount() > 0) { - hash = (37 * hash) + VECTORS_FIELD_NUMBER; - hash = (53 * hash) + getVectorsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.Vectors parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Vectors parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Vectors parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Vectors parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Vectors parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Vectors parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Vectors parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.Vectors 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 org.vdaas.vald.api.v1.payload.Object.Vectors parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.Vectors parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Vectors parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.Vectors parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.Vectors prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent multiple vectors.
-     * 
- * - * Protobuf type {@code payload.v1.Object.Vectors} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.Vectors) - org.vdaas.vald.api.v1.payload.Object.VectorsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Vectors_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Vectors_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.Vectors.class, org.vdaas.vald.api.v1.payload.Object.Vectors.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.Vectors.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (vectorsBuilder_ == null) { - vectors_ = java.util.Collections.emptyList(); - } else { - vectors_ = null; - vectorsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Vectors_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Vectors getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.Vectors.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Vectors build() { - org.vdaas.vald.api.v1.payload.Object.Vectors result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Vectors buildPartial() { - org.vdaas.vald.api.v1.payload.Object.Vectors result = new org.vdaas.vald.api.v1.payload.Object.Vectors(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Object.Vectors result) { - if (vectorsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - vectors_ = java.util.Collections.unmodifiableList(vectors_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.vectors_ = vectors_; - } else { - result.vectors_ = vectorsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.Vectors result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.Vectors) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.Vectors)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.Vectors other) { - if (other == org.vdaas.vald.api.v1.payload.Object.Vectors.getDefaultInstance()) return this; - if (vectorsBuilder_ == null) { - if (!other.vectors_.isEmpty()) { - if (vectors_.isEmpty()) { - vectors_ = other.vectors_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureVectorsIsMutable(); - vectors_.addAll(other.vectors_); - } - onChanged(); - } - } else { - if (!other.vectors_.isEmpty()) { - if (vectorsBuilder_.isEmpty()) { - vectorsBuilder_.dispose(); - vectorsBuilder_ = null; - vectors_ = other.vectors_; - bitField0_ = (bitField0_ & ~0x00000001); - vectorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVectorsFieldBuilder() : null; - } else { - vectorsBuilder_.addAllMessages(other.vectors_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Object.Vector m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Object.Vector.parser(), - extensionRegistry); - if (vectorsBuilder_ == null) { - ensureVectorsIsMutable(); - vectors_.add(m); - } else { - vectorsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List vectors_ = - java.util.Collections.emptyList(); - private void ensureVectorsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - vectors_ = new java.util.ArrayList(vectors_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder> vectorsBuilder_; - - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - public java.util.List getVectorsList() { - if (vectorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(vectors_); - } else { - return vectorsBuilder_.getMessageList(); - } - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - public int getVectorsCount() { - if (vectorsBuilder_ == null) { - return vectors_.size(); - } else { - return vectorsBuilder_.getCount(); - } - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Vector getVectors(int index) { - if (vectorsBuilder_ == null) { - return vectors_.get(index); - } else { - return vectorsBuilder_.getMessage(index); - } - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - public Builder setVectors( - int index, org.vdaas.vald.api.v1.payload.Object.Vector value) { - if (vectorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVectorsIsMutable(); - vectors_.set(index, value); - onChanged(); - } else { - vectorsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - public Builder setVectors( - int index, org.vdaas.vald.api.v1.payload.Object.Vector.Builder builderForValue) { - if (vectorsBuilder_ == null) { - ensureVectorsIsMutable(); - vectors_.set(index, builderForValue.build()); - onChanged(); - } else { - vectorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - public Builder addVectors(org.vdaas.vald.api.v1.payload.Object.Vector value) { - if (vectorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVectorsIsMutable(); - vectors_.add(value); - onChanged(); - } else { - vectorsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - public Builder addVectors( - int index, org.vdaas.vald.api.v1.payload.Object.Vector value) { - if (vectorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVectorsIsMutable(); - vectors_.add(index, value); - onChanged(); - } else { - vectorsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - public Builder addVectors( - org.vdaas.vald.api.v1.payload.Object.Vector.Builder builderForValue) { - if (vectorsBuilder_ == null) { - ensureVectorsIsMutable(); - vectors_.add(builderForValue.build()); - onChanged(); - } else { - vectorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - public Builder addVectors( - int index, org.vdaas.vald.api.v1.payload.Object.Vector.Builder builderForValue) { - if (vectorsBuilder_ == null) { - ensureVectorsIsMutable(); - vectors_.add(index, builderForValue.build()); - onChanged(); - } else { - vectorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - public Builder addAllVectors( - java.lang.Iterable values) { - if (vectorsBuilder_ == null) { - ensureVectorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vectors_); - onChanged(); - } else { - vectorsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - public Builder clearVectors() { - if (vectorsBuilder_ == null) { - vectors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - vectorsBuilder_.clear(); - } - return this; - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - public Builder removeVectors(int index) { - if (vectorsBuilder_ == null) { - ensureVectorsIsMutable(); - vectors_.remove(index); - onChanged(); - } else { - vectorsBuilder_.remove(index); - } - return this; - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Vector.Builder getVectorsBuilder( - int index) { - return getVectorsFieldBuilder().getBuilder(index); - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - public org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorsOrBuilder( - int index) { - if (vectorsBuilder_ == null) { - return vectors_.get(index); } else { - return vectorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - public java.util.List - getVectorsOrBuilderList() { - if (vectorsBuilder_ != null) { - return vectorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(vectors_); - } - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Vector.Builder addVectorsBuilder() { - return getVectorsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance()); - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Vector.Builder addVectorsBuilder( - int index) { - return getVectorsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance()); - } - /** - * repeated .payload.v1.Object.Vector vectors = 1 [json_name = "vectors"]; - */ - public java.util.List - getVectorsBuilderList() { - return getVectorsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder> - getVectorsFieldBuilder() { - if (vectorsBuilder_ == null) { - vectorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder>( - vectors_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - vectors_ = null; - } - return vectorsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.Vectors) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.Vectors) - private static final org.vdaas.vald.api.v1.payload.Object.Vectors DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.Vectors(); - } - - public static org.vdaas.vald.api.v1.payload.Object.Vectors getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Vectors parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Vectors getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StreamVectorOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.StreamVector) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The vector.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - * @return Whether the vector field is set. - */ - boolean hasVector(); - /** - *
-     * The vector.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - * @return The vector. - */ - org.vdaas.vald.api.v1.payload.Object.Vector getVector(); - /** - *
-     * The vector.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - */ - org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder(); - - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return The status. - */ - com.google.rpc.Status getStatus(); - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - com.google.rpc.StatusOrBuilder getStatusOrBuilder(); - - org.vdaas.vald.api.v1.payload.Object.StreamVector.PayloadCase getPayloadCase(); - } - /** - *
-   * Represent stream response of the vector.
-   * 
- * - * Protobuf type {@code payload.v1.Object.StreamVector} - */ - public static final class StreamVector extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.StreamVector) - StreamVectorOrBuilder { - private static final long serialVersionUID = 0L; - // Use StreamVector.newBuilder() to construct. - private StreamVector(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StreamVector() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StreamVector(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamVector_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamVector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.StreamVector.class, org.vdaas.vald.api.v1.payload.Object.StreamVector.Builder.class); - } - - private int payloadCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object payload_; - public enum PayloadCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VECTOR(1), - STATUS(2), - PAYLOAD_NOT_SET(0); - private final int value; - private PayloadCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PayloadCase valueOf(int value) { - return forNumber(value); - } - - public static PayloadCase forNumber(int value) { - switch (value) { - case 1: return VECTOR; - case 2: return STATUS; - case 0: return PAYLOAD_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public PayloadCase - getPayloadCase() { - return PayloadCase.forNumber( - payloadCase_); - } - - public static final int VECTOR_FIELD_NUMBER = 1; - /** - *
-     * The vector.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - * @return Whether the vector field is set. - */ - @java.lang.Override - public boolean hasVector() { - return payloadCase_ == 1; - } - /** - *
-     * The vector.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - * @return The vector. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Vector getVector() { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Vector) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); - } - /** - *
-     * The vector.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder() { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Vector) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); - } - - public static final int STATUS_FIELD_NUMBER = 2; - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return payloadCase_ == 2; - } - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return The status. - */ - @java.lang.Override - public com.google.rpc.Status getStatus() { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (payloadCase_ == 1) { - output.writeMessage(1, (org.vdaas.vald.api.v1.payload.Object.Vector) payload_); - } - if (payloadCase_ == 2) { - output.writeMessage(2, (com.google.rpc.Status) payload_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (payloadCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (org.vdaas.vald.api.v1.payload.Object.Vector) payload_); - } - if (payloadCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.rpc.Status) payload_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.StreamVector)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.StreamVector other = (org.vdaas.vald.api.v1.payload.Object.StreamVector) obj; - - if (!getPayloadCase().equals(other.getPayloadCase())) return false; - switch (payloadCase_) { - case 1: - if (!getVector() - .equals(other.getVector())) return false; - break; - case 2: - if (!getStatus() - .equals(other.getStatus())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (payloadCase_) { - case 1: - hash = (37 * hash) + VECTOR_FIELD_NUMBER; - hash = (53 * hash) + getVector().hashCode(); - break; - case 2: - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.StreamVector parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamVector parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamVector parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamVector parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamVector parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamVector parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamVector parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamVector 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 org.vdaas.vald.api.v1.payload.Object.StreamVector parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.StreamVector parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamVector parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamVector parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.StreamVector prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent stream response of the vector.
-     * 
- * - * Protobuf type {@code payload.v1.Object.StreamVector} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.StreamVector) - org.vdaas.vald.api.v1.payload.Object.StreamVectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamVector_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamVector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.StreamVector.class, org.vdaas.vald.api.v1.payload.Object.StreamVector.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.StreamVector.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (vectorBuilder_ != null) { - vectorBuilder_.clear(); - } - if (statusBuilder_ != null) { - statusBuilder_.clear(); - } - payloadCase_ = 0; - payload_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamVector_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.StreamVector getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.StreamVector.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.StreamVector build() { - org.vdaas.vald.api.v1.payload.Object.StreamVector result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.StreamVector buildPartial() { - org.vdaas.vald.api.v1.payload.Object.StreamVector result = new org.vdaas.vald.api.v1.payload.Object.StreamVector(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.StreamVector result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(org.vdaas.vald.api.v1.payload.Object.StreamVector result) { - result.payloadCase_ = payloadCase_; - result.payload_ = this.payload_; - if (payloadCase_ == 1 && - vectorBuilder_ != null) { - result.payload_ = vectorBuilder_.build(); - } - if (payloadCase_ == 2 && - statusBuilder_ != null) { - result.payload_ = statusBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.StreamVector) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.StreamVector)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.StreamVector other) { - if (other == org.vdaas.vald.api.v1.payload.Object.StreamVector.getDefaultInstance()) return this; - switch (other.getPayloadCase()) { - case VECTOR: { - mergeVector(other.getVector()); - break; - } - case STATUS: { - mergeStatus(other.getStatus()); - break; - } - case PAYLOAD_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getVectorFieldBuilder().getBuilder(), - extensionRegistry); - payloadCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); - payloadCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int payloadCase_ = 0; - private java.lang.Object payload_; - public PayloadCase - getPayloadCase() { - return PayloadCase.forNumber( - payloadCase_); - } - - public Builder clearPayload() { - payloadCase_ = 0; - payload_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder> vectorBuilder_; - /** - *
-       * The vector.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - * @return Whether the vector field is set. - */ - @java.lang.Override - public boolean hasVector() { - return payloadCase_ == 1; - } - /** - *
-       * The vector.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - * @return The vector. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Vector getVector() { - if (vectorBuilder_ == null) { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Vector) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); - } else { - if (payloadCase_ == 1) { - return vectorBuilder_.getMessage(); - } - return org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); - } - } - /** - *
-       * The vector.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - */ - public Builder setVector(org.vdaas.vald.api.v1.payload.Object.Vector value) { - if (vectorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - vectorBuilder_.setMessage(value); - } - payloadCase_ = 1; - return this; - } - /** - *
-       * The vector.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - */ - public Builder setVector( - org.vdaas.vald.api.v1.payload.Object.Vector.Builder builderForValue) { - if (vectorBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - vectorBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 1; - return this; - } - /** - *
-       * The vector.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - */ - public Builder mergeVector(org.vdaas.vald.api.v1.payload.Object.Vector value) { - if (vectorBuilder_ == null) { - if (payloadCase_ == 1 && - payload_ != org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance()) { - payload_ = org.vdaas.vald.api.v1.payload.Object.Vector.newBuilder((org.vdaas.vald.api.v1.payload.Object.Vector) payload_) - .mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 1) { - vectorBuilder_.mergeFrom(value); - } else { - vectorBuilder_.setMessage(value); - } - } - payloadCase_ = 1; - return this; - } - /** - *
-       * The vector.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - */ - public Builder clearVector() { - if (vectorBuilder_ == null) { - if (payloadCase_ == 1) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 1) { - payloadCase_ = 0; - payload_ = null; - } - vectorBuilder_.clear(); - } - return this; - } - /** - *
-       * The vector.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Vector.Builder getVectorBuilder() { - return getVectorFieldBuilder().getBuilder(); - } - /** - *
-       * The vector.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder() { - if ((payloadCase_ == 1) && (vectorBuilder_ != null)) { - return vectorBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Vector) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); - } - } - /** - *
-       * The vector.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder> - getVectorFieldBuilder() { - if (vectorBuilder_ == null) { - if (!(payloadCase_ == 1)) { - payload_ = org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); - } - vectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder>( - (org.vdaas.vald.api.v1.payload.Object.Vector) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 1; - onChanged(); - return vectorBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return payloadCase_ == 2; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return The status. - */ - @java.lang.Override - public com.google.rpc.Status getStatus() { - if (statusBuilder_ == null) { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } else { - if (payloadCase_ == 2) { - return statusBuilder_.getMessage(); - } - return com.google.rpc.Status.getDefaultInstance(); - } - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder setStatus(com.google.rpc.Status value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - statusBuilder_.setMessage(value); - } - payloadCase_ = 2; - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder setStatus( - com.google.rpc.Status.Builder builderForValue) { - if (statusBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 2; - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder mergeStatus(com.google.rpc.Status value) { - if (statusBuilder_ == null) { - if (payloadCase_ == 2 && - payload_ != com.google.rpc.Status.getDefaultInstance()) { - payload_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) payload_) - .mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 2) { - statusBuilder_.mergeFrom(value); - } else { - statusBuilder_.setMessage(value); - } - } - payloadCase_ = 2; - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - if (payloadCase_ == 2) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 2) { - payloadCase_ = 0; - payload_ = null; - } - statusBuilder_.clear(); - } - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public com.google.rpc.Status.Builder getStatusBuilder() { - return getStatusFieldBuilder().getBuilder(); - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - if ((payloadCase_ == 2) && (statusBuilder_ != null)) { - return statusBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - if (!(payloadCase_ == 2)) { - payload_ = com.google.rpc.Status.getDefaultInstance(); - } - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - (com.google.rpc.Status) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 2; - onChanged(); - return statusBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.StreamVector) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.StreamVector) - private static final org.vdaas.vald.api.v1.payload.Object.StreamVector DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.StreamVector(); - } - - public static org.vdaas.vald.api.v1.payload.Object.StreamVector getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamVector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.StreamVector getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ReshapeVectorOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.ReshapeVector) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The binary object.
-     * 
- * - * bytes object = 1 [json_name = "object"]; - * @return The object. - */ - com.google.protobuf.ByteString getObject(); - - /** - *
-     * The new shape.
-     * 
- * - * repeated int32 shape = 2 [json_name = "shape"]; - * @return A list containing the shape. - */ - java.util.List getShapeList(); - /** - *
-     * The new shape.
-     * 
- * - * repeated int32 shape = 2 [json_name = "shape"]; - * @return The count of shape. - */ - int getShapeCount(); - /** - *
-     * The new shape.
-     * 
- * - * repeated int32 shape = 2 [json_name = "shape"]; - * @param index The index of the element to return. - * @return The shape at the given index. - */ - int getShape(int index); - } - /** - *
-   * Represent reshape vector.
-   * 
- * - * Protobuf type {@code payload.v1.Object.ReshapeVector} - */ - public static final class ReshapeVector extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.ReshapeVector) - ReshapeVectorOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReshapeVector.newBuilder() to construct. - private ReshapeVector(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReshapeVector() { - object_ = com.google.protobuf.ByteString.EMPTY; - shape_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReshapeVector(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_ReshapeVector_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_ReshapeVector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.ReshapeVector.class, org.vdaas.vald.api.v1.payload.Object.ReshapeVector.Builder.class); - } - - public static final int OBJECT_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString object_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * The binary object.
-     * 
- * - * bytes object = 1 [json_name = "object"]; - * @return The object. - */ - @java.lang.Override - public com.google.protobuf.ByteString getObject() { - return object_; - } - - public static final int SHAPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList shape_ = - emptyIntList(); - /** - *
-     * The new shape.
-     * 
- * - * repeated int32 shape = 2 [json_name = "shape"]; - * @return A list containing the shape. - */ - @java.lang.Override - public java.util.List - getShapeList() { - return shape_; - } - /** - *
-     * The new shape.
-     * 
- * - * repeated int32 shape = 2 [json_name = "shape"]; - * @return The count of shape. - */ - public int getShapeCount() { - return shape_.size(); - } - /** - *
-     * The new shape.
-     * 
- * - * repeated int32 shape = 2 [json_name = "shape"]; - * @param index The index of the element to return. - * @return The shape at the given index. - */ - public int getShape(int index) { - return shape_.getInt(index); - } - private int shapeMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (!object_.isEmpty()) { - output.writeBytes(1, object_); - } - if (getShapeList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(shapeMemoizedSerializedSize); - } - for (int i = 0; i < shape_.size(); i++) { - output.writeInt32NoTag(shape_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!object_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, object_); - } - { - int dataSize = 0; - for (int i = 0; i < shape_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(shape_.getInt(i)); - } - size += dataSize; - if (!getShapeList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - shapeMemoizedSerializedSize = dataSize; - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.ReshapeVector)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.ReshapeVector other = (org.vdaas.vald.api.v1.payload.Object.ReshapeVector) obj; - - if (!getObject() - .equals(other.getObject())) return false; - if (!getShapeList() - .equals(other.getShapeList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OBJECT_FIELD_NUMBER; - hash = (53 * hash) + getObject().hashCode(); - if (getShapeCount() > 0) { - hash = (37 * hash) + SHAPE_FIELD_NUMBER; - hash = (53 * hash) + getShapeList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.ReshapeVector parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.ReshapeVector parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.ReshapeVector parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.ReshapeVector parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.ReshapeVector parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.ReshapeVector parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.ReshapeVector parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.ReshapeVector 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 org.vdaas.vald.api.v1.payload.Object.ReshapeVector parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.ReshapeVector parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.ReshapeVector parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.ReshapeVector parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.ReshapeVector prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent reshape vector.
-     * 
- * - * Protobuf type {@code payload.v1.Object.ReshapeVector} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.ReshapeVector) - org.vdaas.vald.api.v1.payload.Object.ReshapeVectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_ReshapeVector_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_ReshapeVector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.ReshapeVector.class, org.vdaas.vald.api.v1.payload.Object.ReshapeVector.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.ReshapeVector.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - object_ = com.google.protobuf.ByteString.EMPTY; - shape_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_ReshapeVector_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.ReshapeVector getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.ReshapeVector.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.ReshapeVector build() { - org.vdaas.vald.api.v1.payload.Object.ReshapeVector result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.ReshapeVector buildPartial() { - org.vdaas.vald.api.v1.payload.Object.ReshapeVector result = new org.vdaas.vald.api.v1.payload.Object.ReshapeVector(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.ReshapeVector result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.object_ = object_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - shape_.makeImmutable(); - result.shape_ = shape_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.ReshapeVector) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.ReshapeVector)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.ReshapeVector other) { - if (other == org.vdaas.vald.api.v1.payload.Object.ReshapeVector.getDefaultInstance()) return this; - if (other.getObject() != com.google.protobuf.ByteString.EMPTY) { - setObject(other.getObject()); - } - if (!other.shape_.isEmpty()) { - if (shape_.isEmpty()) { - shape_ = other.shape_; - shape_.makeImmutable(); - bitField0_ |= 0x00000002; - } else { - ensureShapeIsMutable(); - shape_.addAll(other.shape_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - object_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - int v = input.readInt32(); - ensureShapeIsMutable(); - shape_.addInt(v); - break; - } // case 16 - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureShapeIsMutable(); - while (input.getBytesUntilLimit() > 0) { - shape_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString object_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * The binary object.
-       * 
- * - * bytes object = 1 [json_name = "object"]; - * @return The object. - */ - @java.lang.Override - public com.google.protobuf.ByteString getObject() { - return object_; - } - /** - *
-       * The binary object.
-       * 
- * - * bytes object = 1 [json_name = "object"]; - * @param value The object to set. - * @return This builder for chaining. - */ - public Builder setObject(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - object_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The binary object.
-       * 
- * - * bytes object = 1 [json_name = "object"]; - * @return This builder for chaining. - */ - public Builder clearObject() { - bitField0_ = (bitField0_ & ~0x00000001); - object_ = getDefaultInstance().getObject(); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList shape_ = emptyIntList(); - private void ensureShapeIsMutable() { - if (!shape_.isModifiable()) { - shape_ = makeMutableCopy(shape_); - } - bitField0_ |= 0x00000002; - } - /** - *
-       * The new shape.
-       * 
- * - * repeated int32 shape = 2 [json_name = "shape"]; - * @return A list containing the shape. - */ - public java.util.List - getShapeList() { - shape_.makeImmutable(); - return shape_; - } - /** - *
-       * The new shape.
-       * 
- * - * repeated int32 shape = 2 [json_name = "shape"]; - * @return The count of shape. - */ - public int getShapeCount() { - return shape_.size(); - } - /** - *
-       * The new shape.
-       * 
- * - * repeated int32 shape = 2 [json_name = "shape"]; - * @param index The index of the element to return. - * @return The shape at the given index. - */ - public int getShape(int index) { - return shape_.getInt(index); - } - /** - *
-       * The new shape.
-       * 
- * - * repeated int32 shape = 2 [json_name = "shape"]; - * @param index The index to set the value at. - * @param value The shape to set. - * @return This builder for chaining. - */ - public Builder setShape( - int index, int value) { - - ensureShapeIsMutable(); - shape_.setInt(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The new shape.
-       * 
- * - * repeated int32 shape = 2 [json_name = "shape"]; - * @param value The shape to add. - * @return This builder for chaining. - */ - public Builder addShape(int value) { - - ensureShapeIsMutable(); - shape_.addInt(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The new shape.
-       * 
- * - * repeated int32 shape = 2 [json_name = "shape"]; - * @param values The shape to add. - * @return This builder for chaining. - */ - public Builder addAllShape( - java.lang.Iterable values) { - ensureShapeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, shape_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The new shape.
-       * 
- * - * repeated int32 shape = 2 [json_name = "shape"]; - * @return This builder for chaining. - */ - public Builder clearShape() { - shape_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.ReshapeVector) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.ReshapeVector) - private static final org.vdaas.vald.api.v1.payload.Object.ReshapeVector DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.ReshapeVector(); - } - - public static org.vdaas.vald.api.v1.payload.Object.ReshapeVector getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReshapeVector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.ReshapeVector getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BlobOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.Blob) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The object ID.
-     * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The id. - */ - java.lang.String getId(); - /** - *
-     * The object ID.
-     * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-     * The binary object.
-     * 
- * - * bytes object = 2 [json_name = "object"]; - * @return The object. - */ - com.google.protobuf.ByteString getObject(); - } - /** - *
-   * Represent the binary object.
-   * 
- * - * Protobuf type {@code payload.v1.Object.Blob} - */ - public static final class Blob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.Blob) - BlobOrBuilder { - private static final long serialVersionUID = 0L; - // Use Blob.newBuilder() to construct. - private Blob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Blob() { - id_ = ""; - object_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Blob(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Blob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Blob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.Blob.class, org.vdaas.vald.api.v1.payload.Object.Blob.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - *
-     * The object ID.
-     * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-     * The object ID.
-     * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OBJECT_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString object_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * The binary object.
-     * 
- * - * bytes object = 2 [json_name = "object"]; - * @return The object. - */ - @java.lang.Override - public com.google.protobuf.ByteString getObject() { - return object_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!object_.isEmpty()) { - output.writeBytes(2, object_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!object_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, object_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.Blob)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.Blob other = (org.vdaas.vald.api.v1.payload.Object.Blob) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!getObject() - .equals(other.getObject())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + OBJECT_FIELD_NUMBER; - hash = (53 * hash) + getObject().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.Blob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Blob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Blob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Blob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Blob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Blob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Blob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.Blob 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 org.vdaas.vald.api.v1.payload.Object.Blob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.Blob parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Blob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.Blob parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.Blob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the binary object.
-     * 
- * - * Protobuf type {@code payload.v1.Object.Blob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.Blob) - org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Blob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Blob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.Blob.class, org.vdaas.vald.api.v1.payload.Object.Blob.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.Blob.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - object_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Blob_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Blob getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Blob build() { - org.vdaas.vald.api.v1.payload.Object.Blob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Blob buildPartial() { - org.vdaas.vald.api.v1.payload.Object.Blob result = new org.vdaas.vald.api.v1.payload.Object.Blob(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.Blob result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.object_ = object_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.Blob) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.Blob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.Blob other) { - if (other == org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getObject() != com.google.protobuf.ByteString.EMPTY) { - setObject(other.getObject()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - object_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - *
-       * The object ID.
-       * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The object ID.
-       * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The object ID.
-       * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The object ID.
-       * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The object ID.
-       * 
- * - * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString object_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * The binary object.
-       * 
- * - * bytes object = 2 [json_name = "object"]; - * @return The object. - */ - @java.lang.Override - public com.google.protobuf.ByteString getObject() { - return object_; - } - /** - *
-       * The binary object.
-       * 
- * - * bytes object = 2 [json_name = "object"]; - * @param value The object to set. - * @return This builder for chaining. - */ - public Builder setObject(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - object_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The binary object.
-       * 
- * - * bytes object = 2 [json_name = "object"]; - * @return This builder for chaining. - */ - public Builder clearObject() { - bitField0_ = (bitField0_ & ~0x00000002); - object_ = getDefaultInstance().getObject(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.Blob) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.Blob) - private static final org.vdaas.vald.api.v1.payload.Object.Blob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.Blob(); - } - - public static org.vdaas.vald.api.v1.payload.Object.Blob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Blob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Blob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StreamBlobOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.StreamBlob) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The binary object.
-     * 
- * - * .payload.v1.Object.Blob blob = 1 [json_name = "blob"]; - * @return Whether the blob field is set. - */ - boolean hasBlob(); - /** - *
-     * The binary object.
-     * 
- * - * .payload.v1.Object.Blob blob = 1 [json_name = "blob"]; - * @return The blob. - */ - org.vdaas.vald.api.v1.payload.Object.Blob getBlob(); - /** - *
-     * The binary object.
-     * 
- * - * .payload.v1.Object.Blob blob = 1 [json_name = "blob"]; - */ - org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder getBlobOrBuilder(); - - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return The status. - */ - com.google.rpc.Status getStatus(); - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - com.google.rpc.StatusOrBuilder getStatusOrBuilder(); - - org.vdaas.vald.api.v1.payload.Object.StreamBlob.PayloadCase getPayloadCase(); - } - /** - *
-   * Represent stream response of binary objects.
-   * 
- * - * Protobuf type {@code payload.v1.Object.StreamBlob} - */ - public static final class StreamBlob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.StreamBlob) - StreamBlobOrBuilder { - private static final long serialVersionUID = 0L; - // Use StreamBlob.newBuilder() to construct. - private StreamBlob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StreamBlob() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StreamBlob(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamBlob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamBlob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.StreamBlob.class, org.vdaas.vald.api.v1.payload.Object.StreamBlob.Builder.class); - } - - private int payloadCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object payload_; - public enum PayloadCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - BLOB(1), - STATUS(2), - PAYLOAD_NOT_SET(0); - private final int value; - private PayloadCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PayloadCase valueOf(int value) { - return forNumber(value); - } - - public static PayloadCase forNumber(int value) { - switch (value) { - case 1: return BLOB; - case 2: return STATUS; - case 0: return PAYLOAD_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public PayloadCase - getPayloadCase() { - return PayloadCase.forNumber( - payloadCase_); - } - - public static final int BLOB_FIELD_NUMBER = 1; - /** - *
-     * The binary object.
-     * 
- * - * .payload.v1.Object.Blob blob = 1 [json_name = "blob"]; - * @return Whether the blob field is set. - */ - @java.lang.Override - public boolean hasBlob() { - return payloadCase_ == 1; - } - /** - *
-     * The binary object.
-     * 
- * - * .payload.v1.Object.Blob blob = 1 [json_name = "blob"]; - * @return The blob. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Blob getBlob() { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Blob) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance(); - } - /** - *
-     * The binary object.
-     * 
- * - * .payload.v1.Object.Blob blob = 1 [json_name = "blob"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder getBlobOrBuilder() { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Blob) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance(); - } - - public static final int STATUS_FIELD_NUMBER = 2; - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return payloadCase_ == 2; - } - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return The status. - */ - @java.lang.Override - public com.google.rpc.Status getStatus() { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (payloadCase_ == 1) { - output.writeMessage(1, (org.vdaas.vald.api.v1.payload.Object.Blob) payload_); - } - if (payloadCase_ == 2) { - output.writeMessage(2, (com.google.rpc.Status) payload_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (payloadCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (org.vdaas.vald.api.v1.payload.Object.Blob) payload_); - } - if (payloadCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.rpc.Status) payload_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.StreamBlob)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.StreamBlob other = (org.vdaas.vald.api.v1.payload.Object.StreamBlob) obj; - - if (!getPayloadCase().equals(other.getPayloadCase())) return false; - switch (payloadCase_) { - case 1: - if (!getBlob() - .equals(other.getBlob())) return false; - break; - case 2: - if (!getStatus() - .equals(other.getStatus())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (payloadCase_) { - case 1: - hash = (37 * hash) + BLOB_FIELD_NUMBER; - hash = (53 * hash) + getBlob().hashCode(); - break; - case 2: - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.StreamBlob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamBlob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamBlob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamBlob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamBlob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamBlob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamBlob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamBlob 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 org.vdaas.vald.api.v1.payload.Object.StreamBlob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.StreamBlob parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamBlob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamBlob parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.StreamBlob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent stream response of binary objects.
-     * 
- * - * Protobuf type {@code payload.v1.Object.StreamBlob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.StreamBlob) - org.vdaas.vald.api.v1.payload.Object.StreamBlobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamBlob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamBlob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.StreamBlob.class, org.vdaas.vald.api.v1.payload.Object.StreamBlob.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.StreamBlob.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (blobBuilder_ != null) { - blobBuilder_.clear(); - } - if (statusBuilder_ != null) { - statusBuilder_.clear(); - } - payloadCase_ = 0; - payload_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamBlob_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.StreamBlob getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.StreamBlob.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.StreamBlob build() { - org.vdaas.vald.api.v1.payload.Object.StreamBlob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.StreamBlob buildPartial() { - org.vdaas.vald.api.v1.payload.Object.StreamBlob result = new org.vdaas.vald.api.v1.payload.Object.StreamBlob(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.StreamBlob result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(org.vdaas.vald.api.v1.payload.Object.StreamBlob result) { - result.payloadCase_ = payloadCase_; - result.payload_ = this.payload_; - if (payloadCase_ == 1 && - blobBuilder_ != null) { - result.payload_ = blobBuilder_.build(); - } - if (payloadCase_ == 2 && - statusBuilder_ != null) { - result.payload_ = statusBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.StreamBlob) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.StreamBlob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.StreamBlob other) { - if (other == org.vdaas.vald.api.v1.payload.Object.StreamBlob.getDefaultInstance()) return this; - switch (other.getPayloadCase()) { - case BLOB: { - mergeBlob(other.getBlob()); - break; - } - case STATUS: { - mergeStatus(other.getStatus()); - break; - } - case PAYLOAD_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getBlobFieldBuilder().getBuilder(), - extensionRegistry); - payloadCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); - payloadCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int payloadCase_ = 0; - private java.lang.Object payload_; - public PayloadCase - getPayloadCase() { - return PayloadCase.forNumber( - payloadCase_); - } - - public Builder clearPayload() { - payloadCase_ = 0; - payload_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Blob, org.vdaas.vald.api.v1.payload.Object.Blob.Builder, org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder> blobBuilder_; - /** - *
-       * The binary object.
-       * 
- * - * .payload.v1.Object.Blob blob = 1 [json_name = "blob"]; - * @return Whether the blob field is set. - */ - @java.lang.Override - public boolean hasBlob() { - return payloadCase_ == 1; - } - /** - *
-       * The binary object.
-       * 
- * - * .payload.v1.Object.Blob blob = 1 [json_name = "blob"]; - * @return The blob. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Blob getBlob() { - if (blobBuilder_ == null) { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Blob) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance(); - } else { - if (payloadCase_ == 1) { - return blobBuilder_.getMessage(); - } - return org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance(); - } - } - /** - *
-       * The binary object.
-       * 
- * - * .payload.v1.Object.Blob blob = 1 [json_name = "blob"]; - */ - public Builder setBlob(org.vdaas.vald.api.v1.payload.Object.Blob value) { - if (blobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - blobBuilder_.setMessage(value); - } - payloadCase_ = 1; - return this; - } - /** - *
-       * The binary object.
-       * 
- * - * .payload.v1.Object.Blob blob = 1 [json_name = "blob"]; - */ - public Builder setBlob( - org.vdaas.vald.api.v1.payload.Object.Blob.Builder builderForValue) { - if (blobBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - blobBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 1; - return this; - } - /** - *
-       * The binary object.
-       * 
- * - * .payload.v1.Object.Blob blob = 1 [json_name = "blob"]; - */ - public Builder mergeBlob(org.vdaas.vald.api.v1.payload.Object.Blob value) { - if (blobBuilder_ == null) { - if (payloadCase_ == 1 && - payload_ != org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance()) { - payload_ = org.vdaas.vald.api.v1.payload.Object.Blob.newBuilder((org.vdaas.vald.api.v1.payload.Object.Blob) payload_) - .mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 1) { - blobBuilder_.mergeFrom(value); - } else { - blobBuilder_.setMessage(value); - } - } - payloadCase_ = 1; - return this; - } - /** - *
-       * The binary object.
-       * 
- * - * .payload.v1.Object.Blob blob = 1 [json_name = "blob"]; - */ - public Builder clearBlob() { - if (blobBuilder_ == null) { - if (payloadCase_ == 1) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 1) { - payloadCase_ = 0; - payload_ = null; - } - blobBuilder_.clear(); - } - return this; - } - /** - *
-       * The binary object.
-       * 
- * - * .payload.v1.Object.Blob blob = 1 [json_name = "blob"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Blob.Builder getBlobBuilder() { - return getBlobFieldBuilder().getBuilder(); - } - /** - *
-       * The binary object.
-       * 
- * - * .payload.v1.Object.Blob blob = 1 [json_name = "blob"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder getBlobOrBuilder() { - if ((payloadCase_ == 1) && (blobBuilder_ != null)) { - return blobBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Blob) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance(); - } - } - /** - *
-       * The binary object.
-       * 
- * - * .payload.v1.Object.Blob blob = 1 [json_name = "blob"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Blob, org.vdaas.vald.api.v1.payload.Object.Blob.Builder, org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder> - getBlobFieldBuilder() { - if (blobBuilder_ == null) { - if (!(payloadCase_ == 1)) { - payload_ = org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance(); - } - blobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Blob, org.vdaas.vald.api.v1.payload.Object.Blob.Builder, org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder>( - (org.vdaas.vald.api.v1.payload.Object.Blob) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 1; - onChanged(); - return blobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return payloadCase_ == 2; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return The status. - */ - @java.lang.Override - public com.google.rpc.Status getStatus() { - if (statusBuilder_ == null) { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } else { - if (payloadCase_ == 2) { - return statusBuilder_.getMessage(); - } - return com.google.rpc.Status.getDefaultInstance(); - } - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder setStatus(com.google.rpc.Status value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - statusBuilder_.setMessage(value); - } - payloadCase_ = 2; - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder setStatus( - com.google.rpc.Status.Builder builderForValue) { - if (statusBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 2; - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder mergeStatus(com.google.rpc.Status value) { - if (statusBuilder_ == null) { - if (payloadCase_ == 2 && - payload_ != com.google.rpc.Status.getDefaultInstance()) { - payload_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) payload_) - .mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 2) { - statusBuilder_.mergeFrom(value); - } else { - statusBuilder_.setMessage(value); - } - } - payloadCase_ = 2; - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - if (payloadCase_ == 2) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 2) { - payloadCase_ = 0; - payload_ = null; - } - statusBuilder_.clear(); - } - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public com.google.rpc.Status.Builder getStatusBuilder() { - return getStatusFieldBuilder().getBuilder(); - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - if ((payloadCase_ == 2) && (statusBuilder_ != null)) { - return statusBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - if (!(payloadCase_ == 2)) { - payload_ = com.google.rpc.Status.getDefaultInstance(); - } - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - (com.google.rpc.Status) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 2; - onChanged(); - return statusBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.StreamBlob) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.StreamBlob) - private static final org.vdaas.vald.api.v1.payload.Object.StreamBlob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.StreamBlob(); - } - - public static org.vdaas.vald.api.v1.payload.Object.StreamBlob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamBlob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.StreamBlob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LocationOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.Location) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The name of the location.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-     * The name of the location.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * The UUID of the vector.
-     * 
- * - * string uuid = 2 [json_name = "uuid"]; - * @return The uuid. - */ - java.lang.String getUuid(); - /** - *
-     * The UUID of the vector.
-     * 
- * - * string uuid = 2 [json_name = "uuid"]; - * @return The bytes for uuid. - */ - com.google.protobuf.ByteString - getUuidBytes(); - - /** - *
-     * The IP list.
-     * 
- * - * repeated string ips = 3 [json_name = "ips"]; - * @return A list containing the ips. - */ - java.util.List - getIpsList(); - /** - *
-     * The IP list.
-     * 
- * - * repeated string ips = 3 [json_name = "ips"]; - * @return The count of ips. - */ - int getIpsCount(); - /** - *
-     * The IP list.
-     * 
- * - * repeated string ips = 3 [json_name = "ips"]; - * @param index The index of the element to return. - * @return The ips at the given index. - */ - java.lang.String getIps(int index); - /** - *
-     * The IP list.
-     * 
- * - * repeated string ips = 3 [json_name = "ips"]; - * @param index The index of the value to return. - * @return The bytes of the ips at the given index. - */ - com.google.protobuf.ByteString - getIpsBytes(int index); - } - /** - *
-   * Represent the vector location.
-   * 
- * - * Protobuf type {@code payload.v1.Object.Location} - */ - public static final class Location extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.Location) - LocationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Location.newBuilder() to construct. - private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Location() { - name_ = ""; - uuid_ = ""; - ips_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Location(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Location_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Location_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.Location.class, org.vdaas.vald.api.v1.payload.Object.Location.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-     * The name of the location.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * The name of the location.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UUID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object uuid_ = ""; - /** - *
-     * The UUID of the vector.
-     * 
- * - * string uuid = 2 [json_name = "uuid"]; - * @return The uuid. - */ - @java.lang.Override - public java.lang.String getUuid() { - java.lang.Object ref = uuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uuid_ = s; - return s; - } - } - /** - *
-     * The UUID of the vector.
-     * 
- * - * string uuid = 2 [json_name = "uuid"]; - * @return The bytes for uuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUuidBytes() { - java.lang.Object ref = uuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IPS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList ips_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-     * The IP list.
-     * 
- * - * repeated string ips = 3 [json_name = "ips"]; - * @return A list containing the ips. - */ - public com.google.protobuf.ProtocolStringList - getIpsList() { - return ips_; - } - /** - *
-     * The IP list.
-     * 
- * - * repeated string ips = 3 [json_name = "ips"]; - * @return The count of ips. - */ - public int getIpsCount() { - return ips_.size(); - } - /** - *
-     * The IP list.
-     * 
- * - * repeated string ips = 3 [json_name = "ips"]; - * @param index The index of the element to return. - * @return The ips at the given index. - */ - public java.lang.String getIps(int index) { - return ips_.get(index); - } - /** - *
-     * The IP list.
-     * 
- * - * repeated string ips = 3 [json_name = "ips"]; - * @param index The index of the value to return. - * @return The bytes of the ips at the given index. - */ - public com.google.protobuf.ByteString - getIpsBytes(int index) { - return ips_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uuid_); - } - for (int i = 0; i < ips_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ips_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uuid_); - } - { - int dataSize = 0; - for (int i = 0; i < ips_.size(); i++) { - dataSize += computeStringSizeNoTag(ips_.getRaw(i)); - } - size += dataSize; - size += 1 * getIpsList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.Location)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.Location other = (org.vdaas.vald.api.v1.payload.Object.Location) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getUuid() - .equals(other.getUuid())) return false; - if (!getIpsList() - .equals(other.getIpsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + UUID_FIELD_NUMBER; - hash = (53 * hash) + getUuid().hashCode(); - if (getIpsCount() > 0) { - hash = (37 * hash) + IPS_FIELD_NUMBER; - hash = (53 * hash) + getIpsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.Location parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Location parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Location parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Location parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Location parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Location parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Location parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.Location 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 org.vdaas.vald.api.v1.payload.Object.Location parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.Location parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Location parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.Location parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.Location prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the vector location.
-     * 
- * - * Protobuf type {@code payload.v1.Object.Location} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.Location) - org.vdaas.vald.api.v1.payload.Object.LocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Location_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Location_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.Location.class, org.vdaas.vald.api.v1.payload.Object.Location.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.Location.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - uuid_ = ""; - ips_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Location_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Location getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.Location.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Location build() { - org.vdaas.vald.api.v1.payload.Object.Location result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Location buildPartial() { - org.vdaas.vald.api.v1.payload.Object.Location result = new org.vdaas.vald.api.v1.payload.Object.Location(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.Location result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.uuid_ = uuid_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - ips_.makeImmutable(); - result.ips_ = ips_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.Location) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.Location)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.Location other) { - if (other == org.vdaas.vald.api.v1.payload.Object.Location.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getUuid().isEmpty()) { - uuid_ = other.uuid_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.ips_.isEmpty()) { - if (ips_.isEmpty()) { - ips_ = other.ips_; - bitField0_ |= 0x00000004; - } else { - ensureIpsIsMutable(); - ips_.addAll(other.ips_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - uuid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpsIsMutable(); - ips_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-       * The name of the location.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The name of the location.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The name of the location.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The name of the location.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The name of the location.
-       * 
- * - * string name = 1 [json_name = "name"]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object uuid_ = ""; - /** - *
-       * The UUID of the vector.
-       * 
- * - * string uuid = 2 [json_name = "uuid"]; - * @return The uuid. - */ - public java.lang.String getUuid() { - java.lang.Object ref = uuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The UUID of the vector.
-       * 
- * - * string uuid = 2 [json_name = "uuid"]; - * @return The bytes for uuid. - */ - public com.google.protobuf.ByteString - getUuidBytes() { - java.lang.Object ref = uuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The UUID of the vector.
-       * 
- * - * string uuid = 2 [json_name = "uuid"]; - * @param value The uuid to set. - * @return This builder for chaining. - */ - public Builder setUuid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - uuid_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The UUID of the vector.
-       * 
- * - * string uuid = 2 [json_name = "uuid"]; - * @return This builder for chaining. - */ - public Builder clearUuid() { - uuid_ = getDefaultInstance().getUuid(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * The UUID of the vector.
-       * 
- * - * string uuid = 2 [json_name = "uuid"]; - * @param value The bytes for uuid to set. - * @return This builder for chaining. - */ - public Builder setUuidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - uuid_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList ips_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureIpsIsMutable() { - if (!ips_.isModifiable()) { - ips_ = new com.google.protobuf.LazyStringArrayList(ips_); - } - bitField0_ |= 0x00000004; - } - /** - *
-       * The IP list.
-       * 
- * - * repeated string ips = 3 [json_name = "ips"]; - * @return A list containing the ips. - */ - public com.google.protobuf.ProtocolStringList - getIpsList() { - ips_.makeImmutable(); - return ips_; - } - /** - *
-       * The IP list.
-       * 
- * - * repeated string ips = 3 [json_name = "ips"]; - * @return The count of ips. - */ - public int getIpsCount() { - return ips_.size(); - } - /** - *
-       * The IP list.
-       * 
- * - * repeated string ips = 3 [json_name = "ips"]; - * @param index The index of the element to return. - * @return The ips at the given index. - */ - public java.lang.String getIps(int index) { - return ips_.get(index); - } - /** - *
-       * The IP list.
-       * 
- * - * repeated string ips = 3 [json_name = "ips"]; - * @param index The index of the value to return. - * @return The bytes of the ips at the given index. - */ - public com.google.protobuf.ByteString - getIpsBytes(int index) { - return ips_.getByteString(index); - } - /** - *
-       * The IP list.
-       * 
- * - * repeated string ips = 3 [json_name = "ips"]; - * @param index The index to set the value at. - * @param value The ips to set. - * @return This builder for chaining. - */ - public Builder setIps( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureIpsIsMutable(); - ips_.set(index, value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * The IP list.
-       * 
- * - * repeated string ips = 3 [json_name = "ips"]; - * @param value The ips to add. - * @return This builder for chaining. - */ - public Builder addIps( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureIpsIsMutable(); - ips_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * The IP list.
-       * 
- * - * repeated string ips = 3 [json_name = "ips"]; - * @param values The ips to add. - * @return This builder for chaining. - */ - public Builder addAllIps( - java.lang.Iterable values) { - ensureIpsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ips_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * The IP list.
-       * 
- * - * repeated string ips = 3 [json_name = "ips"]; - * @return This builder for chaining. - */ - public Builder clearIps() { - ips_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; - onChanged(); - return this; - } - /** - *
-       * The IP list.
-       * 
- * - * repeated string ips = 3 [json_name = "ips"]; - * @param value The bytes of the ips to add. - * @return This builder for chaining. - */ - public Builder addIpsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureIpsIsMutable(); - ips_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.Location) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.Location) - private static final org.vdaas.vald.api.v1.payload.Object.Location DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.Location(); - } - - public static org.vdaas.vald.api.v1.payload.Object.Location getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Location parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Location getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StreamLocationOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.StreamLocation) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The vector location.
-     * 
- * - * .payload.v1.Object.Location location = 1 [json_name = "location"]; - * @return Whether the location field is set. - */ - boolean hasLocation(); - /** - *
-     * The vector location.
-     * 
- * - * .payload.v1.Object.Location location = 1 [json_name = "location"]; - * @return The location. - */ - org.vdaas.vald.api.v1.payload.Object.Location getLocation(); - /** - *
-     * The vector location.
-     * 
- * - * .payload.v1.Object.Location location = 1 [json_name = "location"]; - */ - org.vdaas.vald.api.v1.payload.Object.LocationOrBuilder getLocationOrBuilder(); - - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return The status. - */ - com.google.rpc.Status getStatus(); - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - com.google.rpc.StatusOrBuilder getStatusOrBuilder(); - - org.vdaas.vald.api.v1.payload.Object.StreamLocation.PayloadCase getPayloadCase(); - } - /** - *
-   * Represent the stream response of the vector location.
-   * 
- * - * Protobuf type {@code payload.v1.Object.StreamLocation} - */ - public static final class StreamLocation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.StreamLocation) - StreamLocationOrBuilder { - private static final long serialVersionUID = 0L; - // Use StreamLocation.newBuilder() to construct. - private StreamLocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StreamLocation() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StreamLocation(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamLocation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamLocation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.StreamLocation.class, org.vdaas.vald.api.v1.payload.Object.StreamLocation.Builder.class); - } - - private int payloadCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object payload_; - public enum PayloadCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LOCATION(1), - STATUS(2), - PAYLOAD_NOT_SET(0); - private final int value; - private PayloadCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PayloadCase valueOf(int value) { - return forNumber(value); - } - - public static PayloadCase forNumber(int value) { - switch (value) { - case 1: return LOCATION; - case 2: return STATUS; - case 0: return PAYLOAD_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public PayloadCase - getPayloadCase() { - return PayloadCase.forNumber( - payloadCase_); - } - - public static final int LOCATION_FIELD_NUMBER = 1; - /** - *
-     * The vector location.
-     * 
- * - * .payload.v1.Object.Location location = 1 [json_name = "location"]; - * @return Whether the location field is set. - */ - @java.lang.Override - public boolean hasLocation() { - return payloadCase_ == 1; - } - /** - *
-     * The vector location.
-     * 
- * - * .payload.v1.Object.Location location = 1 [json_name = "location"]; - * @return The location. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Location getLocation() { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Location) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Location.getDefaultInstance(); - } - /** - *
-     * The vector location.
-     * 
- * - * .payload.v1.Object.Location location = 1 [json_name = "location"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.LocationOrBuilder getLocationOrBuilder() { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Location) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Location.getDefaultInstance(); - } - - public static final int STATUS_FIELD_NUMBER = 2; - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return payloadCase_ == 2; - } - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return The status. - */ - @java.lang.Override - public com.google.rpc.Status getStatus() { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (payloadCase_ == 1) { - output.writeMessage(1, (org.vdaas.vald.api.v1.payload.Object.Location) payload_); - } - if (payloadCase_ == 2) { - output.writeMessage(2, (com.google.rpc.Status) payload_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (payloadCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (org.vdaas.vald.api.v1.payload.Object.Location) payload_); - } - if (payloadCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.rpc.Status) payload_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.StreamLocation)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.StreamLocation other = (org.vdaas.vald.api.v1.payload.Object.StreamLocation) obj; - - if (!getPayloadCase().equals(other.getPayloadCase())) return false; - switch (payloadCase_) { - case 1: - if (!getLocation() - .equals(other.getLocation())) return false; - break; - case 2: - if (!getStatus() - .equals(other.getStatus())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (payloadCase_) { - case 1: - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); - break; - case 2: - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.StreamLocation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamLocation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamLocation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamLocation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamLocation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamLocation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamLocation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamLocation 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 org.vdaas.vald.api.v1.payload.Object.StreamLocation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.StreamLocation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamLocation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.StreamLocation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.StreamLocation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the stream response of the vector location.
-     * 
- * - * Protobuf type {@code payload.v1.Object.StreamLocation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.StreamLocation) - org.vdaas.vald.api.v1.payload.Object.StreamLocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamLocation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamLocation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.StreamLocation.class, org.vdaas.vald.api.v1.payload.Object.StreamLocation.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.StreamLocation.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (locationBuilder_ != null) { - locationBuilder_.clear(); - } - if (statusBuilder_ != null) { - statusBuilder_.clear(); - } - payloadCase_ = 0; - payload_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_StreamLocation_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.StreamLocation getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.StreamLocation.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.StreamLocation build() { - org.vdaas.vald.api.v1.payload.Object.StreamLocation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.StreamLocation buildPartial() { - org.vdaas.vald.api.v1.payload.Object.StreamLocation result = new org.vdaas.vald.api.v1.payload.Object.StreamLocation(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.StreamLocation result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(org.vdaas.vald.api.v1.payload.Object.StreamLocation result) { - result.payloadCase_ = payloadCase_; - result.payload_ = this.payload_; - if (payloadCase_ == 1 && - locationBuilder_ != null) { - result.payload_ = locationBuilder_.build(); - } - if (payloadCase_ == 2 && - statusBuilder_ != null) { - result.payload_ = statusBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.StreamLocation) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.StreamLocation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.StreamLocation other) { - if (other == org.vdaas.vald.api.v1.payload.Object.StreamLocation.getDefaultInstance()) return this; - switch (other.getPayloadCase()) { - case LOCATION: { - mergeLocation(other.getLocation()); - break; - } - case STATUS: { - mergeStatus(other.getStatus()); - break; - } - case PAYLOAD_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getLocationFieldBuilder().getBuilder(), - extensionRegistry); - payloadCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); - payloadCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int payloadCase_ = 0; - private java.lang.Object payload_; - public PayloadCase - getPayloadCase() { - return PayloadCase.forNumber( - payloadCase_); - } - - public Builder clearPayload() { - payloadCase_ = 0; - payload_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Location, org.vdaas.vald.api.v1.payload.Object.Location.Builder, org.vdaas.vald.api.v1.payload.Object.LocationOrBuilder> locationBuilder_; - /** - *
-       * The vector location.
-       * 
- * - * .payload.v1.Object.Location location = 1 [json_name = "location"]; - * @return Whether the location field is set. - */ - @java.lang.Override - public boolean hasLocation() { - return payloadCase_ == 1; - } - /** - *
-       * The vector location.
-       * 
- * - * .payload.v1.Object.Location location = 1 [json_name = "location"]; - * @return The location. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Location getLocation() { - if (locationBuilder_ == null) { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Location) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Location.getDefaultInstance(); - } else { - if (payloadCase_ == 1) { - return locationBuilder_.getMessage(); - } - return org.vdaas.vald.api.v1.payload.Object.Location.getDefaultInstance(); - } - } - /** - *
-       * The vector location.
-       * 
- * - * .payload.v1.Object.Location location = 1 [json_name = "location"]; - */ - public Builder setLocation(org.vdaas.vald.api.v1.payload.Object.Location value) { - if (locationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - locationBuilder_.setMessage(value); - } - payloadCase_ = 1; - return this; - } - /** - *
-       * The vector location.
-       * 
- * - * .payload.v1.Object.Location location = 1 [json_name = "location"]; - */ - public Builder setLocation( - org.vdaas.vald.api.v1.payload.Object.Location.Builder builderForValue) { - if (locationBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - locationBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 1; - return this; - } - /** - *
-       * The vector location.
-       * 
- * - * .payload.v1.Object.Location location = 1 [json_name = "location"]; - */ - public Builder mergeLocation(org.vdaas.vald.api.v1.payload.Object.Location value) { - if (locationBuilder_ == null) { - if (payloadCase_ == 1 && - payload_ != org.vdaas.vald.api.v1.payload.Object.Location.getDefaultInstance()) { - payload_ = org.vdaas.vald.api.v1.payload.Object.Location.newBuilder((org.vdaas.vald.api.v1.payload.Object.Location) payload_) - .mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 1) { - locationBuilder_.mergeFrom(value); - } else { - locationBuilder_.setMessage(value); - } - } - payloadCase_ = 1; - return this; - } - /** - *
-       * The vector location.
-       * 
- * - * .payload.v1.Object.Location location = 1 [json_name = "location"]; - */ - public Builder clearLocation() { - if (locationBuilder_ == null) { - if (payloadCase_ == 1) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 1) { - payloadCase_ = 0; - payload_ = null; - } - locationBuilder_.clear(); - } - return this; - } - /** - *
-       * The vector location.
-       * 
- * - * .payload.v1.Object.Location location = 1 [json_name = "location"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Location.Builder getLocationBuilder() { - return getLocationFieldBuilder().getBuilder(); - } - /** - *
-       * The vector location.
-       * 
- * - * .payload.v1.Object.Location location = 1 [json_name = "location"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.LocationOrBuilder getLocationOrBuilder() { - if ((payloadCase_ == 1) && (locationBuilder_ != null)) { - return locationBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Location) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Location.getDefaultInstance(); - } - } - /** - *
-       * The vector location.
-       * 
- * - * .payload.v1.Object.Location location = 1 [json_name = "location"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Location, org.vdaas.vald.api.v1.payload.Object.Location.Builder, org.vdaas.vald.api.v1.payload.Object.LocationOrBuilder> - getLocationFieldBuilder() { - if (locationBuilder_ == null) { - if (!(payloadCase_ == 1)) { - payload_ = org.vdaas.vald.api.v1.payload.Object.Location.getDefaultInstance(); - } - locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Location, org.vdaas.vald.api.v1.payload.Object.Location.Builder, org.vdaas.vald.api.v1.payload.Object.LocationOrBuilder>( - (org.vdaas.vald.api.v1.payload.Object.Location) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 1; - onChanged(); - return locationBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return payloadCase_ == 2; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return The status. - */ - @java.lang.Override - public com.google.rpc.Status getStatus() { - if (statusBuilder_ == null) { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } else { - if (payloadCase_ == 2) { - return statusBuilder_.getMessage(); - } - return com.google.rpc.Status.getDefaultInstance(); - } - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder setStatus(com.google.rpc.Status value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - statusBuilder_.setMessage(value); - } - payloadCase_ = 2; - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder setStatus( - com.google.rpc.Status.Builder builderForValue) { - if (statusBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 2; - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder mergeStatus(com.google.rpc.Status value) { - if (statusBuilder_ == null) { - if (payloadCase_ == 2 && - payload_ != com.google.rpc.Status.getDefaultInstance()) { - payload_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) payload_) - .mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 2) { - statusBuilder_.mergeFrom(value); - } else { - statusBuilder_.setMessage(value); - } - } - payloadCase_ = 2; - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - if (payloadCase_ == 2) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 2) { - payloadCase_ = 0; - payload_ = null; - } - statusBuilder_.clear(); - } - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public com.google.rpc.Status.Builder getStatusBuilder() { - return getStatusFieldBuilder().getBuilder(); - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - if ((payloadCase_ == 2) && (statusBuilder_ != null)) { - return statusBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - if (!(payloadCase_ == 2)) { - payload_ = com.google.rpc.Status.getDefaultInstance(); - } - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - (com.google.rpc.Status) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 2; - onChanged(); - return statusBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.StreamLocation) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.StreamLocation) - private static final org.vdaas.vald.api.v1.payload.Object.StreamLocation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.StreamLocation(); - } - - public static org.vdaas.vald.api.v1.payload.Object.StreamLocation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamLocation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.StreamLocation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LocationsOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.Locations) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - java.util.List - getLocationsList(); - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - org.vdaas.vald.api.v1.payload.Object.Location getLocations(int index); - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - int getLocationsCount(); - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - java.util.List - getLocationsOrBuilderList(); - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - org.vdaas.vald.api.v1.payload.Object.LocationOrBuilder getLocationsOrBuilder( - int index); - } - /** - *
-   * Represent multiple vector locations.
-   * 
- * - * Protobuf type {@code payload.v1.Object.Locations} - */ - public static final class Locations extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.Locations) - LocationsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Locations.newBuilder() to construct. - private Locations(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Locations() { - locations_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Locations(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Locations_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Locations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.Locations.class, org.vdaas.vald.api.v1.payload.Object.Locations.Builder.class); - } - - public static final int LOCATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List locations_; - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - @java.lang.Override - public java.util.List getLocationsList() { - return locations_; - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - @java.lang.Override - public java.util.List - getLocationsOrBuilderList() { - return locations_; - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - @java.lang.Override - public int getLocationsCount() { - return locations_.size(); - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Location getLocations(int index) { - return locations_.get(index); - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.LocationOrBuilder getLocationsOrBuilder( - int index) { - return locations_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < locations_.size(); i++) { - output.writeMessage(1, locations_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < locations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, locations_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.Locations)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.Locations other = (org.vdaas.vald.api.v1.payload.Object.Locations) obj; - - if (!getLocationsList() - .equals(other.getLocationsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getLocationsCount() > 0) { - hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getLocationsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.Locations parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Locations parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Locations parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Locations parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Locations parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.Locations parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Locations parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.Locations 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 org.vdaas.vald.api.v1.payload.Object.Locations parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.Locations parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.Locations parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.Locations parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.Locations prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent multiple vector locations.
-     * 
- * - * Protobuf type {@code payload.v1.Object.Locations} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.Locations) - org.vdaas.vald.api.v1.payload.Object.LocationsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Locations_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Locations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.Locations.class, org.vdaas.vald.api.v1.payload.Object.Locations.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.Locations.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (locationsBuilder_ == null) { - locations_ = java.util.Collections.emptyList(); - } else { - locations_ = null; - locationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_Locations_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Locations getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.Locations.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Locations build() { - org.vdaas.vald.api.v1.payload.Object.Locations result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Locations buildPartial() { - org.vdaas.vald.api.v1.payload.Object.Locations result = new org.vdaas.vald.api.v1.payload.Object.Locations(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Object.Locations result) { - if (locationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - locations_ = java.util.Collections.unmodifiableList(locations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.locations_ = locations_; - } else { - result.locations_ = locationsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.Locations result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.Locations) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.Locations)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.Locations other) { - if (other == org.vdaas.vald.api.v1.payload.Object.Locations.getDefaultInstance()) return this; - if (locationsBuilder_ == null) { - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - } else { - if (!other.locations_.isEmpty()) { - if (locationsBuilder_.isEmpty()) { - locationsBuilder_.dispose(); - locationsBuilder_ = null; - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLocationsFieldBuilder() : null; - } else { - locationsBuilder_.addAllMessages(other.locations_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Object.Location m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Object.Location.parser(), - extensionRegistry); - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.add(m); - } else { - locationsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List locations_ = - java.util.Collections.emptyList(); - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - locations_ = new java.util.ArrayList(locations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Location, org.vdaas.vald.api.v1.payload.Object.Location.Builder, org.vdaas.vald.api.v1.payload.Object.LocationOrBuilder> locationsBuilder_; - - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - public java.util.List getLocationsList() { - if (locationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(locations_); - } else { - return locationsBuilder_.getMessageList(); - } - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - public int getLocationsCount() { - if (locationsBuilder_ == null) { - return locations_.size(); - } else { - return locationsBuilder_.getCount(); - } - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Location getLocations(int index) { - if (locationsBuilder_ == null) { - return locations_.get(index); - } else { - return locationsBuilder_.getMessage(index); - } - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - public Builder setLocations( - int index, org.vdaas.vald.api.v1.payload.Object.Location value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.set(index, value); - onChanged(); - } else { - locationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - public Builder setLocations( - int index, org.vdaas.vald.api.v1.payload.Object.Location.Builder builderForValue) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.set(index, builderForValue.build()); - onChanged(); - } else { - locationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - public Builder addLocations(org.vdaas.vald.api.v1.payload.Object.Location value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - } else { - locationsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - public Builder addLocations( - int index, org.vdaas.vald.api.v1.payload.Object.Location value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(index, value); - onChanged(); - } else { - locationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - public Builder addLocations( - org.vdaas.vald.api.v1.payload.Object.Location.Builder builderForValue) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.add(builderForValue.build()); - onChanged(); - } else { - locationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - public Builder addLocations( - int index, org.vdaas.vald.api.v1.payload.Object.Location.Builder builderForValue) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.add(index, builderForValue.build()); - onChanged(); - } else { - locationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - public Builder addAllLocations( - java.lang.Iterable values) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, locations_); - onChanged(); - } else { - locationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - public Builder clearLocations() { - if (locationsBuilder_ == null) { - locations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - locationsBuilder_.clear(); - } - return this; - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - public Builder removeLocations(int index) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.remove(index); - onChanged(); - } else { - locationsBuilder_.remove(index); - } - return this; - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Location.Builder getLocationsBuilder( - int index) { - return getLocationsFieldBuilder().getBuilder(index); - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - public org.vdaas.vald.api.v1.payload.Object.LocationOrBuilder getLocationsOrBuilder( - int index) { - if (locationsBuilder_ == null) { - return locations_.get(index); } else { - return locationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - public java.util.List - getLocationsOrBuilderList() { - if (locationsBuilder_ != null) { - return locationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(locations_); - } - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Location.Builder addLocationsBuilder() { - return getLocationsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Object.Location.getDefaultInstance()); - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Location.Builder addLocationsBuilder( - int index) { - return getLocationsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Object.Location.getDefaultInstance()); - } - /** - * repeated .payload.v1.Object.Location locations = 1 [json_name = "locations"]; - */ - public java.util.List - getLocationsBuilderList() { - return getLocationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Location, org.vdaas.vald.api.v1.payload.Object.Location.Builder, org.vdaas.vald.api.v1.payload.Object.LocationOrBuilder> - getLocationsFieldBuilder() { - if (locationsBuilder_ == null) { - locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Location, org.vdaas.vald.api.v1.payload.Object.Location.Builder, org.vdaas.vald.api.v1.payload.Object.LocationOrBuilder>( - locations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - locations_ = null; - } - return locationsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.Locations) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.Locations) - private static final org.vdaas.vald.api.v1.payload.Object.Locations DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.Locations(); - } - - public static org.vdaas.vald.api.v1.payload.Object.Locations getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Locations parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Locations getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.List) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Represent the list object vector stream request and response.
-   * 
- * - * Protobuf type {@code payload.v1.Object.List} - */ - public static final class List extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.List) - ListOrBuilder { - private static final long serialVersionUID = 0L; - // Use List.newBuilder() to construct. - private List(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private List() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new List(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.List.class, org.vdaas.vald.api.v1.payload.Object.List.Builder.class); - } - - public interface RequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.List.Request) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code payload.v1.Object.List.Request} - */ - public static final class Request extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.List.Request) - RequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use Request.newBuilder() to construct. - private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Request() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Request(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Request_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.List.Request.class, org.vdaas.vald.api.v1.payload.Object.List.Request.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.List.Request)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.List.Request other = (org.vdaas.vald.api.v1.payload.Object.List.Request) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.List.Request 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 org.vdaas.vald.api.v1.payload.Object.List.Request parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.List.Request parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.List.Request prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code payload.v1.Object.List.Request} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.List.Request) - org.vdaas.vald.api.v1.payload.Object.List.RequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Request_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.List.Request.class, org.vdaas.vald.api.v1.payload.Object.List.Request.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.List.Request.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Request_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.List.Request getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.List.Request.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.List.Request build() { - org.vdaas.vald.api.v1.payload.Object.List.Request result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.List.Request buildPartial() { - org.vdaas.vald.api.v1.payload.Object.List.Request result = new org.vdaas.vald.api.v1.payload.Object.List.Request(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.List.Request) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.List.Request)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.List.Request other) { - if (other == org.vdaas.vald.api.v1.payload.Object.List.Request.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.List.Request) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.List.Request) - private static final org.vdaas.vald.api.v1.payload.Object.List.Request DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.List.Request(); - } - - public static org.vdaas.vald.api.v1.payload.Object.List.Request getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Request parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.List.Request getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object.List.Response) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * The vector
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - * @return Whether the vector field is set. - */ - boolean hasVector(); - /** - *
-       * The vector
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - * @return The vector. - */ - org.vdaas.vald.api.v1.payload.Object.Vector getVector(); - /** - *
-       * The vector
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - */ - org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder(); - - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return The status. - */ - com.google.rpc.Status getStatus(); - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - com.google.rpc.StatusOrBuilder getStatusOrBuilder(); - - org.vdaas.vald.api.v1.payload.Object.List.Response.PayloadCase getPayloadCase(); - } - /** - * Protobuf type {@code payload.v1.Object.List.Response} - */ - public static final class Response extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Object.List.Response) - ResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use Response.newBuilder() to construct. - private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Response() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Response(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Response_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Response_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.List.Response.class, org.vdaas.vald.api.v1.payload.Object.List.Response.Builder.class); - } - - private int payloadCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object payload_; - public enum PayloadCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VECTOR(1), - STATUS(2), - PAYLOAD_NOT_SET(0); - private final int value; - private PayloadCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PayloadCase valueOf(int value) { - return forNumber(value); - } - - public static PayloadCase forNumber(int value) { - switch (value) { - case 1: return VECTOR; - case 2: return STATUS; - case 0: return PAYLOAD_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public PayloadCase - getPayloadCase() { - return PayloadCase.forNumber( - payloadCase_); - } - - public static final int VECTOR_FIELD_NUMBER = 1; - /** - *
-       * The vector
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - * @return Whether the vector field is set. - */ - @java.lang.Override - public boolean hasVector() { - return payloadCase_ == 1; - } - /** - *
-       * The vector
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - * @return The vector. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Vector getVector() { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Vector) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); - } - /** - *
-       * The vector
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder() { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Vector) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); - } - - public static final int STATUS_FIELD_NUMBER = 2; - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return payloadCase_ == 2; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return The status. - */ - @java.lang.Override - public com.google.rpc.Status getStatus() { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (payloadCase_ == 1) { - output.writeMessage(1, (org.vdaas.vald.api.v1.payload.Object.Vector) payload_); - } - if (payloadCase_ == 2) { - output.writeMessage(2, (com.google.rpc.Status) payload_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (payloadCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (org.vdaas.vald.api.v1.payload.Object.Vector) payload_); - } - if (payloadCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.rpc.Status) payload_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.List.Response)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.List.Response other = (org.vdaas.vald.api.v1.payload.Object.List.Response) obj; - - if (!getPayloadCase().equals(other.getPayloadCase())) return false; - switch (payloadCase_) { - case 1: - if (!getVector() - .equals(other.getVector())) return false; - break; - case 2: - if (!getStatus() - .equals(other.getStatus())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (payloadCase_) { - case 1: - hash = (37 * hash) + VECTOR_FIELD_NUMBER; - hash = (53 * hash) + getVector().hashCode(); - break; - case 2: - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.List.Response 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 org.vdaas.vald.api.v1.payload.Object.List.Response parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.List.Response parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.List.Response prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code payload.v1.Object.List.Response} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.List.Response) - org.vdaas.vald.api.v1.payload.Object.List.ResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Response_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Response_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.List.Response.class, org.vdaas.vald.api.v1.payload.Object.List.Response.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.List.Response.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (vectorBuilder_ != null) { - vectorBuilder_.clear(); - } - if (statusBuilder_ != null) { - statusBuilder_.clear(); - } - payloadCase_ = 0; - payload_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Response_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.List.Response getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.List.Response.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.List.Response build() { - org.vdaas.vald.api.v1.payload.Object.List.Response result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.List.Response buildPartial() { - org.vdaas.vald.api.v1.payload.Object.List.Response result = new org.vdaas.vald.api.v1.payload.Object.List.Response(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.List.Response result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(org.vdaas.vald.api.v1.payload.Object.List.Response result) { - result.payloadCase_ = payloadCase_; - result.payload_ = this.payload_; - if (payloadCase_ == 1 && - vectorBuilder_ != null) { - result.payload_ = vectorBuilder_.build(); - } - if (payloadCase_ == 2 && - statusBuilder_ != null) { - result.payload_ = statusBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.List.Response) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.List.Response)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.List.Response other) { - if (other == org.vdaas.vald.api.v1.payload.Object.List.Response.getDefaultInstance()) return this; - switch (other.getPayloadCase()) { - case VECTOR: { - mergeVector(other.getVector()); - break; - } - case STATUS: { - mergeStatus(other.getStatus()); - break; - } - case PAYLOAD_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getVectorFieldBuilder().getBuilder(), - extensionRegistry); - payloadCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); - payloadCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int payloadCase_ = 0; - private java.lang.Object payload_; - public PayloadCase - getPayloadCase() { - return PayloadCase.forNumber( - payloadCase_); - } - - public Builder clearPayload() { - payloadCase_ = 0; - payload_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder> vectorBuilder_; - /** - *
-         * The vector
-         * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - * @return Whether the vector field is set. - */ - @java.lang.Override - public boolean hasVector() { - return payloadCase_ == 1; - } - /** - *
-         * The vector
-         * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - * @return The vector. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Vector getVector() { - if (vectorBuilder_ == null) { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Vector) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); - } else { - if (payloadCase_ == 1) { - return vectorBuilder_.getMessage(); - } - return org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); - } - } - /** - *
-         * The vector
-         * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - */ - public Builder setVector(org.vdaas.vald.api.v1.payload.Object.Vector value) { - if (vectorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - vectorBuilder_.setMessage(value); - } - payloadCase_ = 1; - return this; - } - /** - *
-         * The vector
-         * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - */ - public Builder setVector( - org.vdaas.vald.api.v1.payload.Object.Vector.Builder builderForValue) { - if (vectorBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - vectorBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 1; - return this; - } - /** - *
-         * The vector
-         * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - */ - public Builder mergeVector(org.vdaas.vald.api.v1.payload.Object.Vector value) { - if (vectorBuilder_ == null) { - if (payloadCase_ == 1 && - payload_ != org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance()) { - payload_ = org.vdaas.vald.api.v1.payload.Object.Vector.newBuilder((org.vdaas.vald.api.v1.payload.Object.Vector) payload_) - .mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 1) { - vectorBuilder_.mergeFrom(value); - } else { - vectorBuilder_.setMessage(value); - } - } - payloadCase_ = 1; - return this; - } - /** - *
-         * The vector
-         * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - */ - public Builder clearVector() { - if (vectorBuilder_ == null) { - if (payloadCase_ == 1) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 1) { - payloadCase_ = 0; - payload_ = null; - } - vectorBuilder_.clear(); - } - return this; - } - /** - *
-         * The vector
-         * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Vector.Builder getVectorBuilder() { - return getVectorFieldBuilder().getBuilder(); - } - /** - *
-         * The vector
-         * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder() { - if ((payloadCase_ == 1) && (vectorBuilder_ != null)) { - return vectorBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Object.Vector) payload_; - } - return org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); - } - } - /** - *
-         * The vector
-         * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder> - getVectorFieldBuilder() { - if (vectorBuilder_ == null) { - if (!(payloadCase_ == 1)) { - payload_ = org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); - } - vectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder>( - (org.vdaas.vald.api.v1.payload.Object.Vector) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 1; - onChanged(); - return vectorBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; - /** - *
-         * The RPC error status.
-         * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return payloadCase_ == 2; - } - /** - *
-         * The RPC error status.
-         * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return The status. - */ - @java.lang.Override - public com.google.rpc.Status getStatus() { - if (statusBuilder_ == null) { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } else { - if (payloadCase_ == 2) { - return statusBuilder_.getMessage(); - } - return com.google.rpc.Status.getDefaultInstance(); - } - } - /** - *
-         * The RPC error status.
-         * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder setStatus(com.google.rpc.Status value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - statusBuilder_.setMessage(value); - } - payloadCase_ = 2; - return this; - } - /** - *
-         * The RPC error status.
-         * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder setStatus( - com.google.rpc.Status.Builder builderForValue) { - if (statusBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 2; - return this; - } - /** - *
-         * The RPC error status.
-         * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder mergeStatus(com.google.rpc.Status value) { - if (statusBuilder_ == null) { - if (payloadCase_ == 2 && - payload_ != com.google.rpc.Status.getDefaultInstance()) { - payload_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) payload_) - .mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 2) { - statusBuilder_.mergeFrom(value); - } else { - statusBuilder_.setMessage(value); - } - } - payloadCase_ = 2; - return this; - } - /** - *
-         * The RPC error status.
-         * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - if (payloadCase_ == 2) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 2) { - payloadCase_ = 0; - payload_ = null; - } - statusBuilder_.clear(); - } - return this; - } - /** - *
-         * The RPC error status.
-         * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public com.google.rpc.Status.Builder getStatusBuilder() { - return getStatusFieldBuilder().getBuilder(); - } - /** - *
-         * The RPC error status.
-         * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - if ((payloadCase_ == 2) && (statusBuilder_ != null)) { - return statusBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } - } - /** - *
-         * The RPC error status.
-         * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - if (!(payloadCase_ == 2)) { - payload_ = com.google.rpc.Status.getDefaultInstance(); - } - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - (com.google.rpc.Status) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 2; - onChanged(); - return statusBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.List.Response) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.List.Response) - private static final org.vdaas.vald.api.v1.payload.Object.List.Response DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.List.Response(); - } - - public static org.vdaas.vald.api.v1.payload.Object.List.Response getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Response parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.List.Response getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.List)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object.List other = (org.vdaas.vald.api.v1.payload.Object.List) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object.List parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.List parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.List parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.List parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.List parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object.List parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.List parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.List 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 org.vdaas.vald.api.v1.payload.Object.List parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object.List parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object.List parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object.List parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.List prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the list object vector stream request and response.
-     * 
- * - * Protobuf type {@code payload.v1.Object.List} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object.List) - org.vdaas.vald.api.v1.payload.Object.ListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.List.class, org.vdaas.vald.api.v1.payload.Object.List.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.List.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.List getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.List.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.List build() { - org.vdaas.vald.api.v1.payload.Object.List result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.List buildPartial() { - org.vdaas.vald.api.v1.payload.Object.List result = new org.vdaas.vald.api.v1.payload.Object.List(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object.List) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object.List)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.List other) { - if (other == org.vdaas.vald.api.v1.payload.Object.List.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object.List) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object.List) - private static final org.vdaas.vald.api.v1.payload.Object.List DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.List(); - } - - public static org.vdaas.vald.api.v1.payload.Object.List getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public List parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.List getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Object other = (org.vdaas.vald.api.v1.payload.Object) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Object parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Object parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object 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 org.vdaas.vald.api.v1.payload.Object parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Object parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Object parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Object parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Common messages.
-   * 
- * - * Protobuf type {@code payload.v1.Object} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Object) - org.vdaas.vald.api.v1.payload.ObjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Object.class, org.vdaas.vald.api.v1.payload.Object.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Object.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Object.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object build() { - org.vdaas.vald.api.v1.payload.Object result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object buildPartial() { - org.vdaas.vald.api.v1.payload.Object result = new org.vdaas.vald.api.v1.payload.Object(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Object) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Object)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object other) { - if (other == org.vdaas.vald.api.v1.payload.Object.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Object) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Object) - private static final org.vdaas.vald.api.v1.payload.Object DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object(); - } - - public static org.vdaas.vald.api.v1.payload.Object getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Object parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/ObjectOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/payload/ObjectOrBuilder.java deleted file mode 100644 index cf48b205..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/ObjectOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -public interface ObjectOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Object) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Remove.java b/src/main/java/org/vdaas/vald/api/v1/payload/Remove.java deleted file mode 100644 index fc25a810..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/Remove.java +++ /dev/null @@ -1,4591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -/** - *
- * Remove related messages.
- * 
- * - * Protobuf type {@code payload.v1.Remove} - */ -public final class Remove extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Remove) - RemoveOrBuilder { -private static final long serialVersionUID = 0L; - // Use Remove.newBuilder() to construct. - private Remove(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Remove() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Remove(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Remove.class, org.vdaas.vald.api.v1.payload.Remove.Builder.class); - } - - public interface RequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Remove.Request) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The object ID to be removed.
-     * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id"]; - * @return Whether the id field is set. - */ - boolean hasId(); - /** - *
-     * The object ID to be removed.
-     * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id"]; - * @return The id. - */ - org.vdaas.vald.api.v1.payload.Object.ID getId(); - /** - *
-     * The object ID to be removed.
-     * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id"]; - */ - org.vdaas.vald.api.v1.payload.Object.IDOrBuilder getIdOrBuilder(); - - /** - *
-     * The configuration of the remove request.
-     * 
- * - * .payload.v1.Remove.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - *
-     * The configuration of the remove request.
-     * 
- * - * .payload.v1.Remove.Config config = 2 [json_name = "config"]; - * @return The config. - */ - org.vdaas.vald.api.v1.payload.Remove.Config getConfig(); - /** - *
-     * The configuration of the remove request.
-     * 
- * - * .payload.v1.Remove.Config config = 2 [json_name = "config"]; - */ - org.vdaas.vald.api.v1.payload.Remove.ConfigOrBuilder getConfigOrBuilder(); - } - /** - *
-   * Represent the remove request.
-   * 
- * - * Protobuf type {@code payload.v1.Remove.Request} - */ - public static final class Request extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Remove.Request) - RequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use Request.newBuilder() to construct. - private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Request() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Request(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Request_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Remove.Request.class, org.vdaas.vald.api.v1.payload.Remove.Request.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private org.vdaas.vald.api.v1.payload.Object.ID id_; - /** - *
-     * The object ID to be removed.
-     * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id"]; - * @return Whether the id field is set. - */ - @java.lang.Override - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The object ID to be removed.
-     * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id"]; - * @return The id. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.ID getId() { - return id_ == null ? org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance() : id_; - } - /** - *
-     * The object ID to be removed.
-     * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.IDOrBuilder getIdOrBuilder() { - return id_ == null ? org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance() : id_; - } - - public static final int CONFIG_FIELD_NUMBER = 2; - private org.vdaas.vald.api.v1.payload.Remove.Config config_; - /** - *
-     * The configuration of the remove request.
-     * 
- * - * .payload.v1.Remove.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * The configuration of the remove request.
-     * 
- * - * .payload.v1.Remove.Config config = 2 [json_name = "config"]; - * @return The config. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.Config getConfig() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Remove.Config.getDefaultInstance() : config_; - } - /** - *
-     * The configuration of the remove request.
-     * 
- * - * .payload.v1.Remove.Config config = 2 [json_name = "config"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.ConfigOrBuilder getConfigOrBuilder() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Remove.Config.getDefaultInstance() : config_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getId()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getId()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Remove.Request)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Remove.Request other = (org.vdaas.vald.api.v1.payload.Remove.Request) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasConfig() != other.hasConfig()) return false; - if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - if (hasConfig()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Remove.Request parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Remove.Request parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.Request parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Remove.Request parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.Request parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Remove.Request parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.Request parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Remove.Request 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 org.vdaas.vald.api.v1.payload.Remove.Request parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Remove.Request parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.Request parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Remove.Request parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Remove.Request prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the remove request.
-     * 
- * - * Protobuf type {@code payload.v1.Remove.Request} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Remove.Request) - org.vdaas.vald.api.v1.payload.Remove.RequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Request_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Remove.Request.class, org.vdaas.vald.api.v1.payload.Remove.Request.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Remove.Request.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getIdFieldBuilder(); - getConfigFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = null; - if (idBuilder_ != null) { - idBuilder_.dispose(); - idBuilder_ = null; - } - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Request_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.Request getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Remove.Request.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.Request build() { - org.vdaas.vald.api.v1.payload.Remove.Request result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.Request buildPartial() { - org.vdaas.vald.api.v1.payload.Remove.Request result = new org.vdaas.vald.api.v1.payload.Remove.Request(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Remove.Request result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = idBuilder_ == null - ? id_ - : idBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Remove.Request) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Remove.Request)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Remove.Request other) { - if (other == org.vdaas.vald.api.v1.payload.Remove.Request.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getIdFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private org.vdaas.vald.api.v1.payload.Object.ID id_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.ID, org.vdaas.vald.api.v1.payload.Object.ID.Builder, org.vdaas.vald.api.v1.payload.Object.IDOrBuilder> idBuilder_; - /** - *
-       * The object ID to be removed.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id"]; - * @return Whether the id field is set. - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * The object ID to be removed.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id"]; - * @return The id. - */ - public org.vdaas.vald.api.v1.payload.Object.ID getId() { - if (idBuilder_ == null) { - return id_ == null ? org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * The object ID to be removed.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id"]; - */ - public Builder setId(org.vdaas.vald.api.v1.payload.Object.ID value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - } else { - idBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The object ID to be removed.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id"]; - */ - public Builder setId( - org.vdaas.vald.api.v1.payload.Object.ID.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The object ID to be removed.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id"]; - */ - public Builder mergeId(org.vdaas.vald.api.v1.payload.Object.ID value) { - if (idBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - id_ != null && - id_ != org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance()) { - getIdBuilder().mergeFrom(value); - } else { - id_ = value; - } - } else { - idBuilder_.mergeFrom(value); - } - if (id_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - *
-       * The object ID to be removed.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id"]; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = null; - if (idBuilder_ != null) { - idBuilder_.dispose(); - idBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The object ID to be removed.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id"]; - */ - public org.vdaas.vald.api.v1.payload.Object.ID.Builder getIdBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * The object ID to be removed.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id"]; - */ - public org.vdaas.vald.api.v1.payload.Object.IDOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance() : id_; - } - } - /** - *
-       * The object ID to be removed.
-       * 
- * - * .payload.v1.Object.ID id = 1 [json_name = "id"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.ID, org.vdaas.vald.api.v1.payload.Object.ID.Builder, org.vdaas.vald.api.v1.payload.Object.IDOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.ID, org.vdaas.vald.api.v1.payload.Object.ID.Builder, org.vdaas.vald.api.v1.payload.Object.IDOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Remove.Config config_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Remove.Config, org.vdaas.vald.api.v1.payload.Remove.Config.Builder, org.vdaas.vald.api.v1.payload.Remove.ConfigOrBuilder> configBuilder_; - /** - *
-       * The configuration of the remove request.
-       * 
- * - * .payload.v1.Remove.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * The configuration of the remove request.
-       * 
- * - * .payload.v1.Remove.Config config = 2 [json_name = "config"]; - * @return The config. - */ - public org.vdaas.vald.api.v1.payload.Remove.Config getConfig() { - if (configBuilder_ == null) { - return config_ == null ? org.vdaas.vald.api.v1.payload.Remove.Config.getDefaultInstance() : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - *
-       * The configuration of the remove request.
-       * 
- * - * .payload.v1.Remove.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig(org.vdaas.vald.api.v1.payload.Remove.Config value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - } else { - configBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the remove request.
-       * 
- * - * .payload.v1.Remove.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig( - org.vdaas.vald.api.v1.payload.Remove.Config.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the remove request.
-       * 
- * - * .payload.v1.Remove.Config config = 2 [json_name = "config"]; - */ - public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Remove.Config value) { - if (configBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - config_ != null && - config_ != org.vdaas.vald.api.v1.payload.Remove.Config.getDefaultInstance()) { - getConfigBuilder().mergeFrom(value); - } else { - config_ = value; - } - } else { - configBuilder_.mergeFrom(value); - } - if (config_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - *
-       * The configuration of the remove request.
-       * 
- * - * .payload.v1.Remove.Config config = 2 [json_name = "config"]; - */ - public Builder clearConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The configuration of the remove request.
-       * 
- * - * .payload.v1.Remove.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Remove.Config.Builder getConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - *
-       * The configuration of the remove request.
-       * 
- * - * .payload.v1.Remove.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Remove.ConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null ? - org.vdaas.vald.api.v1.payload.Remove.Config.getDefaultInstance() : config_; - } - } - /** - *
-       * The configuration of the remove request.
-       * 
- * - * .payload.v1.Remove.Config config = 2 [json_name = "config"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Remove.Config, org.vdaas.vald.api.v1.payload.Remove.Config.Builder, org.vdaas.vald.api.v1.payload.Remove.ConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Remove.Config, org.vdaas.vald.api.v1.payload.Remove.Config.Builder, org.vdaas.vald.api.v1.payload.Remove.ConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); - config_ = null; - } - return configBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Remove.Request) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Remove.Request) - private static final org.vdaas.vald.api.v1.payload.Remove.Request DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Remove.Request(); - } - - public static org.vdaas.vald.api.v1.payload.Remove.Request getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Request parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.Request getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MultiRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Remove.MultiRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represent the multiple remove request content.
-     * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsList(); - /** - *
-     * Represent the multiple remove request content.
-     * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Remove.Request getRequests(int index); - /** - *
-     * Represent the multiple remove request content.
-     * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - int getRequestsCount(); - /** - *
-     * Represent the multiple remove request content.
-     * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-     * Represent the multiple remove request content.
-     * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Remove.RequestOrBuilder getRequestsOrBuilder( - int index); - } - /** - *
-   * Represent the multiple remove request.
-   * 
- * - * Protobuf type {@code payload.v1.Remove.MultiRequest} - */ - public static final class MultiRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Remove.MultiRequest) - MultiRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MultiRequest.newBuilder() to construct. - private MultiRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MultiRequest() { - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MultiRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_MultiRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_MultiRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Remove.MultiRequest.class, org.vdaas.vald.api.v1.payload.Remove.MultiRequest.Builder.class); - } - - public static final int REQUESTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List requests_; - /** - *
-     * Represent the multiple remove request content.
-     * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List getRequestsList() { - return requests_; - } - /** - *
-     * Represent the multiple remove request content.
-     * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - *
-     * Represent the multiple remove request content.
-     * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - *
-     * Represent the multiple remove request content.
-     * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.Request getRequests(int index) { - return requests_.get(index); - } - /** - *
-     * Represent the multiple remove request content.
-     * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.RequestOrBuilder getRequestsOrBuilder( - int index) { - return requests_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(1, requests_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Remove.MultiRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Remove.MultiRequest other = (org.vdaas.vald.api.v1.payload.Remove.MultiRequest) obj; - - if (!getRequestsList() - .equals(other.getRequestsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Remove.MultiRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Remove.MultiRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.MultiRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Remove.MultiRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.MultiRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Remove.MultiRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.MultiRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Remove.MultiRequest 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 org.vdaas.vald.api.v1.payload.Remove.MultiRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Remove.MultiRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.MultiRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Remove.MultiRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Remove.MultiRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the multiple remove request.
-     * 
- * - * Protobuf type {@code payload.v1.Remove.MultiRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Remove.MultiRequest) - org.vdaas.vald.api.v1.payload.Remove.MultiRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_MultiRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_MultiRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Remove.MultiRequest.class, org.vdaas.vald.api.v1.payload.Remove.MultiRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Remove.MultiRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_MultiRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.MultiRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Remove.MultiRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.MultiRequest build() { - org.vdaas.vald.api.v1.payload.Remove.MultiRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.MultiRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Remove.MultiRequest result = new org.vdaas.vald.api.v1.payload.Remove.MultiRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Remove.MultiRequest result) { - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Remove.MultiRequest result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Remove.MultiRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Remove.MultiRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Remove.MultiRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Remove.MultiRequest.getDefaultInstance()) return this; - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Remove.Request m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Remove.Request.parser(), - extensionRegistry); - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(m); - } else { - requestsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List requests_ = - java.util.Collections.emptyList(); - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Remove.Request, org.vdaas.vald.api.v1.payload.Remove.Request.Builder, org.vdaas.vald.api.v1.payload.Remove.RequestOrBuilder> requestsBuilder_; - - /** - *
-       * Represent the multiple remove request content.
-       * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - public java.util.List getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - *
-       * Represent the multiple remove request content.
-       * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - *
-       * Represent the multiple remove request content.
-       * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Remove.Request getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - *
-       * Represent the multiple remove request content.
-       * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Remove.Request value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Represent the multiple remove request content.
-       * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Remove.Request.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple remove request content.
-       * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests(org.vdaas.vald.api.v1.payload.Remove.Request value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Represent the multiple remove request content.
-       * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Remove.Request value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Represent the multiple remove request content.
-       * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - org.vdaas.vald.api.v1.payload.Remove.Request.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple remove request content.
-       * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Remove.Request.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple remove request content.
-       * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - public Builder addAllRequests( - java.lang.Iterable values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Represent the multiple remove request content.
-       * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - *
-       * Represent the multiple remove request content.
-       * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Represent the multiple remove request content.
-       * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Remove.Request.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - *
-       * Represent the multiple remove request content.
-       * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Remove.RequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Represent the multiple remove request content.
-       * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - *
-       * Represent the multiple remove request content.
-       * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Remove.Request.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Remove.Request.getDefaultInstance()); - } - /** - *
-       * Represent the multiple remove request content.
-       * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Remove.Request.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Remove.Request.getDefaultInstance()); - } - /** - *
-       * Represent the multiple remove request content.
-       * 
- * - * repeated .payload.v1.Remove.Request requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Remove.Request, org.vdaas.vald.api.v1.payload.Remove.Request.Builder, org.vdaas.vald.api.v1.payload.Remove.RequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Remove.Request, org.vdaas.vald.api.v1.payload.Remove.Request.Builder, org.vdaas.vald.api.v1.payload.Remove.RequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - requests_ = null; - } - return requestsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Remove.MultiRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Remove.MultiRequest) - private static final org.vdaas.vald.api.v1.payload.Remove.MultiRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Remove.MultiRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Remove.MultiRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MultiRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.MultiRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TimestampRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Remove.TimestampRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-     * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - java.util.List - getTimestampsList(); - /** - *
-     * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-     * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - org.vdaas.vald.api.v1.payload.Remove.Timestamp getTimestamps(int index); - /** - *
-     * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-     * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - int getTimestampsCount(); - /** - *
-     * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-     * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - java.util.List - getTimestampsOrBuilderList(); - /** - *
-     * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-     * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - org.vdaas.vald.api.v1.payload.Remove.TimestampOrBuilder getTimestampsOrBuilder( - int index); - } - /** - *
-   * Represent the remove request based on timestamp.
-   * 
- * - * Protobuf type {@code payload.v1.Remove.TimestampRequest} - */ - public static final class TimestampRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Remove.TimestampRequest) - TimestampRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TimestampRequest.newBuilder() to construct. - private TimestampRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TimestampRequest() { - timestamps_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TimestampRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_TimestampRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_TimestampRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Remove.TimestampRequest.class, org.vdaas.vald.api.v1.payload.Remove.TimestampRequest.Builder.class); - } - - public static final int TIMESTAMPS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List timestamps_; - /** - *
-     * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-     * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - @java.lang.Override - public java.util.List getTimestampsList() { - return timestamps_; - } - /** - *
-     * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-     * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - @java.lang.Override - public java.util.List - getTimestampsOrBuilderList() { - return timestamps_; - } - /** - *
-     * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-     * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - @java.lang.Override - public int getTimestampsCount() { - return timestamps_.size(); - } - /** - *
-     * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-     * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.Timestamp getTimestamps(int index) { - return timestamps_.get(index); - } - /** - *
-     * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-     * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.TimestampOrBuilder getTimestampsOrBuilder( - int index) { - return timestamps_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < timestamps_.size(); i++) { - output.writeMessage(1, timestamps_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < timestamps_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, timestamps_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Remove.TimestampRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Remove.TimestampRequest other = (org.vdaas.vald.api.v1.payload.Remove.TimestampRequest) obj; - - if (!getTimestampsList() - .equals(other.getTimestampsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTimestampsCount() > 0) { - hash = (37 * hash) + TIMESTAMPS_FIELD_NUMBER; - hash = (53 * hash) + getTimestampsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest 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 org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Remove.TimestampRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the remove request based on timestamp.
-     * 
- * - * Protobuf type {@code payload.v1.Remove.TimestampRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Remove.TimestampRequest) - org.vdaas.vald.api.v1.payload.Remove.TimestampRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_TimestampRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_TimestampRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Remove.TimestampRequest.class, org.vdaas.vald.api.v1.payload.Remove.TimestampRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Remove.TimestampRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (timestampsBuilder_ == null) { - timestamps_ = java.util.Collections.emptyList(); - } else { - timestamps_ = null; - timestampsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_TimestampRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.TimestampRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Remove.TimestampRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.TimestampRequest build() { - org.vdaas.vald.api.v1.payload.Remove.TimestampRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.TimestampRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Remove.TimestampRequest result = new org.vdaas.vald.api.v1.payload.Remove.TimestampRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Remove.TimestampRequest result) { - if (timestampsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - timestamps_ = java.util.Collections.unmodifiableList(timestamps_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.timestamps_ = timestamps_; - } else { - result.timestamps_ = timestampsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Remove.TimestampRequest result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Remove.TimestampRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Remove.TimestampRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Remove.TimestampRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Remove.TimestampRequest.getDefaultInstance()) return this; - if (timestampsBuilder_ == null) { - if (!other.timestamps_.isEmpty()) { - if (timestamps_.isEmpty()) { - timestamps_ = other.timestamps_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTimestampsIsMutable(); - timestamps_.addAll(other.timestamps_); - } - onChanged(); - } - } else { - if (!other.timestamps_.isEmpty()) { - if (timestampsBuilder_.isEmpty()) { - timestampsBuilder_.dispose(); - timestampsBuilder_ = null; - timestamps_ = other.timestamps_; - bitField0_ = (bitField0_ & ~0x00000001); - timestampsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTimestampsFieldBuilder() : null; - } else { - timestampsBuilder_.addAllMessages(other.timestamps_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Remove.Timestamp m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Remove.Timestamp.parser(), - extensionRegistry); - if (timestampsBuilder_ == null) { - ensureTimestampsIsMutable(); - timestamps_.add(m); - } else { - timestampsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List timestamps_ = - java.util.Collections.emptyList(); - private void ensureTimestampsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - timestamps_ = new java.util.ArrayList(timestamps_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Remove.Timestamp, org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder, org.vdaas.vald.api.v1.payload.Remove.TimestampOrBuilder> timestampsBuilder_; - - /** - *
-       * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-       * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - public java.util.List getTimestampsList() { - if (timestampsBuilder_ == null) { - return java.util.Collections.unmodifiableList(timestamps_); - } else { - return timestampsBuilder_.getMessageList(); - } - } - /** - *
-       * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-       * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - public int getTimestampsCount() { - if (timestampsBuilder_ == null) { - return timestamps_.size(); - } else { - return timestampsBuilder_.getCount(); - } - } - /** - *
-       * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-       * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - public org.vdaas.vald.api.v1.payload.Remove.Timestamp getTimestamps(int index) { - if (timestampsBuilder_ == null) { - return timestamps_.get(index); - } else { - return timestampsBuilder_.getMessage(index); - } - } - /** - *
-       * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-       * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - public Builder setTimestamps( - int index, org.vdaas.vald.api.v1.payload.Remove.Timestamp value) { - if (timestampsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTimestampsIsMutable(); - timestamps_.set(index, value); - onChanged(); - } else { - timestampsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-       * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - public Builder setTimestamps( - int index, org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder builderForValue) { - if (timestampsBuilder_ == null) { - ensureTimestampsIsMutable(); - timestamps_.set(index, builderForValue.build()); - onChanged(); - } else { - timestampsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-       * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - public Builder addTimestamps(org.vdaas.vald.api.v1.payload.Remove.Timestamp value) { - if (timestampsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTimestampsIsMutable(); - timestamps_.add(value); - onChanged(); - } else { - timestampsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-       * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - public Builder addTimestamps( - int index, org.vdaas.vald.api.v1.payload.Remove.Timestamp value) { - if (timestampsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTimestampsIsMutable(); - timestamps_.add(index, value); - onChanged(); - } else { - timestampsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-       * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - public Builder addTimestamps( - org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder builderForValue) { - if (timestampsBuilder_ == null) { - ensureTimestampsIsMutable(); - timestamps_.add(builderForValue.build()); - onChanged(); - } else { - timestampsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-       * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - public Builder addTimestamps( - int index, org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder builderForValue) { - if (timestampsBuilder_ == null) { - ensureTimestampsIsMutable(); - timestamps_.add(index, builderForValue.build()); - onChanged(); - } else { - timestampsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-       * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - public Builder addAllTimestamps( - java.lang.Iterable values) { - if (timestampsBuilder_ == null) { - ensureTimestampsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, timestamps_); - onChanged(); - } else { - timestampsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-       * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - public Builder clearTimestamps() { - if (timestampsBuilder_ == null) { - timestamps_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - timestampsBuilder_.clear(); - } - return this; - } - /** - *
-       * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-       * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - public Builder removeTimestamps(int index) { - if (timestampsBuilder_ == null) { - ensureTimestampsIsMutable(); - timestamps_.remove(index); - onChanged(); - } else { - timestampsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-       * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - public org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder getTimestampsBuilder( - int index) { - return getTimestampsFieldBuilder().getBuilder(index); - } - /** - *
-       * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-       * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - public org.vdaas.vald.api.v1.payload.Remove.TimestampOrBuilder getTimestampsOrBuilder( - int index) { - if (timestampsBuilder_ == null) { - return timestamps_.get(index); } else { - return timestampsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-       * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - public java.util.List - getTimestampsOrBuilderList() { - if (timestampsBuilder_ != null) { - return timestampsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(timestamps_); - } - } - /** - *
-       * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-       * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - public org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder addTimestampsBuilder() { - return getTimestampsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Remove.Timestamp.getDefaultInstance()); - } - /** - *
-       * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-       * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - public org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder addTimestampsBuilder( - int index) { - return getTimestampsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Remove.Timestamp.getDefaultInstance()); - } - /** - *
-       * The timestamp comparison list. If more than one is specified, the `AND` search is applied.
-       * 
- * - * repeated .payload.v1.Remove.Timestamp timestamps = 1 [json_name = "timestamps"]; - */ - public java.util.List - getTimestampsBuilderList() { - return getTimestampsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Remove.Timestamp, org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder, org.vdaas.vald.api.v1.payload.Remove.TimestampOrBuilder> - getTimestampsFieldBuilder() { - if (timestampsBuilder_ == null) { - timestampsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Remove.Timestamp, org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder, org.vdaas.vald.api.v1.payload.Remove.TimestampOrBuilder>( - timestamps_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - timestamps_ = null; - } - return timestampsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Remove.TimestampRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Remove.TimestampRequest) - private static final org.vdaas.vald.api.v1.payload.Remove.TimestampRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Remove.TimestampRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.TimestampRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TimestampOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Remove.Timestamp) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The timestamp.
-     * 
- * - * int64 timestamp = 1 [json_name = "timestamp"]; - * @return The timestamp. - */ - long getTimestamp(); - - /** - *
-     * The conditional operator.
-     * 
- * - * .payload.v1.Remove.Timestamp.Operator operator = 2 [json_name = "operator"]; - * @return The enum numeric value on the wire for operator. - */ - int getOperatorValue(); - /** - *
-     * The conditional operator.
-     * 
- * - * .payload.v1.Remove.Timestamp.Operator operator = 2 [json_name = "operator"]; - * @return The operator. - */ - org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator getOperator(); - } - /** - *
-   * Represent the timestamp comparison.
-   * 
- * - * Protobuf type {@code payload.v1.Remove.Timestamp} - */ - public static final class Timestamp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Remove.Timestamp) - TimestampOrBuilder { - private static final long serialVersionUID = 0L; - // Use Timestamp.newBuilder() to construct. - private Timestamp(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Timestamp() { - operator_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Timestamp(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Timestamp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Timestamp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Remove.Timestamp.class, org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder.class); - } - - /** - *
-     * Operator is enum of each conditional operator.
-     * 
- * - * Protobuf enum {@code payload.v1.Remove.Timestamp.Operator} - */ - public enum Operator - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * The timestamp is equal to the specified value in the request.
-       * 
- * - * Eq = 0; - */ - Eq(0), - /** - *
-       * The timestamp is not equal to the specified value in the request.
-       * 
- * - * Ne = 1; - */ - Ne(1), - /** - *
-       * The timestamp is greater than or equal to the specified value in the request.
-       * 
- * - * Ge = 2; - */ - Ge(2), - /** - *
-       * The timestamp is greater than the specified value in the request.
-       * 
- * - * Gt = 3; - */ - Gt(3), - /** - *
-       * The timestamp is less than or equal to the specified value in the request.
-       * 
- * - * Le = 4; - */ - Le(4), - /** - *
-       * The timestamp is less than the specified value in the request.
-       * 
- * - * Lt = 5; - */ - Lt(5), - UNRECOGNIZED(-1), - ; - - /** - *
-       * The timestamp is equal to the specified value in the request.
-       * 
- * - * Eq = 0; - */ - public static final int Eq_VALUE = 0; - /** - *
-       * The timestamp is not equal to the specified value in the request.
-       * 
- * - * Ne = 1; - */ - public static final int Ne_VALUE = 1; - /** - *
-       * The timestamp is greater than or equal to the specified value in the request.
-       * 
- * - * Ge = 2; - */ - public static final int Ge_VALUE = 2; - /** - *
-       * The timestamp is greater than the specified value in the request.
-       * 
- * - * Gt = 3; - */ - public static final int Gt_VALUE = 3; - /** - *
-       * The timestamp is less than or equal to the specified value in the request.
-       * 
- * - * Le = 4; - */ - public static final int Le_VALUE = 4; - /** - *
-       * The timestamp is less than the specified value in the request.
-       * 
- * - * Lt = 5; - */ - public static final int Lt_VALUE = 5; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Operator valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Operator forNumber(int value) { - switch (value) { - case 0: return Eq; - case 1: return Ne; - case 2: return Ge; - case 3: return Gt; - case 4: return Le; - case 5: return Lt; - default: return null; - } - } - - 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() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.Remove.Timestamp.getDescriptor().getEnumTypes().get(0); - } - - private static final Operator[] VALUES = values(); - - 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."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Operator(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:payload.v1.Remove.Timestamp.Operator) - } - - public static final int TIMESTAMP_FIELD_NUMBER = 1; - private long timestamp_ = 0L; - /** - *
-     * The timestamp.
-     * 
- * - * int64 timestamp = 1 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - - public static final int OPERATOR_FIELD_NUMBER = 2; - private int operator_ = 0; - /** - *
-     * The conditional operator.
-     * 
- * - * .payload.v1.Remove.Timestamp.Operator operator = 2 [json_name = "operator"]; - * @return The enum numeric value on the wire for operator. - */ - @java.lang.Override public int getOperatorValue() { - return operator_; - } - /** - *
-     * The conditional operator.
-     * 
- * - * .payload.v1.Remove.Timestamp.Operator operator = 2 [json_name = "operator"]; - * @return The operator. - */ - @java.lang.Override public org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator getOperator() { - org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator result = org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator.forNumber(operator_); - return result == null ? org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (timestamp_ != 0L) { - output.writeInt64(1, timestamp_); - } - if (operator_ != org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator.Eq.getNumber()) { - output.writeEnum(2, operator_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, timestamp_); - } - if (operator_ != org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator.Eq.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, operator_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Remove.Timestamp)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Remove.Timestamp other = (org.vdaas.vald.api.v1.payload.Remove.Timestamp) obj; - - if (getTimestamp() - != other.getTimestamp()) return false; - if (operator_ != other.operator_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + OPERATOR_FIELD_NUMBER; - hash = (53 * hash) + operator_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Remove.Timestamp 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 org.vdaas.vald.api.v1.payload.Remove.Timestamp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Remove.Timestamp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the timestamp comparison.
-     * 
- * - * Protobuf type {@code payload.v1.Remove.Timestamp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Remove.Timestamp) - org.vdaas.vald.api.v1.payload.Remove.TimestampOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Timestamp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Timestamp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Remove.Timestamp.class, org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Remove.Timestamp.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - timestamp_ = 0L; - operator_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Timestamp_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.Timestamp getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Remove.Timestamp.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.Timestamp build() { - org.vdaas.vald.api.v1.payload.Remove.Timestamp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.Timestamp buildPartial() { - org.vdaas.vald.api.v1.payload.Remove.Timestamp result = new org.vdaas.vald.api.v1.payload.Remove.Timestamp(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Remove.Timestamp result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.timestamp_ = timestamp_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.operator_ = operator_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Remove.Timestamp) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Remove.Timestamp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Remove.Timestamp other) { - if (other == org.vdaas.vald.api.v1.payload.Remove.Timestamp.getDefaultInstance()) return this; - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.operator_ != 0) { - setOperatorValue(other.getOperatorValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - timestamp_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - operator_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long timestamp_ ; - /** - *
-       * The timestamp.
-       * 
- * - * int64 timestamp = 1 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - /** - *
-       * The timestamp.
-       * 
- * - * int64 timestamp = 1 [json_name = "timestamp"]; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The timestamp.
-       * 
- * - * int64 timestamp = 1 [json_name = "timestamp"]; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000001); - timestamp_ = 0L; - onChanged(); - return this; - } - - private int operator_ = 0; - /** - *
-       * The conditional operator.
-       * 
- * - * .payload.v1.Remove.Timestamp.Operator operator = 2 [json_name = "operator"]; - * @return The enum numeric value on the wire for operator. - */ - @java.lang.Override public int getOperatorValue() { - return operator_; - } - /** - *
-       * The conditional operator.
-       * 
- * - * .payload.v1.Remove.Timestamp.Operator operator = 2 [json_name = "operator"]; - * @param value The enum numeric value on the wire for operator to set. - * @return This builder for chaining. - */ - public Builder setOperatorValue(int value) { - operator_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The conditional operator.
-       * 
- * - * .payload.v1.Remove.Timestamp.Operator operator = 2 [json_name = "operator"]; - * @return The operator. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator getOperator() { - org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator result = org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator.forNumber(operator_); - return result == null ? org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator.UNRECOGNIZED : result; - } - /** - *
-       * The conditional operator.
-       * 
- * - * .payload.v1.Remove.Timestamp.Operator operator = 2 [json_name = "operator"]; - * @param value The operator to set. - * @return This builder for chaining. - */ - public Builder setOperator(org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - operator_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The conditional operator.
-       * 
- * - * .payload.v1.Remove.Timestamp.Operator operator = 2 [json_name = "operator"]; - * @return This builder for chaining. - */ - public Builder clearOperator() { - bitField0_ = (bitField0_ & ~0x00000002); - operator_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Remove.Timestamp) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Remove.Timestamp) - private static final org.vdaas.vald.api.v1.payload.Remove.Timestamp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Remove.Timestamp(); - } - - public static org.vdaas.vald.api.v1.payload.Remove.Timestamp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Timestamp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.Timestamp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Remove.Config) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A flag to skip exist check during upsert operation.
-     * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @return The skipStrictExistCheck. - */ - boolean getSkipStrictExistCheck(); - - /** - *
-     * Remove timestamp.
-     * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return The timestamp. - */ - long getTimestamp(); - } - /** - *
-   * Represent the remove configuration.
-   * 
- * - * Protobuf type {@code payload.v1.Remove.Config} - */ - public static final class Config extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Remove.Config) - ConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use Config.newBuilder() to construct. - private Config(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Config() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Config(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Config_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Config_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Remove.Config.class, org.vdaas.vald.api.v1.payload.Remove.Config.Builder.class); - } - - public static final int SKIP_STRICT_EXIST_CHECK_FIELD_NUMBER = 1; - private boolean skipStrictExistCheck_ = false; - /** - *
-     * A flag to skip exist check during upsert operation.
-     * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @return The skipStrictExistCheck. - */ - @java.lang.Override - public boolean getSkipStrictExistCheck() { - return skipStrictExistCheck_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 3; - private long timestamp_ = 0L; - /** - *
-     * Remove timestamp.
-     * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (skipStrictExistCheck_ != false) { - output.writeBool(1, skipStrictExistCheck_); - } - if (timestamp_ != 0L) { - output.writeInt64(3, timestamp_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (skipStrictExistCheck_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, skipStrictExistCheck_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, timestamp_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Remove.Config)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Remove.Config other = (org.vdaas.vald.api.v1.payload.Remove.Config) obj; - - if (getSkipStrictExistCheck() - != other.getSkipStrictExistCheck()) return false; - if (getTimestamp() - != other.getTimestamp()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SKIP_STRICT_EXIST_CHECK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSkipStrictExistCheck()); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Remove.Config parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Remove.Config parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.Config parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Remove.Config parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.Config parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Remove.Config parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.Config parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Remove.Config 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 org.vdaas.vald.api.v1.payload.Remove.Config parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Remove.Config parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove.Config parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Remove.Config parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Remove.Config prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the remove configuration.
-     * 
- * - * Protobuf type {@code payload.v1.Remove.Config} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Remove.Config) - org.vdaas.vald.api.v1.payload.Remove.ConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Config_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Config_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Remove.Config.class, org.vdaas.vald.api.v1.payload.Remove.Config.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Remove.Config.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - skipStrictExistCheck_ = false; - timestamp_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Config_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.Config getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Remove.Config.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.Config build() { - org.vdaas.vald.api.v1.payload.Remove.Config result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.Config buildPartial() { - org.vdaas.vald.api.v1.payload.Remove.Config result = new org.vdaas.vald.api.v1.payload.Remove.Config(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Remove.Config result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.skipStrictExistCheck_ = skipStrictExistCheck_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.timestamp_ = timestamp_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Remove.Config) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Remove.Config)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Remove.Config other) { - if (other == org.vdaas.vald.api.v1.payload.Remove.Config.getDefaultInstance()) return this; - if (other.getSkipStrictExistCheck() != false) { - setSkipStrictExistCheck(other.getSkipStrictExistCheck()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - skipStrictExistCheck_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 24: { - timestamp_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean skipStrictExistCheck_ ; - /** - *
-       * A flag to skip exist check during upsert operation.
-       * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @return The skipStrictExistCheck. - */ - @java.lang.Override - public boolean getSkipStrictExistCheck() { - return skipStrictExistCheck_; - } - /** - *
-       * A flag to skip exist check during upsert operation.
-       * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @param value The skipStrictExistCheck to set. - * @return This builder for chaining. - */ - public Builder setSkipStrictExistCheck(boolean value) { - - skipStrictExistCheck_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * A flag to skip exist check during upsert operation.
-       * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @return This builder for chaining. - */ - public Builder clearSkipStrictExistCheck() { - bitField0_ = (bitField0_ & ~0x00000001); - skipStrictExistCheck_ = false; - onChanged(); - return this; - } - - private long timestamp_ ; - /** - *
-       * Remove timestamp.
-       * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - /** - *
-       * Remove timestamp.
-       * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Remove timestamp.
-       * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000002); - timestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Remove.Config) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Remove.Config) - private static final org.vdaas.vald.api.v1.payload.Remove.Config DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Remove.Config(); - } - - public static org.vdaas.vald.api.v1.payload.Remove.Config getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Config parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove.Config getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Remove)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Remove other = (org.vdaas.vald.api.v1.payload.Remove) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Remove parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Remove parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Remove parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Remove parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Remove 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 org.vdaas.vald.api.v1.payload.Remove parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Remove parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Remove parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Remove parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Remove prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Remove related messages.
-   * 
- * - * Protobuf type {@code payload.v1.Remove} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Remove) - org.vdaas.vald.api.v1.payload.RemoveOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Remove.class, org.vdaas.vald.api.v1.payload.Remove.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Remove.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Remove.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove build() { - org.vdaas.vald.api.v1.payload.Remove result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove buildPartial() { - org.vdaas.vald.api.v1.payload.Remove result = new org.vdaas.vald.api.v1.payload.Remove(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Remove) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Remove)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Remove other) { - if (other == org.vdaas.vald.api.v1.payload.Remove.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Remove) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Remove) - private static final org.vdaas.vald.api.v1.payload.Remove DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Remove(); - } - - public static org.vdaas.vald.api.v1.payload.Remove getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Remove parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Remove getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/RemoveOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/payload/RemoveOrBuilder.java deleted file mode 100644 index d02dd357..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/RemoveOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -public interface RemoveOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Remove) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Search.java b/src/main/java/org/vdaas/vald/api/v1/payload/Search.java deleted file mode 100644 index 751779dd..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/Search.java +++ /dev/null @@ -1,11110 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -/** - *
- * Search related messages.
- * 
- * - * Protobuf type {@code payload.v1.Search} - */ -public final class Search extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Search) - SearchOrBuilder { -private static final long serialVersionUID = 0L; - // Use Search.newBuilder() to construct. - private Search(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Search() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Search(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.class, org.vdaas.vald.api.v1.payload.Search.Builder.class); - } - - /** - *
-   * AggregationAlgorithm is enum of each aggregation algorithms
-   * 
- * - * Protobuf enum {@code payload.v1.Search.AggregationAlgorithm} - */ - public enum AggregationAlgorithm - implements com.google.protobuf.ProtocolMessageEnum { - /** - * Unknown = 0; - */ - Unknown(0), - /** - * ConcurrentQueue = 1; - */ - ConcurrentQueue(1), - /** - * SortSlice = 2; - */ - SortSlice(2), - /** - * SortPoolSlice = 3; - */ - SortPoolSlice(3), - /** - * PairingHeap = 4; - */ - PairingHeap(4), - UNRECOGNIZED(-1), - ; - - /** - * Unknown = 0; - */ - public static final int Unknown_VALUE = 0; - /** - * ConcurrentQueue = 1; - */ - public static final int ConcurrentQueue_VALUE = 1; - /** - * SortSlice = 2; - */ - public static final int SortSlice_VALUE = 2; - /** - * SortPoolSlice = 3; - */ - public static final int SortPoolSlice_VALUE = 3; - /** - * PairingHeap = 4; - */ - public static final int PairingHeap_VALUE = 4; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AggregationAlgorithm valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static AggregationAlgorithm forNumber(int value) { - switch (value) { - case 0: return Unknown; - case 1: return ConcurrentQueue; - case 2: return SortSlice; - case 3: return SortPoolSlice; - case 4: return PairingHeap; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AggregationAlgorithm> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AggregationAlgorithm findValueByNumber(int number) { - return AggregationAlgorithm.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.Search.getDescriptor().getEnumTypes().get(0); - } - - private static final AggregationAlgorithm[] VALUES = values(); - - public static AggregationAlgorithm valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private AggregationAlgorithm(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:payload.v1.Search.AggregationAlgorithm) - } - - public interface RequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Search.Request) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The vector to be searched.
-     * 
- * - * repeated float vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return A list containing the vector. - */ - java.util.List getVectorList(); - /** - *
-     * The vector to be searched.
-     * 
- * - * repeated float vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return The count of vector. - */ - int getVectorCount(); - /** - *
-     * The vector to be searched.
-     * 
- * - * repeated float vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The vector at the given index. - */ - float getVector(int index); - - /** - *
-     * The configuration of the search request.
-     * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - *
-     * The configuration of the search request.
-     * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - * @return The config. - */ - org.vdaas.vald.api.v1.payload.Search.Config getConfig(); - /** - *
-     * The configuration of the search request.
-     * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder getConfigOrBuilder(); - } - /** - *
-   * Represent a search request.
-   * 
- * - * Protobuf type {@code payload.v1.Search.Request} - */ - public static final class Request extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Search.Request) - RequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use Request.newBuilder() to construct. - private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Request() { - vector_ = emptyFloatList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Request(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Request_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.Request.class, org.vdaas.vald.api.v1.payload.Search.Request.Builder.class); - } - - private int bitField0_; - public static final int VECTOR_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.FloatList vector_ = - emptyFloatList(); - /** - *
-     * The vector to be searched.
-     * 
- * - * repeated float vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return A list containing the vector. - */ - @java.lang.Override - public java.util.List - getVectorList() { - return vector_; - } - /** - *
-     * The vector to be searched.
-     * 
- * - * repeated float vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return The count of vector. - */ - public int getVectorCount() { - return vector_.size(); - } - /** - *
-     * The vector to be searched.
-     * 
- * - * repeated float vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The vector at the given index. - */ - public float getVector(int index) { - return vector_.getFloat(index); - } - private int vectorMemoizedSerializedSize = -1; - - public static final int CONFIG_FIELD_NUMBER = 2; - private org.vdaas.vald.api.v1.payload.Search.Config config_; - /** - *
-     * The configuration of the search request.
-     * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The configuration of the search request.
-     * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - * @return The config. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Config getConfig() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Search.Config.getDefaultInstance() : config_; - } - /** - *
-     * The configuration of the search request.
-     * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder getConfigOrBuilder() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Search.Config.getDefaultInstance() : config_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getVectorList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(vectorMemoizedSerializedSize); - } - for (int i = 0; i < vector_.size(); i++) { - output.writeFloatNoTag(vector_.getFloat(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - dataSize = 4 * getVectorList().size(); - size += dataSize; - if (!getVectorList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - vectorMemoizedSerializedSize = dataSize; - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Search.Request)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Search.Request other = (org.vdaas.vald.api.v1.payload.Search.Request) obj; - - if (!getVectorList() - .equals(other.getVectorList())) return false; - if (hasConfig() != other.hasConfig()) return false; - if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getVectorCount() > 0) { - hash = (37 * hash) + VECTOR_FIELD_NUMBER; - hash = (53 * hash) + getVectorList().hashCode(); - } - if (hasConfig()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Search.Request parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.Request parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.Request parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.Request parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.Request parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.Request parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.Request parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.Request 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 org.vdaas.vald.api.v1.payload.Search.Request parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Search.Request parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.Request parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.Request parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Search.Request prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent a search request.
-     * 
- * - * Protobuf type {@code payload.v1.Search.Request} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Search.Request) - org.vdaas.vald.api.v1.payload.Search.RequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Request_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.Request.class, org.vdaas.vald.api.v1.payload.Search.Request.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Search.Request.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getConfigFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - vector_ = emptyFloatList(); - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Request_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Request getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Search.Request.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Request build() { - org.vdaas.vald.api.v1.payload.Search.Request result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Request buildPartial() { - org.vdaas.vald.api.v1.payload.Search.Request result = new org.vdaas.vald.api.v1.payload.Search.Request(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Search.Request result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - vector_.makeImmutable(); - result.vector_ = vector_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Search.Request) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Search.Request)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Search.Request other) { - if (other == org.vdaas.vald.api.v1.payload.Search.Request.getDefaultInstance()) return this; - if (!other.vector_.isEmpty()) { - if (vector_.isEmpty()) { - vector_ = other.vector_; - vector_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureVectorIsMutable(); - vector_.addAll(other.vector_); - } - onChanged(); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 13: { - float v = input.readFloat(); - ensureVectorIsMutable(); - vector_.addFloat(v); - break; - } // case 13 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureVectorIsMutable(alloc / 4); - while (input.getBytesUntilLimit() > 0) { - vector_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; - } // case 10 - case 18: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList(); - private void ensureVectorIsMutable() { - if (!vector_.isModifiable()) { - vector_ = makeMutableCopy(vector_); - } - bitField0_ |= 0x00000001; - } - private void ensureVectorIsMutable(int capacity) { - if (!vector_.isModifiable()) { - vector_ = makeMutableCopy(vector_, capacity); - } - bitField0_ |= 0x00000001; - } - /** - *
-       * The vector to be searched.
-       * 
- * - * repeated float vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return A list containing the vector. - */ - public java.util.List - getVectorList() { - vector_.makeImmutable(); - return vector_; - } - /** - *
-       * The vector to be searched.
-       * 
- * - * repeated float vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return The count of vector. - */ - public int getVectorCount() { - return vector_.size(); - } - /** - *
-       * The vector to be searched.
-       * 
- * - * repeated float vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The vector at the given index. - */ - public float getVector(int index) { - return vector_.getFloat(index); - } - /** - *
-       * The vector to be searched.
-       * 
- * - * repeated float vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The vector to set. - * @return This builder for chaining. - */ - public Builder setVector( - int index, float value) { - - ensureVectorIsMutable(); - vector_.setFloat(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The vector to be searched.
-       * 
- * - * repeated float vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @param value The vector to add. - * @return This builder for chaining. - */ - public Builder addVector(float value) { - - ensureVectorIsMutable(); - vector_.addFloat(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The vector to be searched.
-       * 
- * - * repeated float vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @param values The vector to add. - * @return This builder for chaining. - */ - public Builder addAllVector( - java.lang.Iterable values) { - ensureVectorIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vector_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The vector to be searched.
-       * 
- * - * repeated float vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVector() { - vector_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private org.vdaas.vald.api.v1.payload.Search.Config config_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.Config, org.vdaas.vald.api.v1.payload.Search.Config.Builder, org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder> configBuilder_; - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - * @return The config. - */ - public org.vdaas.vald.api.v1.payload.Search.Config getConfig() { - if (configBuilder_ == null) { - return config_ == null ? org.vdaas.vald.api.v1.payload.Search.Config.getDefaultInstance() : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig(org.vdaas.vald.api.v1.payload.Search.Config value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - } else { - configBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig( - org.vdaas.vald.api.v1.payload.Search.Config.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Search.Config value) { - if (configBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - config_ != null && - config_ != org.vdaas.vald.api.v1.payload.Search.Config.getDefaultInstance()) { - getConfigBuilder().mergeFrom(value); - } else { - config_ = value; - } - } else { - configBuilder_.mergeFrom(value); - } - if (config_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - public Builder clearConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Search.Config.Builder getConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null ? - org.vdaas.vald.api.v1.payload.Search.Config.getDefaultInstance() : config_; - } - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.Config, org.vdaas.vald.api.v1.payload.Search.Config.Builder, org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.Config, org.vdaas.vald.api.v1.payload.Search.Config.Builder, org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); - config_ = null; - } - return configBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Search.Request) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Search.Request) - private static final org.vdaas.vald.api.v1.payload.Search.Request DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Search.Request(); - } - - public static org.vdaas.vald.api.v1.payload.Search.Request getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Request parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Request getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MultiRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Search.MultiRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represent the multiple search request content.
-     * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsList(); - /** - *
-     * Represent the multiple search request content.
-     * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Search.Request getRequests(int index); - /** - *
-     * Represent the multiple search request content.
-     * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - int getRequestsCount(); - /** - *
-     * Represent the multiple search request content.
-     * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-     * Represent the multiple search request content.
-     * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Search.RequestOrBuilder getRequestsOrBuilder( - int index); - } - /** - *
-   * Represent the multiple search request.
-   * 
- * - * Protobuf type {@code payload.v1.Search.MultiRequest} - */ - public static final class MultiRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Search.MultiRequest) - MultiRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MultiRequest.newBuilder() to construct. - private MultiRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MultiRequest() { - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MultiRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_MultiRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_MultiRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.MultiRequest.class, org.vdaas.vald.api.v1.payload.Search.MultiRequest.Builder.class); - } - - public static final int REQUESTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List requests_; - /** - *
-     * Represent the multiple search request content.
-     * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List getRequestsList() { - return requests_; - } - /** - *
-     * Represent the multiple search request content.
-     * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - *
-     * Represent the multiple search request content.
-     * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - *
-     * Represent the multiple search request content.
-     * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Request getRequests(int index) { - return requests_.get(index); - } - /** - *
-     * Represent the multiple search request content.
-     * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.RequestOrBuilder getRequestsOrBuilder( - int index) { - return requests_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(1, requests_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Search.MultiRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Search.MultiRequest other = (org.vdaas.vald.api.v1.payload.Search.MultiRequest) obj; - - if (!getRequestsList() - .equals(other.getRequestsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Search.MultiRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiRequest 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 org.vdaas.vald.api.v1.payload.Search.MultiRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Search.MultiRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Search.MultiRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the multiple search request.
-     * 
- * - * Protobuf type {@code payload.v1.Search.MultiRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Search.MultiRequest) - org.vdaas.vald.api.v1.payload.Search.MultiRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_MultiRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_MultiRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.MultiRequest.class, org.vdaas.vald.api.v1.payload.Search.MultiRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Search.MultiRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_MultiRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.MultiRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Search.MultiRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.MultiRequest build() { - org.vdaas.vald.api.v1.payload.Search.MultiRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.MultiRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Search.MultiRequest result = new org.vdaas.vald.api.v1.payload.Search.MultiRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Search.MultiRequest result) { - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Search.MultiRequest result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Search.MultiRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Search.MultiRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Search.MultiRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Search.MultiRequest.getDefaultInstance()) return this; - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Search.Request m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Search.Request.parser(), - extensionRegistry); - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(m); - } else { - requestsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List requests_ = - java.util.Collections.emptyList(); - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.Request, org.vdaas.vald.api.v1.payload.Search.Request.Builder, org.vdaas.vald.api.v1.payload.Search.RequestOrBuilder> requestsBuilder_; - - /** - *
-       * Represent the multiple search request content.
-       * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - public java.util.List getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - *
-       * Represent the multiple search request content.
-       * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - *
-       * Represent the multiple search request content.
-       * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Search.Request getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - *
-       * Represent the multiple search request content.
-       * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Search.Request value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Represent the multiple search request content.
-       * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Search.Request.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple search request content.
-       * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests(org.vdaas.vald.api.v1.payload.Search.Request value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Represent the multiple search request content.
-       * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Search.Request value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Represent the multiple search request content.
-       * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - org.vdaas.vald.api.v1.payload.Search.Request.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple search request content.
-       * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Search.Request.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple search request content.
-       * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - public Builder addAllRequests( - java.lang.Iterable values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Represent the multiple search request content.
-       * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - *
-       * Represent the multiple search request content.
-       * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Represent the multiple search request content.
-       * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Search.Request.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - *
-       * Represent the multiple search request content.
-       * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Search.RequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Represent the multiple search request content.
-       * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - *
-       * Represent the multiple search request content.
-       * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Search.Request.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Search.Request.getDefaultInstance()); - } - /** - *
-       * Represent the multiple search request content.
-       * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Search.Request.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Search.Request.getDefaultInstance()); - } - /** - *
-       * Represent the multiple search request content.
-       * 
- * - * repeated .payload.v1.Search.Request requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.Request, org.vdaas.vald.api.v1.payload.Search.Request.Builder, org.vdaas.vald.api.v1.payload.Search.RequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.Request, org.vdaas.vald.api.v1.payload.Search.Request.Builder, org.vdaas.vald.api.v1.payload.Search.RequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - requests_ = null; - } - return requestsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Search.MultiRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Search.MultiRequest) - private static final org.vdaas.vald.api.v1.payload.Search.MultiRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Search.MultiRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Search.MultiRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MultiRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.MultiRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IDRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Search.IDRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The vector ID to be searched.
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - java.lang.String getId(); - /** - *
-     * The vector ID to be searched.
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-     * The configuration of the search request.
-     * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - *
-     * The configuration of the search request.
-     * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - * @return The config. - */ - org.vdaas.vald.api.v1.payload.Search.Config getConfig(); - /** - *
-     * The configuration of the search request.
-     * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder getConfigOrBuilder(); - } - /** - *
-   * Represent a search by ID request.
-   * 
- * - * Protobuf type {@code payload.v1.Search.IDRequest} - */ - public static final class IDRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Search.IDRequest) - IDRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use IDRequest.newBuilder() to construct. - private IDRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IDRequest() { - id_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new IDRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_IDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_IDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.IDRequest.class, org.vdaas.vald.api.v1.payload.Search.IDRequest.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - *
-     * The vector ID to be searched.
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-     * The vector ID to be searched.
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONFIG_FIELD_NUMBER = 2; - private org.vdaas.vald.api.v1.payload.Search.Config config_; - /** - *
-     * The configuration of the search request.
-     * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The configuration of the search request.
-     * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - * @return The config. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Config getConfig() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Search.Config.getDefaultInstance() : config_; - } - /** - *
-     * The configuration of the search request.
-     * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder getConfigOrBuilder() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Search.Config.getDefaultInstance() : config_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Search.IDRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Search.IDRequest other = (org.vdaas.vald.api.v1.payload.Search.IDRequest) obj; - - if (!getId() - .equals(other.getId())) return false; - if (hasConfig() != other.hasConfig()) return false; - if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (hasConfig()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Search.IDRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.IDRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.IDRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.IDRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.IDRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.IDRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.IDRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.IDRequest 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 org.vdaas.vald.api.v1.payload.Search.IDRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Search.IDRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.IDRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.IDRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Search.IDRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent a search by ID request.
-     * 
- * - * Protobuf type {@code payload.v1.Search.IDRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Search.IDRequest) - org.vdaas.vald.api.v1.payload.Search.IDRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_IDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_IDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.IDRequest.class, org.vdaas.vald.api.v1.payload.Search.IDRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Search.IDRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getConfigFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_IDRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.IDRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Search.IDRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.IDRequest build() { - org.vdaas.vald.api.v1.payload.Search.IDRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.IDRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Search.IDRequest result = new org.vdaas.vald.api.v1.payload.Search.IDRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Search.IDRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Search.IDRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Search.IDRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Search.IDRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Search.IDRequest.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - *
-       * The vector ID to be searched.
-       * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The vector ID to be searched.
-       * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The vector ID to be searched.
-       * 
- * - * string id = 1 [json_name = "id"]; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The vector ID to be searched.
-       * 
- * - * string id = 1 [json_name = "id"]; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The vector ID to be searched.
-       * 
- * - * string id = 1 [json_name = "id"]; - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private org.vdaas.vald.api.v1.payload.Search.Config config_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.Config, org.vdaas.vald.api.v1.payload.Search.Config.Builder, org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder> configBuilder_; - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - * @return The config. - */ - public org.vdaas.vald.api.v1.payload.Search.Config getConfig() { - if (configBuilder_ == null) { - return config_ == null ? org.vdaas.vald.api.v1.payload.Search.Config.getDefaultInstance() : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig(org.vdaas.vald.api.v1.payload.Search.Config value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - } else { - configBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig( - org.vdaas.vald.api.v1.payload.Search.Config.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Search.Config value) { - if (configBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - config_ != null && - config_ != org.vdaas.vald.api.v1.payload.Search.Config.getDefaultInstance()) { - getConfigBuilder().mergeFrom(value); - } else { - config_ = value; - } - } else { - configBuilder_.mergeFrom(value); - } - if (config_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - public Builder clearConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Search.Config.Builder getConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null ? - org.vdaas.vald.api.v1.payload.Search.Config.getDefaultInstance() : config_; - } - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.Config, org.vdaas.vald.api.v1.payload.Search.Config.Builder, org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.Config, org.vdaas.vald.api.v1.payload.Search.Config.Builder, org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); - config_ = null; - } - return configBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Search.IDRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Search.IDRequest) - private static final org.vdaas.vald.api.v1.payload.Search.IDRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Search.IDRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Search.IDRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IDRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.IDRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MultiIDRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Search.MultiIDRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represent the multiple search by ID request content.
-     * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsList(); - /** - *
-     * Represent the multiple search by ID request content.
-     * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Search.IDRequest getRequests(int index); - /** - *
-     * Represent the multiple search by ID request content.
-     * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - int getRequestsCount(); - /** - *
-     * Represent the multiple search by ID request content.
-     * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-     * Represent the multiple search by ID request content.
-     * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Search.IDRequestOrBuilder getRequestsOrBuilder( - int index); - } - /** - *
-   * Represent the multiple search by ID request.
-   * 
- * - * Protobuf type {@code payload.v1.Search.MultiIDRequest} - */ - public static final class MultiIDRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Search.MultiIDRequest) - MultiIDRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MultiIDRequest.newBuilder() to construct. - private MultiIDRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MultiIDRequest() { - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MultiIDRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_MultiIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_MultiIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.MultiIDRequest.class, org.vdaas.vald.api.v1.payload.Search.MultiIDRequest.Builder.class); - } - - public static final int REQUESTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List requests_; - /** - *
-     * Represent the multiple search by ID request content.
-     * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List getRequestsList() { - return requests_; - } - /** - *
-     * Represent the multiple search by ID request content.
-     * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - *
-     * Represent the multiple search by ID request content.
-     * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - *
-     * Represent the multiple search by ID request content.
-     * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.IDRequest getRequests(int index) { - return requests_.get(index); - } - /** - *
-     * Represent the multiple search by ID request content.
-     * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.IDRequestOrBuilder getRequestsOrBuilder( - int index) { - return requests_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(1, requests_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Search.MultiIDRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Search.MultiIDRequest other = (org.vdaas.vald.api.v1.payload.Search.MultiIDRequest) obj; - - if (!getRequestsList() - .equals(other.getRequestsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Search.MultiIDRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiIDRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiIDRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiIDRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiIDRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiIDRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiIDRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiIDRequest 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 org.vdaas.vald.api.v1.payload.Search.MultiIDRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Search.MultiIDRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiIDRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiIDRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Search.MultiIDRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the multiple search by ID request.
-     * 
- * - * Protobuf type {@code payload.v1.Search.MultiIDRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Search.MultiIDRequest) - org.vdaas.vald.api.v1.payload.Search.MultiIDRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_MultiIDRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_MultiIDRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.MultiIDRequest.class, org.vdaas.vald.api.v1.payload.Search.MultiIDRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Search.MultiIDRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_MultiIDRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.MultiIDRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Search.MultiIDRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.MultiIDRequest build() { - org.vdaas.vald.api.v1.payload.Search.MultiIDRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.MultiIDRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Search.MultiIDRequest result = new org.vdaas.vald.api.v1.payload.Search.MultiIDRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Search.MultiIDRequest result) { - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Search.MultiIDRequest result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Search.MultiIDRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Search.MultiIDRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Search.MultiIDRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Search.MultiIDRequest.getDefaultInstance()) return this; - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Search.IDRequest m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Search.IDRequest.parser(), - extensionRegistry); - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(m); - } else { - requestsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List requests_ = - java.util.Collections.emptyList(); - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.IDRequest, org.vdaas.vald.api.v1.payload.Search.IDRequest.Builder, org.vdaas.vald.api.v1.payload.Search.IDRequestOrBuilder> requestsBuilder_; - - /** - *
-       * Represent the multiple search by ID request content.
-       * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - public java.util.List getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - *
-       * Represent the multiple search by ID request content.
-       * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - *
-       * Represent the multiple search by ID request content.
-       * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Search.IDRequest getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - *
-       * Represent the multiple search by ID request content.
-       * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Search.IDRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Represent the multiple search by ID request content.
-       * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Search.IDRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple search by ID request content.
-       * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests(org.vdaas.vald.api.v1.payload.Search.IDRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Represent the multiple search by ID request content.
-       * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Search.IDRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Represent the multiple search by ID request content.
-       * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - org.vdaas.vald.api.v1.payload.Search.IDRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple search by ID request content.
-       * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Search.IDRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple search by ID request content.
-       * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - public Builder addAllRequests( - java.lang.Iterable values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Represent the multiple search by ID request content.
-       * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - *
-       * Represent the multiple search by ID request content.
-       * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Represent the multiple search by ID request content.
-       * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Search.IDRequest.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - *
-       * Represent the multiple search by ID request content.
-       * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Search.IDRequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Represent the multiple search by ID request content.
-       * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - *
-       * Represent the multiple search by ID request content.
-       * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Search.IDRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Search.IDRequest.getDefaultInstance()); - } - /** - *
-       * Represent the multiple search by ID request content.
-       * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Search.IDRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Search.IDRequest.getDefaultInstance()); - } - /** - *
-       * Represent the multiple search by ID request content.
-       * 
- * - * repeated .payload.v1.Search.IDRequest requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.IDRequest, org.vdaas.vald.api.v1.payload.Search.IDRequest.Builder, org.vdaas.vald.api.v1.payload.Search.IDRequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.IDRequest, org.vdaas.vald.api.v1.payload.Search.IDRequest.Builder, org.vdaas.vald.api.v1.payload.Search.IDRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - requests_ = null; - } - return requestsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Search.MultiIDRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Search.MultiIDRequest) - private static final org.vdaas.vald.api.v1.payload.Search.MultiIDRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Search.MultiIDRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Search.MultiIDRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MultiIDRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.MultiIDRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ObjectRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Search.ObjectRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The binary object to be searched.
-     * 
- * - * bytes object = 1 [json_name = "object"]; - * @return The object. - */ - com.google.protobuf.ByteString getObject(); - - /** - *
-     * The configuration of the search request.
-     * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - *
-     * The configuration of the search request.
-     * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - * @return The config. - */ - org.vdaas.vald.api.v1.payload.Search.Config getConfig(); - /** - *
-     * The configuration of the search request.
-     * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder getConfigOrBuilder(); - - /** - *
-     * Filter configuration.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return Whether the vectorizer field is set. - */ - boolean hasVectorizer(); - /** - *
-     * Filter configuration.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return The vectorizer. - */ - org.vdaas.vald.api.v1.payload.Filter.Target getVectorizer(); - /** - *
-     * Filter configuration.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder getVectorizerOrBuilder(); - } - /** - *
-   * Represent a search by binary object request.
-   * 
- * - * Protobuf type {@code payload.v1.Search.ObjectRequest} - */ - public static final class ObjectRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Search.ObjectRequest) - ObjectRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ObjectRequest.newBuilder() to construct. - private ObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ObjectRequest() { - object_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ObjectRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_ObjectRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_ObjectRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.ObjectRequest.class, org.vdaas.vald.api.v1.payload.Search.ObjectRequest.Builder.class); - } - - private int bitField0_; - public static final int OBJECT_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString object_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * The binary object to be searched.
-     * 
- * - * bytes object = 1 [json_name = "object"]; - * @return The object. - */ - @java.lang.Override - public com.google.protobuf.ByteString getObject() { - return object_; - } - - public static final int CONFIG_FIELD_NUMBER = 2; - private org.vdaas.vald.api.v1.payload.Search.Config config_; - /** - *
-     * The configuration of the search request.
-     * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The configuration of the search request.
-     * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - * @return The config. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Config getConfig() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Search.Config.getDefaultInstance() : config_; - } - /** - *
-     * The configuration of the search request.
-     * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder getConfigOrBuilder() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Search.Config.getDefaultInstance() : config_; - } - - public static final int VECTORIZER_FIELD_NUMBER = 3; - private org.vdaas.vald.api.v1.payload.Filter.Target vectorizer_; - /** - *
-     * Filter configuration.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return Whether the vectorizer field is set. - */ - @java.lang.Override - public boolean hasVectorizer() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Filter configuration.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return The vectorizer. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Target getVectorizer() { - return vectorizer_ == null ? org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance() : vectorizer_; - } - /** - *
-     * Filter configuration.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder getVectorizerOrBuilder() { - return vectorizer_ == null ? org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance() : vectorizer_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!object_.isEmpty()) { - output.writeBytes(1, object_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getVectorizer()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!object_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, object_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getVectorizer()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Search.ObjectRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Search.ObjectRequest other = (org.vdaas.vald.api.v1.payload.Search.ObjectRequest) obj; - - if (!getObject() - .equals(other.getObject())) return false; - if (hasConfig() != other.hasConfig()) return false; - if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; - } - if (hasVectorizer() != other.hasVectorizer()) return false; - if (hasVectorizer()) { - if (!getVectorizer() - .equals(other.getVectorizer())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OBJECT_FIELD_NUMBER; - hash = (53 * hash) + getObject().hashCode(); - if (hasConfig()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - } - if (hasVectorizer()) { - hash = (37 * hash) + VECTORIZER_FIELD_NUMBER; - hash = (53 * hash) + getVectorizer().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Search.ObjectRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.ObjectRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.ObjectRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.ObjectRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.ObjectRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.ObjectRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.ObjectRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.ObjectRequest 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 org.vdaas.vald.api.v1.payload.Search.ObjectRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Search.ObjectRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.ObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.ObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Search.ObjectRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent a search by binary object request.
-     * 
- * - * Protobuf type {@code payload.v1.Search.ObjectRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Search.ObjectRequest) - org.vdaas.vald.api.v1.payload.Search.ObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_ObjectRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_ObjectRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.ObjectRequest.class, org.vdaas.vald.api.v1.payload.Search.ObjectRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Search.ObjectRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getConfigFieldBuilder(); - getVectorizerFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - object_ = com.google.protobuf.ByteString.EMPTY; - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - vectorizer_ = null; - if (vectorizerBuilder_ != null) { - vectorizerBuilder_.dispose(); - vectorizerBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_ObjectRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.ObjectRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Search.ObjectRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.ObjectRequest build() { - org.vdaas.vald.api.v1.payload.Search.ObjectRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.ObjectRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Search.ObjectRequest result = new org.vdaas.vald.api.v1.payload.Search.ObjectRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Search.ObjectRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.object_ = object_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.vectorizer_ = vectorizerBuilder_ == null - ? vectorizer_ - : vectorizerBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Search.ObjectRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Search.ObjectRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Search.ObjectRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Search.ObjectRequest.getDefaultInstance()) return this; - if (other.getObject() != com.google.protobuf.ByteString.EMPTY) { - setObject(other.getObject()); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - if (other.hasVectorizer()) { - mergeVectorizer(other.getVectorizer()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - object_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getVectorizerFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString object_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * The binary object to be searched.
-       * 
- * - * bytes object = 1 [json_name = "object"]; - * @return The object. - */ - @java.lang.Override - public com.google.protobuf.ByteString getObject() { - return object_; - } - /** - *
-       * The binary object to be searched.
-       * 
- * - * bytes object = 1 [json_name = "object"]; - * @param value The object to set. - * @return This builder for chaining. - */ - public Builder setObject(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - object_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The binary object to be searched.
-       * 
- * - * bytes object = 1 [json_name = "object"]; - * @return This builder for chaining. - */ - public Builder clearObject() { - bitField0_ = (bitField0_ & ~0x00000001); - object_ = getDefaultInstance().getObject(); - onChanged(); - return this; - } - - private org.vdaas.vald.api.v1.payload.Search.Config config_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.Config, org.vdaas.vald.api.v1.payload.Search.Config.Builder, org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder> configBuilder_; - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - * @return The config. - */ - public org.vdaas.vald.api.v1.payload.Search.Config getConfig() { - if (configBuilder_ == null) { - return config_ == null ? org.vdaas.vald.api.v1.payload.Search.Config.getDefaultInstance() : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig(org.vdaas.vald.api.v1.payload.Search.Config value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - } else { - configBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig( - org.vdaas.vald.api.v1.payload.Search.Config.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Search.Config value) { - if (configBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - config_ != null && - config_ != org.vdaas.vald.api.v1.payload.Search.Config.getDefaultInstance()) { - getConfigBuilder().mergeFrom(value); - } else { - config_ = value; - } - } else { - configBuilder_.mergeFrom(value); - } - if (config_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - public Builder clearConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Search.Config.Builder getConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null ? - org.vdaas.vald.api.v1.payload.Search.Config.getDefaultInstance() : config_; - } - } - /** - *
-       * The configuration of the search request.
-       * 
- * - * .payload.v1.Search.Config config = 2 [json_name = "config"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.Config, org.vdaas.vald.api.v1.payload.Search.Config.Builder, org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.Config, org.vdaas.vald.api.v1.payload.Search.Config.Builder, org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); - config_ = null; - } - return configBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Filter.Target vectorizer_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Target, org.vdaas.vald.api.v1.payload.Filter.Target.Builder, org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder> vectorizerBuilder_; - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return Whether the vectorizer field is set. - */ - public boolean hasVectorizer() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return The vectorizer. - */ - public org.vdaas.vald.api.v1.payload.Filter.Target getVectorizer() { - if (vectorizerBuilder_ == null) { - return vectorizer_ == null ? org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance() : vectorizer_; - } else { - return vectorizerBuilder_.getMessage(); - } - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public Builder setVectorizer(org.vdaas.vald.api.v1.payload.Filter.Target value) { - if (vectorizerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - vectorizer_ = value; - } else { - vectorizerBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public Builder setVectorizer( - org.vdaas.vald.api.v1.payload.Filter.Target.Builder builderForValue) { - if (vectorizerBuilder_ == null) { - vectorizer_ = builderForValue.build(); - } else { - vectorizerBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public Builder mergeVectorizer(org.vdaas.vald.api.v1.payload.Filter.Target value) { - if (vectorizerBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - vectorizer_ != null && - vectorizer_ != org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance()) { - getVectorizerBuilder().mergeFrom(value); - } else { - vectorizer_ = value; - } - } else { - vectorizerBuilder_.mergeFrom(value); - } - if (vectorizer_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public Builder clearVectorizer() { - bitField0_ = (bitField0_ & ~0x00000004); - vectorizer_ = null; - if (vectorizerBuilder_ != null) { - vectorizerBuilder_.dispose(); - vectorizerBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.Target.Builder getVectorizerBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getVectorizerFieldBuilder().getBuilder(); - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder getVectorizerOrBuilder() { - if (vectorizerBuilder_ != null) { - return vectorizerBuilder_.getMessageOrBuilder(); - } else { - return vectorizer_ == null ? - org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance() : vectorizer_; - } - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Target, org.vdaas.vald.api.v1.payload.Filter.Target.Builder, org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder> - getVectorizerFieldBuilder() { - if (vectorizerBuilder_ == null) { - vectorizerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Target, org.vdaas.vald.api.v1.payload.Filter.Target.Builder, org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder>( - getVectorizer(), - getParentForChildren(), - isClean()); - vectorizer_ = null; - } - return vectorizerBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Search.ObjectRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Search.ObjectRequest) - private static final org.vdaas.vald.api.v1.payload.Search.ObjectRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Search.ObjectRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Search.ObjectRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.ObjectRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MultiObjectRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Search.MultiObjectRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represent the multiple search by binary object request content.
-     * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsList(); - /** - *
-     * Represent the multiple search by binary object request content.
-     * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Search.ObjectRequest getRequests(int index); - /** - *
-     * Represent the multiple search by binary object request content.
-     * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - int getRequestsCount(); - /** - *
-     * Represent the multiple search by binary object request content.
-     * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-     * Represent the multiple search by binary object request content.
-     * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Search.ObjectRequestOrBuilder getRequestsOrBuilder( - int index); - } - /** - *
-   * Represent the multiple search by binary object request.
-   * 
- * - * Protobuf type {@code payload.v1.Search.MultiObjectRequest} - */ - public static final class MultiObjectRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Search.MultiObjectRequest) - MultiObjectRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MultiObjectRequest.newBuilder() to construct. - private MultiObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MultiObjectRequest() { - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MultiObjectRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_MultiObjectRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_MultiObjectRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest.class, org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest.Builder.class); - } - - public static final int REQUESTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List requests_; - /** - *
-     * Represent the multiple search by binary object request content.
-     * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List getRequestsList() { - return requests_; - } - /** - *
-     * Represent the multiple search by binary object request content.
-     * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - *
-     * Represent the multiple search by binary object request content.
-     * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - *
-     * Represent the multiple search by binary object request content.
-     * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.ObjectRequest getRequests(int index) { - return requests_.get(index); - } - /** - *
-     * Represent the multiple search by binary object request content.
-     * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.ObjectRequestOrBuilder getRequestsOrBuilder( - int index) { - return requests_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(1, requests_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest other = (org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest) obj; - - if (!getRequestsList() - .equals(other.getRequestsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest 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 org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the multiple search by binary object request.
-     * 
- * - * Protobuf type {@code payload.v1.Search.MultiObjectRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Search.MultiObjectRequest) - org.vdaas.vald.api.v1.payload.Search.MultiObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_MultiObjectRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_MultiObjectRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest.class, org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_MultiObjectRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest build() { - org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest result = new org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest result) { - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest.getDefaultInstance()) return this; - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Search.ObjectRequest m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Search.ObjectRequest.parser(), - extensionRegistry); - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(m); - } else { - requestsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List requests_ = - java.util.Collections.emptyList(); - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.ObjectRequest, org.vdaas.vald.api.v1.payload.Search.ObjectRequest.Builder, org.vdaas.vald.api.v1.payload.Search.ObjectRequestOrBuilder> requestsBuilder_; - - /** - *
-       * Represent the multiple search by binary object request content.
-       * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public java.util.List getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - *
-       * Represent the multiple search by binary object request content.
-       * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - *
-       * Represent the multiple search by binary object request content.
-       * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Search.ObjectRequest getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - *
-       * Represent the multiple search by binary object request content.
-       * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Search.ObjectRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Represent the multiple search by binary object request content.
-       * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Search.ObjectRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple search by binary object request content.
-       * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests(org.vdaas.vald.api.v1.payload.Search.ObjectRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Represent the multiple search by binary object request content.
-       * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Search.ObjectRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Represent the multiple search by binary object request content.
-       * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - org.vdaas.vald.api.v1.payload.Search.ObjectRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple search by binary object request content.
-       * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Search.ObjectRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple search by binary object request content.
-       * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addAllRequests( - java.lang.Iterable values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Represent the multiple search by binary object request content.
-       * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - *
-       * Represent the multiple search by binary object request content.
-       * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Represent the multiple search by binary object request content.
-       * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Search.ObjectRequest.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - *
-       * Represent the multiple search by binary object request content.
-       * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Search.ObjectRequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Represent the multiple search by binary object request content.
-       * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - *
-       * Represent the multiple search by binary object request content.
-       * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Search.ObjectRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Search.ObjectRequest.getDefaultInstance()); - } - /** - *
-       * Represent the multiple search by binary object request content.
-       * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Search.ObjectRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Search.ObjectRequest.getDefaultInstance()); - } - /** - *
-       * Represent the multiple search by binary object request content.
-       * 
- * - * repeated .payload.v1.Search.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.ObjectRequest, org.vdaas.vald.api.v1.payload.Search.ObjectRequest.Builder, org.vdaas.vald.api.v1.payload.Search.ObjectRequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.ObjectRequest, org.vdaas.vald.api.v1.payload.Search.ObjectRequest.Builder, org.vdaas.vald.api.v1.payload.Search.ObjectRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - requests_ = null; - } - return requestsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Search.MultiObjectRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Search.MultiObjectRequest) - private static final org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MultiObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Search.Config) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique request ID.
-     * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - *
-     * Unique request ID.
-     * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-     * Maximum number of result to be returned.
-     * 
- * - * uint32 num = 2 [json_name = "num", (.buf.validate.field) = { ... } - * @return The num. - */ - int getNum(); - - /** - *
-     * Search radius.
-     * 
- * - * float radius = 3 [json_name = "radius"]; - * @return The radius. - */ - float getRadius(); - - /** - *
-     * Search coefficient.
-     * 
- * - * float epsilon = 4 [json_name = "epsilon"]; - * @return The epsilon. - */ - float getEpsilon(); - - /** - *
-     * Search timeout in nanoseconds.
-     * 
- * - * int64 timeout = 5 [json_name = "timeout"]; - * @return The timeout. - */ - long getTimeout(); - - /** - *
-     * Ingress filter configurations.
-     * 
- * - * .payload.v1.Filter.Config ingress_filters = 6 [json_name = "ingressFilters"]; - * @return Whether the ingressFilters field is set. - */ - boolean hasIngressFilters(); - /** - *
-     * Ingress filter configurations.
-     * 
- * - * .payload.v1.Filter.Config ingress_filters = 6 [json_name = "ingressFilters"]; - * @return The ingressFilters. - */ - org.vdaas.vald.api.v1.payload.Filter.Config getIngressFilters(); - /** - *
-     * Ingress filter configurations.
-     * 
- * - * .payload.v1.Filter.Config ingress_filters = 6 [json_name = "ingressFilters"]; - */ - org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getIngressFiltersOrBuilder(); - - /** - *
-     * Egress filter configurations.
-     * 
- * - * .payload.v1.Filter.Config egress_filters = 7 [json_name = "egressFilters"]; - * @return Whether the egressFilters field is set. - */ - boolean hasEgressFilters(); - /** - *
-     * Egress filter configurations.
-     * 
- * - * .payload.v1.Filter.Config egress_filters = 7 [json_name = "egressFilters"]; - * @return The egressFilters. - */ - org.vdaas.vald.api.v1.payload.Filter.Config getEgressFilters(); - /** - *
-     * Egress filter configurations.
-     * 
- * - * .payload.v1.Filter.Config egress_filters = 7 [json_name = "egressFilters"]; - */ - org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getEgressFiltersOrBuilder(); - - /** - *
-     * Minimum number of result to be returned.
-     * 
- * - * uint32 min_num = 8 [json_name = "minNum", (.buf.validate.field) = { ... } - * @return The minNum. - */ - int getMinNum(); - - /** - *
-     * Aggregation Algorithm
-     * 
- * - * .payload.v1.Search.AggregationAlgorithm aggregation_algorithm = 9 [json_name = "aggregationAlgorithm"]; - * @return The enum numeric value on the wire for aggregationAlgorithm. - */ - int getAggregationAlgorithmValue(); - /** - *
-     * Aggregation Algorithm
-     * 
- * - * .payload.v1.Search.AggregationAlgorithm aggregation_algorithm = 9 [json_name = "aggregationAlgorithm"]; - * @return The aggregationAlgorithm. - */ - org.vdaas.vald.api.v1.payload.Search.AggregationAlgorithm getAggregationAlgorithm(); - - /** - *
-     * Search ratio for agent return result number.
-     * 
- * - * .google.protobuf.FloatValue ratio = 10 [json_name = "ratio"]; - * @return Whether the ratio field is set. - */ - boolean hasRatio(); - /** - *
-     * Search ratio for agent return result number.
-     * 
- * - * .google.protobuf.FloatValue ratio = 10 [json_name = "ratio"]; - * @return The ratio. - */ - com.google.protobuf.FloatValue getRatio(); - /** - *
-     * Search ratio for agent return result number.
-     * 
- * - * .google.protobuf.FloatValue ratio = 10 [json_name = "ratio"]; - */ - com.google.protobuf.FloatValueOrBuilder getRatioOrBuilder(); - } - /** - *
-   * Represent search configuration.
-   * 
- * - * Protobuf type {@code payload.v1.Search.Config} - */ - public static final class Config extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Search.Config) - ConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use Config.newBuilder() to construct. - private Config(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Config() { - requestId_ = ""; - aggregationAlgorithm_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Config(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Config_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Config_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.Config.class, org.vdaas.vald.api.v1.payload.Search.Config.Builder.class); - } - - private int bitField0_; - public static final int REQUEST_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object requestId_ = ""; - /** - *
-     * Unique request ID.
-     * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - *
-     * Unique request ID.
-     * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NUM_FIELD_NUMBER = 2; - private int num_ = 0; - /** - *
-     * Maximum number of result to be returned.
-     * 
- * - * uint32 num = 2 [json_name = "num", (.buf.validate.field) = { ... } - * @return The num. - */ - @java.lang.Override - public int getNum() { - return num_; - } - - public static final int RADIUS_FIELD_NUMBER = 3; - private float radius_ = 0F; - /** - *
-     * Search radius.
-     * 
- * - * float radius = 3 [json_name = "radius"]; - * @return The radius. - */ - @java.lang.Override - public float getRadius() { - return radius_; - } - - public static final int EPSILON_FIELD_NUMBER = 4; - private float epsilon_ = 0F; - /** - *
-     * Search coefficient.
-     * 
- * - * float epsilon = 4 [json_name = "epsilon"]; - * @return The epsilon. - */ - @java.lang.Override - public float getEpsilon() { - return epsilon_; - } - - public static final int TIMEOUT_FIELD_NUMBER = 5; - private long timeout_ = 0L; - /** - *
-     * Search timeout in nanoseconds.
-     * 
- * - * int64 timeout = 5 [json_name = "timeout"]; - * @return The timeout. - */ - @java.lang.Override - public long getTimeout() { - return timeout_; - } - - public static final int INGRESS_FILTERS_FIELD_NUMBER = 6; - private org.vdaas.vald.api.v1.payload.Filter.Config ingressFilters_; - /** - *
-     * Ingress filter configurations.
-     * 
- * - * .payload.v1.Filter.Config ingress_filters = 6 [json_name = "ingressFilters"]; - * @return Whether the ingressFilters field is set. - */ - @java.lang.Override - public boolean hasIngressFilters() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Ingress filter configurations.
-     * 
- * - * .payload.v1.Filter.Config ingress_filters = 6 [json_name = "ingressFilters"]; - * @return The ingressFilters. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Config getIngressFilters() { - return ingressFilters_ == null ? org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : ingressFilters_; - } - /** - *
-     * Ingress filter configurations.
-     * 
- * - * .payload.v1.Filter.Config ingress_filters = 6 [json_name = "ingressFilters"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getIngressFiltersOrBuilder() { - return ingressFilters_ == null ? org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : ingressFilters_; - } - - public static final int EGRESS_FILTERS_FIELD_NUMBER = 7; - private org.vdaas.vald.api.v1.payload.Filter.Config egressFilters_; - /** - *
-     * Egress filter configurations.
-     * 
- * - * .payload.v1.Filter.Config egress_filters = 7 [json_name = "egressFilters"]; - * @return Whether the egressFilters field is set. - */ - @java.lang.Override - public boolean hasEgressFilters() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Egress filter configurations.
-     * 
- * - * .payload.v1.Filter.Config egress_filters = 7 [json_name = "egressFilters"]; - * @return The egressFilters. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Config getEgressFilters() { - return egressFilters_ == null ? org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : egressFilters_; - } - /** - *
-     * Egress filter configurations.
-     * 
- * - * .payload.v1.Filter.Config egress_filters = 7 [json_name = "egressFilters"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getEgressFiltersOrBuilder() { - return egressFilters_ == null ? org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : egressFilters_; - } - - public static final int MIN_NUM_FIELD_NUMBER = 8; - private int minNum_ = 0; - /** - *
-     * Minimum number of result to be returned.
-     * 
- * - * uint32 min_num = 8 [json_name = "minNum", (.buf.validate.field) = { ... } - * @return The minNum. - */ - @java.lang.Override - public int getMinNum() { - return minNum_; - } - - public static final int AGGREGATION_ALGORITHM_FIELD_NUMBER = 9; - private int aggregationAlgorithm_ = 0; - /** - *
-     * Aggregation Algorithm
-     * 
- * - * .payload.v1.Search.AggregationAlgorithm aggregation_algorithm = 9 [json_name = "aggregationAlgorithm"]; - * @return The enum numeric value on the wire for aggregationAlgorithm. - */ - @java.lang.Override public int getAggregationAlgorithmValue() { - return aggregationAlgorithm_; - } - /** - *
-     * Aggregation Algorithm
-     * 
- * - * .payload.v1.Search.AggregationAlgorithm aggregation_algorithm = 9 [json_name = "aggregationAlgorithm"]; - * @return The aggregationAlgorithm. - */ - @java.lang.Override public org.vdaas.vald.api.v1.payload.Search.AggregationAlgorithm getAggregationAlgorithm() { - org.vdaas.vald.api.v1.payload.Search.AggregationAlgorithm result = org.vdaas.vald.api.v1.payload.Search.AggregationAlgorithm.forNumber(aggregationAlgorithm_); - return result == null ? org.vdaas.vald.api.v1.payload.Search.AggregationAlgorithm.UNRECOGNIZED : result; - } - - public static final int RATIO_FIELD_NUMBER = 10; - private com.google.protobuf.FloatValue ratio_; - /** - *
-     * Search ratio for agent return result number.
-     * 
- * - * .google.protobuf.FloatValue ratio = 10 [json_name = "ratio"]; - * @return Whether the ratio field is set. - */ - @java.lang.Override - public boolean hasRatio() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Search ratio for agent return result number.
-     * 
- * - * .google.protobuf.FloatValue ratio = 10 [json_name = "ratio"]; - * @return The ratio. - */ - @java.lang.Override - public com.google.protobuf.FloatValue getRatio() { - return ratio_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : ratio_; - } - /** - *
-     * Search ratio for agent return result number.
-     * 
- * - * .google.protobuf.FloatValue ratio = 10 [json_name = "ratio"]; - */ - @java.lang.Override - public com.google.protobuf.FloatValueOrBuilder getRatioOrBuilder() { - return ratio_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : ratio_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); - } - if (num_ != 0) { - output.writeUInt32(2, num_); - } - if (java.lang.Float.floatToRawIntBits(radius_) != 0) { - output.writeFloat(3, radius_); - } - if (java.lang.Float.floatToRawIntBits(epsilon_) != 0) { - output.writeFloat(4, epsilon_); - } - if (timeout_ != 0L) { - output.writeInt64(5, timeout_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(6, getIngressFilters()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(7, getEgressFilters()); - } - if (minNum_ != 0) { - output.writeUInt32(8, minNum_); - } - if (aggregationAlgorithm_ != org.vdaas.vald.api.v1.payload.Search.AggregationAlgorithm.Unknown.getNumber()) { - output.writeEnum(9, aggregationAlgorithm_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(10, getRatio()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); - } - if (num_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, num_); - } - if (java.lang.Float.floatToRawIntBits(radius_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, radius_); - } - if (java.lang.Float.floatToRawIntBits(epsilon_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, epsilon_); - } - if (timeout_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, timeout_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getIngressFilters()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getEgressFilters()); - } - if (minNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, minNum_); - } - if (aggregationAlgorithm_ != org.vdaas.vald.api.v1.payload.Search.AggregationAlgorithm.Unknown.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, aggregationAlgorithm_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getRatio()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Search.Config)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Search.Config other = (org.vdaas.vald.api.v1.payload.Search.Config) obj; - - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getNum() - != other.getNum()) return false; - if (java.lang.Float.floatToIntBits(getRadius()) - != java.lang.Float.floatToIntBits( - other.getRadius())) return false; - if (java.lang.Float.floatToIntBits(getEpsilon()) - != java.lang.Float.floatToIntBits( - other.getEpsilon())) return false; - if (getTimeout() - != other.getTimeout()) return false; - if (hasIngressFilters() != other.hasIngressFilters()) return false; - if (hasIngressFilters()) { - if (!getIngressFilters() - .equals(other.getIngressFilters())) return false; - } - if (hasEgressFilters() != other.hasEgressFilters()) return false; - if (hasEgressFilters()) { - if (!getEgressFilters() - .equals(other.getEgressFilters())) return false; - } - if (getMinNum() - != other.getMinNum()) return false; - if (aggregationAlgorithm_ != other.aggregationAlgorithm_) return false; - if (hasRatio() != other.hasRatio()) return false; - if (hasRatio()) { - if (!getRatio() - .equals(other.getRatio())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (37 * hash) + NUM_FIELD_NUMBER; - hash = (53 * hash) + getNum(); - hash = (37 * hash) + RADIUS_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRadius()); - hash = (37 * hash) + EPSILON_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getEpsilon()); - hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimeout()); - if (hasIngressFilters()) { - hash = (37 * hash) + INGRESS_FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getIngressFilters().hashCode(); - } - if (hasEgressFilters()) { - hash = (37 * hash) + EGRESS_FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getEgressFilters().hashCode(); - } - hash = (37 * hash) + MIN_NUM_FIELD_NUMBER; - hash = (53 * hash) + getMinNum(); - hash = (37 * hash) + AGGREGATION_ALGORITHM_FIELD_NUMBER; - hash = (53 * hash) + aggregationAlgorithm_; - if (hasRatio()) { - hash = (37 * hash) + RATIO_FIELD_NUMBER; - hash = (53 * hash) + getRatio().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Search.Config parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.Config parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.Config parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.Config parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.Config parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.Config parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.Config parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.Config 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 org.vdaas.vald.api.v1.payload.Search.Config parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Search.Config parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.Config parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.Config parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Search.Config prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent search configuration.
-     * 
- * - * Protobuf type {@code payload.v1.Search.Config} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Search.Config) - org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Config_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Config_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.Config.class, org.vdaas.vald.api.v1.payload.Search.Config.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Search.Config.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getIngressFiltersFieldBuilder(); - getEgressFiltersFieldBuilder(); - getRatioFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - requestId_ = ""; - num_ = 0; - radius_ = 0F; - epsilon_ = 0F; - timeout_ = 0L; - ingressFilters_ = null; - if (ingressFiltersBuilder_ != null) { - ingressFiltersBuilder_.dispose(); - ingressFiltersBuilder_ = null; - } - egressFilters_ = null; - if (egressFiltersBuilder_ != null) { - egressFiltersBuilder_.dispose(); - egressFiltersBuilder_ = null; - } - minNum_ = 0; - aggregationAlgorithm_ = 0; - ratio_ = null; - if (ratioBuilder_ != null) { - ratioBuilder_.dispose(); - ratioBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Config_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Config getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Search.Config.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Config build() { - org.vdaas.vald.api.v1.payload.Search.Config result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Config buildPartial() { - org.vdaas.vald.api.v1.payload.Search.Config result = new org.vdaas.vald.api.v1.payload.Search.Config(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Search.Config result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.requestId_ = requestId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.num_ = num_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.radius_ = radius_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.epsilon_ = epsilon_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.timeout_ = timeout_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { - result.ingressFilters_ = ingressFiltersBuilder_ == null - ? ingressFilters_ - : ingressFiltersBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.egressFilters_ = egressFiltersBuilder_ == null - ? egressFilters_ - : egressFiltersBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.minNum_ = minNum_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.aggregationAlgorithm_ = aggregationAlgorithm_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.ratio_ = ratioBuilder_ == null - ? ratio_ - : ratioBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Search.Config) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Search.Config)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Search.Config other) { - if (other == org.vdaas.vald.api.v1.payload.Search.Config.getDefaultInstance()) return this; - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getNum() != 0) { - setNum(other.getNum()); - } - if (other.getRadius() != 0F) { - setRadius(other.getRadius()); - } - if (other.getEpsilon() != 0F) { - setEpsilon(other.getEpsilon()); - } - if (other.getTimeout() != 0L) { - setTimeout(other.getTimeout()); - } - if (other.hasIngressFilters()) { - mergeIngressFilters(other.getIngressFilters()); - } - if (other.hasEgressFilters()) { - mergeEgressFilters(other.getEgressFilters()); - } - if (other.getMinNum() != 0) { - setMinNum(other.getMinNum()); - } - if (other.aggregationAlgorithm_ != 0) { - setAggregationAlgorithmValue(other.getAggregationAlgorithmValue()); - } - if (other.hasRatio()) { - mergeRatio(other.getRatio()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - num_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 29: { - radius_ = input.readFloat(); - bitField0_ |= 0x00000004; - break; - } // case 29 - case 37: { - epsilon_ = input.readFloat(); - bitField0_ |= 0x00000008; - break; - } // case 37 - case 40: { - timeout_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: { - input.readMessage( - getIngressFiltersFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getEgressFiltersFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 64: { - minNum_ = input.readUInt32(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - aggregationAlgorithm_ = input.readEnum(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: { - input.readMessage( - getRatioFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object requestId_ = ""; - /** - *
-       * Unique request ID.
-       * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique request ID.
-       * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique request ID.
-       * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - requestId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Unique request ID.
-       * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return This builder for chaining. - */ - public Builder clearRequestId() { - requestId_ = getDefaultInstance().getRequestId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Unique request ID.
-       * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - requestId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int num_ ; - /** - *
-       * Maximum number of result to be returned.
-       * 
- * - * uint32 num = 2 [json_name = "num", (.buf.validate.field) = { ... } - * @return The num. - */ - @java.lang.Override - public int getNum() { - return num_; - } - /** - *
-       * Maximum number of result to be returned.
-       * 
- * - * uint32 num = 2 [json_name = "num", (.buf.validate.field) = { ... } - * @param value The num to set. - * @return This builder for chaining. - */ - public Builder setNum(int value) { - - num_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Maximum number of result to be returned.
-       * 
- * - * uint32 num = 2 [json_name = "num", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearNum() { - bitField0_ = (bitField0_ & ~0x00000002); - num_ = 0; - onChanged(); - return this; - } - - private float radius_ ; - /** - *
-       * Search radius.
-       * 
- * - * float radius = 3 [json_name = "radius"]; - * @return The radius. - */ - @java.lang.Override - public float getRadius() { - return radius_; - } - /** - *
-       * Search radius.
-       * 
- * - * float radius = 3 [json_name = "radius"]; - * @param value The radius to set. - * @return This builder for chaining. - */ - public Builder setRadius(float value) { - - radius_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Search radius.
-       * 
- * - * float radius = 3 [json_name = "radius"]; - * @return This builder for chaining. - */ - public Builder clearRadius() { - bitField0_ = (bitField0_ & ~0x00000004); - radius_ = 0F; - onChanged(); - return this; - } - - private float epsilon_ ; - /** - *
-       * Search coefficient.
-       * 
- * - * float epsilon = 4 [json_name = "epsilon"]; - * @return The epsilon. - */ - @java.lang.Override - public float getEpsilon() { - return epsilon_; - } - /** - *
-       * Search coefficient.
-       * 
- * - * float epsilon = 4 [json_name = "epsilon"]; - * @param value The epsilon to set. - * @return This builder for chaining. - */ - public Builder setEpsilon(float value) { - - epsilon_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * Search coefficient.
-       * 
- * - * float epsilon = 4 [json_name = "epsilon"]; - * @return This builder for chaining. - */ - public Builder clearEpsilon() { - bitField0_ = (bitField0_ & ~0x00000008); - epsilon_ = 0F; - onChanged(); - return this; - } - - private long timeout_ ; - /** - *
-       * Search timeout in nanoseconds.
-       * 
- * - * int64 timeout = 5 [json_name = "timeout"]; - * @return The timeout. - */ - @java.lang.Override - public long getTimeout() { - return timeout_; - } - /** - *
-       * Search timeout in nanoseconds.
-       * 
- * - * int64 timeout = 5 [json_name = "timeout"]; - * @param value The timeout to set. - * @return This builder for chaining. - */ - public Builder setTimeout(long value) { - - timeout_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-       * Search timeout in nanoseconds.
-       * 
- * - * int64 timeout = 5 [json_name = "timeout"]; - * @return This builder for chaining. - */ - public Builder clearTimeout() { - bitField0_ = (bitField0_ & ~0x00000010); - timeout_ = 0L; - onChanged(); - return this; - } - - private org.vdaas.vald.api.v1.payload.Filter.Config ingressFilters_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Config, org.vdaas.vald.api.v1.payload.Filter.Config.Builder, org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder> ingressFiltersBuilder_; - /** - *
-       * Ingress filter configurations.
-       * 
- * - * .payload.v1.Filter.Config ingress_filters = 6 [json_name = "ingressFilters"]; - * @return Whether the ingressFilters field is set. - */ - public boolean hasIngressFilters() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-       * Ingress filter configurations.
-       * 
- * - * .payload.v1.Filter.Config ingress_filters = 6 [json_name = "ingressFilters"]; - * @return The ingressFilters. - */ - public org.vdaas.vald.api.v1.payload.Filter.Config getIngressFilters() { - if (ingressFiltersBuilder_ == null) { - return ingressFilters_ == null ? org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : ingressFilters_; - } else { - return ingressFiltersBuilder_.getMessage(); - } - } - /** - *
-       * Ingress filter configurations.
-       * 
- * - * .payload.v1.Filter.Config ingress_filters = 6 [json_name = "ingressFilters"]; - */ - public Builder setIngressFilters(org.vdaas.vald.api.v1.payload.Filter.Config value) { - if (ingressFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ingressFilters_ = value; - } else { - ingressFiltersBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-       * Ingress filter configurations.
-       * 
- * - * .payload.v1.Filter.Config ingress_filters = 6 [json_name = "ingressFilters"]; - */ - public Builder setIngressFilters( - org.vdaas.vald.api.v1.payload.Filter.Config.Builder builderForValue) { - if (ingressFiltersBuilder_ == null) { - ingressFilters_ = builderForValue.build(); - } else { - ingressFiltersBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-       * Ingress filter configurations.
-       * 
- * - * .payload.v1.Filter.Config ingress_filters = 6 [json_name = "ingressFilters"]; - */ - public Builder mergeIngressFilters(org.vdaas.vald.api.v1.payload.Filter.Config value) { - if (ingressFiltersBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - ingressFilters_ != null && - ingressFilters_ != org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance()) { - getIngressFiltersBuilder().mergeFrom(value); - } else { - ingressFilters_ = value; - } - } else { - ingressFiltersBuilder_.mergeFrom(value); - } - if (ingressFilters_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; - } - /** - *
-       * Ingress filter configurations.
-       * 
- * - * .payload.v1.Filter.Config ingress_filters = 6 [json_name = "ingressFilters"]; - */ - public Builder clearIngressFilters() { - bitField0_ = (bitField0_ & ~0x00000020); - ingressFilters_ = null; - if (ingressFiltersBuilder_ != null) { - ingressFiltersBuilder_.dispose(); - ingressFiltersBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Ingress filter configurations.
-       * 
- * - * .payload.v1.Filter.Config ingress_filters = 6 [json_name = "ingressFilters"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.Config.Builder getIngressFiltersBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getIngressFiltersFieldBuilder().getBuilder(); - } - /** - *
-       * Ingress filter configurations.
-       * 
- * - * .payload.v1.Filter.Config ingress_filters = 6 [json_name = "ingressFilters"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getIngressFiltersOrBuilder() { - if (ingressFiltersBuilder_ != null) { - return ingressFiltersBuilder_.getMessageOrBuilder(); - } else { - return ingressFilters_ == null ? - org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : ingressFilters_; - } - } - /** - *
-       * Ingress filter configurations.
-       * 
- * - * .payload.v1.Filter.Config ingress_filters = 6 [json_name = "ingressFilters"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Config, org.vdaas.vald.api.v1.payload.Filter.Config.Builder, org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder> - getIngressFiltersFieldBuilder() { - if (ingressFiltersBuilder_ == null) { - ingressFiltersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Config, org.vdaas.vald.api.v1.payload.Filter.Config.Builder, org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder>( - getIngressFilters(), - getParentForChildren(), - isClean()); - ingressFilters_ = null; - } - return ingressFiltersBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Filter.Config egressFilters_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Config, org.vdaas.vald.api.v1.payload.Filter.Config.Builder, org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder> egressFiltersBuilder_; - /** - *
-       * Egress filter configurations.
-       * 
- * - * .payload.v1.Filter.Config egress_filters = 7 [json_name = "egressFilters"]; - * @return Whether the egressFilters field is set. - */ - public boolean hasEgressFilters() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-       * Egress filter configurations.
-       * 
- * - * .payload.v1.Filter.Config egress_filters = 7 [json_name = "egressFilters"]; - * @return The egressFilters. - */ - public org.vdaas.vald.api.v1.payload.Filter.Config getEgressFilters() { - if (egressFiltersBuilder_ == null) { - return egressFilters_ == null ? org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : egressFilters_; - } else { - return egressFiltersBuilder_.getMessage(); - } - } - /** - *
-       * Egress filter configurations.
-       * 
- * - * .payload.v1.Filter.Config egress_filters = 7 [json_name = "egressFilters"]; - */ - public Builder setEgressFilters(org.vdaas.vald.api.v1.payload.Filter.Config value) { - if (egressFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - egressFilters_ = value; - } else { - egressFiltersBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-       * Egress filter configurations.
-       * 
- * - * .payload.v1.Filter.Config egress_filters = 7 [json_name = "egressFilters"]; - */ - public Builder setEgressFilters( - org.vdaas.vald.api.v1.payload.Filter.Config.Builder builderForValue) { - if (egressFiltersBuilder_ == null) { - egressFilters_ = builderForValue.build(); - } else { - egressFiltersBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-       * Egress filter configurations.
-       * 
- * - * .payload.v1.Filter.Config egress_filters = 7 [json_name = "egressFilters"]; - */ - public Builder mergeEgressFilters(org.vdaas.vald.api.v1.payload.Filter.Config value) { - if (egressFiltersBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - egressFilters_ != null && - egressFilters_ != org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance()) { - getEgressFiltersBuilder().mergeFrom(value); - } else { - egressFilters_ = value; - } - } else { - egressFiltersBuilder_.mergeFrom(value); - } - if (egressFilters_ != null) { - bitField0_ |= 0x00000040; - onChanged(); - } - return this; - } - /** - *
-       * Egress filter configurations.
-       * 
- * - * .payload.v1.Filter.Config egress_filters = 7 [json_name = "egressFilters"]; - */ - public Builder clearEgressFilters() { - bitField0_ = (bitField0_ & ~0x00000040); - egressFilters_ = null; - if (egressFiltersBuilder_ != null) { - egressFiltersBuilder_.dispose(); - egressFiltersBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Egress filter configurations.
-       * 
- * - * .payload.v1.Filter.Config egress_filters = 7 [json_name = "egressFilters"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.Config.Builder getEgressFiltersBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getEgressFiltersFieldBuilder().getBuilder(); - } - /** - *
-       * Egress filter configurations.
-       * 
- * - * .payload.v1.Filter.Config egress_filters = 7 [json_name = "egressFilters"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getEgressFiltersOrBuilder() { - if (egressFiltersBuilder_ != null) { - return egressFiltersBuilder_.getMessageOrBuilder(); - } else { - return egressFilters_ == null ? - org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : egressFilters_; - } - } - /** - *
-       * Egress filter configurations.
-       * 
- * - * .payload.v1.Filter.Config egress_filters = 7 [json_name = "egressFilters"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Config, org.vdaas.vald.api.v1.payload.Filter.Config.Builder, org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder> - getEgressFiltersFieldBuilder() { - if (egressFiltersBuilder_ == null) { - egressFiltersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Config, org.vdaas.vald.api.v1.payload.Filter.Config.Builder, org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder>( - getEgressFilters(), - getParentForChildren(), - isClean()); - egressFilters_ = null; - } - return egressFiltersBuilder_; - } - - private int minNum_ ; - /** - *
-       * Minimum number of result to be returned.
-       * 
- * - * uint32 min_num = 8 [json_name = "minNum", (.buf.validate.field) = { ... } - * @return The minNum. - */ - @java.lang.Override - public int getMinNum() { - return minNum_; - } - /** - *
-       * Minimum number of result to be returned.
-       * 
- * - * uint32 min_num = 8 [json_name = "minNum", (.buf.validate.field) = { ... } - * @param value The minNum to set. - * @return This builder for chaining. - */ - public Builder setMinNum(int value) { - - minNum_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-       * Minimum number of result to be returned.
-       * 
- * - * uint32 min_num = 8 [json_name = "minNum", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearMinNum() { - bitField0_ = (bitField0_ & ~0x00000080); - minNum_ = 0; - onChanged(); - return this; - } - - private int aggregationAlgorithm_ = 0; - /** - *
-       * Aggregation Algorithm
-       * 
- * - * .payload.v1.Search.AggregationAlgorithm aggregation_algorithm = 9 [json_name = "aggregationAlgorithm"]; - * @return The enum numeric value on the wire for aggregationAlgorithm. - */ - @java.lang.Override public int getAggregationAlgorithmValue() { - return aggregationAlgorithm_; - } - /** - *
-       * Aggregation Algorithm
-       * 
- * - * .payload.v1.Search.AggregationAlgorithm aggregation_algorithm = 9 [json_name = "aggregationAlgorithm"]; - * @param value The enum numeric value on the wire for aggregationAlgorithm to set. - * @return This builder for chaining. - */ - public Builder setAggregationAlgorithmValue(int value) { - aggregationAlgorithm_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-       * Aggregation Algorithm
-       * 
- * - * .payload.v1.Search.AggregationAlgorithm aggregation_algorithm = 9 [json_name = "aggregationAlgorithm"]; - * @return The aggregationAlgorithm. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.AggregationAlgorithm getAggregationAlgorithm() { - org.vdaas.vald.api.v1.payload.Search.AggregationAlgorithm result = org.vdaas.vald.api.v1.payload.Search.AggregationAlgorithm.forNumber(aggregationAlgorithm_); - return result == null ? org.vdaas.vald.api.v1.payload.Search.AggregationAlgorithm.UNRECOGNIZED : result; - } - /** - *
-       * Aggregation Algorithm
-       * 
- * - * .payload.v1.Search.AggregationAlgorithm aggregation_algorithm = 9 [json_name = "aggregationAlgorithm"]; - * @param value The aggregationAlgorithm to set. - * @return This builder for chaining. - */ - public Builder setAggregationAlgorithm(org.vdaas.vald.api.v1.payload.Search.AggregationAlgorithm value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - aggregationAlgorithm_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Aggregation Algorithm
-       * 
- * - * .payload.v1.Search.AggregationAlgorithm aggregation_algorithm = 9 [json_name = "aggregationAlgorithm"]; - * @return This builder for chaining. - */ - public Builder clearAggregationAlgorithm() { - bitField0_ = (bitField0_ & ~0x00000100); - aggregationAlgorithm_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.FloatValue ratio_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> ratioBuilder_; - /** - *
-       * Search ratio for agent return result number.
-       * 
- * - * .google.protobuf.FloatValue ratio = 10 [json_name = "ratio"]; - * @return Whether the ratio field is set. - */ - public boolean hasRatio() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - *
-       * Search ratio for agent return result number.
-       * 
- * - * .google.protobuf.FloatValue ratio = 10 [json_name = "ratio"]; - * @return The ratio. - */ - public com.google.protobuf.FloatValue getRatio() { - if (ratioBuilder_ == null) { - return ratio_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : ratio_; - } else { - return ratioBuilder_.getMessage(); - } - } - /** - *
-       * Search ratio for agent return result number.
-       * 
- * - * .google.protobuf.FloatValue ratio = 10 [json_name = "ratio"]; - */ - public Builder setRatio(com.google.protobuf.FloatValue value) { - if (ratioBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ratio_ = value; - } else { - ratioBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - *
-       * Search ratio for agent return result number.
-       * 
- * - * .google.protobuf.FloatValue ratio = 10 [json_name = "ratio"]; - */ - public Builder setRatio( - com.google.protobuf.FloatValue.Builder builderForValue) { - if (ratioBuilder_ == null) { - ratio_ = builderForValue.build(); - } else { - ratioBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - *
-       * Search ratio for agent return result number.
-       * 
- * - * .google.protobuf.FloatValue ratio = 10 [json_name = "ratio"]; - */ - public Builder mergeRatio(com.google.protobuf.FloatValue value) { - if (ratioBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - ratio_ != null && - ratio_ != com.google.protobuf.FloatValue.getDefaultInstance()) { - getRatioBuilder().mergeFrom(value); - } else { - ratio_ = value; - } - } else { - ratioBuilder_.mergeFrom(value); - } - if (ratio_ != null) { - bitField0_ |= 0x00000200; - onChanged(); - } - return this; - } - /** - *
-       * Search ratio for agent return result number.
-       * 
- * - * .google.protobuf.FloatValue ratio = 10 [json_name = "ratio"]; - */ - public Builder clearRatio() { - bitField0_ = (bitField0_ & ~0x00000200); - ratio_ = null; - if (ratioBuilder_ != null) { - ratioBuilder_.dispose(); - ratioBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Search ratio for agent return result number.
-       * 
- * - * .google.protobuf.FloatValue ratio = 10 [json_name = "ratio"]; - */ - public com.google.protobuf.FloatValue.Builder getRatioBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getRatioFieldBuilder().getBuilder(); - } - /** - *
-       * Search ratio for agent return result number.
-       * 
- * - * .google.protobuf.FloatValue ratio = 10 [json_name = "ratio"]; - */ - public com.google.protobuf.FloatValueOrBuilder getRatioOrBuilder() { - if (ratioBuilder_ != null) { - return ratioBuilder_.getMessageOrBuilder(); - } else { - return ratio_ == null ? - com.google.protobuf.FloatValue.getDefaultInstance() : ratio_; - } - } - /** - *
-       * Search ratio for agent return result number.
-       * 
- * - * .google.protobuf.FloatValue ratio = 10 [json_name = "ratio"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> - getRatioFieldBuilder() { - if (ratioBuilder_ == null) { - ratioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder>( - getRatio(), - getParentForChildren(), - isClean()); - ratio_ = null; - } - return ratioBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Search.Config) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Search.Config) - private static final org.vdaas.vald.api.v1.payload.Search.Config DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Search.Config(); - } - - public static org.vdaas.vald.api.v1.payload.Search.Config getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Config parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Config getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Search.Response) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The unique request ID.
-     * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - *
-     * The unique request ID.
-     * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-     * Search results.
-     * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - java.util.List - getResultsList(); - /** - *
-     * Search results.
-     * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - org.vdaas.vald.api.v1.payload.Object.Distance getResults(int index); - /** - *
-     * Search results.
-     * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - int getResultsCount(); - /** - *
-     * Search results.
-     * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - java.util.List - getResultsOrBuilderList(); - /** - *
-     * Search results.
-     * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - org.vdaas.vald.api.v1.payload.Object.DistanceOrBuilder getResultsOrBuilder( - int index); - } - /** - *
-   * Represent a search response.
-   * 
- * - * Protobuf type {@code payload.v1.Search.Response} - */ - public static final class Response extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Search.Response) - ResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use Response.newBuilder() to construct. - private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Response() { - requestId_ = ""; - results_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Response(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Response_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Response_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.Response.class, org.vdaas.vald.api.v1.payload.Search.Response.Builder.class); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object requestId_ = ""; - /** - *
-     * The unique request ID.
-     * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - *
-     * The unique request ID.
-     * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESULTS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List results_; - /** - *
-     * Search results.
-     * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - @java.lang.Override - public java.util.List getResultsList() { - return results_; - } - /** - *
-     * Search results.
-     * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - @java.lang.Override - public java.util.List - getResultsOrBuilderList() { - return results_; - } - /** - *
-     * Search results.
-     * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - @java.lang.Override - public int getResultsCount() { - return results_.size(); - } - /** - *
-     * Search results.
-     * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Distance getResults(int index) { - return results_.get(index); - } - /** - *
-     * Search results.
-     * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.DistanceOrBuilder getResultsOrBuilder( - int index) { - return results_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); - } - for (int i = 0; i < results_.size(); i++) { - output.writeMessage(2, results_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); - } - for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, results_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Search.Response)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Search.Response other = (org.vdaas.vald.api.v1.payload.Search.Response) obj; - - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (!getResultsList() - .equals(other.getResultsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - if (getResultsCount() > 0) { - hash = (37 * hash) + RESULTS_FIELD_NUMBER; - hash = (53 * hash) + getResultsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Search.Response parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.Response parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.Response parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.Response parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.Response parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.Response parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.Response parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.Response 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 org.vdaas.vald.api.v1.payload.Search.Response parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Search.Response parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.Response parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.Response parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Search.Response prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent a search response.
-     * 
- * - * Protobuf type {@code payload.v1.Search.Response} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Search.Response) - org.vdaas.vald.api.v1.payload.Search.ResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Response_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Response_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.Response.class, org.vdaas.vald.api.v1.payload.Search.Response.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Search.Response.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - requestId_ = ""; - if (resultsBuilder_ == null) { - results_ = java.util.Collections.emptyList(); - } else { - results_ = null; - resultsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Response_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Response getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Search.Response.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Response build() { - org.vdaas.vald.api.v1.payload.Search.Response result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Response buildPartial() { - org.vdaas.vald.api.v1.payload.Search.Response result = new org.vdaas.vald.api.v1.payload.Search.Response(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Search.Response result) { - if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.results_ = results_; - } else { - result.results_ = resultsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Search.Response result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.requestId_ = requestId_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Search.Response) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Search.Response)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Search.Response other) { - if (other == org.vdaas.vald.api.v1.payload.Search.Response.getDefaultInstance()) return this; - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (resultsBuilder_ == null) { - if (!other.results_.isEmpty()) { - if (results_.isEmpty()) { - results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureResultsIsMutable(); - results_.addAll(other.results_); - } - onChanged(); - } - } else { - if (!other.results_.isEmpty()) { - if (resultsBuilder_.isEmpty()) { - resultsBuilder_.dispose(); - resultsBuilder_ = null; - results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000002); - resultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResultsFieldBuilder() : null; - } else { - resultsBuilder_.addAllMessages(other.results_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - org.vdaas.vald.api.v1.payload.Object.Distance m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Object.Distance.parser(), - extensionRegistry); - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.add(m); - } else { - resultsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object requestId_ = ""; - /** - *
-       * The unique request ID.
-       * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The unique request ID.
-       * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The unique request ID.
-       * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - requestId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The unique request ID.
-       * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return This builder for chaining. - */ - public Builder clearRequestId() { - requestId_ = getDefaultInstance().getRequestId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The unique request ID.
-       * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - requestId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.util.List results_ = - java.util.Collections.emptyList(); - private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Distance, org.vdaas.vald.api.v1.payload.Object.Distance.Builder, org.vdaas.vald.api.v1.payload.Object.DistanceOrBuilder> resultsBuilder_; - - /** - *
-       * Search results.
-       * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - public java.util.List getResultsList() { - if (resultsBuilder_ == null) { - return java.util.Collections.unmodifiableList(results_); - } else { - return resultsBuilder_.getMessageList(); - } - } - /** - *
-       * Search results.
-       * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - public int getResultsCount() { - if (resultsBuilder_ == null) { - return results_.size(); - } else { - return resultsBuilder_.getCount(); - } - } - /** - *
-       * Search results.
-       * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Distance getResults(int index) { - if (resultsBuilder_ == null) { - return results_.get(index); - } else { - return resultsBuilder_.getMessage(index); - } - } - /** - *
-       * Search results.
-       * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - public Builder setResults( - int index, org.vdaas.vald.api.v1.payload.Object.Distance value) { - if (resultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultsIsMutable(); - results_.set(index, value); - onChanged(); - } else { - resultsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Search results.
-       * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - public Builder setResults( - int index, org.vdaas.vald.api.v1.payload.Object.Distance.Builder builderForValue) { - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.set(index, builderForValue.build()); - onChanged(); - } else { - resultsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Search results.
-       * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - public Builder addResults(org.vdaas.vald.api.v1.payload.Object.Distance value) { - if (resultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultsIsMutable(); - results_.add(value); - onChanged(); - } else { - resultsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Search results.
-       * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - public Builder addResults( - int index, org.vdaas.vald.api.v1.payload.Object.Distance value) { - if (resultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultsIsMutable(); - results_.add(index, value); - onChanged(); - } else { - resultsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Search results.
-       * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - public Builder addResults( - org.vdaas.vald.api.v1.payload.Object.Distance.Builder builderForValue) { - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.add(builderForValue.build()); - onChanged(); - } else { - resultsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Search results.
-       * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - public Builder addResults( - int index, org.vdaas.vald.api.v1.payload.Object.Distance.Builder builderForValue) { - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.add(index, builderForValue.build()); - onChanged(); - } else { - resultsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Search results.
-       * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - public Builder addAllResults( - java.lang.Iterable values) { - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, results_); - onChanged(); - } else { - resultsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Search results.
-       * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - public Builder clearResults() { - if (resultsBuilder_ == null) { - results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - resultsBuilder_.clear(); - } - return this; - } - /** - *
-       * Search results.
-       * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - public Builder removeResults(int index) { - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.remove(index); - onChanged(); - } else { - resultsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Search results.
-       * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Distance.Builder getResultsBuilder( - int index) { - return getResultsFieldBuilder().getBuilder(index); - } - /** - *
-       * Search results.
-       * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - public org.vdaas.vald.api.v1.payload.Object.DistanceOrBuilder getResultsOrBuilder( - int index) { - if (resultsBuilder_ == null) { - return results_.get(index); } else { - return resultsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Search results.
-       * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - public java.util.List - getResultsOrBuilderList() { - if (resultsBuilder_ != null) { - return resultsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(results_); - } - } - /** - *
-       * Search results.
-       * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Distance.Builder addResultsBuilder() { - return getResultsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Object.Distance.getDefaultInstance()); - } - /** - *
-       * Search results.
-       * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Distance.Builder addResultsBuilder( - int index) { - return getResultsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Object.Distance.getDefaultInstance()); - } - /** - *
-       * Search results.
-       * 
- * - * repeated .payload.v1.Object.Distance results = 2 [json_name = "results"]; - */ - public java.util.List - getResultsBuilderList() { - return getResultsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Distance, org.vdaas.vald.api.v1.payload.Object.Distance.Builder, org.vdaas.vald.api.v1.payload.Object.DistanceOrBuilder> - getResultsFieldBuilder() { - if (resultsBuilder_ == null) { - resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Distance, org.vdaas.vald.api.v1.payload.Object.Distance.Builder, org.vdaas.vald.api.v1.payload.Object.DistanceOrBuilder>( - results_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - results_ = null; - } - return resultsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Search.Response) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Search.Response) - private static final org.vdaas.vald.api.v1.payload.Search.Response DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Search.Response(); - } - - public static org.vdaas.vald.api.v1.payload.Search.Response getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Response parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Response getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ResponsesOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Search.Responses) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represent the multiple search response content.
-     * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - java.util.List - getResponsesList(); - /** - *
-     * Represent the multiple search response content.
-     * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - org.vdaas.vald.api.v1.payload.Search.Response getResponses(int index); - /** - *
-     * Represent the multiple search response content.
-     * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - int getResponsesCount(); - /** - *
-     * Represent the multiple search response content.
-     * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - java.util.List - getResponsesOrBuilderList(); - /** - *
-     * Represent the multiple search response content.
-     * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - org.vdaas.vald.api.v1.payload.Search.ResponseOrBuilder getResponsesOrBuilder( - int index); - } - /** - *
-   * Represent multiple search responses.
-   * 
- * - * Protobuf type {@code payload.v1.Search.Responses} - */ - public static final class Responses extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Search.Responses) - ResponsesOrBuilder { - private static final long serialVersionUID = 0L; - // Use Responses.newBuilder() to construct. - private Responses(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Responses() { - responses_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Responses(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Responses_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Responses_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.Responses.class, org.vdaas.vald.api.v1.payload.Search.Responses.Builder.class); - } - - public static final int RESPONSES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List responses_; - /** - *
-     * Represent the multiple search response content.
-     * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - @java.lang.Override - public java.util.List getResponsesList() { - return responses_; - } - /** - *
-     * Represent the multiple search response content.
-     * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - @java.lang.Override - public java.util.List - getResponsesOrBuilderList() { - return responses_; - } - /** - *
-     * Represent the multiple search response content.
-     * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - @java.lang.Override - public int getResponsesCount() { - return responses_.size(); - } - /** - *
-     * Represent the multiple search response content.
-     * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Response getResponses(int index) { - return responses_.get(index); - } - /** - *
-     * Represent the multiple search response content.
-     * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.ResponseOrBuilder getResponsesOrBuilder( - int index) { - return responses_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < responses_.size(); i++) { - output.writeMessage(1, responses_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < responses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, responses_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Search.Responses)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Search.Responses other = (org.vdaas.vald.api.v1.payload.Search.Responses) obj; - - if (!getResponsesList() - .equals(other.getResponsesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getResponsesCount() > 0) { - hash = (37 * hash) + RESPONSES_FIELD_NUMBER; - hash = (53 * hash) + getResponsesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Search.Responses parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.Responses parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.Responses parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.Responses parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.Responses parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.Responses parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.Responses parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.Responses 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 org.vdaas.vald.api.v1.payload.Search.Responses parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Search.Responses parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.Responses parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.Responses parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Search.Responses prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent multiple search responses.
-     * 
- * - * Protobuf type {@code payload.v1.Search.Responses} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Search.Responses) - org.vdaas.vald.api.v1.payload.Search.ResponsesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Responses_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Responses_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.Responses.class, org.vdaas.vald.api.v1.payload.Search.Responses.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Search.Responses.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (responsesBuilder_ == null) { - responses_ = java.util.Collections.emptyList(); - } else { - responses_ = null; - responsesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_Responses_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Responses getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Search.Responses.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Responses build() { - org.vdaas.vald.api.v1.payload.Search.Responses result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Responses buildPartial() { - org.vdaas.vald.api.v1.payload.Search.Responses result = new org.vdaas.vald.api.v1.payload.Search.Responses(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Search.Responses result) { - if (responsesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - responses_ = java.util.Collections.unmodifiableList(responses_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.responses_ = responses_; - } else { - result.responses_ = responsesBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Search.Responses result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Search.Responses) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Search.Responses)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Search.Responses other) { - if (other == org.vdaas.vald.api.v1.payload.Search.Responses.getDefaultInstance()) return this; - if (responsesBuilder_ == null) { - if (!other.responses_.isEmpty()) { - if (responses_.isEmpty()) { - responses_ = other.responses_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureResponsesIsMutable(); - responses_.addAll(other.responses_); - } - onChanged(); - } - } else { - if (!other.responses_.isEmpty()) { - if (responsesBuilder_.isEmpty()) { - responsesBuilder_.dispose(); - responsesBuilder_ = null; - responses_ = other.responses_; - bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResponsesFieldBuilder() : null; - } else { - responsesBuilder_.addAllMessages(other.responses_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Search.Response m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Search.Response.parser(), - extensionRegistry); - if (responsesBuilder_ == null) { - ensureResponsesIsMutable(); - responses_.add(m); - } else { - responsesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List responses_ = - java.util.Collections.emptyList(); - private void ensureResponsesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - responses_ = new java.util.ArrayList(responses_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.Response, org.vdaas.vald.api.v1.payload.Search.Response.Builder, org.vdaas.vald.api.v1.payload.Search.ResponseOrBuilder> responsesBuilder_; - - /** - *
-       * Represent the multiple search response content.
-       * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - public java.util.List getResponsesList() { - if (responsesBuilder_ == null) { - return java.util.Collections.unmodifiableList(responses_); - } else { - return responsesBuilder_.getMessageList(); - } - } - /** - *
-       * Represent the multiple search response content.
-       * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - public int getResponsesCount() { - if (responsesBuilder_ == null) { - return responses_.size(); - } else { - return responsesBuilder_.getCount(); - } - } - /** - *
-       * Represent the multiple search response content.
-       * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - public org.vdaas.vald.api.v1.payload.Search.Response getResponses(int index) { - if (responsesBuilder_ == null) { - return responses_.get(index); - } else { - return responsesBuilder_.getMessage(index); - } - } - /** - *
-       * Represent the multiple search response content.
-       * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - public Builder setResponses( - int index, org.vdaas.vald.api.v1.payload.Search.Response value) { - if (responsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResponsesIsMutable(); - responses_.set(index, value); - onChanged(); - } else { - responsesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Represent the multiple search response content.
-       * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - public Builder setResponses( - int index, org.vdaas.vald.api.v1.payload.Search.Response.Builder builderForValue) { - if (responsesBuilder_ == null) { - ensureResponsesIsMutable(); - responses_.set(index, builderForValue.build()); - onChanged(); - } else { - responsesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple search response content.
-       * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - public Builder addResponses(org.vdaas.vald.api.v1.payload.Search.Response value) { - if (responsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResponsesIsMutable(); - responses_.add(value); - onChanged(); - } else { - responsesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Represent the multiple search response content.
-       * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - public Builder addResponses( - int index, org.vdaas.vald.api.v1.payload.Search.Response value) { - if (responsesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResponsesIsMutable(); - responses_.add(index, value); - onChanged(); - } else { - responsesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Represent the multiple search response content.
-       * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - public Builder addResponses( - org.vdaas.vald.api.v1.payload.Search.Response.Builder builderForValue) { - if (responsesBuilder_ == null) { - ensureResponsesIsMutable(); - responses_.add(builderForValue.build()); - onChanged(); - } else { - responsesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple search response content.
-       * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - public Builder addResponses( - int index, org.vdaas.vald.api.v1.payload.Search.Response.Builder builderForValue) { - if (responsesBuilder_ == null) { - ensureResponsesIsMutable(); - responses_.add(index, builderForValue.build()); - onChanged(); - } else { - responsesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple search response content.
-       * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - public Builder addAllResponses( - java.lang.Iterable values) { - if (responsesBuilder_ == null) { - ensureResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, responses_); - onChanged(); - } else { - responsesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Represent the multiple search response content.
-       * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - public Builder clearResponses() { - if (responsesBuilder_ == null) { - responses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - responsesBuilder_.clear(); - } - return this; - } - /** - *
-       * Represent the multiple search response content.
-       * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - public Builder removeResponses(int index) { - if (responsesBuilder_ == null) { - ensureResponsesIsMutable(); - responses_.remove(index); - onChanged(); - } else { - responsesBuilder_.remove(index); - } - return this; - } - /** - *
-       * Represent the multiple search response content.
-       * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - public org.vdaas.vald.api.v1.payload.Search.Response.Builder getResponsesBuilder( - int index) { - return getResponsesFieldBuilder().getBuilder(index); - } - /** - *
-       * Represent the multiple search response content.
-       * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - public org.vdaas.vald.api.v1.payload.Search.ResponseOrBuilder getResponsesOrBuilder( - int index) { - if (responsesBuilder_ == null) { - return responses_.get(index); } else { - return responsesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Represent the multiple search response content.
-       * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - public java.util.List - getResponsesOrBuilderList() { - if (responsesBuilder_ != null) { - return responsesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(responses_); - } - } - /** - *
-       * Represent the multiple search response content.
-       * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - public org.vdaas.vald.api.v1.payload.Search.Response.Builder addResponsesBuilder() { - return getResponsesFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Search.Response.getDefaultInstance()); - } - /** - *
-       * Represent the multiple search response content.
-       * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - public org.vdaas.vald.api.v1.payload.Search.Response.Builder addResponsesBuilder( - int index) { - return getResponsesFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Search.Response.getDefaultInstance()); - } - /** - *
-       * Represent the multiple search response content.
-       * 
- * - * repeated .payload.v1.Search.Response responses = 1 [json_name = "responses"]; - */ - public java.util.List - getResponsesBuilderList() { - return getResponsesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.Response, org.vdaas.vald.api.v1.payload.Search.Response.Builder, org.vdaas.vald.api.v1.payload.Search.ResponseOrBuilder> - getResponsesFieldBuilder() { - if (responsesBuilder_ == null) { - responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.Response, org.vdaas.vald.api.v1.payload.Search.Response.Builder, org.vdaas.vald.api.v1.payload.Search.ResponseOrBuilder>( - responses_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - responses_ = null; - } - return responsesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Search.Responses) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Search.Responses) - private static final org.vdaas.vald.api.v1.payload.Search.Responses DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Search.Responses(); - } - - public static org.vdaas.vald.api.v1.payload.Search.Responses getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Responses parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Responses getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StreamResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Search.StreamResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represent the search response.
-     * 
- * - * .payload.v1.Search.Response response = 1 [json_name = "response"]; - * @return Whether the response field is set. - */ - boolean hasResponse(); - /** - *
-     * Represent the search response.
-     * 
- * - * .payload.v1.Search.Response response = 1 [json_name = "response"]; - * @return The response. - */ - org.vdaas.vald.api.v1.payload.Search.Response getResponse(); - /** - *
-     * Represent the search response.
-     * 
- * - * .payload.v1.Search.Response response = 1 [json_name = "response"]; - */ - org.vdaas.vald.api.v1.payload.Search.ResponseOrBuilder getResponseOrBuilder(); - - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return The status. - */ - com.google.rpc.Status getStatus(); - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - com.google.rpc.StatusOrBuilder getStatusOrBuilder(); - - org.vdaas.vald.api.v1.payload.Search.StreamResponse.PayloadCase getPayloadCase(); - } - /** - *
-   * Represent stream search response.
-   * 
- * - * Protobuf type {@code payload.v1.Search.StreamResponse} - */ - public static final class StreamResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Search.StreamResponse) - StreamResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use StreamResponse.newBuilder() to construct. - private StreamResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StreamResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StreamResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_StreamResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_StreamResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.StreamResponse.class, org.vdaas.vald.api.v1.payload.Search.StreamResponse.Builder.class); - } - - private int payloadCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object payload_; - public enum PayloadCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - RESPONSE(1), - STATUS(2), - PAYLOAD_NOT_SET(0); - private final int value; - private PayloadCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PayloadCase valueOf(int value) { - return forNumber(value); - } - - public static PayloadCase forNumber(int value) { - switch (value) { - case 1: return RESPONSE; - case 2: return STATUS; - case 0: return PAYLOAD_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public PayloadCase - getPayloadCase() { - return PayloadCase.forNumber( - payloadCase_); - } - - public static final int RESPONSE_FIELD_NUMBER = 1; - /** - *
-     * Represent the search response.
-     * 
- * - * .payload.v1.Search.Response response = 1 [json_name = "response"]; - * @return Whether the response field is set. - */ - @java.lang.Override - public boolean hasResponse() { - return payloadCase_ == 1; - } - /** - *
-     * Represent the search response.
-     * 
- * - * .payload.v1.Search.Response response = 1 [json_name = "response"]; - * @return The response. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Response getResponse() { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Search.Response) payload_; - } - return org.vdaas.vald.api.v1.payload.Search.Response.getDefaultInstance(); - } - /** - *
-     * Represent the search response.
-     * 
- * - * .payload.v1.Search.Response response = 1 [json_name = "response"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.ResponseOrBuilder getResponseOrBuilder() { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Search.Response) payload_; - } - return org.vdaas.vald.api.v1.payload.Search.Response.getDefaultInstance(); - } - - public static final int STATUS_FIELD_NUMBER = 2; - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return payloadCase_ == 2; - } - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return The status. - */ - @java.lang.Override - public com.google.rpc.Status getStatus() { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } - /** - *
-     * The RPC error status.
-     * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (payloadCase_ == 1) { - output.writeMessage(1, (org.vdaas.vald.api.v1.payload.Search.Response) payload_); - } - if (payloadCase_ == 2) { - output.writeMessage(2, (com.google.rpc.Status) payload_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (payloadCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (org.vdaas.vald.api.v1.payload.Search.Response) payload_); - } - if (payloadCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.rpc.Status) payload_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Search.StreamResponse)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Search.StreamResponse other = (org.vdaas.vald.api.v1.payload.Search.StreamResponse) obj; - - if (!getPayloadCase().equals(other.getPayloadCase())) return false; - switch (payloadCase_) { - case 1: - if (!getResponse() - .equals(other.getResponse())) return false; - break; - case 2: - if (!getStatus() - .equals(other.getStatus())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (payloadCase_) { - case 1: - hash = (37 * hash) + RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getResponse().hashCode(); - break; - case 2: - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Search.StreamResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.StreamResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.StreamResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.StreamResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.StreamResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search.StreamResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.StreamResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.StreamResponse 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 org.vdaas.vald.api.v1.payload.Search.StreamResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Search.StreamResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search.StreamResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search.StreamResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Search.StreamResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent stream search response.
-     * 
- * - * Protobuf type {@code payload.v1.Search.StreamResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Search.StreamResponse) - org.vdaas.vald.api.v1.payload.Search.StreamResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_StreamResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_StreamResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.StreamResponse.class, org.vdaas.vald.api.v1.payload.Search.StreamResponse.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Search.StreamResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (responseBuilder_ != null) { - responseBuilder_.clear(); - } - if (statusBuilder_ != null) { - statusBuilder_.clear(); - } - payloadCase_ = 0; - payload_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_StreamResponse_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.StreamResponse getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Search.StreamResponse.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.StreamResponse build() { - org.vdaas.vald.api.v1.payload.Search.StreamResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.StreamResponse buildPartial() { - org.vdaas.vald.api.v1.payload.Search.StreamResponse result = new org.vdaas.vald.api.v1.payload.Search.StreamResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Search.StreamResponse result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(org.vdaas.vald.api.v1.payload.Search.StreamResponse result) { - result.payloadCase_ = payloadCase_; - result.payload_ = this.payload_; - if (payloadCase_ == 1 && - responseBuilder_ != null) { - result.payload_ = responseBuilder_.build(); - } - if (payloadCase_ == 2 && - statusBuilder_ != null) { - result.payload_ = statusBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Search.StreamResponse) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Search.StreamResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Search.StreamResponse other) { - if (other == org.vdaas.vald.api.v1.payload.Search.StreamResponse.getDefaultInstance()) return this; - switch (other.getPayloadCase()) { - case RESPONSE: { - mergeResponse(other.getResponse()); - break; - } - case STATUS: { - mergeStatus(other.getStatus()); - break; - } - case PAYLOAD_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getResponseFieldBuilder().getBuilder(), - extensionRegistry); - payloadCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); - payloadCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int payloadCase_ = 0; - private java.lang.Object payload_; - public PayloadCase - getPayloadCase() { - return PayloadCase.forNumber( - payloadCase_); - } - - public Builder clearPayload() { - payloadCase_ = 0; - payload_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.Response, org.vdaas.vald.api.v1.payload.Search.Response.Builder, org.vdaas.vald.api.v1.payload.Search.ResponseOrBuilder> responseBuilder_; - /** - *
-       * Represent the search response.
-       * 
- * - * .payload.v1.Search.Response response = 1 [json_name = "response"]; - * @return Whether the response field is set. - */ - @java.lang.Override - public boolean hasResponse() { - return payloadCase_ == 1; - } - /** - *
-       * Represent the search response.
-       * 
- * - * .payload.v1.Search.Response response = 1 [json_name = "response"]; - * @return The response. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.Response getResponse() { - if (responseBuilder_ == null) { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Search.Response) payload_; - } - return org.vdaas.vald.api.v1.payload.Search.Response.getDefaultInstance(); - } else { - if (payloadCase_ == 1) { - return responseBuilder_.getMessage(); - } - return org.vdaas.vald.api.v1.payload.Search.Response.getDefaultInstance(); - } - } - /** - *
-       * Represent the search response.
-       * 
- * - * .payload.v1.Search.Response response = 1 [json_name = "response"]; - */ - public Builder setResponse(org.vdaas.vald.api.v1.payload.Search.Response value) { - if (responseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - responseBuilder_.setMessage(value); - } - payloadCase_ = 1; - return this; - } - /** - *
-       * Represent the search response.
-       * 
- * - * .payload.v1.Search.Response response = 1 [json_name = "response"]; - */ - public Builder setResponse( - org.vdaas.vald.api.v1.payload.Search.Response.Builder builderForValue) { - if (responseBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - responseBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 1; - return this; - } - /** - *
-       * Represent the search response.
-       * 
- * - * .payload.v1.Search.Response response = 1 [json_name = "response"]; - */ - public Builder mergeResponse(org.vdaas.vald.api.v1.payload.Search.Response value) { - if (responseBuilder_ == null) { - if (payloadCase_ == 1 && - payload_ != org.vdaas.vald.api.v1.payload.Search.Response.getDefaultInstance()) { - payload_ = org.vdaas.vald.api.v1.payload.Search.Response.newBuilder((org.vdaas.vald.api.v1.payload.Search.Response) payload_) - .mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 1) { - responseBuilder_.mergeFrom(value); - } else { - responseBuilder_.setMessage(value); - } - } - payloadCase_ = 1; - return this; - } - /** - *
-       * Represent the search response.
-       * 
- * - * .payload.v1.Search.Response response = 1 [json_name = "response"]; - */ - public Builder clearResponse() { - if (responseBuilder_ == null) { - if (payloadCase_ == 1) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 1) { - payloadCase_ = 0; - payload_ = null; - } - responseBuilder_.clear(); - } - return this; - } - /** - *
-       * Represent the search response.
-       * 
- * - * .payload.v1.Search.Response response = 1 [json_name = "response"]; - */ - public org.vdaas.vald.api.v1.payload.Search.Response.Builder getResponseBuilder() { - return getResponseFieldBuilder().getBuilder(); - } - /** - *
-       * Represent the search response.
-       * 
- * - * .payload.v1.Search.Response response = 1 [json_name = "response"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.ResponseOrBuilder getResponseOrBuilder() { - if ((payloadCase_ == 1) && (responseBuilder_ != null)) { - return responseBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 1) { - return (org.vdaas.vald.api.v1.payload.Search.Response) payload_; - } - return org.vdaas.vald.api.v1.payload.Search.Response.getDefaultInstance(); - } - } - /** - *
-       * Represent the search response.
-       * 
- * - * .payload.v1.Search.Response response = 1 [json_name = "response"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.Response, org.vdaas.vald.api.v1.payload.Search.Response.Builder, org.vdaas.vald.api.v1.payload.Search.ResponseOrBuilder> - getResponseFieldBuilder() { - if (responseBuilder_ == null) { - if (!(payloadCase_ == 1)) { - payload_ = org.vdaas.vald.api.v1.payload.Search.Response.getDefaultInstance(); - } - responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Search.Response, org.vdaas.vald.api.v1.payload.Search.Response.Builder, org.vdaas.vald.api.v1.payload.Search.ResponseOrBuilder>( - (org.vdaas.vald.api.v1.payload.Search.Response) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 1; - onChanged(); - return responseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return payloadCase_ == 2; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - * @return The status. - */ - @java.lang.Override - public com.google.rpc.Status getStatus() { - if (statusBuilder_ == null) { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } else { - if (payloadCase_ == 2) { - return statusBuilder_.getMessage(); - } - return com.google.rpc.Status.getDefaultInstance(); - } - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder setStatus(com.google.rpc.Status value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - statusBuilder_.setMessage(value); - } - payloadCase_ = 2; - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder setStatus( - com.google.rpc.Status.Builder builderForValue) { - if (statusBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 2; - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder mergeStatus(com.google.rpc.Status value) { - if (statusBuilder_ == null) { - if (payloadCase_ == 2 && - payload_ != com.google.rpc.Status.getDefaultInstance()) { - payload_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) payload_) - .mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 2) { - statusBuilder_.mergeFrom(value); - } else { - statusBuilder_.setMessage(value); - } - } - payloadCase_ = 2; - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - if (payloadCase_ == 2) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 2) { - payloadCase_ = 0; - payload_ = null; - } - statusBuilder_.clear(); - } - return this; - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - public com.google.rpc.Status.Builder getStatusBuilder() { - return getStatusFieldBuilder().getBuilder(); - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - if ((payloadCase_ == 2) && (statusBuilder_ != null)) { - return statusBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 2) { - return (com.google.rpc.Status) payload_; - } - return com.google.rpc.Status.getDefaultInstance(); - } - } - /** - *
-       * The RPC error status.
-       * 
- * - * .google.rpc.Status status = 2 [json_name = "status"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - if (!(payloadCase_ == 2)) { - payload_ = com.google.rpc.Status.getDefaultInstance(); - } - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - (com.google.rpc.Status) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 2; - onChanged(); - return statusBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Search.StreamResponse) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Search.StreamResponse) - private static final org.vdaas.vald.api.v1.payload.Search.StreamResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Search.StreamResponse(); - } - - public static org.vdaas.vald.api.v1.payload.Search.StreamResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search.StreamResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Search)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Search other = (org.vdaas.vald.api.v1.payload.Search) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Search parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Search parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search 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 org.vdaas.vald.api.v1.payload.Search parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Search parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Search parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Search parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Search prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Search related messages.
-   * 
- * - * Protobuf type {@code payload.v1.Search} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Search) - org.vdaas.vald.api.v1.payload.SearchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Search.class, org.vdaas.vald.api.v1.payload.Search.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Search.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Search_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Search.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search build() { - org.vdaas.vald.api.v1.payload.Search result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search buildPartial() { - org.vdaas.vald.api.v1.payload.Search result = new org.vdaas.vald.api.v1.payload.Search(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Search) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Search)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Search other) { - if (other == org.vdaas.vald.api.v1.payload.Search.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Search) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Search) - private static final org.vdaas.vald.api.v1.payload.Search DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Search(); - } - - public static org.vdaas.vald.api.v1.payload.Search getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Search parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Search getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/SearchOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/payload/SearchOrBuilder.java deleted file mode 100644 index c26d7715..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/SearchOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -public interface SearchOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Search) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Update.java b/src/main/java/org/vdaas/vald/api/v1/payload/Update.java deleted file mode 100644 index dfeefefd..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/Update.java +++ /dev/null @@ -1,5315 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -/** - *
- * Update related messages
- * 
- * - * Protobuf type {@code payload.v1.Update} - */ -public final class Update extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Update) - UpdateOrBuilder { -private static final long serialVersionUID = 0L; - // Use Update.newBuilder() to construct. - private Update(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Update() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Update(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Update.class, org.vdaas.vald.api.v1.payload.Update.Builder.class); - } - - public interface RequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Update.Request) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The vector to be updated.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return Whether the vector field is set. - */ - boolean hasVector(); - /** - *
-     * The vector to be updated.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return The vector. - */ - org.vdaas.vald.api.v1.payload.Object.Vector getVector(); - /** - *
-     * The vector to be updated.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder(); - - /** - *
-     * The configuration of the update request.
-     * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - *
-     * The configuration of the update request.
-     * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - * @return The config. - */ - org.vdaas.vald.api.v1.payload.Update.Config getConfig(); - /** - *
-     * The configuration of the update request.
-     * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - */ - org.vdaas.vald.api.v1.payload.Update.ConfigOrBuilder getConfigOrBuilder(); - } - /** - *
-   * Represent the update request.
-   * 
- * - * Protobuf type {@code payload.v1.Update.Request} - */ - public static final class Request extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Update.Request) - RequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use Request.newBuilder() to construct. - private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Request() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Request(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_Request_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Update.Request.class, org.vdaas.vald.api.v1.payload.Update.Request.Builder.class); - } - - private int bitField0_; - public static final int VECTOR_FIELD_NUMBER = 1; - private org.vdaas.vald.api.v1.payload.Object.Vector vector_; - /** - *
-     * The vector to be updated.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return Whether the vector field is set. - */ - @java.lang.Override - public boolean hasVector() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The vector to be updated.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return The vector. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Vector getVector() { - return vector_ == null ? org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance() : vector_; - } - /** - *
-     * The vector to be updated.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder() { - return vector_ == null ? org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance() : vector_; - } - - public static final int CONFIG_FIELD_NUMBER = 2; - private org.vdaas.vald.api.v1.payload.Update.Config config_; - /** - *
-     * The configuration of the update request.
-     * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * The configuration of the update request.
-     * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - * @return The config. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.Config getConfig() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Update.Config.getDefaultInstance() : config_; - } - /** - *
-     * The configuration of the update request.
-     * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.ConfigOrBuilder getConfigOrBuilder() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Update.Config.getDefaultInstance() : config_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVector()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVector()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Update.Request)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Update.Request other = (org.vdaas.vald.api.v1.payload.Update.Request) obj; - - if (hasVector() != other.hasVector()) return false; - if (hasVector()) { - if (!getVector() - .equals(other.getVector())) return false; - } - if (hasConfig() != other.hasConfig()) return false; - if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasVector()) { - hash = (37 * hash) + VECTOR_FIELD_NUMBER; - hash = (53 * hash) + getVector().hashCode(); - } - if (hasConfig()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Update.Request parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Update.Request parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.Request parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Update.Request parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.Request parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Update.Request parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.Request parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Update.Request 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 org.vdaas.vald.api.v1.payload.Update.Request parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Update.Request parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.Request parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Update.Request parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Update.Request prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the update request.
-     * 
- * - * Protobuf type {@code payload.v1.Update.Request} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Update.Request) - org.vdaas.vald.api.v1.payload.Update.RequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_Request_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Update.Request.class, org.vdaas.vald.api.v1.payload.Update.Request.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Update.Request.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getVectorFieldBuilder(); - getConfigFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - vector_ = null; - if (vectorBuilder_ != null) { - vectorBuilder_.dispose(); - vectorBuilder_ = null; - } - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_Request_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.Request getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Update.Request.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.Request build() { - org.vdaas.vald.api.v1.payload.Update.Request result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.Request buildPartial() { - org.vdaas.vald.api.v1.payload.Update.Request result = new org.vdaas.vald.api.v1.payload.Update.Request(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Update.Request result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.vector_ = vectorBuilder_ == null - ? vector_ - : vectorBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Update.Request) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Update.Request)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Update.Request other) { - if (other == org.vdaas.vald.api.v1.payload.Update.Request.getDefaultInstance()) return this; - if (other.hasVector()) { - mergeVector(other.getVector()); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getVectorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private org.vdaas.vald.api.v1.payload.Object.Vector vector_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder> vectorBuilder_; - /** - *
-       * The vector to be updated.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return Whether the vector field is set. - */ - public boolean hasVector() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * The vector to be updated.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return The vector. - */ - public org.vdaas.vald.api.v1.payload.Object.Vector getVector() { - if (vectorBuilder_ == null) { - return vector_ == null ? org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance() : vector_; - } else { - return vectorBuilder_.getMessage(); - } - } - /** - *
-       * The vector to be updated.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - public Builder setVector(org.vdaas.vald.api.v1.payload.Object.Vector value) { - if (vectorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - vector_ = value; - } else { - vectorBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The vector to be updated.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - public Builder setVector( - org.vdaas.vald.api.v1.payload.Object.Vector.Builder builderForValue) { - if (vectorBuilder_ == null) { - vector_ = builderForValue.build(); - } else { - vectorBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The vector to be updated.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - public Builder mergeVector(org.vdaas.vald.api.v1.payload.Object.Vector value) { - if (vectorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - vector_ != null && - vector_ != org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance()) { - getVectorBuilder().mergeFrom(value); - } else { - vector_ = value; - } - } else { - vectorBuilder_.mergeFrom(value); - } - if (vector_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - *
-       * The vector to be updated.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - public Builder clearVector() { - bitField0_ = (bitField0_ & ~0x00000001); - vector_ = null; - if (vectorBuilder_ != null) { - vectorBuilder_.dispose(); - vectorBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The vector to be updated.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Object.Vector.Builder getVectorBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getVectorFieldBuilder().getBuilder(); - } - /** - *
-       * The vector to be updated.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder() { - if (vectorBuilder_ != null) { - return vectorBuilder_.getMessageOrBuilder(); - } else { - return vector_ == null ? - org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance() : vector_; - } - } - /** - *
-       * The vector to be updated.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder> - getVectorFieldBuilder() { - if (vectorBuilder_ == null) { - vectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder>( - getVector(), - getParentForChildren(), - isClean()); - vector_ = null; - } - return vectorBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Update.Config config_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Update.Config, org.vdaas.vald.api.v1.payload.Update.Config.Builder, org.vdaas.vald.api.v1.payload.Update.ConfigOrBuilder> configBuilder_; - /** - *
-       * The configuration of the update request.
-       * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * The configuration of the update request.
-       * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - * @return The config. - */ - public org.vdaas.vald.api.v1.payload.Update.Config getConfig() { - if (configBuilder_ == null) { - return config_ == null ? org.vdaas.vald.api.v1.payload.Update.Config.getDefaultInstance() : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - *
-       * The configuration of the update request.
-       * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig(org.vdaas.vald.api.v1.payload.Update.Config value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - } else { - configBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the update request.
-       * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig( - org.vdaas.vald.api.v1.payload.Update.Config.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the update request.
-       * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - */ - public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Update.Config value) { - if (configBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - config_ != null && - config_ != org.vdaas.vald.api.v1.payload.Update.Config.getDefaultInstance()) { - getConfigBuilder().mergeFrom(value); - } else { - config_ = value; - } - } else { - configBuilder_.mergeFrom(value); - } - if (config_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - *
-       * The configuration of the update request.
-       * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - */ - public Builder clearConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The configuration of the update request.
-       * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Update.Config.Builder getConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - *
-       * The configuration of the update request.
-       * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Update.ConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null ? - org.vdaas.vald.api.v1.payload.Update.Config.getDefaultInstance() : config_; - } - } - /** - *
-       * The configuration of the update request.
-       * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Update.Config, org.vdaas.vald.api.v1.payload.Update.Config.Builder, org.vdaas.vald.api.v1.payload.Update.ConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Update.Config, org.vdaas.vald.api.v1.payload.Update.Config.Builder, org.vdaas.vald.api.v1.payload.Update.ConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); - config_ = null; - } - return configBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Update.Request) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Update.Request) - private static final org.vdaas.vald.api.v1.payload.Update.Request DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Update.Request(); - } - - public static org.vdaas.vald.api.v1.payload.Update.Request getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Request parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.Request getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MultiRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Update.MultiRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represent the multiple update request content.
-     * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsList(); - /** - *
-     * Represent the multiple update request content.
-     * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Update.Request getRequests(int index); - /** - *
-     * Represent the multiple update request content.
-     * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - int getRequestsCount(); - /** - *
-     * Represent the multiple update request content.
-     * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-     * Represent the multiple update request content.
-     * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Update.RequestOrBuilder getRequestsOrBuilder( - int index); - } - /** - *
-   * Represent the multiple update request.
-   * 
- * - * Protobuf type {@code payload.v1.Update.MultiRequest} - */ - public static final class MultiRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Update.MultiRequest) - MultiRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MultiRequest.newBuilder() to construct. - private MultiRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MultiRequest() { - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MultiRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_MultiRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_MultiRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Update.MultiRequest.class, org.vdaas.vald.api.v1.payload.Update.MultiRequest.Builder.class); - } - - public static final int REQUESTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List requests_; - /** - *
-     * Represent the multiple update request content.
-     * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List getRequestsList() { - return requests_; - } - /** - *
-     * Represent the multiple update request content.
-     * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - *
-     * Represent the multiple update request content.
-     * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - *
-     * Represent the multiple update request content.
-     * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.Request getRequests(int index) { - return requests_.get(index); - } - /** - *
-     * Represent the multiple update request content.
-     * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.RequestOrBuilder getRequestsOrBuilder( - int index) { - return requests_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(1, requests_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Update.MultiRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Update.MultiRequest other = (org.vdaas.vald.api.v1.payload.Update.MultiRequest) obj; - - if (!getRequestsList() - .equals(other.getRequestsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Update.MultiRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Update.MultiRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.MultiRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Update.MultiRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.MultiRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Update.MultiRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.MultiRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Update.MultiRequest 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 org.vdaas.vald.api.v1.payload.Update.MultiRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Update.MultiRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.MultiRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Update.MultiRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Update.MultiRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the multiple update request.
-     * 
- * - * Protobuf type {@code payload.v1.Update.MultiRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Update.MultiRequest) - org.vdaas.vald.api.v1.payload.Update.MultiRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_MultiRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_MultiRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Update.MultiRequest.class, org.vdaas.vald.api.v1.payload.Update.MultiRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Update.MultiRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_MultiRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.MultiRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Update.MultiRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.MultiRequest build() { - org.vdaas.vald.api.v1.payload.Update.MultiRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.MultiRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Update.MultiRequest result = new org.vdaas.vald.api.v1.payload.Update.MultiRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Update.MultiRequest result) { - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Update.MultiRequest result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Update.MultiRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Update.MultiRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Update.MultiRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Update.MultiRequest.getDefaultInstance()) return this; - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Update.Request m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Update.Request.parser(), - extensionRegistry); - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(m); - } else { - requestsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List requests_ = - java.util.Collections.emptyList(); - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Update.Request, org.vdaas.vald.api.v1.payload.Update.Request.Builder, org.vdaas.vald.api.v1.payload.Update.RequestOrBuilder> requestsBuilder_; - - /** - *
-       * Represent the multiple update request content.
-       * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - public java.util.List getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - *
-       * Represent the multiple update request content.
-       * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - *
-       * Represent the multiple update request content.
-       * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Update.Request getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - *
-       * Represent the multiple update request content.
-       * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Update.Request value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Represent the multiple update request content.
-       * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Update.Request.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple update request content.
-       * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests(org.vdaas.vald.api.v1.payload.Update.Request value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Represent the multiple update request content.
-       * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Update.Request value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Represent the multiple update request content.
-       * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - org.vdaas.vald.api.v1.payload.Update.Request.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple update request content.
-       * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Update.Request.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple update request content.
-       * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - public Builder addAllRequests( - java.lang.Iterable values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Represent the multiple update request content.
-       * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - *
-       * Represent the multiple update request content.
-       * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Represent the multiple update request content.
-       * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Update.Request.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - *
-       * Represent the multiple update request content.
-       * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Update.RequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Represent the multiple update request content.
-       * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - *
-       * Represent the multiple update request content.
-       * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Update.Request.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Update.Request.getDefaultInstance()); - } - /** - *
-       * Represent the multiple update request content.
-       * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Update.Request.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Update.Request.getDefaultInstance()); - } - /** - *
-       * Represent the multiple update request content.
-       * 
- * - * repeated .payload.v1.Update.Request requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Update.Request, org.vdaas.vald.api.v1.payload.Update.Request.Builder, org.vdaas.vald.api.v1.payload.Update.RequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Update.Request, org.vdaas.vald.api.v1.payload.Update.Request.Builder, org.vdaas.vald.api.v1.payload.Update.RequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - requests_ = null; - } - return requestsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Update.MultiRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Update.MultiRequest) - private static final org.vdaas.vald.api.v1.payload.Update.MultiRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Update.MultiRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Update.MultiRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MultiRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.MultiRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ObjectRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Update.ObjectRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The binary object to be updated.
-     * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - * @return Whether the object field is set. - */ - boolean hasObject(); - /** - *
-     * The binary object to be updated.
-     * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - * @return The object. - */ - org.vdaas.vald.api.v1.payload.Object.Blob getObject(); - /** - *
-     * The binary object to be updated.
-     * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder getObjectOrBuilder(); - - /** - *
-     * The configuration of the update request.
-     * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - *
-     * The configuration of the update request.
-     * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - * @return The config. - */ - org.vdaas.vald.api.v1.payload.Update.Config getConfig(); - /** - *
-     * The configuration of the update request.
-     * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - */ - org.vdaas.vald.api.v1.payload.Update.ConfigOrBuilder getConfigOrBuilder(); - - /** - *
-     * Filter target.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return Whether the vectorizer field is set. - */ - boolean hasVectorizer(); - /** - *
-     * Filter target.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return The vectorizer. - */ - org.vdaas.vald.api.v1.payload.Filter.Target getVectorizer(); - /** - *
-     * Filter target.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder getVectorizerOrBuilder(); - } - /** - *
-   * Represent the update binary object request.
-   * 
- * - * Protobuf type {@code payload.v1.Update.ObjectRequest} - */ - public static final class ObjectRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Update.ObjectRequest) - ObjectRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ObjectRequest.newBuilder() to construct. - private ObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ObjectRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ObjectRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_ObjectRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_ObjectRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Update.ObjectRequest.class, org.vdaas.vald.api.v1.payload.Update.ObjectRequest.Builder.class); - } - - private int bitField0_; - public static final int OBJECT_FIELD_NUMBER = 1; - private org.vdaas.vald.api.v1.payload.Object.Blob object_; - /** - *
-     * The binary object to be updated.
-     * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - * @return Whether the object field is set. - */ - @java.lang.Override - public boolean hasObject() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The binary object to be updated.
-     * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - * @return The object. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Blob getObject() { - return object_ == null ? org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance() : object_; - } - /** - *
-     * The binary object to be updated.
-     * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder getObjectOrBuilder() { - return object_ == null ? org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance() : object_; - } - - public static final int CONFIG_FIELD_NUMBER = 2; - private org.vdaas.vald.api.v1.payload.Update.Config config_; - /** - *
-     * The configuration of the update request.
-     * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * The configuration of the update request.
-     * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - * @return The config. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.Config getConfig() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Update.Config.getDefaultInstance() : config_; - } - /** - *
-     * The configuration of the update request.
-     * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.ConfigOrBuilder getConfigOrBuilder() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Update.Config.getDefaultInstance() : config_; - } - - public static final int VECTORIZER_FIELD_NUMBER = 3; - private org.vdaas.vald.api.v1.payload.Filter.Target vectorizer_; - /** - *
-     * Filter target.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return Whether the vectorizer field is set. - */ - @java.lang.Override - public boolean hasVectorizer() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Filter target.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return The vectorizer. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Target getVectorizer() { - return vectorizer_ == null ? org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance() : vectorizer_; - } - /** - *
-     * Filter target.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder getVectorizerOrBuilder() { - return vectorizer_ == null ? org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance() : vectorizer_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getObject()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getVectorizer()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getObject()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getVectorizer()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Update.ObjectRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Update.ObjectRequest other = (org.vdaas.vald.api.v1.payload.Update.ObjectRequest) obj; - - if (hasObject() != other.hasObject()) return false; - if (hasObject()) { - if (!getObject() - .equals(other.getObject())) return false; - } - if (hasConfig() != other.hasConfig()) return false; - if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; - } - if (hasVectorizer() != other.hasVectorizer()) return false; - if (hasVectorizer()) { - if (!getVectorizer() - .equals(other.getVectorizer())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasObject()) { - hash = (37 * hash) + OBJECT_FIELD_NUMBER; - hash = (53 * hash) + getObject().hashCode(); - } - if (hasConfig()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - } - if (hasVectorizer()) { - hash = (37 * hash) + VECTORIZER_FIELD_NUMBER; - hash = (53 * hash) + getVectorizer().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Update.ObjectRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Update.ObjectRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.ObjectRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Update.ObjectRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.ObjectRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Update.ObjectRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.ObjectRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Update.ObjectRequest 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 org.vdaas.vald.api.v1.payload.Update.ObjectRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Update.ObjectRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.ObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Update.ObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Update.ObjectRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the update binary object request.
-     * 
- * - * Protobuf type {@code payload.v1.Update.ObjectRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Update.ObjectRequest) - org.vdaas.vald.api.v1.payload.Update.ObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_ObjectRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_ObjectRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Update.ObjectRequest.class, org.vdaas.vald.api.v1.payload.Update.ObjectRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Update.ObjectRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getObjectFieldBuilder(); - getConfigFieldBuilder(); - getVectorizerFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - object_ = null; - if (objectBuilder_ != null) { - objectBuilder_.dispose(); - objectBuilder_ = null; - } - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - vectorizer_ = null; - if (vectorizerBuilder_ != null) { - vectorizerBuilder_.dispose(); - vectorizerBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_ObjectRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.ObjectRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Update.ObjectRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.ObjectRequest build() { - org.vdaas.vald.api.v1.payload.Update.ObjectRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.ObjectRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Update.ObjectRequest result = new org.vdaas.vald.api.v1.payload.Update.ObjectRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Update.ObjectRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.object_ = objectBuilder_ == null - ? object_ - : objectBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.vectorizer_ = vectorizerBuilder_ == null - ? vectorizer_ - : vectorizerBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Update.ObjectRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Update.ObjectRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Update.ObjectRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Update.ObjectRequest.getDefaultInstance()) return this; - if (other.hasObject()) { - mergeObject(other.getObject()); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - if (other.hasVectorizer()) { - mergeVectorizer(other.getVectorizer()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getObjectFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getVectorizerFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private org.vdaas.vald.api.v1.payload.Object.Blob object_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Blob, org.vdaas.vald.api.v1.payload.Object.Blob.Builder, org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder> objectBuilder_; - /** - *
-       * The binary object to be updated.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - * @return Whether the object field is set. - */ - public boolean hasObject() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * The binary object to be updated.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - * @return The object. - */ - public org.vdaas.vald.api.v1.payload.Object.Blob getObject() { - if (objectBuilder_ == null) { - return object_ == null ? org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance() : object_; - } else { - return objectBuilder_.getMessage(); - } - } - /** - *
-       * The binary object to be updated.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - public Builder setObject(org.vdaas.vald.api.v1.payload.Object.Blob value) { - if (objectBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - object_ = value; - } else { - objectBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The binary object to be updated.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - public Builder setObject( - org.vdaas.vald.api.v1.payload.Object.Blob.Builder builderForValue) { - if (objectBuilder_ == null) { - object_ = builderForValue.build(); - } else { - objectBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The binary object to be updated.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - public Builder mergeObject(org.vdaas.vald.api.v1.payload.Object.Blob value) { - if (objectBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - object_ != null && - object_ != org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance()) { - getObjectBuilder().mergeFrom(value); - } else { - object_ = value; - } - } else { - objectBuilder_.mergeFrom(value); - } - if (object_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - *
-       * The binary object to be updated.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - public Builder clearObject() { - bitField0_ = (bitField0_ & ~0x00000001); - object_ = null; - if (objectBuilder_ != null) { - objectBuilder_.dispose(); - objectBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The binary object to be updated.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Blob.Builder getObjectBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getObjectFieldBuilder().getBuilder(); - } - /** - *
-       * The binary object to be updated.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - public org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder getObjectOrBuilder() { - if (objectBuilder_ != null) { - return objectBuilder_.getMessageOrBuilder(); - } else { - return object_ == null ? - org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance() : object_; - } - } - /** - *
-       * The binary object to be updated.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Blob, org.vdaas.vald.api.v1.payload.Object.Blob.Builder, org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder> - getObjectFieldBuilder() { - if (objectBuilder_ == null) { - objectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Blob, org.vdaas.vald.api.v1.payload.Object.Blob.Builder, org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder>( - getObject(), - getParentForChildren(), - isClean()); - object_ = null; - } - return objectBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Update.Config config_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Update.Config, org.vdaas.vald.api.v1.payload.Update.Config.Builder, org.vdaas.vald.api.v1.payload.Update.ConfigOrBuilder> configBuilder_; - /** - *
-       * The configuration of the update request.
-       * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * The configuration of the update request.
-       * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - * @return The config. - */ - public org.vdaas.vald.api.v1.payload.Update.Config getConfig() { - if (configBuilder_ == null) { - return config_ == null ? org.vdaas.vald.api.v1.payload.Update.Config.getDefaultInstance() : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - *
-       * The configuration of the update request.
-       * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig(org.vdaas.vald.api.v1.payload.Update.Config value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - } else { - configBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the update request.
-       * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig( - org.vdaas.vald.api.v1.payload.Update.Config.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the update request.
-       * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - */ - public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Update.Config value) { - if (configBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - config_ != null && - config_ != org.vdaas.vald.api.v1.payload.Update.Config.getDefaultInstance()) { - getConfigBuilder().mergeFrom(value); - } else { - config_ = value; - } - } else { - configBuilder_.mergeFrom(value); - } - if (config_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - *
-       * The configuration of the update request.
-       * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - */ - public Builder clearConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The configuration of the update request.
-       * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Update.Config.Builder getConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - *
-       * The configuration of the update request.
-       * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Update.ConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null ? - org.vdaas.vald.api.v1.payload.Update.Config.getDefaultInstance() : config_; - } - } - /** - *
-       * The configuration of the update request.
-       * 
- * - * .payload.v1.Update.Config config = 2 [json_name = "config"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Update.Config, org.vdaas.vald.api.v1.payload.Update.Config.Builder, org.vdaas.vald.api.v1.payload.Update.ConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Update.Config, org.vdaas.vald.api.v1.payload.Update.Config.Builder, org.vdaas.vald.api.v1.payload.Update.ConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); - config_ = null; - } - return configBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Filter.Target vectorizer_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Target, org.vdaas.vald.api.v1.payload.Filter.Target.Builder, org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder> vectorizerBuilder_; - /** - *
-       * Filter target.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return Whether the vectorizer field is set. - */ - public boolean hasVectorizer() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * Filter target.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return The vectorizer. - */ - public org.vdaas.vald.api.v1.payload.Filter.Target getVectorizer() { - if (vectorizerBuilder_ == null) { - return vectorizer_ == null ? org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance() : vectorizer_; - } else { - return vectorizerBuilder_.getMessage(); - } - } - /** - *
-       * Filter target.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public Builder setVectorizer(org.vdaas.vald.api.v1.payload.Filter.Target value) { - if (vectorizerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - vectorizer_ = value; - } else { - vectorizerBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Filter target.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public Builder setVectorizer( - org.vdaas.vald.api.v1.payload.Filter.Target.Builder builderForValue) { - if (vectorizerBuilder_ == null) { - vectorizer_ = builderForValue.build(); - } else { - vectorizerBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Filter target.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public Builder mergeVectorizer(org.vdaas.vald.api.v1.payload.Filter.Target value) { - if (vectorizerBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - vectorizer_ != null && - vectorizer_ != org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance()) { - getVectorizerBuilder().mergeFrom(value); - } else { - vectorizer_ = value; - } - } else { - vectorizerBuilder_.mergeFrom(value); - } - if (vectorizer_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - *
-       * Filter target.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public Builder clearVectorizer() { - bitField0_ = (bitField0_ & ~0x00000004); - vectorizer_ = null; - if (vectorizerBuilder_ != null) { - vectorizerBuilder_.dispose(); - vectorizerBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Filter target.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.Target.Builder getVectorizerBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getVectorizerFieldBuilder().getBuilder(); - } - /** - *
-       * Filter target.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder getVectorizerOrBuilder() { - if (vectorizerBuilder_ != null) { - return vectorizerBuilder_.getMessageOrBuilder(); - } else { - return vectorizer_ == null ? - org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance() : vectorizer_; - } - } - /** - *
-       * Filter target.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Target, org.vdaas.vald.api.v1.payload.Filter.Target.Builder, org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder> - getVectorizerFieldBuilder() { - if (vectorizerBuilder_ == null) { - vectorizerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Target, org.vdaas.vald.api.v1.payload.Filter.Target.Builder, org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder>( - getVectorizer(), - getParentForChildren(), - isClean()); - vectorizer_ = null; - } - return vectorizerBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Update.ObjectRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Update.ObjectRequest) - private static final org.vdaas.vald.api.v1.payload.Update.ObjectRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Update.ObjectRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Update.ObjectRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.ObjectRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MultiObjectRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Update.MultiObjectRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represent the multiple update object request content.
-     * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsList(); - /** - *
-     * Represent the multiple update object request content.
-     * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Update.ObjectRequest getRequests(int index); - /** - *
-     * Represent the multiple update object request content.
-     * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - int getRequestsCount(); - /** - *
-     * Represent the multiple update object request content.
-     * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-     * Represent the multiple update object request content.
-     * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Update.ObjectRequestOrBuilder getRequestsOrBuilder( - int index); - } - /** - *
-   * Represent the multiple update binary object request.
-   * 
- * - * Protobuf type {@code payload.v1.Update.MultiObjectRequest} - */ - public static final class MultiObjectRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Update.MultiObjectRequest) - MultiObjectRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MultiObjectRequest.newBuilder() to construct. - private MultiObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MultiObjectRequest() { - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MultiObjectRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_MultiObjectRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_MultiObjectRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest.class, org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest.Builder.class); - } - - public static final int REQUESTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List requests_; - /** - *
-     * Represent the multiple update object request content.
-     * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List getRequestsList() { - return requests_; - } - /** - *
-     * Represent the multiple update object request content.
-     * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - *
-     * Represent the multiple update object request content.
-     * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - *
-     * Represent the multiple update object request content.
-     * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.ObjectRequest getRequests(int index) { - return requests_.get(index); - } - /** - *
-     * Represent the multiple update object request content.
-     * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.ObjectRequestOrBuilder getRequestsOrBuilder( - int index) { - return requests_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(1, requests_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest other = (org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest) obj; - - if (!getRequestsList() - .equals(other.getRequestsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest 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 org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the multiple update binary object request.
-     * 
- * - * Protobuf type {@code payload.v1.Update.MultiObjectRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Update.MultiObjectRequest) - org.vdaas.vald.api.v1.payload.Update.MultiObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_MultiObjectRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_MultiObjectRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest.class, org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_MultiObjectRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest build() { - org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest result = new org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest result) { - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest.getDefaultInstance()) return this; - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Update.ObjectRequest m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Update.ObjectRequest.parser(), - extensionRegistry); - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(m); - } else { - requestsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List requests_ = - java.util.Collections.emptyList(); - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Update.ObjectRequest, org.vdaas.vald.api.v1.payload.Update.ObjectRequest.Builder, org.vdaas.vald.api.v1.payload.Update.ObjectRequestOrBuilder> requestsBuilder_; - - /** - *
-       * Represent the multiple update object request content.
-       * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public java.util.List getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - *
-       * Represent the multiple update object request content.
-       * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - *
-       * Represent the multiple update object request content.
-       * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Update.ObjectRequest getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - *
-       * Represent the multiple update object request content.
-       * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Update.ObjectRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Represent the multiple update object request content.
-       * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Update.ObjectRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple update object request content.
-       * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests(org.vdaas.vald.api.v1.payload.Update.ObjectRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Represent the multiple update object request content.
-       * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Update.ObjectRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Represent the multiple update object request content.
-       * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - org.vdaas.vald.api.v1.payload.Update.ObjectRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple update object request content.
-       * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Update.ObjectRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple update object request content.
-       * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addAllRequests( - java.lang.Iterable values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Represent the multiple update object request content.
-       * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - *
-       * Represent the multiple update object request content.
-       * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Represent the multiple update object request content.
-       * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Update.ObjectRequest.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - *
-       * Represent the multiple update object request content.
-       * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Update.ObjectRequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Represent the multiple update object request content.
-       * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - *
-       * Represent the multiple update object request content.
-       * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Update.ObjectRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Update.ObjectRequest.getDefaultInstance()); - } - /** - *
-       * Represent the multiple update object request content.
-       * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Update.ObjectRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Update.ObjectRequest.getDefaultInstance()); - } - /** - *
-       * Represent the multiple update object request content.
-       * 
- * - * repeated .payload.v1.Update.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Update.ObjectRequest, org.vdaas.vald.api.v1.payload.Update.ObjectRequest.Builder, org.vdaas.vald.api.v1.payload.Update.ObjectRequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Update.ObjectRequest, org.vdaas.vald.api.v1.payload.Update.ObjectRequest.Builder, org.vdaas.vald.api.v1.payload.Update.ObjectRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - requests_ = null; - } - return requestsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Update.MultiObjectRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Update.MultiObjectRequest) - private static final org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MultiObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Update.Config) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A flag to skip exist check during update operation.
-     * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @return The skipStrictExistCheck. - */ - boolean getSkipStrictExistCheck(); - - /** - *
-     * Filter configuration.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return Whether the filters field is set. - */ - boolean hasFilters(); - /** - *
-     * Filter configuration.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return The filters. - */ - org.vdaas.vald.api.v1.payload.Filter.Config getFilters(); - /** - *
-     * Filter configuration.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getFiltersOrBuilder(); - - /** - *
-     * Update timestamp.
-     * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return The timestamp. - */ - long getTimestamp(); - - /** - *
-     * A flag to disable balanced update (split remove -> insert operation)
-     * during update operation.
-     * 
- * - * bool disable_balanced_update = 4 [json_name = "disableBalancedUpdate"]; - * @return The disableBalancedUpdate. - */ - boolean getDisableBalancedUpdate(); - } - /** - *
-   * Represent the update configuration.
-   * 
- * - * Protobuf type {@code payload.v1.Update.Config} - */ - public static final class Config extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Update.Config) - ConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use Config.newBuilder() to construct. - private Config(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Config() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Config(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_Config_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_Config_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Update.Config.class, org.vdaas.vald.api.v1.payload.Update.Config.Builder.class); - } - - private int bitField0_; - public static final int SKIP_STRICT_EXIST_CHECK_FIELD_NUMBER = 1; - private boolean skipStrictExistCheck_ = false; - /** - *
-     * A flag to skip exist check during update operation.
-     * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @return The skipStrictExistCheck. - */ - @java.lang.Override - public boolean getSkipStrictExistCheck() { - return skipStrictExistCheck_; - } - - public static final int FILTERS_FIELD_NUMBER = 2; - private org.vdaas.vald.api.v1.payload.Filter.Config filters_; - /** - *
-     * Filter configuration.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return Whether the filters field is set. - */ - @java.lang.Override - public boolean hasFilters() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Filter configuration.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return The filters. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Config getFilters() { - return filters_ == null ? org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : filters_; - } - /** - *
-     * Filter configuration.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getFiltersOrBuilder() { - return filters_ == null ? org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : filters_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 3; - private long timestamp_ = 0L; - /** - *
-     * Update timestamp.
-     * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - - public static final int DISABLE_BALANCED_UPDATE_FIELD_NUMBER = 4; - private boolean disableBalancedUpdate_ = false; - /** - *
-     * A flag to disable balanced update (split remove -> insert operation)
-     * during update operation.
-     * 
- * - * bool disable_balanced_update = 4 [json_name = "disableBalancedUpdate"]; - * @return The disableBalancedUpdate. - */ - @java.lang.Override - public boolean getDisableBalancedUpdate() { - return disableBalancedUpdate_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (skipStrictExistCheck_ != false) { - output.writeBool(1, skipStrictExistCheck_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getFilters()); - } - if (timestamp_ != 0L) { - output.writeInt64(3, timestamp_); - } - if (disableBalancedUpdate_ != false) { - output.writeBool(4, disableBalancedUpdate_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (skipStrictExistCheck_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, skipStrictExistCheck_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFilters()); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, timestamp_); - } - if (disableBalancedUpdate_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, disableBalancedUpdate_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Update.Config)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Update.Config other = (org.vdaas.vald.api.v1.payload.Update.Config) obj; - - if (getSkipStrictExistCheck() - != other.getSkipStrictExistCheck()) return false; - if (hasFilters() != other.hasFilters()) return false; - if (hasFilters()) { - if (!getFilters() - .equals(other.getFilters())) return false; - } - if (getTimestamp() - != other.getTimestamp()) return false; - if (getDisableBalancedUpdate() - != other.getDisableBalancedUpdate()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SKIP_STRICT_EXIST_CHECK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSkipStrictExistCheck()); - if (hasFilters()) { - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - } - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + DISABLE_BALANCED_UPDATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisableBalancedUpdate()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Update.Config parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Update.Config parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.Config parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Update.Config parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.Config parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Update.Config parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.Config parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Update.Config 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 org.vdaas.vald.api.v1.payload.Update.Config parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Update.Config parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update.Config parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Update.Config parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Update.Config prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the update configuration.
-     * 
- * - * Protobuf type {@code payload.v1.Update.Config} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Update.Config) - org.vdaas.vald.api.v1.payload.Update.ConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_Config_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_Config_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Update.Config.class, org.vdaas.vald.api.v1.payload.Update.Config.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Update.Config.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getFiltersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - skipStrictExistCheck_ = false; - filters_ = null; - if (filtersBuilder_ != null) { - filtersBuilder_.dispose(); - filtersBuilder_ = null; - } - timestamp_ = 0L; - disableBalancedUpdate_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_Config_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.Config getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Update.Config.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.Config build() { - org.vdaas.vald.api.v1.payload.Update.Config result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.Config buildPartial() { - org.vdaas.vald.api.v1.payload.Update.Config result = new org.vdaas.vald.api.v1.payload.Update.Config(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Update.Config result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.skipStrictExistCheck_ = skipStrictExistCheck_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.filters_ = filtersBuilder_ == null - ? filters_ - : filtersBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.timestamp_ = timestamp_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.disableBalancedUpdate_ = disableBalancedUpdate_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Update.Config) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Update.Config)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Update.Config other) { - if (other == org.vdaas.vald.api.v1.payload.Update.Config.getDefaultInstance()) return this; - if (other.getSkipStrictExistCheck() != false) { - setSkipStrictExistCheck(other.getSkipStrictExistCheck()); - } - if (other.hasFilters()) { - mergeFilters(other.getFilters()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getDisableBalancedUpdate() != false) { - setDisableBalancedUpdate(other.getDisableBalancedUpdate()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - skipStrictExistCheck_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getFiltersFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - timestamp_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - disableBalancedUpdate_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean skipStrictExistCheck_ ; - /** - *
-       * A flag to skip exist check during update operation.
-       * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @return The skipStrictExistCheck. - */ - @java.lang.Override - public boolean getSkipStrictExistCheck() { - return skipStrictExistCheck_; - } - /** - *
-       * A flag to skip exist check during update operation.
-       * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @param value The skipStrictExistCheck to set. - * @return This builder for chaining. - */ - public Builder setSkipStrictExistCheck(boolean value) { - - skipStrictExistCheck_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * A flag to skip exist check during update operation.
-       * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @return This builder for chaining. - */ - public Builder clearSkipStrictExistCheck() { - bitField0_ = (bitField0_ & ~0x00000001); - skipStrictExistCheck_ = false; - onChanged(); - return this; - } - - private org.vdaas.vald.api.v1.payload.Filter.Config filters_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Config, org.vdaas.vald.api.v1.payload.Filter.Config.Builder, org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder> filtersBuilder_; - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return Whether the filters field is set. - */ - public boolean hasFilters() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return The filters. - */ - public org.vdaas.vald.api.v1.payload.Filter.Config getFilters() { - if (filtersBuilder_ == null) { - return filters_ == null ? org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : filters_; - } else { - return filtersBuilder_.getMessage(); - } - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public Builder setFilters(org.vdaas.vald.api.v1.payload.Filter.Config value) { - if (filtersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filters_ = value; - } else { - filtersBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public Builder setFilters( - org.vdaas.vald.api.v1.payload.Filter.Config.Builder builderForValue) { - if (filtersBuilder_ == null) { - filters_ = builderForValue.build(); - } else { - filtersBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public Builder mergeFilters(org.vdaas.vald.api.v1.payload.Filter.Config value) { - if (filtersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - filters_ != null && - filters_ != org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance()) { - getFiltersBuilder().mergeFrom(value); - } else { - filters_ = value; - } - } else { - filtersBuilder_.mergeFrom(value); - } - if (filters_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public Builder clearFilters() { - bitField0_ = (bitField0_ & ~0x00000002); - filters_ = null; - if (filtersBuilder_ != null) { - filtersBuilder_.dispose(); - filtersBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.Config.Builder getFiltersBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getFiltersFieldBuilder().getBuilder(); - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getFiltersOrBuilder() { - if (filtersBuilder_ != null) { - return filtersBuilder_.getMessageOrBuilder(); - } else { - return filters_ == null ? - org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : filters_; - } - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Config, org.vdaas.vald.api.v1.payload.Filter.Config.Builder, org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder> - getFiltersFieldBuilder() { - if (filtersBuilder_ == null) { - filtersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Config, org.vdaas.vald.api.v1.payload.Filter.Config.Builder, org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder>( - getFilters(), - getParentForChildren(), - isClean()); - filters_ = null; - } - return filtersBuilder_; - } - - private long timestamp_ ; - /** - *
-       * Update timestamp.
-       * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - /** - *
-       * Update timestamp.
-       * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Update timestamp.
-       * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000004); - timestamp_ = 0L; - onChanged(); - return this; - } - - private boolean disableBalancedUpdate_ ; - /** - *
-       * A flag to disable balanced update (split remove -> insert operation)
-       * during update operation.
-       * 
- * - * bool disable_balanced_update = 4 [json_name = "disableBalancedUpdate"]; - * @return The disableBalancedUpdate. - */ - @java.lang.Override - public boolean getDisableBalancedUpdate() { - return disableBalancedUpdate_; - } - /** - *
-       * A flag to disable balanced update (split remove -> insert operation)
-       * during update operation.
-       * 
- * - * bool disable_balanced_update = 4 [json_name = "disableBalancedUpdate"]; - * @param value The disableBalancedUpdate to set. - * @return This builder for chaining. - */ - public Builder setDisableBalancedUpdate(boolean value) { - - disableBalancedUpdate_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * A flag to disable balanced update (split remove -> insert operation)
-       * during update operation.
-       * 
- * - * bool disable_balanced_update = 4 [json_name = "disableBalancedUpdate"]; - * @return This builder for chaining. - */ - public Builder clearDisableBalancedUpdate() { - bitField0_ = (bitField0_ & ~0x00000008); - disableBalancedUpdate_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Update.Config) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Update.Config) - private static final org.vdaas.vald.api.v1.payload.Update.Config DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Update.Config(); - } - - public static org.vdaas.vald.api.v1.payload.Update.Config getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Config parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update.Config getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Update)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Update other = (org.vdaas.vald.api.v1.payload.Update) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Update parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Update parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Update parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Update parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Update 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 org.vdaas.vald.api.v1.payload.Update parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Update parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Update parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Update parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Update prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Update related messages
-   * 
- * - * Protobuf type {@code payload.v1.Update} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Update) - org.vdaas.vald.api.v1.payload.UpdateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Update.class, org.vdaas.vald.api.v1.payload.Update.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Update.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Update_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Update.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update build() { - org.vdaas.vald.api.v1.payload.Update result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update buildPartial() { - org.vdaas.vald.api.v1.payload.Update result = new org.vdaas.vald.api.v1.payload.Update(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Update) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Update)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Update other) { - if (other == org.vdaas.vald.api.v1.payload.Update.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Update) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Update) - private static final org.vdaas.vald.api.v1.payload.Update DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Update(); - } - - public static org.vdaas.vald.api.v1.payload.Update getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Update parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Update getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/UpdateOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/payload/UpdateOrBuilder.java deleted file mode 100644 index 4b2fb706..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/UpdateOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -public interface UpdateOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Update) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Upsert.java b/src/main/java/org/vdaas/vald/api/v1/payload/Upsert.java deleted file mode 100644 index bc4d3d69..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/Upsert.java +++ /dev/null @@ -1,5315 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -/** - *
- * Upsert related messages.
- * 
- * - * Protobuf type {@code payload.v1.Upsert} - */ -public final class Upsert extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Upsert) - UpsertOrBuilder { -private static final long serialVersionUID = 0L; - // Use Upsert.newBuilder() to construct. - private Upsert(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Upsert() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Upsert(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Upsert.class, org.vdaas.vald.api.v1.payload.Upsert.Builder.class); - } - - public interface RequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Upsert.Request) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The vector to be upserted.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return Whether the vector field is set. - */ - boolean hasVector(); - /** - *
-     * The vector to be upserted.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return The vector. - */ - org.vdaas.vald.api.v1.payload.Object.Vector getVector(); - /** - *
-     * The vector to be upserted.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder(); - - /** - *
-     * The configuration of the upsert request.
-     * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - *
-     * The configuration of the upsert request.
-     * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - * @return The config. - */ - org.vdaas.vald.api.v1.payload.Upsert.Config getConfig(); - /** - *
-     * The configuration of the upsert request.
-     * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - */ - org.vdaas.vald.api.v1.payload.Upsert.ConfigOrBuilder getConfigOrBuilder(); - } - /** - *
-   * Represent the upsert request.
-   * 
- * - * Protobuf type {@code payload.v1.Upsert.Request} - */ - public static final class Request extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Upsert.Request) - RequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use Request.newBuilder() to construct. - private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Request() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Request(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_Request_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Upsert.Request.class, org.vdaas.vald.api.v1.payload.Upsert.Request.Builder.class); - } - - private int bitField0_; - public static final int VECTOR_FIELD_NUMBER = 1; - private org.vdaas.vald.api.v1.payload.Object.Vector vector_; - /** - *
-     * The vector to be upserted.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return Whether the vector field is set. - */ - @java.lang.Override - public boolean hasVector() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The vector to be upserted.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return The vector. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Vector getVector() { - return vector_ == null ? org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance() : vector_; - } - /** - *
-     * The vector to be upserted.
-     * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder() { - return vector_ == null ? org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance() : vector_; - } - - public static final int CONFIG_FIELD_NUMBER = 2; - private org.vdaas.vald.api.v1.payload.Upsert.Config config_; - /** - *
-     * The configuration of the upsert request.
-     * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * The configuration of the upsert request.
-     * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - * @return The config. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.Config getConfig() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Upsert.Config.getDefaultInstance() : config_; - } - /** - *
-     * The configuration of the upsert request.
-     * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.ConfigOrBuilder getConfigOrBuilder() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Upsert.Config.getDefaultInstance() : config_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVector()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVector()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Upsert.Request)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Upsert.Request other = (org.vdaas.vald.api.v1.payload.Upsert.Request) obj; - - if (hasVector() != other.hasVector()) return false; - if (hasVector()) { - if (!getVector() - .equals(other.getVector())) return false; - } - if (hasConfig() != other.hasConfig()) return false; - if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasVector()) { - hash = (37 * hash) + VECTOR_FIELD_NUMBER; - hash = (53 * hash) + getVector().hashCode(); - } - if (hasConfig()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Upsert.Request parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Upsert.Request parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.Request parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Upsert.Request parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.Request parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Upsert.Request parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.Request parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Upsert.Request 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 org.vdaas.vald.api.v1.payload.Upsert.Request parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Upsert.Request parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.Request parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Upsert.Request parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Upsert.Request prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the upsert request.
-     * 
- * - * Protobuf type {@code payload.v1.Upsert.Request} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Upsert.Request) - org.vdaas.vald.api.v1.payload.Upsert.RequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_Request_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Upsert.Request.class, org.vdaas.vald.api.v1.payload.Upsert.Request.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Upsert.Request.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getVectorFieldBuilder(); - getConfigFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - vector_ = null; - if (vectorBuilder_ != null) { - vectorBuilder_.dispose(); - vectorBuilder_ = null; - } - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_Request_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.Request getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Upsert.Request.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.Request build() { - org.vdaas.vald.api.v1.payload.Upsert.Request result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.Request buildPartial() { - org.vdaas.vald.api.v1.payload.Upsert.Request result = new org.vdaas.vald.api.v1.payload.Upsert.Request(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Upsert.Request result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.vector_ = vectorBuilder_ == null - ? vector_ - : vectorBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Upsert.Request) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Upsert.Request)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Upsert.Request other) { - if (other == org.vdaas.vald.api.v1.payload.Upsert.Request.getDefaultInstance()) return this; - if (other.hasVector()) { - mergeVector(other.getVector()); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getVectorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private org.vdaas.vald.api.v1.payload.Object.Vector vector_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder> vectorBuilder_; - /** - *
-       * The vector to be upserted.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return Whether the vector field is set. - */ - public boolean hasVector() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * The vector to be upserted.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - * @return The vector. - */ - public org.vdaas.vald.api.v1.payload.Object.Vector getVector() { - if (vectorBuilder_ == null) { - return vector_ == null ? org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance() : vector_; - } else { - return vectorBuilder_.getMessage(); - } - } - /** - *
-       * The vector to be upserted.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - public Builder setVector(org.vdaas.vald.api.v1.payload.Object.Vector value) { - if (vectorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - vector_ = value; - } else { - vectorBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The vector to be upserted.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - public Builder setVector( - org.vdaas.vald.api.v1.payload.Object.Vector.Builder builderForValue) { - if (vectorBuilder_ == null) { - vector_ = builderForValue.build(); - } else { - vectorBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The vector to be upserted.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - public Builder mergeVector(org.vdaas.vald.api.v1.payload.Object.Vector value) { - if (vectorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - vector_ != null && - vector_ != org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance()) { - getVectorBuilder().mergeFrom(value); - } else { - vector_ = value; - } - } else { - vectorBuilder_.mergeFrom(value); - } - if (vector_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - *
-       * The vector to be upserted.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - public Builder clearVector() { - bitField0_ = (bitField0_ & ~0x00000001); - vector_ = null; - if (vectorBuilder_ != null) { - vectorBuilder_.dispose(); - vectorBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The vector to be upserted.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Object.Vector.Builder getVectorBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getVectorFieldBuilder().getBuilder(); - } - /** - *
-       * The vector to be upserted.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - public org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder() { - if (vectorBuilder_ != null) { - return vectorBuilder_.getMessageOrBuilder(); - } else { - return vector_ == null ? - org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance() : vector_; - } - } - /** - *
-       * The vector to be upserted.
-       * 
- * - * .payload.v1.Object.Vector vector = 1 [json_name = "vector", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder> - getVectorFieldBuilder() { - if (vectorBuilder_ == null) { - vectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder>( - getVector(), - getParentForChildren(), - isClean()); - vector_ = null; - } - return vectorBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Upsert.Config config_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Upsert.Config, org.vdaas.vald.api.v1.payload.Upsert.Config.Builder, org.vdaas.vald.api.v1.payload.Upsert.ConfigOrBuilder> configBuilder_; - /** - *
-       * The configuration of the upsert request.
-       * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * The configuration of the upsert request.
-       * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - * @return The config. - */ - public org.vdaas.vald.api.v1.payload.Upsert.Config getConfig() { - if (configBuilder_ == null) { - return config_ == null ? org.vdaas.vald.api.v1.payload.Upsert.Config.getDefaultInstance() : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - *
-       * The configuration of the upsert request.
-       * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig(org.vdaas.vald.api.v1.payload.Upsert.Config value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - } else { - configBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the upsert request.
-       * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig( - org.vdaas.vald.api.v1.payload.Upsert.Config.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the upsert request.
-       * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - */ - public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Upsert.Config value) { - if (configBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - config_ != null && - config_ != org.vdaas.vald.api.v1.payload.Upsert.Config.getDefaultInstance()) { - getConfigBuilder().mergeFrom(value); - } else { - config_ = value; - } - } else { - configBuilder_.mergeFrom(value); - } - if (config_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - *
-       * The configuration of the upsert request.
-       * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - */ - public Builder clearConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The configuration of the upsert request.
-       * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Upsert.Config.Builder getConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - *
-       * The configuration of the upsert request.
-       * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Upsert.ConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null ? - org.vdaas.vald.api.v1.payload.Upsert.Config.getDefaultInstance() : config_; - } - } - /** - *
-       * The configuration of the upsert request.
-       * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Upsert.Config, org.vdaas.vald.api.v1.payload.Upsert.Config.Builder, org.vdaas.vald.api.v1.payload.Upsert.ConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Upsert.Config, org.vdaas.vald.api.v1.payload.Upsert.Config.Builder, org.vdaas.vald.api.v1.payload.Upsert.ConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); - config_ = null; - } - return configBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Upsert.Request) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Upsert.Request) - private static final org.vdaas.vald.api.v1.payload.Upsert.Request DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Upsert.Request(); - } - - public static org.vdaas.vald.api.v1.payload.Upsert.Request getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Request parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.Request getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MultiRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Upsert.MultiRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represent the multiple upsert request content.
-     * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsList(); - /** - *
-     * Represent the multiple upsert request content.
-     * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Upsert.Request getRequests(int index); - /** - *
-     * Represent the multiple upsert request content.
-     * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - int getRequestsCount(); - /** - *
-     * Represent the multiple upsert request content.
-     * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-     * Represent the multiple upsert request content.
-     * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Upsert.RequestOrBuilder getRequestsOrBuilder( - int index); - } - /** - *
-   * Represent mthe ultiple upsert request.
-   * 
- * - * Protobuf type {@code payload.v1.Upsert.MultiRequest} - */ - public static final class MultiRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Upsert.MultiRequest) - MultiRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MultiRequest.newBuilder() to construct. - private MultiRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MultiRequest() { - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MultiRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_MultiRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_MultiRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Upsert.MultiRequest.class, org.vdaas.vald.api.v1.payload.Upsert.MultiRequest.Builder.class); - } - - public static final int REQUESTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List requests_; - /** - *
-     * Represent the multiple upsert request content.
-     * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List getRequestsList() { - return requests_; - } - /** - *
-     * Represent the multiple upsert request content.
-     * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - *
-     * Represent the multiple upsert request content.
-     * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - *
-     * Represent the multiple upsert request content.
-     * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.Request getRequests(int index) { - return requests_.get(index); - } - /** - *
-     * Represent the multiple upsert request content.
-     * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.RequestOrBuilder getRequestsOrBuilder( - int index) { - return requests_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(1, requests_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Upsert.MultiRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Upsert.MultiRequest other = (org.vdaas.vald.api.v1.payload.Upsert.MultiRequest) obj; - - if (!getRequestsList() - .equals(other.getRequestsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Upsert.MultiRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Upsert.MultiRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.MultiRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Upsert.MultiRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.MultiRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Upsert.MultiRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.MultiRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Upsert.MultiRequest 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 org.vdaas.vald.api.v1.payload.Upsert.MultiRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Upsert.MultiRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.MultiRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Upsert.MultiRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Upsert.MultiRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent mthe ultiple upsert request.
-     * 
- * - * Protobuf type {@code payload.v1.Upsert.MultiRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Upsert.MultiRequest) - org.vdaas.vald.api.v1.payload.Upsert.MultiRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_MultiRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_MultiRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Upsert.MultiRequest.class, org.vdaas.vald.api.v1.payload.Upsert.MultiRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Upsert.MultiRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_MultiRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.MultiRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Upsert.MultiRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.MultiRequest build() { - org.vdaas.vald.api.v1.payload.Upsert.MultiRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.MultiRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Upsert.MultiRequest result = new org.vdaas.vald.api.v1.payload.Upsert.MultiRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Upsert.MultiRequest result) { - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Upsert.MultiRequest result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Upsert.MultiRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Upsert.MultiRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Upsert.MultiRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Upsert.MultiRequest.getDefaultInstance()) return this; - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Upsert.Request m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Upsert.Request.parser(), - extensionRegistry); - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(m); - } else { - requestsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List requests_ = - java.util.Collections.emptyList(); - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Upsert.Request, org.vdaas.vald.api.v1.payload.Upsert.Request.Builder, org.vdaas.vald.api.v1.payload.Upsert.RequestOrBuilder> requestsBuilder_; - - /** - *
-       * Represent the multiple upsert request content.
-       * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - public java.util.List getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - *
-       * Represent the multiple upsert request content.
-       * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - *
-       * Represent the multiple upsert request content.
-       * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Upsert.Request getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - *
-       * Represent the multiple upsert request content.
-       * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Upsert.Request value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Represent the multiple upsert request content.
-       * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Upsert.Request.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple upsert request content.
-       * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests(org.vdaas.vald.api.v1.payload.Upsert.Request value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Represent the multiple upsert request content.
-       * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Upsert.Request value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Represent the multiple upsert request content.
-       * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - org.vdaas.vald.api.v1.payload.Upsert.Request.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple upsert request content.
-       * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Upsert.Request.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple upsert request content.
-       * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - public Builder addAllRequests( - java.lang.Iterable values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Represent the multiple upsert request content.
-       * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - *
-       * Represent the multiple upsert request content.
-       * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Represent the multiple upsert request content.
-       * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Upsert.Request.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - *
-       * Represent the multiple upsert request content.
-       * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Upsert.RequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Represent the multiple upsert request content.
-       * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - *
-       * Represent the multiple upsert request content.
-       * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Upsert.Request.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Upsert.Request.getDefaultInstance()); - } - /** - *
-       * Represent the multiple upsert request content.
-       * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Upsert.Request.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Upsert.Request.getDefaultInstance()); - } - /** - *
-       * Represent the multiple upsert request content.
-       * 
- * - * repeated .payload.v1.Upsert.Request requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Upsert.Request, org.vdaas.vald.api.v1.payload.Upsert.Request.Builder, org.vdaas.vald.api.v1.payload.Upsert.RequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Upsert.Request, org.vdaas.vald.api.v1.payload.Upsert.Request.Builder, org.vdaas.vald.api.v1.payload.Upsert.RequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - requests_ = null; - } - return requestsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Upsert.MultiRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Upsert.MultiRequest) - private static final org.vdaas.vald.api.v1.payload.Upsert.MultiRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Upsert.MultiRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Upsert.MultiRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MultiRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.MultiRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ObjectRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Upsert.ObjectRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The binary object to be upserted.
-     * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - * @return Whether the object field is set. - */ - boolean hasObject(); - /** - *
-     * The binary object to be upserted.
-     * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - * @return The object. - */ - org.vdaas.vald.api.v1.payload.Object.Blob getObject(); - /** - *
-     * The binary object to be upserted.
-     * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder getObjectOrBuilder(); - - /** - *
-     * The configuration of the upsert request.
-     * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - *
-     * The configuration of the upsert request.
-     * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - * @return The config. - */ - org.vdaas.vald.api.v1.payload.Upsert.Config getConfig(); - /** - *
-     * The configuration of the upsert request.
-     * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - */ - org.vdaas.vald.api.v1.payload.Upsert.ConfigOrBuilder getConfigOrBuilder(); - - /** - *
-     * Filter target.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return Whether the vectorizer field is set. - */ - boolean hasVectorizer(); - /** - *
-     * Filter target.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return The vectorizer. - */ - org.vdaas.vald.api.v1.payload.Filter.Target getVectorizer(); - /** - *
-     * Filter target.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder getVectorizerOrBuilder(); - } - /** - *
-   * Represent the upsert binary object request.
-   * 
- * - * Protobuf type {@code payload.v1.Upsert.ObjectRequest} - */ - public static final class ObjectRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Upsert.ObjectRequest) - ObjectRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ObjectRequest.newBuilder() to construct. - private ObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ObjectRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ObjectRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_ObjectRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_ObjectRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.class, org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.Builder.class); - } - - private int bitField0_; - public static final int OBJECT_FIELD_NUMBER = 1; - private org.vdaas.vald.api.v1.payload.Object.Blob object_; - /** - *
-     * The binary object to be upserted.
-     * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - * @return Whether the object field is set. - */ - @java.lang.Override - public boolean hasObject() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The binary object to be upserted.
-     * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - * @return The object. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.Blob getObject() { - return object_ == null ? org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance() : object_; - } - /** - *
-     * The binary object to be upserted.
-     * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder getObjectOrBuilder() { - return object_ == null ? org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance() : object_; - } - - public static final int CONFIG_FIELD_NUMBER = 2; - private org.vdaas.vald.api.v1.payload.Upsert.Config config_; - /** - *
-     * The configuration of the upsert request.
-     * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * The configuration of the upsert request.
-     * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - * @return The config. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.Config getConfig() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Upsert.Config.getDefaultInstance() : config_; - } - /** - *
-     * The configuration of the upsert request.
-     * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.ConfigOrBuilder getConfigOrBuilder() { - return config_ == null ? org.vdaas.vald.api.v1.payload.Upsert.Config.getDefaultInstance() : config_; - } - - public static final int VECTORIZER_FIELD_NUMBER = 3; - private org.vdaas.vald.api.v1.payload.Filter.Target vectorizer_; - /** - *
-     * Filter target.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return Whether the vectorizer field is set. - */ - @java.lang.Override - public boolean hasVectorizer() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Filter target.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return The vectorizer. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Target getVectorizer() { - return vectorizer_ == null ? org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance() : vectorizer_; - } - /** - *
-     * Filter target.
-     * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder getVectorizerOrBuilder() { - return vectorizer_ == null ? org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance() : vectorizer_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getObject()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getVectorizer()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getObject()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getVectorizer()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest other = (org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest) obj; - - if (hasObject() != other.hasObject()) return false; - if (hasObject()) { - if (!getObject() - .equals(other.getObject())) return false; - } - if (hasConfig() != other.hasConfig()) return false; - if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; - } - if (hasVectorizer() != other.hasVectorizer()) return false; - if (hasVectorizer()) { - if (!getVectorizer() - .equals(other.getVectorizer())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasObject()) { - hash = (37 * hash) + OBJECT_FIELD_NUMBER; - hash = (53 * hash) + getObject().hashCode(); - } - if (hasConfig()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - } - if (hasVectorizer()) { - hash = (37 * hash) + VECTORIZER_FIELD_NUMBER; - hash = (53 * hash) + getVectorizer().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest 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 org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the upsert binary object request.
-     * 
- * - * Protobuf type {@code payload.v1.Upsert.ObjectRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Upsert.ObjectRequest) - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_ObjectRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_ObjectRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.class, org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getObjectFieldBuilder(); - getConfigFieldBuilder(); - getVectorizerFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - object_ = null; - if (objectBuilder_ != null) { - objectBuilder_.dispose(); - objectBuilder_ = null; - } - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - vectorizer_ = null; - if (vectorizerBuilder_ != null) { - vectorizerBuilder_.dispose(); - vectorizerBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_ObjectRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest build() { - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest result = new org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.object_ = objectBuilder_ == null - ? object_ - : objectBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.vectorizer_ = vectorizerBuilder_ == null - ? vectorizer_ - : vectorizerBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.getDefaultInstance()) return this; - if (other.hasObject()) { - mergeObject(other.getObject()); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - if (other.hasVectorizer()) { - mergeVectorizer(other.getVectorizer()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getObjectFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getVectorizerFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private org.vdaas.vald.api.v1.payload.Object.Blob object_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Blob, org.vdaas.vald.api.v1.payload.Object.Blob.Builder, org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder> objectBuilder_; - /** - *
-       * The binary object to be upserted.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - * @return Whether the object field is set. - */ - public boolean hasObject() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * The binary object to be upserted.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - * @return The object. - */ - public org.vdaas.vald.api.v1.payload.Object.Blob getObject() { - if (objectBuilder_ == null) { - return object_ == null ? org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance() : object_; - } else { - return objectBuilder_.getMessage(); - } - } - /** - *
-       * The binary object to be upserted.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - public Builder setObject(org.vdaas.vald.api.v1.payload.Object.Blob value) { - if (objectBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - object_ = value; - } else { - objectBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The binary object to be upserted.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - public Builder setObject( - org.vdaas.vald.api.v1.payload.Object.Blob.Builder builderForValue) { - if (objectBuilder_ == null) { - object_ = builderForValue.build(); - } else { - objectBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The binary object to be upserted.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - public Builder mergeObject(org.vdaas.vald.api.v1.payload.Object.Blob value) { - if (objectBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - object_ != null && - object_ != org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance()) { - getObjectBuilder().mergeFrom(value); - } else { - object_ = value; - } - } else { - objectBuilder_.mergeFrom(value); - } - if (object_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - *
-       * The binary object to be upserted.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - public Builder clearObject() { - bitField0_ = (bitField0_ & ~0x00000001); - object_ = null; - if (objectBuilder_ != null) { - objectBuilder_.dispose(); - objectBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The binary object to be upserted.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - public org.vdaas.vald.api.v1.payload.Object.Blob.Builder getObjectBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getObjectFieldBuilder().getBuilder(); - } - /** - *
-       * The binary object to be upserted.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - public org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder getObjectOrBuilder() { - if (objectBuilder_ != null) { - return objectBuilder_.getMessageOrBuilder(); - } else { - return object_ == null ? - org.vdaas.vald.api.v1.payload.Object.Blob.getDefaultInstance() : object_; - } - } - /** - *
-       * The binary object to be upserted.
-       * 
- * - * .payload.v1.Object.Blob object = 1 [json_name = "object"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Blob, org.vdaas.vald.api.v1.payload.Object.Blob.Builder, org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder> - getObjectFieldBuilder() { - if (objectBuilder_ == null) { - objectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Object.Blob, org.vdaas.vald.api.v1.payload.Object.Blob.Builder, org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder>( - getObject(), - getParentForChildren(), - isClean()); - object_ = null; - } - return objectBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Upsert.Config config_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Upsert.Config, org.vdaas.vald.api.v1.payload.Upsert.Config.Builder, org.vdaas.vald.api.v1.payload.Upsert.ConfigOrBuilder> configBuilder_; - /** - *
-       * The configuration of the upsert request.
-       * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * The configuration of the upsert request.
-       * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - * @return The config. - */ - public org.vdaas.vald.api.v1.payload.Upsert.Config getConfig() { - if (configBuilder_ == null) { - return config_ == null ? org.vdaas.vald.api.v1.payload.Upsert.Config.getDefaultInstance() : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - *
-       * The configuration of the upsert request.
-       * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig(org.vdaas.vald.api.v1.payload.Upsert.Config value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - } else { - configBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the upsert request.
-       * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - */ - public Builder setConfig( - org.vdaas.vald.api.v1.payload.Upsert.Config.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The configuration of the upsert request.
-       * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - */ - public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Upsert.Config value) { - if (configBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - config_ != null && - config_ != org.vdaas.vald.api.v1.payload.Upsert.Config.getDefaultInstance()) { - getConfigBuilder().mergeFrom(value); - } else { - config_ = value; - } - } else { - configBuilder_.mergeFrom(value); - } - if (config_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - *
-       * The configuration of the upsert request.
-       * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - */ - public Builder clearConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The configuration of the upsert request.
-       * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Upsert.Config.Builder getConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - *
-       * The configuration of the upsert request.
-       * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - */ - public org.vdaas.vald.api.v1.payload.Upsert.ConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null ? - org.vdaas.vald.api.v1.payload.Upsert.Config.getDefaultInstance() : config_; - } - } - /** - *
-       * The configuration of the upsert request.
-       * 
- * - * .payload.v1.Upsert.Config config = 2 [json_name = "config"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Upsert.Config, org.vdaas.vald.api.v1.payload.Upsert.Config.Builder, org.vdaas.vald.api.v1.payload.Upsert.ConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Upsert.Config, org.vdaas.vald.api.v1.payload.Upsert.Config.Builder, org.vdaas.vald.api.v1.payload.Upsert.ConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); - config_ = null; - } - return configBuilder_; - } - - private org.vdaas.vald.api.v1.payload.Filter.Target vectorizer_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Target, org.vdaas.vald.api.v1.payload.Filter.Target.Builder, org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder> vectorizerBuilder_; - /** - *
-       * Filter target.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return Whether the vectorizer field is set. - */ - public boolean hasVectorizer() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * Filter target.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - * @return The vectorizer. - */ - public org.vdaas.vald.api.v1.payload.Filter.Target getVectorizer() { - if (vectorizerBuilder_ == null) { - return vectorizer_ == null ? org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance() : vectorizer_; - } else { - return vectorizerBuilder_.getMessage(); - } - } - /** - *
-       * Filter target.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public Builder setVectorizer(org.vdaas.vald.api.v1.payload.Filter.Target value) { - if (vectorizerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - vectorizer_ = value; - } else { - vectorizerBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Filter target.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public Builder setVectorizer( - org.vdaas.vald.api.v1.payload.Filter.Target.Builder builderForValue) { - if (vectorizerBuilder_ == null) { - vectorizer_ = builderForValue.build(); - } else { - vectorizerBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Filter target.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public Builder mergeVectorizer(org.vdaas.vald.api.v1.payload.Filter.Target value) { - if (vectorizerBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - vectorizer_ != null && - vectorizer_ != org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance()) { - getVectorizerBuilder().mergeFrom(value); - } else { - vectorizer_ = value; - } - } else { - vectorizerBuilder_.mergeFrom(value); - } - if (vectorizer_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - *
-       * Filter target.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public Builder clearVectorizer() { - bitField0_ = (bitField0_ & ~0x00000004); - vectorizer_ = null; - if (vectorizerBuilder_ != null) { - vectorizerBuilder_.dispose(); - vectorizerBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Filter target.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.Target.Builder getVectorizerBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getVectorizerFieldBuilder().getBuilder(); - } - /** - *
-       * Filter target.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder getVectorizerOrBuilder() { - if (vectorizerBuilder_ != null) { - return vectorizerBuilder_.getMessageOrBuilder(); - } else { - return vectorizer_ == null ? - org.vdaas.vald.api.v1.payload.Filter.Target.getDefaultInstance() : vectorizer_; - } - } - /** - *
-       * Filter target.
-       * 
- * - * .payload.v1.Filter.Target vectorizer = 3 [json_name = "vectorizer"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Target, org.vdaas.vald.api.v1.payload.Filter.Target.Builder, org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder> - getVectorizerFieldBuilder() { - if (vectorizerBuilder_ == null) { - vectorizerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Target, org.vdaas.vald.api.v1.payload.Filter.Target.Builder, org.vdaas.vald.api.v1.payload.Filter.TargetOrBuilder>( - getVectorizer(), - getParentForChildren(), - isClean()); - vectorizer_ = null; - } - return vectorizerBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Upsert.ObjectRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Upsert.ObjectRequest) - private static final org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MultiObjectRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Upsert.MultiObjectRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represent the multiple upsert object request content.
-     * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsList(); - /** - *
-     * Represent the multiple upsert object request content.
-     * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest getRequests(int index); - /** - *
-     * Represent the multiple upsert object request content.
-     * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - int getRequestsCount(); - /** - *
-     * Represent the multiple upsert object request content.
-     * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-     * Represent the multiple upsert object request content.
-     * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequestOrBuilder getRequestsOrBuilder( - int index); - } - /** - *
-   * Represent the multiple upsert binary object request.
-   * 
- * - * Protobuf type {@code payload.v1.Upsert.MultiObjectRequest} - */ - public static final class MultiObjectRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Upsert.MultiObjectRequest) - MultiObjectRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MultiObjectRequest.newBuilder() to construct. - private MultiObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MultiObjectRequest() { - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MultiObjectRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_MultiObjectRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_MultiObjectRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest.class, org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest.Builder.class); - } - - public static final int REQUESTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List requests_; - /** - *
-     * Represent the multiple upsert object request content.
-     * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List getRequestsList() { - return requests_; - } - /** - *
-     * Represent the multiple upsert object request content.
-     * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - *
-     * Represent the multiple upsert object request content.
-     * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - *
-     * Represent the multiple upsert object request content.
-     * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest getRequests(int index) { - return requests_.get(index); - } - /** - *
-     * Represent the multiple upsert object request content.
-     * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.ObjectRequestOrBuilder getRequestsOrBuilder( - int index) { - return requests_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(1, requests_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest other = (org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest) obj; - - if (!getRequestsList() - .equals(other.getRequestsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest 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 org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the multiple upsert binary object request.
-     * 
- * - * Protobuf type {@code payload.v1.Upsert.MultiObjectRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Upsert.MultiObjectRequest) - org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_MultiObjectRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_MultiObjectRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest.class, org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_MultiObjectRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest build() { - org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest buildPartial() { - org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest result = new org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest result) { - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest other) { - if (other == org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest.getDefaultInstance()) return this; - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest m = - input.readMessage( - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.parser(), - extensionRegistry); - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(m); - } else { - requestsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List requests_ = - java.util.Collections.emptyList(); - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest, org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.Builder, org.vdaas.vald.api.v1.payload.Upsert.ObjectRequestOrBuilder> requestsBuilder_; - - /** - *
-       * Represent the multiple upsert object request content.
-       * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public java.util.List getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - *
-       * Represent the multiple upsert object request content.
-       * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - *
-       * Represent the multiple upsert object request content.
-       * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - *
-       * Represent the multiple upsert object request content.
-       * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Represent the multiple upsert object request content.
-       * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder setRequests( - int index, org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple upsert object request content.
-       * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests(org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Represent the multiple upsert object request content.
-       * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Represent the multiple upsert object request content.
-       * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple upsert object request content.
-       * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addRequests( - int index, org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Represent the multiple upsert object request content.
-       * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder addAllRequests( - java.lang.Iterable values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Represent the multiple upsert object request content.
-       * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - *
-       * Represent the multiple upsert object request content.
-       * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Represent the multiple upsert object request content.
-       * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - *
-       * Represent the multiple upsert object request content.
-       * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Upsert.ObjectRequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Represent the multiple upsert object request content.
-       * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - *
-       * Represent the multiple upsert object request content.
-       * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.getDefaultInstance()); - } - /** - *
-       * Represent the multiple upsert object request content.
-       * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.getDefaultInstance()); - } - /** - *
-       * Represent the multiple upsert object request content.
-       * 
- * - * repeated .payload.v1.Upsert.ObjectRequest requests = 1 [json_name = "requests"]; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest, org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.Builder, org.vdaas.vald.api.v1.payload.Upsert.ObjectRequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest, org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.Builder, org.vdaas.vald.api.v1.payload.Upsert.ObjectRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - requests_ = null; - } - return requestsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Upsert.MultiObjectRequest) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Upsert.MultiObjectRequest) - private static final org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest(); - } - - public static org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MultiObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Upsert.Config) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A flag to skip exist check during upsert operation.
-     * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @return The skipStrictExistCheck. - */ - boolean getSkipStrictExistCheck(); - - /** - *
-     * Filter configuration.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return Whether the filters field is set. - */ - boolean hasFilters(); - /** - *
-     * Filter configuration.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return The filters. - */ - org.vdaas.vald.api.v1.payload.Filter.Config getFilters(); - /** - *
-     * Filter configuration.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getFiltersOrBuilder(); - - /** - *
-     * Upsert timestamp.
-     * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return The timestamp. - */ - long getTimestamp(); - - /** - *
-     * A flag to disable balanced update (split remove -> insert operation)
-     * during update operation.
-     * 
- * - * bool disable_balanced_update = 4 [json_name = "disableBalancedUpdate"]; - * @return The disableBalancedUpdate. - */ - boolean getDisableBalancedUpdate(); - } - /** - *
-   * Represent the upsert configuration.
-   * 
- * - * Protobuf type {@code payload.v1.Upsert.Config} - */ - public static final class Config extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:payload.v1.Upsert.Config) - ConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use Config.newBuilder() to construct. - private Config(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Config() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Config(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_Config_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_Config_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Upsert.Config.class, org.vdaas.vald.api.v1.payload.Upsert.Config.Builder.class); - } - - private int bitField0_; - public static final int SKIP_STRICT_EXIST_CHECK_FIELD_NUMBER = 1; - private boolean skipStrictExistCheck_ = false; - /** - *
-     * A flag to skip exist check during upsert operation.
-     * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @return The skipStrictExistCheck. - */ - @java.lang.Override - public boolean getSkipStrictExistCheck() { - return skipStrictExistCheck_; - } - - public static final int FILTERS_FIELD_NUMBER = 2; - private org.vdaas.vald.api.v1.payload.Filter.Config filters_; - /** - *
-     * Filter configuration.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return Whether the filters field is set. - */ - @java.lang.Override - public boolean hasFilters() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Filter configuration.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return The filters. - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.Config getFilters() { - return filters_ == null ? org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : filters_; - } - /** - *
-     * Filter configuration.
-     * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getFiltersOrBuilder() { - return filters_ == null ? org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : filters_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 3; - private long timestamp_ = 0L; - /** - *
-     * Upsert timestamp.
-     * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - - public static final int DISABLE_BALANCED_UPDATE_FIELD_NUMBER = 4; - private boolean disableBalancedUpdate_ = false; - /** - *
-     * A flag to disable balanced update (split remove -> insert operation)
-     * during update operation.
-     * 
- * - * bool disable_balanced_update = 4 [json_name = "disableBalancedUpdate"]; - * @return The disableBalancedUpdate. - */ - @java.lang.Override - public boolean getDisableBalancedUpdate() { - return disableBalancedUpdate_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (skipStrictExistCheck_ != false) { - output.writeBool(1, skipStrictExistCheck_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getFilters()); - } - if (timestamp_ != 0L) { - output.writeInt64(3, timestamp_); - } - if (disableBalancedUpdate_ != false) { - output.writeBool(4, disableBalancedUpdate_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (skipStrictExistCheck_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, skipStrictExistCheck_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFilters()); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, timestamp_); - } - if (disableBalancedUpdate_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, disableBalancedUpdate_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Upsert.Config)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Upsert.Config other = (org.vdaas.vald.api.v1.payload.Upsert.Config) obj; - - if (getSkipStrictExistCheck() - != other.getSkipStrictExistCheck()) return false; - if (hasFilters() != other.hasFilters()) return false; - if (hasFilters()) { - if (!getFilters() - .equals(other.getFilters())) return false; - } - if (getTimestamp() - != other.getTimestamp()) return false; - if (getDisableBalancedUpdate() - != other.getDisableBalancedUpdate()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SKIP_STRICT_EXIST_CHECK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSkipStrictExistCheck()); - if (hasFilters()) { - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - } - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + DISABLE_BALANCED_UPDATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisableBalancedUpdate()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Upsert.Config parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Upsert.Config parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.Config parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Upsert.Config parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.Config parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Upsert.Config parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.Config parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Upsert.Config 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 org.vdaas.vald.api.v1.payload.Upsert.Config parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Upsert.Config parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert.Config parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Upsert.Config parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Upsert.Config prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Represent the upsert configuration.
-     * 
- * - * Protobuf type {@code payload.v1.Upsert.Config} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Upsert.Config) - org.vdaas.vald.api.v1.payload.Upsert.ConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_Config_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_Config_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Upsert.Config.class, org.vdaas.vald.api.v1.payload.Upsert.Config.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Upsert.Config.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getFiltersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - skipStrictExistCheck_ = false; - filters_ = null; - if (filtersBuilder_ != null) { - filtersBuilder_.dispose(); - filtersBuilder_ = null; - } - timestamp_ = 0L; - disableBalancedUpdate_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_Config_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.Config getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Upsert.Config.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.Config build() { - org.vdaas.vald.api.v1.payload.Upsert.Config result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.Config buildPartial() { - org.vdaas.vald.api.v1.payload.Upsert.Config result = new org.vdaas.vald.api.v1.payload.Upsert.Config(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.payload.Upsert.Config result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.skipStrictExistCheck_ = skipStrictExistCheck_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.filters_ = filtersBuilder_ == null - ? filters_ - : filtersBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.timestamp_ = timestamp_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.disableBalancedUpdate_ = disableBalancedUpdate_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Upsert.Config) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Upsert.Config)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Upsert.Config other) { - if (other == org.vdaas.vald.api.v1.payload.Upsert.Config.getDefaultInstance()) return this; - if (other.getSkipStrictExistCheck() != false) { - setSkipStrictExistCheck(other.getSkipStrictExistCheck()); - } - if (other.hasFilters()) { - mergeFilters(other.getFilters()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getDisableBalancedUpdate() != false) { - setDisableBalancedUpdate(other.getDisableBalancedUpdate()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - skipStrictExistCheck_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getFiltersFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - timestamp_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - disableBalancedUpdate_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean skipStrictExistCheck_ ; - /** - *
-       * A flag to skip exist check during upsert operation.
-       * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @return The skipStrictExistCheck. - */ - @java.lang.Override - public boolean getSkipStrictExistCheck() { - return skipStrictExistCheck_; - } - /** - *
-       * A flag to skip exist check during upsert operation.
-       * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @param value The skipStrictExistCheck to set. - * @return This builder for chaining. - */ - public Builder setSkipStrictExistCheck(boolean value) { - - skipStrictExistCheck_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * A flag to skip exist check during upsert operation.
-       * 
- * - * bool skip_strict_exist_check = 1 [json_name = "skipStrictExistCheck"]; - * @return This builder for chaining. - */ - public Builder clearSkipStrictExistCheck() { - bitField0_ = (bitField0_ & ~0x00000001); - skipStrictExistCheck_ = false; - onChanged(); - return this; - } - - private org.vdaas.vald.api.v1.payload.Filter.Config filters_; - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Config, org.vdaas.vald.api.v1.payload.Filter.Config.Builder, org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder> filtersBuilder_; - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return Whether the filters field is set. - */ - public boolean hasFilters() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - * @return The filters. - */ - public org.vdaas.vald.api.v1.payload.Filter.Config getFilters() { - if (filtersBuilder_ == null) { - return filters_ == null ? org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : filters_; - } else { - return filtersBuilder_.getMessage(); - } - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public Builder setFilters(org.vdaas.vald.api.v1.payload.Filter.Config value) { - if (filtersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filters_ = value; - } else { - filtersBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public Builder setFilters( - org.vdaas.vald.api.v1.payload.Filter.Config.Builder builderForValue) { - if (filtersBuilder_ == null) { - filters_ = builderForValue.build(); - } else { - filtersBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public Builder mergeFilters(org.vdaas.vald.api.v1.payload.Filter.Config value) { - if (filtersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - filters_ != null && - filters_ != org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance()) { - getFiltersBuilder().mergeFrom(value); - } else { - filters_ = value; - } - } else { - filtersBuilder_.mergeFrom(value); - } - if (filters_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public Builder clearFilters() { - bitField0_ = (bitField0_ & ~0x00000002); - filters_ = null; - if (filtersBuilder_ != null) { - filtersBuilder_.dispose(); - filtersBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.Config.Builder getFiltersBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getFiltersFieldBuilder().getBuilder(); - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - public org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getFiltersOrBuilder() { - if (filtersBuilder_ != null) { - return filtersBuilder_.getMessageOrBuilder(); - } else { - return filters_ == null ? - org.vdaas.vald.api.v1.payload.Filter.Config.getDefaultInstance() : filters_; - } - } - /** - *
-       * Filter configuration.
-       * 
- * - * .payload.v1.Filter.Config filters = 2 [json_name = "filters"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Config, org.vdaas.vald.api.v1.payload.Filter.Config.Builder, org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder> - getFiltersFieldBuilder() { - if (filtersBuilder_ == null) { - filtersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.vdaas.vald.api.v1.payload.Filter.Config, org.vdaas.vald.api.v1.payload.Filter.Config.Builder, org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder>( - getFilters(), - getParentForChildren(), - isClean()); - filters_ = null; - } - return filtersBuilder_; - } - - private long timestamp_ ; - /** - *
-       * Upsert timestamp.
-       * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - /** - *
-       * Upsert timestamp.
-       * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Upsert timestamp.
-       * 
- * - * int64 timestamp = 3 [json_name = "timestamp"]; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000004); - timestamp_ = 0L; - onChanged(); - return this; - } - - private boolean disableBalancedUpdate_ ; - /** - *
-       * A flag to disable balanced update (split remove -> insert operation)
-       * during update operation.
-       * 
- * - * bool disable_balanced_update = 4 [json_name = "disableBalancedUpdate"]; - * @return The disableBalancedUpdate. - */ - @java.lang.Override - public boolean getDisableBalancedUpdate() { - return disableBalancedUpdate_; - } - /** - *
-       * A flag to disable balanced update (split remove -> insert operation)
-       * during update operation.
-       * 
- * - * bool disable_balanced_update = 4 [json_name = "disableBalancedUpdate"]; - * @param value The disableBalancedUpdate to set. - * @return This builder for chaining. - */ - public Builder setDisableBalancedUpdate(boolean value) { - - disableBalancedUpdate_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * A flag to disable balanced update (split remove -> insert operation)
-       * during update operation.
-       * 
- * - * bool disable_balanced_update = 4 [json_name = "disableBalancedUpdate"]; - * @return This builder for chaining. - */ - public Builder clearDisableBalancedUpdate() { - bitField0_ = (bitField0_ & ~0x00000008); - disableBalancedUpdate_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Upsert.Config) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Upsert.Config) - private static final org.vdaas.vald.api.v1.payload.Upsert.Config DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Upsert.Config(); - } - - public static org.vdaas.vald.api.v1.payload.Upsert.Config getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Config parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert.Config getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.payload.Upsert)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.payload.Upsert other = (org.vdaas.vald.api.v1.payload.Upsert) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.payload.Upsert parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Upsert parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Upsert parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.payload.Upsert parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Upsert 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 org.vdaas.vald.api.v1.payload.Upsert parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.payload.Upsert parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.payload.Upsert parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.payload.Upsert parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Upsert prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Upsert related messages.
-   * 
- * - * Protobuf type {@code payload.v1.Upsert} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:payload.v1.Upsert) - org.vdaas.vald.api.v1.payload.UpsertOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.payload.Upsert.class, org.vdaas.vald.api.v1.payload.Upsert.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.payload.Upsert.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Upsert_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.payload.Upsert.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert build() { - org.vdaas.vald.api.v1.payload.Upsert result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert buildPartial() { - org.vdaas.vald.api.v1.payload.Upsert result = new org.vdaas.vald.api.v1.payload.Upsert(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.payload.Upsert) { - return mergeFrom((org.vdaas.vald.api.v1.payload.Upsert)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Upsert other) { - if (other == org.vdaas.vald.api.v1.payload.Upsert.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:payload.v1.Upsert) - } - - // @@protoc_insertion_point(class_scope:payload.v1.Upsert) - private static final org.vdaas.vald.api.v1.payload.Upsert DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Upsert(); - } - - public static org.vdaas.vald.api.v1.payload.Upsert getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Upsert parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.payload.Upsert getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/UpsertOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/payload/UpsertOrBuilder.java deleted file mode 100644 index 97812c70..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/UpsertOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -public interface UpsertOrBuilder extends - // @@protoc_insertion_point(interface_extends:payload.v1.Upsert) - com.google.protobuf.MessageOrBuilder { -} diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/ValdPayload.java b/src/main/java/org/vdaas/vald/api/v1/payload/ValdPayload.java deleted file mode 100644 index 959dd47f..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/payload/ValdPayload.java +++ /dev/null @@ -1,1209 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/payload/payload.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.payload; - -public final class ValdPayload { - private ValdPayload() {} - 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_payload_v1_Search_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Search_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Search_Request_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Search_Request_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Search_MultiRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Search_MultiRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Search_IDRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Search_IDRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Search_MultiIDRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Search_MultiIDRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Search_ObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Search_ObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Search_MultiObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Search_MultiObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Search_Config_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Search_Config_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Search_Response_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Search_Response_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Search_Responses_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Search_Responses_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Search_StreamResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Search_StreamResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Filter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Filter_Target_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Filter_Target_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Filter_Config_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Filter_Config_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Insert_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Insert_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Insert_Request_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Insert_Request_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Insert_MultiRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Insert_MultiRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Insert_ObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Insert_ObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Insert_MultiObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Insert_MultiObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Insert_Config_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Insert_Config_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Update_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Update_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Update_Request_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Update_Request_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Update_MultiRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Update_MultiRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Update_ObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Update_ObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Update_MultiObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Update_MultiObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Update_Config_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Update_Config_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Upsert_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Upsert_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Upsert_Request_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Upsert_Request_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Upsert_MultiRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Upsert_MultiRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Upsert_ObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Upsert_ObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Upsert_MultiObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Upsert_MultiObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Upsert_Config_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Upsert_Config_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Remove_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Remove_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Remove_Request_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Remove_Request_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Remove_MultiRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Remove_MultiRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Remove_TimestampRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Remove_TimestampRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Remove_Timestamp_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Remove_Timestamp_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Remove_Config_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Remove_Config_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Flush_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Flush_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Flush_Request_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Flush_Request_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_VectorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_VectorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_Distance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_Distance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_StreamDistance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_StreamDistance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_ID_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_ID_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_IDs_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_IDs_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_Vector_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_Vector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_GetTimestampRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_GetTimestampRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_Timestamp_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_Timestamp_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_Vectors_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_Vectors_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_StreamVector_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_StreamVector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_ReshapeVector_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_ReshapeVector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_Blob_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_Blob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_StreamBlob_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_StreamBlob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_Location_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_Location_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_StreamLocation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_StreamLocation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_Locations_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_Locations_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_List_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_List_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_List_Request_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_List_Request_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Object_List_Response_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Object_List_Response_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Control_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Control_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Control_CreateIndexRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Control_CreateIndexRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Discoverer_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Discoverer_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Discoverer_Request_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Discoverer_Request_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_Index_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_Index_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_Index_Count_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_Index_Count_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_Index_UUID_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_Index_UUID_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_Index_UUID_Committed_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_Index_UUID_Committed_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_Index_UUID_Uncommitted_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_Index_UUID_Uncommitted_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_Pod_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_Pod_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_Node_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_Node_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_Service_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_Service_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_ServicePort_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_ServicePort_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_Labels_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_Labels_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_Labels_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_Labels_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_Annotations_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_Annotations_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_Annotations_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_Annotations_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_CPU_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_CPU_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_Memory_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_Memory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_Pods_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_Pods_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_Nodes_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_Nodes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_Services_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_Services_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Info_IPs_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Info_IPs_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Mirror_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Mirror_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Mirror_Target_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Mirror_Target_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Mirror_Targets_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Mirror_Targets_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_payload_v1_Empty_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_payload_v1_Empty_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\030v1/payload/payload.proto\022\npayload.v1\032\033" + - "buf/validate/validate.proto\032\036google/prot" + - "obuf/wrappers.proto\032\027google/rpc/status.p" + - "roto\"\240\013\n\006Search\032^\n\007Request\022 \n\006vector\030\001 \003" + - "(\002B\010\272H\005\222\001\002\010\002R\006vector\0221\n\006config\030\002 \001(\0132\031.p" + - "ayload.v1.Search.ConfigR\006config\032F\n\014Multi" + - "Request\0226\n\010requests\030\001 \003(\0132\032.payload.v1.S" + - "earch.RequestR\010requests\032N\n\tIDRequest\022\016\n\002" + - "id\030\001 \001(\tR\002id\0221\n\006config\030\002 \001(\0132\031.payload.v" + - "1.Search.ConfigR\006config\032J\n\016MultiIDReques" + - "t\0228\n\010requests\030\001 \003(\0132\034.payload.v1.Search." + - "IDRequestR\010requests\032\225\001\n\rObjectRequest\022\026\n" + - "\006object\030\001 \001(\014R\006object\0221\n\006config\030\002 \001(\0132\031." + - "payload.v1.Search.ConfigR\006config\0229\n\nvect" + - "orizer\030\003 \001(\0132\031.payload.v1.Filter.TargetR" + - "\nvectorizer\032R\n\022MultiObjectRequest\022<\n\010req" + - "uests\030\001 \003(\0132 .payload.v1.Search.ObjectRe" + - "questR\010requests\032\307\003\n\006Config\022\035\n\nrequest_id" + - "\030\001 \001(\tR\trequestId\022\031\n\003num\030\002 \001(\rB\007\272H\004*\002(\001R" + - "\003num\022\026\n\006radius\030\003 \001(\002R\006radius\022\030\n\007epsilon\030" + - "\004 \001(\002R\007epsilon\022\030\n\007timeout\030\005 \001(\003R\007timeout" + - "\022B\n\017ingress_filters\030\006 \001(\0132\031.payload.v1.F" + - "ilter.ConfigR\016ingressFilters\022@\n\016egress_f" + - "ilters\030\007 \001(\0132\031.payload.v1.Filter.ConfigR" + - "\regressFilters\022 \n\007min_num\030\010 \001(\rB\007\272H\004*\002(\000" + - "R\006minNum\022\\\n\025aggregation_algorithm\030\t \001(\0162" + - "\'.payload.v1.Search.AggregationAlgorithm" + - "R\024aggregationAlgorithm\0221\n\005ratio\030\n \001(\0132\033." + - "google.protobuf.FloatValueR\005ratio\032`\n\010Res" + - "ponse\022\035\n\nrequest_id\030\001 \001(\tR\trequestId\0225\n\007" + - "results\030\002 \003(\0132\033.payload.v1.Object.Distan" + - "ceR\007results\032F\n\tResponses\0229\n\tresponses\030\001 " + - "\003(\0132\033.payload.v1.Search.ResponseR\trespon" + - "ses\032\204\001\n\016StreamResponse\0229\n\010response\030\001 \001(\013" + - "2\033.payload.v1.Search.ResponseH\000R\010respons" + - "e\022,\n\006status\030\002 \001(\0132\022.google.rpc.StatusH\000R" + - "\006statusB\t\n\007payload\"k\n\024AggregationAlgorit" + - "hm\022\013\n\007Unknown\020\000\022\023\n\017ConcurrentQueue\020\001\022\r\n\t" + - "SortSlice\020\002\022\021\n\rSortPoolSlice\020\003\022\017\n\013Pairin" + - "gHeap\020\004\"y\n\006Filter\0320\n\006Target\022\022\n\004host\030\001 \001(" + - "\tR\004host\022\022\n\004port\030\002 \001(\rR\004port\032=\n\006Config\0223\n" + - "\007targets\030\001 \003(\0132\031.payload.v1.Filter.Targe" + - "tR\007targets\"\345\004\n\006Insert\032y\n\007Request\022;\n\006vect" + - "or\030\001 \001(\0132\031.payload.v1.Object.VectorB\010\272H\005" + - "\222\001\002\010\002R\006vector\0221\n\006config\030\002 \001(\0132\031.payload." + - "v1.Insert.ConfigR\006config\032F\n\014MultiRequest" + - "\0226\n\010requests\030\001 \003(\0132\032.payload.v1.Insert.R" + - "equestR\010requests\032\256\001\n\rObjectRequest\022/\n\006ob" + - "ject\030\001 \001(\0132\027.payload.v1.Object.BlobR\006obj" + - "ect\0221\n\006config\030\002 \001(\0132\031.payload.v1.Insert." + - "ConfigR\006config\0229\n\nvectorizer\030\003 \001(\0132\031.pay" + - "load.v1.Filter.TargetR\nvectorizer\032R\n\022Mul" + - "tiObjectRequest\022<\n\010requests\030\001 \003(\0132 .payl" + - "oad.v1.Insert.ObjectRequestR\010requests\032\222\001" + - "\n\006Config\0225\n\027skip_strict_exist_check\030\001 \001(" + - "\010R\024skipStrictExistCheck\0223\n\007filters\030\002 \001(\013" + - "2\031.payload.v1.Filter.ConfigR\007filters\022\034\n\t" + - "timestamp\030\003 \001(\003R\ttimestamp\"\235\005\n\006Update\032y\n" + - "\007Request\022;\n\006vector\030\001 \001(\0132\031.payload.v1.Ob" + - "ject.VectorB\010\272H\005\222\001\002\010\002R\006vector\0221\n\006config\030" + - "\002 \001(\0132\031.payload.v1.Update.ConfigR\006config" + - "\032F\n\014MultiRequest\0226\n\010requests\030\001 \003(\0132\032.pay" + - "load.v1.Update.RequestR\010requests\032\256\001\n\rObj" + - "ectRequest\022/\n\006object\030\001 \001(\0132\027.payload.v1." + - "Object.BlobR\006object\0221\n\006config\030\002 \001(\0132\031.pa" + - "yload.v1.Update.ConfigR\006config\0229\n\nvector" + - "izer\030\003 \001(\0132\031.payload.v1.Filter.TargetR\nv" + - "ectorizer\032R\n\022MultiObjectRequest\022<\n\010reque" + - "sts\030\001 \003(\0132 .payload.v1.Update.ObjectRequ" + - "estR\010requests\032\312\001\n\006Config\0225\n\027skip_strict_" + - "exist_check\030\001 \001(\010R\024skipStrictExistCheck\022" + - "3\n\007filters\030\002 \001(\0132\031.payload.v1.Filter.Con" + - "figR\007filters\022\034\n\ttimestamp\030\003 \001(\003R\ttimesta" + - "mp\0226\n\027disable_balanced_update\030\004 \001(\010R\025dis" + - "ableBalancedUpdate\"\235\005\n\006Upsert\032y\n\007Request" + - "\022;\n\006vector\030\001 \001(\0132\031.payload.v1.Object.Vec" + - "torB\010\272H\005\222\001\002\010\002R\006vector\0221\n\006config\030\002 \001(\0132\031." + - "payload.v1.Upsert.ConfigR\006config\032F\n\014Mult" + - "iRequest\0226\n\010requests\030\001 \003(\0132\032.payload.v1." + - "Upsert.RequestR\010requests\032\256\001\n\rObjectReque" + - "st\022/\n\006object\030\001 \001(\0132\027.payload.v1.Object.B" + - "lobR\006object\0221\n\006config\030\002 \001(\0132\031.payload.v1" + - ".Upsert.ConfigR\006config\0229\n\nvectorizer\030\003 \001" + - "(\0132\031.payload.v1.Filter.TargetR\nvectorize" + - "r\032R\n\022MultiObjectRequest\022<\n\010requests\030\001 \003(" + - "\0132 .payload.v1.Upsert.ObjectRequestR\010req" + - "uests\032\312\001\n\006Config\0225\n\027skip_strict_exist_ch" + - "eck\030\001 \001(\010R\024skipStrictExistCheck\0223\n\007filte" + - "rs\030\002 \001(\0132\031.payload.v1.Filter.ConfigR\007fil" + - "ters\022\034\n\ttimestamp\030\003 \001(\003R\ttimestamp\0226\n\027di" + - "sable_balanced_update\030\004 \001(\010R\025disableBala" + - "ncedUpdate\"\221\004\n\006Remove\032c\n\007Request\022%\n\002id\030\001" + - " \001(\0132\025.payload.v1.Object.IDR\002id\0221\n\006confi" + - "g\030\002 \001(\0132\031.payload.v1.Remove.ConfigR\006conf" + - "ig\032F\n\014MultiRequest\0226\n\010requests\030\001 \003(\0132\032.p" + - "ayload.v1.Remove.RequestR\010requests\032P\n\020Ti" + - "mestampRequest\022<\n\ntimestamps\030\001 \003(\0132\034.pay" + - "load.v1.Remove.TimestampR\ntimestamps\032\250\001\n" + - "\tTimestamp\022\034\n\ttimestamp\030\001 \001(\003R\ttimestamp" + - "\022A\n\010operator\030\002 \001(\0162%.payload.v1.Remove.T" + - "imestamp.OperatorR\010operator\":\n\010Operator\022" + - "\006\n\002Eq\020\000\022\006\n\002Ne\020\001\022\006\n\002Ge\020\002\022\006\n\002Gt\020\003\022\006\n\002Le\020\004\022" + - "\006\n\002Lt\020\005\032]\n\006Config\0225\n\027skip_strict_exist_c" + - "heck\030\001 \001(\010R\024skipStrictExistCheck\022\034\n\ttime" + - "stamp\030\003 \001(\003R\ttimestamp\"\022\n\005Flush\032\t\n\007Reque" + - "st\"\264\013\n\006Object\032u\n\rVectorRequest\022/\n\002id\030\001 \001" + - "(\0132\025.payload.v1.Object.IDB\010\272H\005\222\001\002\010\002R\002id\022" + - "3\n\007filters\030\002 \001(\0132\031.payload.v1.Filter.Con" + - "figR\007filters\0326\n\010Distance\022\016\n\002id\030\001 \001(\tR\002id" + - "\022\032\n\010distance\030\002 \001(\002R\010distance\032\204\001\n\016StreamD" + - "istance\0229\n\010distance\030\001 \001(\0132\033.payload.v1.O" + - "bject.DistanceH\000R\010distance\022,\n\006status\030\002 \001" + - "(\0132\022.google.rpc.StatusH\000R\006statusB\t\n\007payl" + - "oad\032\035\n\002ID\022\027\n\002id\030\001 \001(\tB\007\272H\004r\002\020\001R\002id\032\027\n\003ID" + - "s\022\020\n\003ids\030\001 \003(\tR\003ids\032a\n\006Vector\022\027\n\002id\030\001 \001(" + - "\tB\007\272H\004r\002\020\001R\002id\022 \n\006vector\030\002 \003(\002B\010\272H\005\222\001\002\010\002" + - "R\006vector\022\034\n\ttimestamp\030\003 \001(\003R\ttimestamp\032F" + - "\n\023GetTimestampRequest\022/\n\002id\030\001 \001(\0132\025.payl" + - "oad.v1.Object.IDB\010\272H\005\222\001\002\010\002R\002id\032B\n\tTimest" + - "amp\022\027\n\002id\030\001 \001(\tB\007\272H\004r\002\020\001R\002id\022\034\n\ttimestam" + - "p\030\002 \001(\003R\ttimestamp\032>\n\007Vectors\0223\n\007vectors" + - "\030\001 \003(\0132\031.payload.v1.Object.VectorR\007vecto" + - "rs\032|\n\014StreamVector\0223\n\006vector\030\001 \001(\0132\031.pay" + - "load.v1.Object.VectorH\000R\006vector\022,\n\006statu" + - "s\030\002 \001(\0132\022.google.rpc.StatusH\000R\006statusB\t\n" + - "\007payload\032=\n\rReshapeVector\022\026\n\006object\030\001 \001(" + - "\014R\006object\022\024\n\005shape\030\002 \003(\005R\005shape\0327\n\004Blob\022" + - "\027\n\002id\030\001 \001(\tB\007\272H\004r\002\020\001R\002id\022\026\n\006object\030\002 \001(\014" + - "R\006object\032t\n\nStreamBlob\022-\n\004blob\030\001 \001(\0132\027.p" + - "ayload.v1.Object.BlobH\000R\004blob\022,\n\006status\030" + - "\002 \001(\0132\022.google.rpc.StatusH\000R\006statusB\t\n\007p" + - "ayload\032D\n\010Location\022\022\n\004name\030\001 \001(\tR\004name\022\022" + - "\n\004uuid\030\002 \001(\tR\004uuid\022\020\n\003ips\030\003 \003(\tR\003ips\032\204\001\n" + - "\016StreamLocation\0229\n\010location\030\001 \001(\0132\033.payl" + - "oad.v1.Object.LocationH\000R\010location\022,\n\006st" + - "atus\030\002 \001(\0132\022.google.rpc.StatusH\000R\006status" + - "B\t\n\007payload\032F\n\tLocations\0229\n\tlocations\030\001 " + - "\003(\0132\033.payload.v1.Object.LocationR\tlocati" + - "ons\032\213\001\n\004List\032\t\n\007Request\032x\n\010Response\0223\n\006v" + - "ector\030\001 \001(\0132\031.payload.v1.Object.VectorH\000" + - "R\006vector\022,\n\006status\030\002 \001(\0132\022.google.rpc.St" + - "atusH\000R\006statusB\t\n\007payload\"E\n\007Control\032:\n\022" + - "CreateIndexRequest\022$\n\tpool_size\030\001 \001(\rB\007\272" + - "H\004*\002(\000R\010poolSize\"f\n\nDiscoverer\032X\n\007Reques" + - "t\022\033\n\004name\030\001 \001(\tB\007\272H\004r\002\020\001R\004name\022\034\n\tnamesp" + - "ace\030\002 \001(\tR\tnamespace\022\022\n\004node\030\003 \001(\tR\004node" + - "\"\214\r\n\004Info\032\312\001\n\005Index\032u\n\005Count\022\026\n\006stored\030\001" + - " \001(\rR\006stored\022 \n\013uncommitted\030\002 \001(\rR\013uncom" + - "mitted\022\032\n\010indexing\030\003 \001(\010R\010indexing\022\026\n\006sa" + - "ving\030\004 \001(\010R\006saving\032J\n\004UUID\032\037\n\tCommitted\022" + - "\022\n\004uuid\030\001 \001(\tR\004uuid\032!\n\013Uncommitted\022\022\n\004uu" + - "id\030\001 \001(\tR\004uuid\032\357\001\n\003Pod\022\031\n\010app_name\030\001 \001(\t" + - "R\007appName\022\022\n\004name\030\002 \001(\tR\004name\022\034\n\tnamespa" + - "ce\030\003 \001(\tR\tnamespace\022\027\n\002ip\030\004 \001(\tB\007\272H\004r\002x\001" + - "R\002ip\022&\n\003cpu\030\005 \001(\0132\024.payload.v1.Info.CPUR" + - "\003cpu\022/\n\006memory\030\006 \001(\0132\027.payload.v1.Info.M" + - "emoryR\006memory\022)\n\004node\030\007 \001(\0132\025.payload.v1" + - ".Info.NodeR\004node\032\350\001\n\004Node\022\022\n\004name\030\001 \001(\tR" + - "\004name\022#\n\rinternal_addr\030\002 \001(\tR\014internalAd" + - "dr\022#\n\rexternal_addr\030\003 \001(\tR\014externalAddr\022" + - "&\n\003cpu\030\004 \001(\0132\024.payload.v1.Info.CPUR\003cpu\022" + - "/\n\006memory\030\005 \001(\0132\027.payload.v1.Info.Memory" + - "R\006memory\022)\n\004Pods\030\006 \001(\0132\025.payload.v1.Info" + - ".PodsR\004Pods\032\202\002\n\007Service\022\022\n\004name\030\001 \001(\tR\004n" + - "ame\022\035\n\ncluster_ip\030\002 \001(\tR\tclusterIp\022\037\n\013cl" + - "uster_ips\030\003 \003(\tR\nclusterIps\0222\n\005ports\030\004 \003" + - "(\0132\034.payload.v1.Info.ServicePortR\005ports\022" + - "/\n\006labels\030\005 \001(\0132\027.payload.v1.Info.Labels" + - "R\006labels\022>\n\013annotations\030\006 \001(\0132\034.payload." + - "v1.Info.AnnotationsR\013annotations\0325\n\013Serv" + - "icePort\022\022\n\004name\030\001 \001(\tR\004name\022\022\n\004port\030\002 \001(" + - "\005R\004port\032\200\001\n\006Labels\022;\n\006labels\030\001 \003(\0132#.pay" + - "load.v1.Info.Labels.LabelsEntryR\006labels\032" + - "9\n\013LabelsEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005valu" + - "e\030\002 \001(\tR\005value:\0028\001\032\236\001\n\013Annotations\022O\n\013an" + - "notations\030\001 \003(\0132-.payload.v1.Info.Annota" + - "tions.AnnotationsEntryR\013annotations\032>\n\020A" + - "nnotationsEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005val" + - "ue\030\002 \001(\tR\005value:\0028\001\032K\n\003CPU\022\024\n\005limit\030\001 \001(" + - "\001R\005limit\022\030\n\007request\030\002 \001(\001R\007request\022\024\n\005us" + - "age\030\003 \001(\001R\005usage\032N\n\006Memory\022\024\n\005limit\030\001 \001(" + - "\001R\005limit\022\030\n\007request\030\002 \001(\001R\007request\022\024\n\005us" + - "age\030\003 \001(\001R\005usage\032:\n\004Pods\0222\n\004pods\030\001 \003(\0132\024" + - ".payload.v1.Info.PodB\010\272H\005\222\001\002\010\001R\004pods\032>\n\005" + - "Nodes\0225\n\005nodes\030\001 \003(\0132\025.payload.v1.Info.N" + - "odeB\010\272H\005\222\001\002\010\001R\005nodes\032J\n\010Services\022>\n\010serv" + - "ices\030\001 \003(\0132\030.payload.v1.Info.ServiceB\010\272H" + - "\005\222\001\002\010\001R\010services\032\025\n\003IPs\022\016\n\002ip\030\001 \003(\tR\002ip\"" + - "z\n\006Mirror\0320\n\006Target\022\022\n\004host\030\001 \001(\tR\004host\022" + - "\022\n\004port\030\002 \001(\rR\004port\032>\n\007Targets\0223\n\007target" + - "s\030\001 \003(\0132\031.payload.v1.Mirror.TargetR\007targ" + - "ets\"\007\n\005EmptyBd\n\035org.vdaas.vald.api.v1.pa" + - "yloadB\013ValdPayloadP\001Z*github.com/vdaas/v" + - "ald/apis/grpc/v1/payload\242\002\007Payloadb\006prot" + - "o3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_payload_v1_Search_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_payload_v1_Search_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Search_descriptor, - new java.lang.String[] { }); - internal_static_payload_v1_Search_Request_descriptor = - internal_static_payload_v1_Search_descriptor.getNestedTypes().get(0); - internal_static_payload_v1_Search_Request_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Search_Request_descriptor, - new java.lang.String[] { "Vector", "Config", }); - internal_static_payload_v1_Search_MultiRequest_descriptor = - internal_static_payload_v1_Search_descriptor.getNestedTypes().get(1); - internal_static_payload_v1_Search_MultiRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Search_MultiRequest_descriptor, - new java.lang.String[] { "Requests", }); - internal_static_payload_v1_Search_IDRequest_descriptor = - internal_static_payload_v1_Search_descriptor.getNestedTypes().get(2); - internal_static_payload_v1_Search_IDRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Search_IDRequest_descriptor, - new java.lang.String[] { "Id", "Config", }); - internal_static_payload_v1_Search_MultiIDRequest_descriptor = - internal_static_payload_v1_Search_descriptor.getNestedTypes().get(3); - internal_static_payload_v1_Search_MultiIDRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Search_MultiIDRequest_descriptor, - new java.lang.String[] { "Requests", }); - internal_static_payload_v1_Search_ObjectRequest_descriptor = - internal_static_payload_v1_Search_descriptor.getNestedTypes().get(4); - internal_static_payload_v1_Search_ObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Search_ObjectRequest_descriptor, - new java.lang.String[] { "Object", "Config", "Vectorizer", }); - internal_static_payload_v1_Search_MultiObjectRequest_descriptor = - internal_static_payload_v1_Search_descriptor.getNestedTypes().get(5); - internal_static_payload_v1_Search_MultiObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Search_MultiObjectRequest_descriptor, - new java.lang.String[] { "Requests", }); - internal_static_payload_v1_Search_Config_descriptor = - internal_static_payload_v1_Search_descriptor.getNestedTypes().get(6); - internal_static_payload_v1_Search_Config_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Search_Config_descriptor, - new java.lang.String[] { "RequestId", "Num", "Radius", "Epsilon", "Timeout", "IngressFilters", "EgressFilters", "MinNum", "AggregationAlgorithm", "Ratio", }); - internal_static_payload_v1_Search_Response_descriptor = - internal_static_payload_v1_Search_descriptor.getNestedTypes().get(7); - internal_static_payload_v1_Search_Response_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Search_Response_descriptor, - new java.lang.String[] { "RequestId", "Results", }); - internal_static_payload_v1_Search_Responses_descriptor = - internal_static_payload_v1_Search_descriptor.getNestedTypes().get(8); - internal_static_payload_v1_Search_Responses_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Search_Responses_descriptor, - new java.lang.String[] { "Responses", }); - internal_static_payload_v1_Search_StreamResponse_descriptor = - internal_static_payload_v1_Search_descriptor.getNestedTypes().get(9); - internal_static_payload_v1_Search_StreamResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Search_StreamResponse_descriptor, - new java.lang.String[] { "Response", "Status", "Payload", }); - internal_static_payload_v1_Filter_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_payload_v1_Filter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Filter_descriptor, - new java.lang.String[] { }); - internal_static_payload_v1_Filter_Target_descriptor = - internal_static_payload_v1_Filter_descriptor.getNestedTypes().get(0); - internal_static_payload_v1_Filter_Target_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Filter_Target_descriptor, - new java.lang.String[] { "Host", "Port", }); - internal_static_payload_v1_Filter_Config_descriptor = - internal_static_payload_v1_Filter_descriptor.getNestedTypes().get(1); - internal_static_payload_v1_Filter_Config_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Filter_Config_descriptor, - new java.lang.String[] { "Targets", }); - internal_static_payload_v1_Insert_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_payload_v1_Insert_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Insert_descriptor, - new java.lang.String[] { }); - internal_static_payload_v1_Insert_Request_descriptor = - internal_static_payload_v1_Insert_descriptor.getNestedTypes().get(0); - internal_static_payload_v1_Insert_Request_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Insert_Request_descriptor, - new java.lang.String[] { "Vector", "Config", }); - internal_static_payload_v1_Insert_MultiRequest_descriptor = - internal_static_payload_v1_Insert_descriptor.getNestedTypes().get(1); - internal_static_payload_v1_Insert_MultiRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Insert_MultiRequest_descriptor, - new java.lang.String[] { "Requests", }); - internal_static_payload_v1_Insert_ObjectRequest_descriptor = - internal_static_payload_v1_Insert_descriptor.getNestedTypes().get(2); - internal_static_payload_v1_Insert_ObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Insert_ObjectRequest_descriptor, - new java.lang.String[] { "Object", "Config", "Vectorizer", }); - internal_static_payload_v1_Insert_MultiObjectRequest_descriptor = - internal_static_payload_v1_Insert_descriptor.getNestedTypes().get(3); - internal_static_payload_v1_Insert_MultiObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Insert_MultiObjectRequest_descriptor, - new java.lang.String[] { "Requests", }); - internal_static_payload_v1_Insert_Config_descriptor = - internal_static_payload_v1_Insert_descriptor.getNestedTypes().get(4); - internal_static_payload_v1_Insert_Config_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Insert_Config_descriptor, - new java.lang.String[] { "SkipStrictExistCheck", "Filters", "Timestamp", }); - internal_static_payload_v1_Update_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_payload_v1_Update_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Update_descriptor, - new java.lang.String[] { }); - internal_static_payload_v1_Update_Request_descriptor = - internal_static_payload_v1_Update_descriptor.getNestedTypes().get(0); - internal_static_payload_v1_Update_Request_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Update_Request_descriptor, - new java.lang.String[] { "Vector", "Config", }); - internal_static_payload_v1_Update_MultiRequest_descriptor = - internal_static_payload_v1_Update_descriptor.getNestedTypes().get(1); - internal_static_payload_v1_Update_MultiRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Update_MultiRequest_descriptor, - new java.lang.String[] { "Requests", }); - internal_static_payload_v1_Update_ObjectRequest_descriptor = - internal_static_payload_v1_Update_descriptor.getNestedTypes().get(2); - internal_static_payload_v1_Update_ObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Update_ObjectRequest_descriptor, - new java.lang.String[] { "Object", "Config", "Vectorizer", }); - internal_static_payload_v1_Update_MultiObjectRequest_descriptor = - internal_static_payload_v1_Update_descriptor.getNestedTypes().get(3); - internal_static_payload_v1_Update_MultiObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Update_MultiObjectRequest_descriptor, - new java.lang.String[] { "Requests", }); - internal_static_payload_v1_Update_Config_descriptor = - internal_static_payload_v1_Update_descriptor.getNestedTypes().get(4); - internal_static_payload_v1_Update_Config_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Update_Config_descriptor, - new java.lang.String[] { "SkipStrictExistCheck", "Filters", "Timestamp", "DisableBalancedUpdate", }); - internal_static_payload_v1_Upsert_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_payload_v1_Upsert_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Upsert_descriptor, - new java.lang.String[] { }); - internal_static_payload_v1_Upsert_Request_descriptor = - internal_static_payload_v1_Upsert_descriptor.getNestedTypes().get(0); - internal_static_payload_v1_Upsert_Request_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Upsert_Request_descriptor, - new java.lang.String[] { "Vector", "Config", }); - internal_static_payload_v1_Upsert_MultiRequest_descriptor = - internal_static_payload_v1_Upsert_descriptor.getNestedTypes().get(1); - internal_static_payload_v1_Upsert_MultiRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Upsert_MultiRequest_descriptor, - new java.lang.String[] { "Requests", }); - internal_static_payload_v1_Upsert_ObjectRequest_descriptor = - internal_static_payload_v1_Upsert_descriptor.getNestedTypes().get(2); - internal_static_payload_v1_Upsert_ObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Upsert_ObjectRequest_descriptor, - new java.lang.String[] { "Object", "Config", "Vectorizer", }); - internal_static_payload_v1_Upsert_MultiObjectRequest_descriptor = - internal_static_payload_v1_Upsert_descriptor.getNestedTypes().get(3); - internal_static_payload_v1_Upsert_MultiObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Upsert_MultiObjectRequest_descriptor, - new java.lang.String[] { "Requests", }); - internal_static_payload_v1_Upsert_Config_descriptor = - internal_static_payload_v1_Upsert_descriptor.getNestedTypes().get(4); - internal_static_payload_v1_Upsert_Config_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Upsert_Config_descriptor, - new java.lang.String[] { "SkipStrictExistCheck", "Filters", "Timestamp", "DisableBalancedUpdate", }); - internal_static_payload_v1_Remove_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_payload_v1_Remove_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Remove_descriptor, - new java.lang.String[] { }); - internal_static_payload_v1_Remove_Request_descriptor = - internal_static_payload_v1_Remove_descriptor.getNestedTypes().get(0); - internal_static_payload_v1_Remove_Request_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Remove_Request_descriptor, - new java.lang.String[] { "Id", "Config", }); - internal_static_payload_v1_Remove_MultiRequest_descriptor = - internal_static_payload_v1_Remove_descriptor.getNestedTypes().get(1); - internal_static_payload_v1_Remove_MultiRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Remove_MultiRequest_descriptor, - new java.lang.String[] { "Requests", }); - internal_static_payload_v1_Remove_TimestampRequest_descriptor = - internal_static_payload_v1_Remove_descriptor.getNestedTypes().get(2); - internal_static_payload_v1_Remove_TimestampRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Remove_TimestampRequest_descriptor, - new java.lang.String[] { "Timestamps", }); - internal_static_payload_v1_Remove_Timestamp_descriptor = - internal_static_payload_v1_Remove_descriptor.getNestedTypes().get(3); - internal_static_payload_v1_Remove_Timestamp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Remove_Timestamp_descriptor, - new java.lang.String[] { "Timestamp", "Operator", }); - internal_static_payload_v1_Remove_Config_descriptor = - internal_static_payload_v1_Remove_descriptor.getNestedTypes().get(4); - internal_static_payload_v1_Remove_Config_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Remove_Config_descriptor, - new java.lang.String[] { "SkipStrictExistCheck", "Timestamp", }); - internal_static_payload_v1_Flush_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_payload_v1_Flush_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Flush_descriptor, - new java.lang.String[] { }); - internal_static_payload_v1_Flush_Request_descriptor = - internal_static_payload_v1_Flush_descriptor.getNestedTypes().get(0); - internal_static_payload_v1_Flush_Request_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Flush_Request_descriptor, - new java.lang.String[] { }); - internal_static_payload_v1_Object_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_payload_v1_Object_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_descriptor, - new java.lang.String[] { }); - internal_static_payload_v1_Object_VectorRequest_descriptor = - internal_static_payload_v1_Object_descriptor.getNestedTypes().get(0); - internal_static_payload_v1_Object_VectorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_VectorRequest_descriptor, - new java.lang.String[] { "Id", "Filters", }); - internal_static_payload_v1_Object_Distance_descriptor = - internal_static_payload_v1_Object_descriptor.getNestedTypes().get(1); - internal_static_payload_v1_Object_Distance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_Distance_descriptor, - new java.lang.String[] { "Id", "Distance", }); - internal_static_payload_v1_Object_StreamDistance_descriptor = - internal_static_payload_v1_Object_descriptor.getNestedTypes().get(2); - internal_static_payload_v1_Object_StreamDistance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_StreamDistance_descriptor, - new java.lang.String[] { "Distance", "Status", "Payload", }); - internal_static_payload_v1_Object_ID_descriptor = - internal_static_payload_v1_Object_descriptor.getNestedTypes().get(3); - internal_static_payload_v1_Object_ID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_ID_descriptor, - new java.lang.String[] { "Id", }); - internal_static_payload_v1_Object_IDs_descriptor = - internal_static_payload_v1_Object_descriptor.getNestedTypes().get(4); - internal_static_payload_v1_Object_IDs_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_IDs_descriptor, - new java.lang.String[] { "Ids", }); - internal_static_payload_v1_Object_Vector_descriptor = - internal_static_payload_v1_Object_descriptor.getNestedTypes().get(5); - internal_static_payload_v1_Object_Vector_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_Vector_descriptor, - new java.lang.String[] { "Id", "Vector", "Timestamp", }); - internal_static_payload_v1_Object_GetTimestampRequest_descriptor = - internal_static_payload_v1_Object_descriptor.getNestedTypes().get(6); - internal_static_payload_v1_Object_GetTimestampRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_GetTimestampRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_payload_v1_Object_Timestamp_descriptor = - internal_static_payload_v1_Object_descriptor.getNestedTypes().get(7); - internal_static_payload_v1_Object_Timestamp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_Timestamp_descriptor, - new java.lang.String[] { "Id", "Timestamp", }); - internal_static_payload_v1_Object_Vectors_descriptor = - internal_static_payload_v1_Object_descriptor.getNestedTypes().get(8); - internal_static_payload_v1_Object_Vectors_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_Vectors_descriptor, - new java.lang.String[] { "Vectors", }); - internal_static_payload_v1_Object_StreamVector_descriptor = - internal_static_payload_v1_Object_descriptor.getNestedTypes().get(9); - internal_static_payload_v1_Object_StreamVector_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_StreamVector_descriptor, - new java.lang.String[] { "Vector", "Status", "Payload", }); - internal_static_payload_v1_Object_ReshapeVector_descriptor = - internal_static_payload_v1_Object_descriptor.getNestedTypes().get(10); - internal_static_payload_v1_Object_ReshapeVector_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_ReshapeVector_descriptor, - new java.lang.String[] { "Object", "Shape", }); - internal_static_payload_v1_Object_Blob_descriptor = - internal_static_payload_v1_Object_descriptor.getNestedTypes().get(11); - internal_static_payload_v1_Object_Blob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_Blob_descriptor, - new java.lang.String[] { "Id", "Object", }); - internal_static_payload_v1_Object_StreamBlob_descriptor = - internal_static_payload_v1_Object_descriptor.getNestedTypes().get(12); - internal_static_payload_v1_Object_StreamBlob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_StreamBlob_descriptor, - new java.lang.String[] { "Blob", "Status", "Payload", }); - internal_static_payload_v1_Object_Location_descriptor = - internal_static_payload_v1_Object_descriptor.getNestedTypes().get(13); - internal_static_payload_v1_Object_Location_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_Location_descriptor, - new java.lang.String[] { "Name", "Uuid", "Ips", }); - internal_static_payload_v1_Object_StreamLocation_descriptor = - internal_static_payload_v1_Object_descriptor.getNestedTypes().get(14); - internal_static_payload_v1_Object_StreamLocation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_StreamLocation_descriptor, - new java.lang.String[] { "Location", "Status", "Payload", }); - internal_static_payload_v1_Object_Locations_descriptor = - internal_static_payload_v1_Object_descriptor.getNestedTypes().get(15); - internal_static_payload_v1_Object_Locations_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_Locations_descriptor, - new java.lang.String[] { "Locations", }); - internal_static_payload_v1_Object_List_descriptor = - internal_static_payload_v1_Object_descriptor.getNestedTypes().get(16); - internal_static_payload_v1_Object_List_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_List_descriptor, - new java.lang.String[] { }); - internal_static_payload_v1_Object_List_Request_descriptor = - internal_static_payload_v1_Object_List_descriptor.getNestedTypes().get(0); - internal_static_payload_v1_Object_List_Request_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_List_Request_descriptor, - new java.lang.String[] { }); - internal_static_payload_v1_Object_List_Response_descriptor = - internal_static_payload_v1_Object_List_descriptor.getNestedTypes().get(1); - internal_static_payload_v1_Object_List_Response_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Object_List_Response_descriptor, - new java.lang.String[] { "Vector", "Status", "Payload", }); - internal_static_payload_v1_Control_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_payload_v1_Control_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Control_descriptor, - new java.lang.String[] { }); - internal_static_payload_v1_Control_CreateIndexRequest_descriptor = - internal_static_payload_v1_Control_descriptor.getNestedTypes().get(0); - internal_static_payload_v1_Control_CreateIndexRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Control_CreateIndexRequest_descriptor, - new java.lang.String[] { "PoolSize", }); - internal_static_payload_v1_Discoverer_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_payload_v1_Discoverer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Discoverer_descriptor, - new java.lang.String[] { }); - internal_static_payload_v1_Discoverer_Request_descriptor = - internal_static_payload_v1_Discoverer_descriptor.getNestedTypes().get(0); - internal_static_payload_v1_Discoverer_Request_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Discoverer_Request_descriptor, - new java.lang.String[] { "Name", "Namespace", "Node", }); - internal_static_payload_v1_Info_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_payload_v1_Info_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_descriptor, - new java.lang.String[] { }); - internal_static_payload_v1_Info_Index_descriptor = - internal_static_payload_v1_Info_descriptor.getNestedTypes().get(0); - internal_static_payload_v1_Info_Index_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_Index_descriptor, - new java.lang.String[] { }); - internal_static_payload_v1_Info_Index_Count_descriptor = - internal_static_payload_v1_Info_Index_descriptor.getNestedTypes().get(0); - internal_static_payload_v1_Info_Index_Count_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_Index_Count_descriptor, - new java.lang.String[] { "Stored", "Uncommitted", "Indexing", "Saving", }); - internal_static_payload_v1_Info_Index_UUID_descriptor = - internal_static_payload_v1_Info_Index_descriptor.getNestedTypes().get(1); - internal_static_payload_v1_Info_Index_UUID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_Index_UUID_descriptor, - new java.lang.String[] { }); - internal_static_payload_v1_Info_Index_UUID_Committed_descriptor = - internal_static_payload_v1_Info_Index_UUID_descriptor.getNestedTypes().get(0); - internal_static_payload_v1_Info_Index_UUID_Committed_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_Index_UUID_Committed_descriptor, - new java.lang.String[] { "Uuid", }); - internal_static_payload_v1_Info_Index_UUID_Uncommitted_descriptor = - internal_static_payload_v1_Info_Index_UUID_descriptor.getNestedTypes().get(1); - internal_static_payload_v1_Info_Index_UUID_Uncommitted_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_Index_UUID_Uncommitted_descriptor, - new java.lang.String[] { "Uuid", }); - internal_static_payload_v1_Info_Pod_descriptor = - internal_static_payload_v1_Info_descriptor.getNestedTypes().get(1); - internal_static_payload_v1_Info_Pod_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_Pod_descriptor, - new java.lang.String[] { "AppName", "Name", "Namespace", "Ip", "Cpu", "Memory", "Node", }); - internal_static_payload_v1_Info_Node_descriptor = - internal_static_payload_v1_Info_descriptor.getNestedTypes().get(2); - internal_static_payload_v1_Info_Node_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_Node_descriptor, - new java.lang.String[] { "Name", "InternalAddr", "ExternalAddr", "Cpu", "Memory", "Pods", }); - internal_static_payload_v1_Info_Service_descriptor = - internal_static_payload_v1_Info_descriptor.getNestedTypes().get(3); - internal_static_payload_v1_Info_Service_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_Service_descriptor, - new java.lang.String[] { "Name", "ClusterIp", "ClusterIps", "Ports", "Labels", "Annotations", }); - internal_static_payload_v1_Info_ServicePort_descriptor = - internal_static_payload_v1_Info_descriptor.getNestedTypes().get(4); - internal_static_payload_v1_Info_ServicePort_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_ServicePort_descriptor, - new java.lang.String[] { "Name", "Port", }); - internal_static_payload_v1_Info_Labels_descriptor = - internal_static_payload_v1_Info_descriptor.getNestedTypes().get(5); - internal_static_payload_v1_Info_Labels_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_Labels_descriptor, - new java.lang.String[] { "Labels", }); - internal_static_payload_v1_Info_Labels_LabelsEntry_descriptor = - internal_static_payload_v1_Info_Labels_descriptor.getNestedTypes().get(0); - internal_static_payload_v1_Info_Labels_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_Labels_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_payload_v1_Info_Annotations_descriptor = - internal_static_payload_v1_Info_descriptor.getNestedTypes().get(6); - internal_static_payload_v1_Info_Annotations_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_Annotations_descriptor, - new java.lang.String[] { "Annotations", }); - internal_static_payload_v1_Info_Annotations_AnnotationsEntry_descriptor = - internal_static_payload_v1_Info_Annotations_descriptor.getNestedTypes().get(0); - internal_static_payload_v1_Info_Annotations_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_Annotations_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_payload_v1_Info_CPU_descriptor = - internal_static_payload_v1_Info_descriptor.getNestedTypes().get(7); - internal_static_payload_v1_Info_CPU_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_CPU_descriptor, - new java.lang.String[] { "Limit", "Request", "Usage", }); - internal_static_payload_v1_Info_Memory_descriptor = - internal_static_payload_v1_Info_descriptor.getNestedTypes().get(8); - internal_static_payload_v1_Info_Memory_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_Memory_descriptor, - new java.lang.String[] { "Limit", "Request", "Usage", }); - internal_static_payload_v1_Info_Pods_descriptor = - internal_static_payload_v1_Info_descriptor.getNestedTypes().get(9); - internal_static_payload_v1_Info_Pods_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_Pods_descriptor, - new java.lang.String[] { "Pods", }); - internal_static_payload_v1_Info_Nodes_descriptor = - internal_static_payload_v1_Info_descriptor.getNestedTypes().get(10); - internal_static_payload_v1_Info_Nodes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_Nodes_descriptor, - new java.lang.String[] { "Nodes", }); - internal_static_payload_v1_Info_Services_descriptor = - internal_static_payload_v1_Info_descriptor.getNestedTypes().get(11); - internal_static_payload_v1_Info_Services_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_Services_descriptor, - new java.lang.String[] { "Services", }); - internal_static_payload_v1_Info_IPs_descriptor = - internal_static_payload_v1_Info_descriptor.getNestedTypes().get(12); - internal_static_payload_v1_Info_IPs_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Info_IPs_descriptor, - new java.lang.String[] { "Ip", }); - internal_static_payload_v1_Mirror_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_payload_v1_Mirror_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Mirror_descriptor, - new java.lang.String[] { }); - internal_static_payload_v1_Mirror_Target_descriptor = - internal_static_payload_v1_Mirror_descriptor.getNestedTypes().get(0); - internal_static_payload_v1_Mirror_Target_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Mirror_Target_descriptor, - new java.lang.String[] { "Host", "Port", }); - internal_static_payload_v1_Mirror_Targets_descriptor = - internal_static_payload_v1_Mirror_descriptor.getNestedTypes().get(1); - internal_static_payload_v1_Mirror_Targets_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Mirror_Targets_descriptor, - new java.lang.String[] { "Targets", }); - internal_static_payload_v1_Empty_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_payload_v1_Empty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_payload_v1_Empty_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/BadRequest.java b/src/main/java/org/vdaas/vald/api/v1/rpc/BadRequest.java deleted file mode 100644 index 66967ab6..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/BadRequest.java +++ /dev/null @@ -1,1966 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -/** - *
- * Describes violations in a client request. This error type focuses on the
- * syntactic aspects of the request.
- * 
- * - * Protobuf type {@code rpc.v1.BadRequest} - */ -public final class BadRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:rpc.v1.BadRequest) - BadRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use BadRequest.newBuilder() to construct. - private BadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BadRequest() { - fieldViolations_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BadRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.BadRequest.class, org.vdaas.vald.api.v1.rpc.BadRequest.Builder.class); - } - - public interface FieldViolationOrBuilder extends - // @@protoc_insertion_point(interface_extends:rpc.v1.BadRequest.FieldViolation) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A path that leads to a field in the request body. The value will be a
-     * sequence of dot-separated identifiers that identify a protocol buffer
-     * field.
-     *
-     * Consider the following:
-     *
-     *     message CreateContactRequest {
-     *       message EmailAddress {
-     *         enum Type {
-     *           TYPE_UNSPECIFIED = 0;
-     *           HOME = 1;
-     *           WORK = 2;
-     *         }
-     *
-     *         optional string email = 1;
-     *         repeated EmailType type = 2;
-     *       }
-     *
-     *       string full_name = 1;
-     *       repeated EmailAddress email_addresses = 2;
-     *     }
-     *
-     * In this example, in proto `field` could take one of the following values:
-     *
-     * * `full_name` for a violation in the `full_name` value
-     * * `email_addresses[1].email` for a violation in the `email` field of the
-     *   first `email_addresses` message
-     * * `email_addresses[3].type[2]` for a violation in the second `type`
-     *   value in the third `email_addresses` message.
-     *
-     * In JSON, the same values are represented as:
-     *
-     * * `fullName` for a violation in the `fullName` value
-     * * `emailAddresses[1].email` for a violation in the `email` field of the
-     *   first `emailAddresses` message
-     * * `emailAddresses[3].type[2]` for a violation in the second `type`
-     *   value in the third `emailAddresses` message.
-     * 
- * - * string field = 1 [json_name = "field"]; - * @return The field. - */ - java.lang.String getField(); - /** - *
-     * A path that leads to a field in the request body. The value will be a
-     * sequence of dot-separated identifiers that identify a protocol buffer
-     * field.
-     *
-     * Consider the following:
-     *
-     *     message CreateContactRequest {
-     *       message EmailAddress {
-     *         enum Type {
-     *           TYPE_UNSPECIFIED = 0;
-     *           HOME = 1;
-     *           WORK = 2;
-     *         }
-     *
-     *         optional string email = 1;
-     *         repeated EmailType type = 2;
-     *       }
-     *
-     *       string full_name = 1;
-     *       repeated EmailAddress email_addresses = 2;
-     *     }
-     *
-     * In this example, in proto `field` could take one of the following values:
-     *
-     * * `full_name` for a violation in the `full_name` value
-     * * `email_addresses[1].email` for a violation in the `email` field of the
-     *   first `email_addresses` message
-     * * `email_addresses[3].type[2]` for a violation in the second `type`
-     *   value in the third `email_addresses` message.
-     *
-     * In JSON, the same values are represented as:
-     *
-     * * `fullName` for a violation in the `fullName` value
-     * * `emailAddresses[1].email` for a violation in the `email` field of the
-     *   first `emailAddresses` message
-     * * `emailAddresses[3].type[2]` for a violation in the second `type`
-     *   value in the third `emailAddresses` message.
-     * 
- * - * string field = 1 [json_name = "field"]; - * @return The bytes for field. - */ - com.google.protobuf.ByteString - getFieldBytes(); - - /** - *
-     * A description of why the request element is bad.
-     * 
- * - * string description = 2 [json_name = "description"]; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-     * A description of why the request element is bad.
-     * 
- * - * string description = 2 [json_name = "description"]; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - } - /** - *
-   * A message type used to describe a single bad request field.
-   * 
- * - * Protobuf type {@code rpc.v1.BadRequest.FieldViolation} - */ - public static final class FieldViolation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:rpc.v1.BadRequest.FieldViolation) - FieldViolationOrBuilder { - private static final long serialVersionUID = 0L; - // Use FieldViolation.newBuilder() to construct. - private FieldViolation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FieldViolation() { - field_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FieldViolation(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_FieldViolation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_FieldViolation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.class, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder.class); - } - - public static final int FIELD_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object field_ = ""; - /** - *
-     * A path that leads to a field in the request body. The value will be a
-     * sequence of dot-separated identifiers that identify a protocol buffer
-     * field.
-     *
-     * Consider the following:
-     *
-     *     message CreateContactRequest {
-     *       message EmailAddress {
-     *         enum Type {
-     *           TYPE_UNSPECIFIED = 0;
-     *           HOME = 1;
-     *           WORK = 2;
-     *         }
-     *
-     *         optional string email = 1;
-     *         repeated EmailType type = 2;
-     *       }
-     *
-     *       string full_name = 1;
-     *       repeated EmailAddress email_addresses = 2;
-     *     }
-     *
-     * In this example, in proto `field` could take one of the following values:
-     *
-     * * `full_name` for a violation in the `full_name` value
-     * * `email_addresses[1].email` for a violation in the `email` field of the
-     *   first `email_addresses` message
-     * * `email_addresses[3].type[2]` for a violation in the second `type`
-     *   value in the third `email_addresses` message.
-     *
-     * In JSON, the same values are represented as:
-     *
-     * * `fullName` for a violation in the `fullName` value
-     * * `emailAddresses[1].email` for a violation in the `email` field of the
-     *   first `emailAddresses` message
-     * * `emailAddresses[3].type[2]` for a violation in the second `type`
-     *   value in the third `emailAddresses` message.
-     * 
- * - * string field = 1 [json_name = "field"]; - * @return The field. - */ - @java.lang.Override - public java.lang.String getField() { - java.lang.Object ref = field_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - field_ = s; - return s; - } - } - /** - *
-     * A path that leads to a field in the request body. The value will be a
-     * sequence of dot-separated identifiers that identify a protocol buffer
-     * field.
-     *
-     * Consider the following:
-     *
-     *     message CreateContactRequest {
-     *       message EmailAddress {
-     *         enum Type {
-     *           TYPE_UNSPECIFIED = 0;
-     *           HOME = 1;
-     *           WORK = 2;
-     *         }
-     *
-     *         optional string email = 1;
-     *         repeated EmailType type = 2;
-     *       }
-     *
-     *       string full_name = 1;
-     *       repeated EmailAddress email_addresses = 2;
-     *     }
-     *
-     * In this example, in proto `field` could take one of the following values:
-     *
-     * * `full_name` for a violation in the `full_name` value
-     * * `email_addresses[1].email` for a violation in the `email` field of the
-     *   first `email_addresses` message
-     * * `email_addresses[3].type[2]` for a violation in the second `type`
-     *   value in the third `email_addresses` message.
-     *
-     * In JSON, the same values are represented as:
-     *
-     * * `fullName` for a violation in the `fullName` value
-     * * `emailAddresses[1].email` for a violation in the `email` field of the
-     *   first `emailAddresses` message
-     * * `emailAddresses[3].type[2]` for a violation in the second `type`
-     *   value in the third `emailAddresses` message.
-     * 
- * - * string field = 1 [json_name = "field"]; - * @return The bytes for field. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFieldBytes() { - java.lang.Object ref = field_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - field_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - *
-     * A description of why the request element is bad.
-     * 
- * - * string description = 2 [json_name = "description"]; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-     * A description of why the request element is bad.
-     * 
- * - * string description = 2 [json_name = "description"]; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(field_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(field_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation other = (org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation) obj; - - if (!getField() - .equals(other.getField())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FIELD_FIELD_NUMBER; - hash = (53 * hash) + getField().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation 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 org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A message type used to describe a single bad request field.
-     * 
- * - * Protobuf type {@code rpc.v1.BadRequest.FieldViolation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:rpc.v1.BadRequest.FieldViolation) - org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_FieldViolation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_FieldViolation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.class, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - field_ = ""; - description_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_FieldViolation_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation build() { - org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation buildPartial() { - org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation result = new org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.field_ = field_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.description_ = description_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation) { - return mergeFrom((org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation other) { - if (other == org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.getDefaultInstance()) return this; - if (!other.getField().isEmpty()) { - field_ = other.field_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - field_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object field_ = ""; - /** - *
-       * A path that leads to a field in the request body. The value will be a
-       * sequence of dot-separated identifiers that identify a protocol buffer
-       * field.
-       *
-       * Consider the following:
-       *
-       *     message CreateContactRequest {
-       *       message EmailAddress {
-       *         enum Type {
-       *           TYPE_UNSPECIFIED = 0;
-       *           HOME = 1;
-       *           WORK = 2;
-       *         }
-       *
-       *         optional string email = 1;
-       *         repeated EmailType type = 2;
-       *       }
-       *
-       *       string full_name = 1;
-       *       repeated EmailAddress email_addresses = 2;
-       *     }
-       *
-       * In this example, in proto `field` could take one of the following values:
-       *
-       * * `full_name` for a violation in the `full_name` value
-       * * `email_addresses[1].email` for a violation in the `email` field of the
-       *   first `email_addresses` message
-       * * `email_addresses[3].type[2]` for a violation in the second `type`
-       *   value in the third `email_addresses` message.
-       *
-       * In JSON, the same values are represented as:
-       *
-       * * `fullName` for a violation in the `fullName` value
-       * * `emailAddresses[1].email` for a violation in the `email` field of the
-       *   first `emailAddresses` message
-       * * `emailAddresses[3].type[2]` for a violation in the second `type`
-       *   value in the third `emailAddresses` message.
-       * 
- * - * string field = 1 [json_name = "field"]; - * @return The field. - */ - public java.lang.String getField() { - java.lang.Object ref = field_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - field_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A path that leads to a field in the request body. The value will be a
-       * sequence of dot-separated identifiers that identify a protocol buffer
-       * field.
-       *
-       * Consider the following:
-       *
-       *     message CreateContactRequest {
-       *       message EmailAddress {
-       *         enum Type {
-       *           TYPE_UNSPECIFIED = 0;
-       *           HOME = 1;
-       *           WORK = 2;
-       *         }
-       *
-       *         optional string email = 1;
-       *         repeated EmailType type = 2;
-       *       }
-       *
-       *       string full_name = 1;
-       *       repeated EmailAddress email_addresses = 2;
-       *     }
-       *
-       * In this example, in proto `field` could take one of the following values:
-       *
-       * * `full_name` for a violation in the `full_name` value
-       * * `email_addresses[1].email` for a violation in the `email` field of the
-       *   first `email_addresses` message
-       * * `email_addresses[3].type[2]` for a violation in the second `type`
-       *   value in the third `email_addresses` message.
-       *
-       * In JSON, the same values are represented as:
-       *
-       * * `fullName` for a violation in the `fullName` value
-       * * `emailAddresses[1].email` for a violation in the `email` field of the
-       *   first `emailAddresses` message
-       * * `emailAddresses[3].type[2]` for a violation in the second `type`
-       *   value in the third `emailAddresses` message.
-       * 
- * - * string field = 1 [json_name = "field"]; - * @return The bytes for field. - */ - public com.google.protobuf.ByteString - getFieldBytes() { - java.lang.Object ref = field_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - field_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A path that leads to a field in the request body. The value will be a
-       * sequence of dot-separated identifiers that identify a protocol buffer
-       * field.
-       *
-       * Consider the following:
-       *
-       *     message CreateContactRequest {
-       *       message EmailAddress {
-       *         enum Type {
-       *           TYPE_UNSPECIFIED = 0;
-       *           HOME = 1;
-       *           WORK = 2;
-       *         }
-       *
-       *         optional string email = 1;
-       *         repeated EmailType type = 2;
-       *       }
-       *
-       *       string full_name = 1;
-       *       repeated EmailAddress email_addresses = 2;
-       *     }
-       *
-       * In this example, in proto `field` could take one of the following values:
-       *
-       * * `full_name` for a violation in the `full_name` value
-       * * `email_addresses[1].email` for a violation in the `email` field of the
-       *   first `email_addresses` message
-       * * `email_addresses[3].type[2]` for a violation in the second `type`
-       *   value in the third `email_addresses` message.
-       *
-       * In JSON, the same values are represented as:
-       *
-       * * `fullName` for a violation in the `fullName` value
-       * * `emailAddresses[1].email` for a violation in the `email` field of the
-       *   first `emailAddresses` message
-       * * `emailAddresses[3].type[2]` for a violation in the second `type`
-       *   value in the third `emailAddresses` message.
-       * 
- * - * string field = 1 [json_name = "field"]; - * @param value The field to set. - * @return This builder for chaining. - */ - public Builder setField( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - field_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * A path that leads to a field in the request body. The value will be a
-       * sequence of dot-separated identifiers that identify a protocol buffer
-       * field.
-       *
-       * Consider the following:
-       *
-       *     message CreateContactRequest {
-       *       message EmailAddress {
-       *         enum Type {
-       *           TYPE_UNSPECIFIED = 0;
-       *           HOME = 1;
-       *           WORK = 2;
-       *         }
-       *
-       *         optional string email = 1;
-       *         repeated EmailType type = 2;
-       *       }
-       *
-       *       string full_name = 1;
-       *       repeated EmailAddress email_addresses = 2;
-       *     }
-       *
-       * In this example, in proto `field` could take one of the following values:
-       *
-       * * `full_name` for a violation in the `full_name` value
-       * * `email_addresses[1].email` for a violation in the `email` field of the
-       *   first `email_addresses` message
-       * * `email_addresses[3].type[2]` for a violation in the second `type`
-       *   value in the third `email_addresses` message.
-       *
-       * In JSON, the same values are represented as:
-       *
-       * * `fullName` for a violation in the `fullName` value
-       * * `emailAddresses[1].email` for a violation in the `email` field of the
-       *   first `emailAddresses` message
-       * * `emailAddresses[3].type[2]` for a violation in the second `type`
-       *   value in the third `emailAddresses` message.
-       * 
- * - * string field = 1 [json_name = "field"]; - * @return This builder for chaining. - */ - public Builder clearField() { - field_ = getDefaultInstance().getField(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * A path that leads to a field in the request body. The value will be a
-       * sequence of dot-separated identifiers that identify a protocol buffer
-       * field.
-       *
-       * Consider the following:
-       *
-       *     message CreateContactRequest {
-       *       message EmailAddress {
-       *         enum Type {
-       *           TYPE_UNSPECIFIED = 0;
-       *           HOME = 1;
-       *           WORK = 2;
-       *         }
-       *
-       *         optional string email = 1;
-       *         repeated EmailType type = 2;
-       *       }
-       *
-       *       string full_name = 1;
-       *       repeated EmailAddress email_addresses = 2;
-       *     }
-       *
-       * In this example, in proto `field` could take one of the following values:
-       *
-       * * `full_name` for a violation in the `full_name` value
-       * * `email_addresses[1].email` for a violation in the `email` field of the
-       *   first `email_addresses` message
-       * * `email_addresses[3].type[2]` for a violation in the second `type`
-       *   value in the third `email_addresses` message.
-       *
-       * In JSON, the same values are represented as:
-       *
-       * * `fullName` for a violation in the `fullName` value
-       * * `emailAddresses[1].email` for a violation in the `email` field of the
-       *   first `emailAddresses` message
-       * * `emailAddresses[3].type[2]` for a violation in the second `type`
-       *   value in the third `emailAddresses` message.
-       * 
- * - * string field = 1 [json_name = "field"]; - * @param value The bytes for field to set. - * @return This builder for chaining. - */ - public Builder setFieldBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - field_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-       * A description of why the request element is bad.
-       * 
- * - * string description = 2 [json_name = "description"]; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A description of why the request element is bad.
-       * 
- * - * string description = 2 [json_name = "description"]; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A description of why the request element is bad.
-       * 
- * - * string description = 2 [json_name = "description"]; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - description_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * A description of why the request element is bad.
-       * 
- * - * string description = 2 [json_name = "description"]; - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * A description of why the request element is bad.
-       * 
- * - * string description = 2 [json_name = "description"]; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:rpc.v1.BadRequest.FieldViolation) - } - - // @@protoc_insertion_point(class_scope:rpc.v1.BadRequest.FieldViolation) - private static final org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation(); - } - - public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldViolation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int FIELD_VIOLATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List fieldViolations_; - /** - *
-   * Describes all violations in a client request.
-   * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - @java.lang.Override - public java.util.List getFieldViolationsList() { - return fieldViolations_; - } - /** - *
-   * Describes all violations in a client request.
-   * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - @java.lang.Override - public java.util.List - getFieldViolationsOrBuilderList() { - return fieldViolations_; - } - /** - *
-   * Describes all violations in a client request.
-   * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - @java.lang.Override - public int getFieldViolationsCount() { - return fieldViolations_.size(); - } - /** - *
-   * Describes all violations in a client request.
-   * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation getFieldViolations(int index) { - return fieldViolations_.get(index); - } - /** - *
-   * Describes all violations in a client request.
-   * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolationOrBuilder getFieldViolationsOrBuilder( - int index) { - return fieldViolations_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < fieldViolations_.size(); i++) { - output.writeMessage(1, fieldViolations_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < fieldViolations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, fieldViolations_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.rpc.BadRequest)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.rpc.BadRequest other = (org.vdaas.vald.api.v1.rpc.BadRequest) obj; - - if (!getFieldViolationsList() - .equals(other.getFieldViolationsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getFieldViolationsCount() > 0) { - hash = (37 * hash) + FIELD_VIOLATIONS_FIELD_NUMBER; - hash = (53 * hash) + getFieldViolationsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.BadRequest 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 org.vdaas.vald.api.v1.rpc.BadRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.rpc.BadRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.BadRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Describes violations in a client request. This error type focuses on the
-   * syntactic aspects of the request.
-   * 
- * - * Protobuf type {@code rpc.v1.BadRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:rpc.v1.BadRequest) - org.vdaas.vald.api.v1.rpc.BadRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.BadRequest.class, org.vdaas.vald.api.v1.rpc.BadRequest.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.rpc.BadRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (fieldViolationsBuilder_ == null) { - fieldViolations_ = java.util.Collections.emptyList(); - } else { - fieldViolations_ = null; - fieldViolationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.BadRequest getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.rpc.BadRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.BadRequest build() { - org.vdaas.vald.api.v1.rpc.BadRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.BadRequest buildPartial() { - org.vdaas.vald.api.v1.rpc.BadRequest result = new org.vdaas.vald.api.v1.rpc.BadRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.rpc.BadRequest result) { - if (fieldViolationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - fieldViolations_ = java.util.Collections.unmodifiableList(fieldViolations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.fieldViolations_ = fieldViolations_; - } else { - result.fieldViolations_ = fieldViolationsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.rpc.BadRequest result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.rpc.BadRequest) { - return mergeFrom((org.vdaas.vald.api.v1.rpc.BadRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.BadRequest other) { - if (other == org.vdaas.vald.api.v1.rpc.BadRequest.getDefaultInstance()) return this; - if (fieldViolationsBuilder_ == null) { - if (!other.fieldViolations_.isEmpty()) { - if (fieldViolations_.isEmpty()) { - fieldViolations_ = other.fieldViolations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFieldViolationsIsMutable(); - fieldViolations_.addAll(other.fieldViolations_); - } - onChanged(); - } - } else { - if (!other.fieldViolations_.isEmpty()) { - if (fieldViolationsBuilder_.isEmpty()) { - fieldViolationsBuilder_.dispose(); - fieldViolationsBuilder_ = null; - fieldViolations_ = other.fieldViolations_; - bitField0_ = (bitField0_ & ~0x00000001); - fieldViolationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFieldViolationsFieldBuilder() : null; - } else { - fieldViolationsBuilder_.addAllMessages(other.fieldViolations_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation m = - input.readMessage( - org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.parser(), - extensionRegistry); - if (fieldViolationsBuilder_ == null) { - ensureFieldViolationsIsMutable(); - fieldViolations_.add(m); - } else { - fieldViolationsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List fieldViolations_ = - java.util.Collections.emptyList(); - private void ensureFieldViolationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - fieldViolations_ = new java.util.ArrayList(fieldViolations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolationOrBuilder> fieldViolationsBuilder_; - - /** - *
-     * Describes all violations in a client request.
-     * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - public java.util.List getFieldViolationsList() { - if (fieldViolationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(fieldViolations_); - } else { - return fieldViolationsBuilder_.getMessageList(); - } - } - /** - *
-     * Describes all violations in a client request.
-     * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - public int getFieldViolationsCount() { - if (fieldViolationsBuilder_ == null) { - return fieldViolations_.size(); - } else { - return fieldViolationsBuilder_.getCount(); - } - } - /** - *
-     * Describes all violations in a client request.
-     * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation getFieldViolations(int index) { - if (fieldViolationsBuilder_ == null) { - return fieldViolations_.get(index); - } else { - return fieldViolationsBuilder_.getMessage(index); - } - } - /** - *
-     * Describes all violations in a client request.
-     * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - public Builder setFieldViolations( - int index, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation value) { - if (fieldViolationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldViolationsIsMutable(); - fieldViolations_.set(index, value); - onChanged(); - } else { - fieldViolationsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Describes all violations in a client request.
-     * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - public Builder setFieldViolations( - int index, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder builderForValue) { - if (fieldViolationsBuilder_ == null) { - ensureFieldViolationsIsMutable(); - fieldViolations_.set(index, builderForValue.build()); - onChanged(); - } else { - fieldViolationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Describes all violations in a client request.
-     * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - public Builder addFieldViolations(org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation value) { - if (fieldViolationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldViolationsIsMutable(); - fieldViolations_.add(value); - onChanged(); - } else { - fieldViolationsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Describes all violations in a client request.
-     * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - public Builder addFieldViolations( - int index, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation value) { - if (fieldViolationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldViolationsIsMutable(); - fieldViolations_.add(index, value); - onChanged(); - } else { - fieldViolationsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Describes all violations in a client request.
-     * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - public Builder addFieldViolations( - org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder builderForValue) { - if (fieldViolationsBuilder_ == null) { - ensureFieldViolationsIsMutable(); - fieldViolations_.add(builderForValue.build()); - onChanged(); - } else { - fieldViolationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Describes all violations in a client request.
-     * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - public Builder addFieldViolations( - int index, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder builderForValue) { - if (fieldViolationsBuilder_ == null) { - ensureFieldViolationsIsMutable(); - fieldViolations_.add(index, builderForValue.build()); - onChanged(); - } else { - fieldViolationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Describes all violations in a client request.
-     * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - public Builder addAllFieldViolations( - java.lang.Iterable values) { - if (fieldViolationsBuilder_ == null) { - ensureFieldViolationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fieldViolations_); - onChanged(); - } else { - fieldViolationsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Describes all violations in a client request.
-     * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - public Builder clearFieldViolations() { - if (fieldViolationsBuilder_ == null) { - fieldViolations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - fieldViolationsBuilder_.clear(); - } - return this; - } - /** - *
-     * Describes all violations in a client request.
-     * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - public Builder removeFieldViolations(int index) { - if (fieldViolationsBuilder_ == null) { - ensureFieldViolationsIsMutable(); - fieldViolations_.remove(index); - onChanged(); - } else { - fieldViolationsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Describes all violations in a client request.
-     * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder getFieldViolationsBuilder( - int index) { - return getFieldViolationsFieldBuilder().getBuilder(index); - } - /** - *
-     * Describes all violations in a client request.
-     * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolationOrBuilder getFieldViolationsOrBuilder( - int index) { - if (fieldViolationsBuilder_ == null) { - return fieldViolations_.get(index); } else { - return fieldViolationsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Describes all violations in a client request.
-     * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - public java.util.List - getFieldViolationsOrBuilderList() { - if (fieldViolationsBuilder_ != null) { - return fieldViolationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(fieldViolations_); - } - } - /** - *
-     * Describes all violations in a client request.
-     * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder addFieldViolationsBuilder() { - return getFieldViolationsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.getDefaultInstance()); - } - /** - *
-     * Describes all violations in a client request.
-     * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder addFieldViolationsBuilder( - int index) { - return getFieldViolationsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.getDefaultInstance()); - } - /** - *
-     * Describes all violations in a client request.
-     * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - public java.util.List - getFieldViolationsBuilderList() { - return getFieldViolationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolationOrBuilder> - getFieldViolationsFieldBuilder() { - if (fieldViolationsBuilder_ == null) { - fieldViolationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolationOrBuilder>( - fieldViolations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - fieldViolations_ = null; - } - return fieldViolationsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:rpc.v1.BadRequest) - } - - // @@protoc_insertion_point(class_scope:rpc.v1.BadRequest) - private static final org.vdaas.vald.api.v1.rpc.BadRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.BadRequest(); - } - - public static org.vdaas.vald.api.v1.rpc.BadRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BadRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.BadRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/BadRequestOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/BadRequestOrBuilder.java deleted file mode 100644 index e0e7db44..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/BadRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -public interface BadRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:rpc.v1.BadRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Describes all violations in a client request.
-   * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - java.util.List - getFieldViolationsList(); - /** - *
-   * Describes all violations in a client request.
-   * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation getFieldViolations(int index); - /** - *
-   * Describes all violations in a client request.
-   * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - int getFieldViolationsCount(); - /** - *
-   * Describes all violations in a client request.
-   * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - java.util.List - getFieldViolationsOrBuilderList(); - /** - *
-   * Describes all violations in a client request.
-   * 
- * - * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - */ - org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolationOrBuilder getFieldViolationsOrBuilder( - int index); -} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/DebugInfo.java b/src/main/java/org/vdaas/vald/api/v1/rpc/DebugInfo.java deleted file mode 100644 index 26260896..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/DebugInfo.java +++ /dev/null @@ -1,819 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -/** - *
- * Describes additional debugging info.
- * 
- * - * Protobuf type {@code rpc.v1.DebugInfo} - */ -public final class DebugInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:rpc.v1.DebugInfo) - DebugInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use DebugInfo.newBuilder() to construct. - private DebugInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DebugInfo() { - stackEntries_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - detail_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DebugInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_DebugInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_DebugInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.DebugInfo.class, org.vdaas.vald.api.v1.rpc.DebugInfo.Builder.class); - } - - public static final int STACK_ENTRIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList stackEntries_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-   * The stack trace entries indicating where the error occurred.
-   * 
- * - * repeated string stack_entries = 1 [json_name = "stackEntries"]; - * @return A list containing the stackEntries. - */ - public com.google.protobuf.ProtocolStringList - getStackEntriesList() { - return stackEntries_; - } - /** - *
-   * The stack trace entries indicating where the error occurred.
-   * 
- * - * repeated string stack_entries = 1 [json_name = "stackEntries"]; - * @return The count of stackEntries. - */ - public int getStackEntriesCount() { - return stackEntries_.size(); - } - /** - *
-   * The stack trace entries indicating where the error occurred.
-   * 
- * - * repeated string stack_entries = 1 [json_name = "stackEntries"]; - * @param index The index of the element to return. - * @return The stackEntries at the given index. - */ - public java.lang.String getStackEntries(int index) { - return stackEntries_.get(index); - } - /** - *
-   * The stack trace entries indicating where the error occurred.
-   * 
- * - * repeated string stack_entries = 1 [json_name = "stackEntries"]; - * @param index The index of the value to return. - * @return The bytes of the stackEntries at the given index. - */ - public com.google.protobuf.ByteString - getStackEntriesBytes(int index) { - return stackEntries_.getByteString(index); - } - - public static final int DETAIL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object detail_ = ""; - /** - *
-   * Additional debugging information provided by the server.
-   * 
- * - * string detail = 2 [json_name = "detail"]; - * @return The detail. - */ - @java.lang.Override - public java.lang.String getDetail() { - java.lang.Object ref = detail_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - detail_ = s; - return s; - } - } - /** - *
-   * Additional debugging information provided by the server.
-   * 
- * - * string detail = 2 [json_name = "detail"]; - * @return The bytes for detail. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDetailBytes() { - java.lang.Object ref = detail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - detail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < stackEntries_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stackEntries_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, detail_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < stackEntries_.size(); i++) { - dataSize += computeStringSizeNoTag(stackEntries_.getRaw(i)); - } - size += dataSize; - size += 1 * getStackEntriesList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, detail_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.rpc.DebugInfo)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.rpc.DebugInfo other = (org.vdaas.vald.api.v1.rpc.DebugInfo) obj; - - if (!getStackEntriesList() - .equals(other.getStackEntriesList())) return false; - if (!getDetail() - .equals(other.getDetail())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getStackEntriesCount() > 0) { - hash = (37 * hash) + STACK_ENTRIES_FIELD_NUMBER; - hash = (53 * hash) + getStackEntriesList().hashCode(); - } - hash = (37 * hash) + DETAIL_FIELD_NUMBER; - hash = (53 * hash) + getDetail().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.DebugInfo 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 org.vdaas.vald.api.v1.rpc.DebugInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.rpc.DebugInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.DebugInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Describes additional debugging info.
-   * 
- * - * Protobuf type {@code rpc.v1.DebugInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:rpc.v1.DebugInfo) - org.vdaas.vald.api.v1.rpc.DebugInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_DebugInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_DebugInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.DebugInfo.class, org.vdaas.vald.api.v1.rpc.DebugInfo.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.rpc.DebugInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - stackEntries_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - detail_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_DebugInfo_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.DebugInfo getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.rpc.DebugInfo.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.DebugInfo build() { - org.vdaas.vald.api.v1.rpc.DebugInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.DebugInfo buildPartial() { - org.vdaas.vald.api.v1.rpc.DebugInfo result = new org.vdaas.vald.api.v1.rpc.DebugInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.rpc.DebugInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - stackEntries_.makeImmutable(); - result.stackEntries_ = stackEntries_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.detail_ = detail_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.rpc.DebugInfo) { - return mergeFrom((org.vdaas.vald.api.v1.rpc.DebugInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.DebugInfo other) { - if (other == org.vdaas.vald.api.v1.rpc.DebugInfo.getDefaultInstance()) return this; - if (!other.stackEntries_.isEmpty()) { - if (stackEntries_.isEmpty()) { - stackEntries_ = other.stackEntries_; - bitField0_ |= 0x00000001; - } else { - ensureStackEntriesIsMutable(); - stackEntries_.addAll(other.stackEntries_); - } - onChanged(); - } - if (!other.getDetail().isEmpty()) { - detail_ = other.detail_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureStackEntriesIsMutable(); - stackEntries_.add(s); - break; - } // case 10 - case 18: { - detail_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList stackEntries_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureStackEntriesIsMutable() { - if (!stackEntries_.isModifiable()) { - stackEntries_ = new com.google.protobuf.LazyStringArrayList(stackEntries_); - } - bitField0_ |= 0x00000001; - } - /** - *
-     * The stack trace entries indicating where the error occurred.
-     * 
- * - * repeated string stack_entries = 1 [json_name = "stackEntries"]; - * @return A list containing the stackEntries. - */ - public com.google.protobuf.ProtocolStringList - getStackEntriesList() { - stackEntries_.makeImmutable(); - return stackEntries_; - } - /** - *
-     * The stack trace entries indicating where the error occurred.
-     * 
- * - * repeated string stack_entries = 1 [json_name = "stackEntries"]; - * @return The count of stackEntries. - */ - public int getStackEntriesCount() { - return stackEntries_.size(); - } - /** - *
-     * The stack trace entries indicating where the error occurred.
-     * 
- * - * repeated string stack_entries = 1 [json_name = "stackEntries"]; - * @param index The index of the element to return. - * @return The stackEntries at the given index. - */ - public java.lang.String getStackEntries(int index) { - return stackEntries_.get(index); - } - /** - *
-     * The stack trace entries indicating where the error occurred.
-     * 
- * - * repeated string stack_entries = 1 [json_name = "stackEntries"]; - * @param index The index of the value to return. - * @return The bytes of the stackEntries at the given index. - */ - public com.google.protobuf.ByteString - getStackEntriesBytes(int index) { - return stackEntries_.getByteString(index); - } - /** - *
-     * The stack trace entries indicating where the error occurred.
-     * 
- * - * repeated string stack_entries = 1 [json_name = "stackEntries"]; - * @param index The index to set the value at. - * @param value The stackEntries to set. - * @return This builder for chaining. - */ - public Builder setStackEntries( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureStackEntriesIsMutable(); - stackEntries_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The stack trace entries indicating where the error occurred.
-     * 
- * - * repeated string stack_entries = 1 [json_name = "stackEntries"]; - * @param value The stackEntries to add. - * @return This builder for chaining. - */ - public Builder addStackEntries( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureStackEntriesIsMutable(); - stackEntries_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The stack trace entries indicating where the error occurred.
-     * 
- * - * repeated string stack_entries = 1 [json_name = "stackEntries"]; - * @param values The stackEntries to add. - * @return This builder for chaining. - */ - public Builder addAllStackEntries( - java.lang.Iterable values) { - ensureStackEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stackEntries_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The stack trace entries indicating where the error occurred.
-     * 
- * - * repeated string stack_entries = 1 [json_name = "stackEntries"]; - * @return This builder for chaining. - */ - public Builder clearStackEntries() { - stackEntries_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - *
-     * The stack trace entries indicating where the error occurred.
-     * 
- * - * repeated string stack_entries = 1 [json_name = "stackEntries"]; - * @param value The bytes of the stackEntries to add. - * @return This builder for chaining. - */ - public Builder addStackEntriesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureStackEntriesIsMutable(); - stackEntries_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object detail_ = ""; - /** - *
-     * Additional debugging information provided by the server.
-     * 
- * - * string detail = 2 [json_name = "detail"]; - * @return The detail. - */ - public java.lang.String getDetail() { - java.lang.Object ref = detail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - detail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Additional debugging information provided by the server.
-     * 
- * - * string detail = 2 [json_name = "detail"]; - * @return The bytes for detail. - */ - public com.google.protobuf.ByteString - getDetailBytes() { - java.lang.Object ref = detail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - detail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Additional debugging information provided by the server.
-     * 
- * - * string detail = 2 [json_name = "detail"]; - * @param value The detail to set. - * @return This builder for chaining. - */ - public Builder setDetail( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - detail_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Additional debugging information provided by the server.
-     * 
- * - * string detail = 2 [json_name = "detail"]; - * @return This builder for chaining. - */ - public Builder clearDetail() { - detail_ = getDefaultInstance().getDetail(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Additional debugging information provided by the server.
-     * 
- * - * string detail = 2 [json_name = "detail"]; - * @param value The bytes for detail to set. - * @return This builder for chaining. - */ - public Builder setDetailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - detail_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:rpc.v1.DebugInfo) - } - - // @@protoc_insertion_point(class_scope:rpc.v1.DebugInfo) - private static final org.vdaas.vald.api.v1.rpc.DebugInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.DebugInfo(); - } - - public static org.vdaas.vald.api.v1.rpc.DebugInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DebugInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.DebugInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/DebugInfoOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/DebugInfoOrBuilder.java deleted file mode 100644 index 60c9bda2..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/DebugInfoOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -public interface DebugInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:rpc.v1.DebugInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The stack trace entries indicating where the error occurred.
-   * 
- * - * repeated string stack_entries = 1 [json_name = "stackEntries"]; - * @return A list containing the stackEntries. - */ - java.util.List - getStackEntriesList(); - /** - *
-   * The stack trace entries indicating where the error occurred.
-   * 
- * - * repeated string stack_entries = 1 [json_name = "stackEntries"]; - * @return The count of stackEntries. - */ - int getStackEntriesCount(); - /** - *
-   * The stack trace entries indicating where the error occurred.
-   * 
- * - * repeated string stack_entries = 1 [json_name = "stackEntries"]; - * @param index The index of the element to return. - * @return The stackEntries at the given index. - */ - java.lang.String getStackEntries(int index); - /** - *
-   * The stack trace entries indicating where the error occurred.
-   * 
- * - * repeated string stack_entries = 1 [json_name = "stackEntries"]; - * @param index The index of the value to return. - * @return The bytes of the stackEntries at the given index. - */ - com.google.protobuf.ByteString - getStackEntriesBytes(int index); - - /** - *
-   * Additional debugging information provided by the server.
-   * 
- * - * string detail = 2 [json_name = "detail"]; - * @return The detail. - */ - java.lang.String getDetail(); - /** - *
-   * Additional debugging information provided by the server.
-   * 
- * - * string detail = 2 [json_name = "detail"]; - * @return The bytes for detail. - */ - com.google.protobuf.ByteString - getDetailBytes(); -} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/ErrorDetailsProto.java b/src/main/java/org/vdaas/vald/api/v1/rpc/ErrorDetailsProto.java deleted file mode 100644 index 5e907ec5..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/ErrorDetailsProto.java +++ /dev/null @@ -1,239 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -public final class ErrorDetailsProto { - private ErrorDetailsProto() {} - 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_rpc_v1_ErrorInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_rpc_v1_ErrorInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_rpc_v1_ErrorInfo_MetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_rpc_v1_ErrorInfo_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_rpc_v1_RetryInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_rpc_v1_RetryInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_rpc_v1_DebugInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_rpc_v1_DebugInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_rpc_v1_QuotaFailure_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_rpc_v1_QuotaFailure_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_rpc_v1_QuotaFailure_Violation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_rpc_v1_QuotaFailure_Violation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_rpc_v1_PreconditionFailure_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_rpc_v1_PreconditionFailure_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_rpc_v1_PreconditionFailure_Violation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_rpc_v1_PreconditionFailure_Violation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_rpc_v1_BadRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_rpc_v1_BadRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_rpc_v1_BadRequest_FieldViolation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_rpc_v1_BadRequest_FieldViolation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_rpc_v1_RequestInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_rpc_v1_RequestInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_rpc_v1_ResourceInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_rpc_v1_ResourceInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_rpc_v1_Help_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_rpc_v1_Help_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_rpc_v1_Help_Link_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_rpc_v1_Help_Link_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_rpc_v1_LocalizedMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_rpc_v1_LocalizedMessage_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%v1/rpc/errdetails/error_details.proto\022" + - "\006rpc.v1\032\036google/protobuf/duration.proto\"" + - "\265\001\n\tErrorInfo\022\026\n\006reason\030\001 \001(\tR\006reason\022\026\n" + - "\006domain\030\002 \001(\tR\006domain\022;\n\010metadata\030\003 \003(\0132" + - "\037.rpc.v1.ErrorInfo.MetadataEntryR\010metada" + - "ta\032;\n\rMetadataEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n" + - "\005value\030\002 \001(\tR\005value:\0028\001\"G\n\tRetryInfo\022:\n\013" + - "retry_delay\030\001 \001(\0132\031.google.protobuf.Dura" + - "tionR\nretryDelay\"H\n\tDebugInfo\022#\n\rstack_e" + - "ntries\030\001 \003(\tR\014stackEntries\022\026\n\006detail\030\002 \001" + - "(\tR\006detail\"\227\001\n\014QuotaFailure\022>\n\nviolation" + - "s\030\001 \003(\0132\036.rpc.v1.QuotaFailure.ViolationR" + - "\nviolations\032G\n\tViolation\022\030\n\007subject\030\001 \001(" + - "\tR\007subject\022 \n\013description\030\002 \001(\tR\013descrip" + - "tion\"\271\001\n\023PreconditionFailure\022E\n\nviolatio" + - "ns\030\001 \003(\0132%.rpc.v1.PreconditionFailure.Vi" + - "olationR\nviolations\032[\n\tViolation\022\022\n\004type" + - "\030\001 \001(\tR\004type\022\030\n\007subject\030\002 \001(\tR\007subject\022 " + - "\n\013description\030\003 \001(\tR\013description\"\244\001\n\nBad" + - "Request\022L\n\020field_violations\030\001 \003(\0132!.rpc." + - "v1.BadRequest.FieldViolationR\017fieldViola" + - "tions\032H\n\016FieldViolation\022\024\n\005field\030\001 \001(\tR\005" + - "field\022 \n\013description\030\002 \001(\tR\013description\"" + - "O\n\013RequestInfo\022\035\n\nrequest_id\030\001 \001(\tR\trequ" + - "estId\022!\n\014serving_data\030\002 \001(\tR\013servingData" + - "\"\220\001\n\014ResourceInfo\022#\n\rresource_type\030\001 \001(\t" + - "R\014resourceType\022#\n\rresource_name\030\002 \001(\tR\014r" + - "esourceName\022\024\n\005owner\030\003 \001(\tR\005owner\022 \n\013des" + - "cription\030\004 \001(\tR\013description\"k\n\004Help\022\'\n\005l" + - "inks\030\001 \003(\0132\021.rpc.v1.Help.LinkR\005links\032:\n\004" + - "Link\022 \n\013description\030\001 \001(\tR\013description\022\020" + - "\n\003url\030\002 \001(\tR\003url\"D\n\020LocalizedMessage\022\026\n\006" + - "locale\030\001 \001(\tR\006locale\022\030\n\007message\030\002 \001(\tR\007m" + - "essageBi\n\031org.vdaas.vald.api.v1.rpcB\021Err" + - "orDetailsProtoP\001Z1github.com/vdaas/vald/" + - "apis/grpc/v1/rpc/errdetails\242\002\003RPCb\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_rpc_v1_ErrorInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_rpc_v1_ErrorInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_rpc_v1_ErrorInfo_descriptor, - new java.lang.String[] { "Reason", "Domain", "Metadata", }); - internal_static_rpc_v1_ErrorInfo_MetadataEntry_descriptor = - internal_static_rpc_v1_ErrorInfo_descriptor.getNestedTypes().get(0); - internal_static_rpc_v1_ErrorInfo_MetadataEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_rpc_v1_ErrorInfo_MetadataEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_rpc_v1_RetryInfo_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_rpc_v1_RetryInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_rpc_v1_RetryInfo_descriptor, - new java.lang.String[] { "RetryDelay", }); - internal_static_rpc_v1_DebugInfo_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_rpc_v1_DebugInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_rpc_v1_DebugInfo_descriptor, - new java.lang.String[] { "StackEntries", "Detail", }); - internal_static_rpc_v1_QuotaFailure_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_rpc_v1_QuotaFailure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_rpc_v1_QuotaFailure_descriptor, - new java.lang.String[] { "Violations", }); - internal_static_rpc_v1_QuotaFailure_Violation_descriptor = - internal_static_rpc_v1_QuotaFailure_descriptor.getNestedTypes().get(0); - internal_static_rpc_v1_QuotaFailure_Violation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_rpc_v1_QuotaFailure_Violation_descriptor, - new java.lang.String[] { "Subject", "Description", }); - internal_static_rpc_v1_PreconditionFailure_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_rpc_v1_PreconditionFailure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_rpc_v1_PreconditionFailure_descriptor, - new java.lang.String[] { "Violations", }); - internal_static_rpc_v1_PreconditionFailure_Violation_descriptor = - internal_static_rpc_v1_PreconditionFailure_descriptor.getNestedTypes().get(0); - internal_static_rpc_v1_PreconditionFailure_Violation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_rpc_v1_PreconditionFailure_Violation_descriptor, - new java.lang.String[] { "Type", "Subject", "Description", }); - internal_static_rpc_v1_BadRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_rpc_v1_BadRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_rpc_v1_BadRequest_descriptor, - new java.lang.String[] { "FieldViolations", }); - internal_static_rpc_v1_BadRequest_FieldViolation_descriptor = - internal_static_rpc_v1_BadRequest_descriptor.getNestedTypes().get(0); - internal_static_rpc_v1_BadRequest_FieldViolation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_rpc_v1_BadRequest_FieldViolation_descriptor, - new java.lang.String[] { "Field", "Description", }); - internal_static_rpc_v1_RequestInfo_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_rpc_v1_RequestInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_rpc_v1_RequestInfo_descriptor, - new java.lang.String[] { "RequestId", "ServingData", }); - internal_static_rpc_v1_ResourceInfo_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_rpc_v1_ResourceInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_rpc_v1_ResourceInfo_descriptor, - new java.lang.String[] { "ResourceType", "ResourceName", "Owner", "Description", }); - internal_static_rpc_v1_Help_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_rpc_v1_Help_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_rpc_v1_Help_descriptor, - new java.lang.String[] { "Links", }); - internal_static_rpc_v1_Help_Link_descriptor = - internal_static_rpc_v1_Help_descriptor.getNestedTypes().get(0); - internal_static_rpc_v1_Help_Link_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_rpc_v1_Help_Link_descriptor, - new java.lang.String[] { "Description", "Url", }); - internal_static_rpc_v1_LocalizedMessage_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_rpc_v1_LocalizedMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_rpc_v1_LocalizedMessage_descriptor, - new java.lang.String[] { "Locale", "Message", }); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/ErrorInfo.java b/src/main/java/org/vdaas/vald/api/v1/rpc/ErrorInfo.java deleted file mode 100644 index b64b2eb2..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/ErrorInfo.java +++ /dev/null @@ -1,1251 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -/** - *
- * Describes the cause of the error with structured details.
- *
- * Example of an error when contacting the "pubsub.googleapis.com" API when it
- * is not enabled:
- *
- *     { "reason": "API_DISABLED"
- *       "domain": "googleapis.com"
- *       "metadata": {
- *         "resource": "projects/123",
- *         "service": "pubsub.googleapis.com"
- *       }
- *     }
- *
- * This response indicates that the pubsub.googleapis.com API is not enabled.
- *
- * Example of an error that is returned when attempting to create a Spanner
- * instance in a region that is out of stock:
- *
- *     { "reason": "STOCKOUT"
- *       "domain": "spanner.googleapis.com",
- *       "metadata": {
- *         "availableRegions": "us-central1,us-east2"
- *       }
- *     }
- * 
- * - * Protobuf type {@code rpc.v1.ErrorInfo} - */ -public final class ErrorInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:rpc.v1.ErrorInfo) - ErrorInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use ErrorInfo.newBuilder() to construct. - private ErrorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ErrorInfo() { - reason_ = ""; - domain_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ErrorInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ErrorInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ErrorInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.ErrorInfo.class, org.vdaas.vald.api.v1.rpc.ErrorInfo.Builder.class); - } - - public static final int REASON_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object reason_ = ""; - /** - *
-   * The reason of the error. This is a constant value that identifies the
-   * proximate cause of the error. Error reasons are unique within a particular
-   * domain of errors. This should be at most 63 characters and match a
-   * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
-   * UPPER_SNAKE_CASE.
-   * 
- * - * string reason = 1 [json_name = "reason"]; - * @return The reason. - */ - @java.lang.Override - public java.lang.String getReason() { - java.lang.Object ref = reason_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reason_ = s; - return s; - } - } - /** - *
-   * The reason of the error. This is a constant value that identifies the
-   * proximate cause of the error. Error reasons are unique within a particular
-   * domain of errors. This should be at most 63 characters and match a
-   * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
-   * UPPER_SNAKE_CASE.
-   * 
- * - * string reason = 1 [json_name = "reason"]; - * @return The bytes for reason. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getReasonBytes() { - java.lang.Object ref = reason_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object domain_ = ""; - /** - *
-   * The logical grouping to which the "reason" belongs. The error domain
-   * is typically the registered service name of the tool or product that
-   * generates the error. Example: "pubsub.googleapis.com". If the error is
-   * generated by some common infrastructure, the error domain must be a
-   * globally unique value that identifies the infrastructure. For Google API
-   * infrastructure, the error domain is "googleapis.com".
-   * 
- * - * string domain = 2 [json_name = "domain"]; - * @return The domain. - */ - @java.lang.Override - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - *
-   * The logical grouping to which the "reason" belongs. The error domain
-   * is typically the registered service name of the tool or product that
-   * generates the error. Example: "pubsub.googleapis.com". If the error is
-   * generated by some common infrastructure, the error domain must be a
-   * globally unique value that identifies the infrastructure. For Google API
-   * infrastructure, the error domain is "googleapis.com".
-   * 
- * - * string domain = 2 [json_name = "domain"]; - * @return The bytes for domain. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METADATA_FIELD_NUMBER = 3; - private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ErrorInfo_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { - if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); - } - return metadata_; - } - public int getMetadataCount() { - return internalGetMetadata().getMap().size(); - } - /** - *
-   * Additional structured details about this error.
-   *
-   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
-   * length. When identifying the current value of an exceeded limit, the units
-   * should be contained in the key, not the value.  For example, rather than
-   * {"instanceLimit": "100/request"}, should be returned as,
-   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
-   * instances that can be created in a single (batch) request.
-   * 
- * - * map<string, string> metadata = 3 [json_name = "metadata"]; - */ - @java.lang.Override - public boolean containsMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetMetadata().getMap().containsKey(key); - } - /** - * Use {@link #getMetadataMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getMetadata() { - return getMetadataMap(); - } - /** - *
-   * Additional structured details about this error.
-   *
-   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
-   * length. When identifying the current value of an exceeded limit, the units
-   * should be contained in the key, not the value.  For example, rather than
-   * {"instanceLimit": "100/request"}, should be returned as,
-   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
-   * instances that can be created in a single (batch) request.
-   * 
- * - * map<string, string> metadata = 3 [json_name = "metadata"]; - */ - @java.lang.Override - public java.util.Map getMetadataMap() { - return internalGetMetadata().getMap(); - } - /** - *
-   * Additional structured details about this error.
-   *
-   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
-   * length. When identifying the current value of an exceeded limit, the units
-   * should be contained in the key, not the value.  For example, rather than
-   * {"instanceLimit": "100/request"}, should be returned as,
-   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
-   * instances that can be created in a single (batch) request.
-   * 
- * - * map<string, string> metadata = 3 [json_name = "metadata"]; - */ - @java.lang.Override - public /* nullable */ -java.lang.String getMetadataOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * Additional structured details about this error.
-   *
-   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
-   * length. When identifying the current value of an exceeded limit, the units
-   * should be contained in the key, not the value.  For example, rather than
-   * {"instanceLimit": "100/request"}, should be returned as,
-   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
-   * instances that can be created in a single (batch) request.
-   * 
- * - * map<string, string> metadata = 3 [json_name = "metadata"]; - */ - @java.lang.Override - public java.lang.String getMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reason_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMetadata(), - MetadataDefaultEntryHolder.defaultEntry, - 3); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reason_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - for (java.util.Map.Entry entry - : internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, metadata__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.rpc.ErrorInfo)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.rpc.ErrorInfo other = (org.vdaas.vald.api.v1.rpc.ErrorInfo) obj; - - if (!getReason() - .equals(other.getReason())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!internalGetMetadata().equals( - other.internalGetMetadata())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REASON_FIELD_NUMBER; - hash = (53 * hash) + getReason().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - if (!internalGetMetadata().getMap().isEmpty()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + internalGetMetadata().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.ErrorInfo 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 org.vdaas.vald.api.v1.rpc.ErrorInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.ErrorInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Describes the cause of the error with structured details.
-   *
-   * Example of an error when contacting the "pubsub.googleapis.com" API when it
-   * is not enabled:
-   *
-   *     { "reason": "API_DISABLED"
-   *       "domain": "googleapis.com"
-   *       "metadata": {
-   *         "resource": "projects/123",
-   *         "service": "pubsub.googleapis.com"
-   *       }
-   *     }
-   *
-   * This response indicates that the pubsub.googleapis.com API is not enabled.
-   *
-   * Example of an error that is returned when attempting to create a Spanner
-   * instance in a region that is out of stock:
-   *
-   *     { "reason": "STOCKOUT"
-   *       "domain": "spanner.googleapis.com",
-   *       "metadata": {
-   *         "availableRegions": "us-central1,us-east2"
-   *       }
-   *     }
-   * 
- * - * Protobuf type {@code rpc.v1.ErrorInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:rpc.v1.ErrorInfo) - org.vdaas.vald.api.v1.rpc.ErrorInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ErrorInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetMutableMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ErrorInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.ErrorInfo.class, org.vdaas.vald.api.v1.rpc.ErrorInfo.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.rpc.ErrorInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - reason_ = ""; - domain_ = ""; - internalGetMutableMetadata().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ErrorInfo_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.ErrorInfo getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.rpc.ErrorInfo.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.ErrorInfo build() { - org.vdaas.vald.api.v1.rpc.ErrorInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.ErrorInfo buildPartial() { - org.vdaas.vald.api.v1.rpc.ErrorInfo result = new org.vdaas.vald.api.v1.rpc.ErrorInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.rpc.ErrorInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.reason_ = reason_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.domain_ = domain_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.metadata_ = internalGetMetadata(); - result.metadata_.makeImmutable(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.rpc.ErrorInfo) { - return mergeFrom((org.vdaas.vald.api.v1.rpc.ErrorInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.ErrorInfo other) { - if (other == org.vdaas.vald.api.v1.rpc.ErrorInfo.getDefaultInstance()) return this; - if (!other.getReason().isEmpty()) { - reason_ = other.reason_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - bitField0_ |= 0x00000002; - onChanged(); - } - internalGetMutableMetadata().mergeFrom( - other.internalGetMetadata()); - bitField0_ |= 0x00000004; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - reason_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - domain_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.protobuf.MapEntry - metadata__ = input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableMetadata().getMutableMap().put( - metadata__.getKey(), metadata__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object reason_ = ""; - /** - *
-     * The reason of the error. This is a constant value that identifies the
-     * proximate cause of the error. Error reasons are unique within a particular
-     * domain of errors. This should be at most 63 characters and match a
-     * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
-     * UPPER_SNAKE_CASE.
-     * 
- * - * string reason = 1 [json_name = "reason"]; - * @return The reason. - */ - public java.lang.String getReason() { - java.lang.Object ref = reason_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reason_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The reason of the error. This is a constant value that identifies the
-     * proximate cause of the error. Error reasons are unique within a particular
-     * domain of errors. This should be at most 63 characters and match a
-     * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
-     * UPPER_SNAKE_CASE.
-     * 
- * - * string reason = 1 [json_name = "reason"]; - * @return The bytes for reason. - */ - public com.google.protobuf.ByteString - getReasonBytes() { - java.lang.Object ref = reason_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The reason of the error. This is a constant value that identifies the
-     * proximate cause of the error. Error reasons are unique within a particular
-     * domain of errors. This should be at most 63 characters and match a
-     * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
-     * UPPER_SNAKE_CASE.
-     * 
- * - * string reason = 1 [json_name = "reason"]; - * @param value The reason to set. - * @return This builder for chaining. - */ - public Builder setReason( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - reason_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The reason of the error. This is a constant value that identifies the
-     * proximate cause of the error. Error reasons are unique within a particular
-     * domain of errors. This should be at most 63 characters and match a
-     * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
-     * UPPER_SNAKE_CASE.
-     * 
- * - * string reason = 1 [json_name = "reason"]; - * @return This builder for chaining. - */ - public Builder clearReason() { - reason_ = getDefaultInstance().getReason(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The reason of the error. This is a constant value that identifies the
-     * proximate cause of the error. Error reasons are unique within a particular
-     * domain of errors. This should be at most 63 characters and match a
-     * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
-     * UPPER_SNAKE_CASE.
-     * 
- * - * string reason = 1 [json_name = "reason"]; - * @param value The bytes for reason to set. - * @return This builder for chaining. - */ - public Builder setReasonBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - reason_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-     * The logical grouping to which the "reason" belongs. The error domain
-     * is typically the registered service name of the tool or product that
-     * generates the error. Example: "pubsub.googleapis.com". If the error is
-     * generated by some common infrastructure, the error domain must be a
-     * globally unique value that identifies the infrastructure. For Google API
-     * infrastructure, the error domain is "googleapis.com".
-     * 
- * - * string domain = 2 [json_name = "domain"]; - * @return The domain. - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The logical grouping to which the "reason" belongs. The error domain
-     * is typically the registered service name of the tool or product that
-     * generates the error. Example: "pubsub.googleapis.com". If the error is
-     * generated by some common infrastructure, the error domain must be a
-     * globally unique value that identifies the infrastructure. For Google API
-     * infrastructure, the error domain is "googleapis.com".
-     * 
- * - * string domain = 2 [json_name = "domain"]; - * @return The bytes for domain. - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The logical grouping to which the "reason" belongs. The error domain
-     * is typically the registered service name of the tool or product that
-     * generates the error. Example: "pubsub.googleapis.com". If the error is
-     * generated by some common infrastructure, the error domain must be a
-     * globally unique value that identifies the infrastructure. For Google API
-     * infrastructure, the error domain is "googleapis.com".
-     * 
- * - * string domain = 2 [json_name = "domain"]; - * @param value The domain to set. - * @return This builder for chaining. - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - domain_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The logical grouping to which the "reason" belongs. The error domain
-     * is typically the registered service name of the tool or product that
-     * generates the error. Example: "pubsub.googleapis.com". If the error is
-     * generated by some common infrastructure, the error domain must be a
-     * globally unique value that identifies the infrastructure. For Google API
-     * infrastructure, the error domain is "googleapis.com".
-     * 
- * - * string domain = 2 [json_name = "domain"]; - * @return This builder for chaining. - */ - public Builder clearDomain() { - domain_ = getDefaultInstance().getDomain(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * The logical grouping to which the "reason" belongs. The error domain
-     * is typically the registered service name of the tool or product that
-     * generates the error. Example: "pubsub.googleapis.com". If the error is
-     * generated by some common infrastructure, the error domain must be a
-     * globally unique value that identifies the infrastructure. For Google API
-     * infrastructure, the error domain is "googleapis.com".
-     * 
- * - * string domain = 2 [json_name = "domain"]; - * @param value The bytes for domain to set. - * @return This builder for chaining. - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - domain_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { - if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); - } - return metadata_; - } - private com.google.protobuf.MapField - internalGetMutableMetadata() { - if (metadata_ == null) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - } - if (!metadata_.isMutable()) { - metadata_ = metadata_.copy(); - } - bitField0_ |= 0x00000004; - onChanged(); - return metadata_; - } - public int getMetadataCount() { - return internalGetMetadata().getMap().size(); - } - /** - *
-     * Additional structured details about this error.
-     *
-     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
-     * length. When identifying the current value of an exceeded limit, the units
-     * should be contained in the key, not the value.  For example, rather than
-     * {"instanceLimit": "100/request"}, should be returned as,
-     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
-     * instances that can be created in a single (batch) request.
-     * 
- * - * map<string, string> metadata = 3 [json_name = "metadata"]; - */ - @java.lang.Override - public boolean containsMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetMetadata().getMap().containsKey(key); - } - /** - * Use {@link #getMetadataMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getMetadata() { - return getMetadataMap(); - } - /** - *
-     * Additional structured details about this error.
-     *
-     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
-     * length. When identifying the current value of an exceeded limit, the units
-     * should be contained in the key, not the value.  For example, rather than
-     * {"instanceLimit": "100/request"}, should be returned as,
-     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
-     * instances that can be created in a single (batch) request.
-     * 
- * - * map<string, string> metadata = 3 [json_name = "metadata"]; - */ - @java.lang.Override - public java.util.Map getMetadataMap() { - return internalGetMetadata().getMap(); - } - /** - *
-     * Additional structured details about this error.
-     *
-     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
-     * length. When identifying the current value of an exceeded limit, the units
-     * should be contained in the key, not the value.  For example, rather than
-     * {"instanceLimit": "100/request"}, should be returned as,
-     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
-     * instances that can be created in a single (batch) request.
-     * 
- * - * map<string, string> metadata = 3 [json_name = "metadata"]; - */ - @java.lang.Override - public /* nullable */ -java.lang.String getMetadataOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Additional structured details about this error.
-     *
-     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
-     * length. When identifying the current value of an exceeded limit, the units
-     * should be contained in the key, not the value.  For example, rather than
-     * {"instanceLimit": "100/request"}, should be returned as,
-     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
-     * instances that can be created in a single (batch) request.
-     * 
- * - * map<string, string> metadata = 3 [json_name = "metadata"]; - */ - @java.lang.Override - public java.lang.String getMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableMetadata().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Additional structured details about this error.
-     *
-     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
-     * length. When identifying the current value of an exceeded limit, the units
-     * should be contained in the key, not the value.  For example, rather than
-     * {"instanceLimit": "100/request"}, should be returned as,
-     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
-     * instances that can be created in a single (batch) request.
-     * 
- * - * map<string, string> metadata = 3 [json_name = "metadata"]; - */ - public Builder removeMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableMetadata().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableMetadata() { - bitField0_ |= 0x00000004; - return internalGetMutableMetadata().getMutableMap(); - } - /** - *
-     * Additional structured details about this error.
-     *
-     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
-     * length. When identifying the current value of an exceeded limit, the units
-     * should be contained in the key, not the value.  For example, rather than
-     * {"instanceLimit": "100/request"}, should be returned as,
-     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
-     * instances that can be created in a single (batch) request.
-     * 
- * - * map<string, string> metadata = 3 [json_name = "metadata"]; - */ - public Builder putMetadata( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableMetadata().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000004; - return this; - } - /** - *
-     * Additional structured details about this error.
-     *
-     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
-     * length. When identifying the current value of an exceeded limit, the units
-     * should be contained in the key, not the value.  For example, rather than
-     * {"instanceLimit": "100/request"}, should be returned as,
-     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
-     * instances that can be created in a single (batch) request.
-     * 
- * - * map<string, string> metadata = 3 [json_name = "metadata"]; - */ - public Builder putAllMetadata( - java.util.Map values) { - internalGetMutableMetadata().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000004; - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:rpc.v1.ErrorInfo) - } - - // @@protoc_insertion_point(class_scope:rpc.v1.ErrorInfo) - private static final org.vdaas.vald.api.v1.rpc.ErrorInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.ErrorInfo(); - } - - public static org.vdaas.vald.api.v1.rpc.ErrorInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.ErrorInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/ErrorInfoOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/ErrorInfoOrBuilder.java deleted file mode 100644 index 028dec9d..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/ErrorInfoOrBuilder.java +++ /dev/null @@ -1,157 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -public interface ErrorInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:rpc.v1.ErrorInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The reason of the error. This is a constant value that identifies the
-   * proximate cause of the error. Error reasons are unique within a particular
-   * domain of errors. This should be at most 63 characters and match a
-   * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
-   * UPPER_SNAKE_CASE.
-   * 
- * - * string reason = 1 [json_name = "reason"]; - * @return The reason. - */ - java.lang.String getReason(); - /** - *
-   * The reason of the error. This is a constant value that identifies the
-   * proximate cause of the error. Error reasons are unique within a particular
-   * domain of errors. This should be at most 63 characters and match a
-   * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
-   * UPPER_SNAKE_CASE.
-   * 
- * - * string reason = 1 [json_name = "reason"]; - * @return The bytes for reason. - */ - com.google.protobuf.ByteString - getReasonBytes(); - - /** - *
-   * The logical grouping to which the "reason" belongs. The error domain
-   * is typically the registered service name of the tool or product that
-   * generates the error. Example: "pubsub.googleapis.com". If the error is
-   * generated by some common infrastructure, the error domain must be a
-   * globally unique value that identifies the infrastructure. For Google API
-   * infrastructure, the error domain is "googleapis.com".
-   * 
- * - * string domain = 2 [json_name = "domain"]; - * @return The domain. - */ - java.lang.String getDomain(); - /** - *
-   * The logical grouping to which the "reason" belongs. The error domain
-   * is typically the registered service name of the tool or product that
-   * generates the error. Example: "pubsub.googleapis.com". If the error is
-   * generated by some common infrastructure, the error domain must be a
-   * globally unique value that identifies the infrastructure. For Google API
-   * infrastructure, the error domain is "googleapis.com".
-   * 
- * - * string domain = 2 [json_name = "domain"]; - * @return The bytes for domain. - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-   * Additional structured details about this error.
-   *
-   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
-   * length. When identifying the current value of an exceeded limit, the units
-   * should be contained in the key, not the value.  For example, rather than
-   * {"instanceLimit": "100/request"}, should be returned as,
-   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
-   * instances that can be created in a single (batch) request.
-   * 
- * - * map<string, string> metadata = 3 [json_name = "metadata"]; - */ - int getMetadataCount(); - /** - *
-   * Additional structured details about this error.
-   *
-   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
-   * length. When identifying the current value of an exceeded limit, the units
-   * should be contained in the key, not the value.  For example, rather than
-   * {"instanceLimit": "100/request"}, should be returned as,
-   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
-   * instances that can be created in a single (batch) request.
-   * 
- * - * map<string, string> metadata = 3 [json_name = "metadata"]; - */ - boolean containsMetadata( - java.lang.String key); - /** - * Use {@link #getMetadataMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getMetadata(); - /** - *
-   * Additional structured details about this error.
-   *
-   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
-   * length. When identifying the current value of an exceeded limit, the units
-   * should be contained in the key, not the value.  For example, rather than
-   * {"instanceLimit": "100/request"}, should be returned as,
-   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
-   * instances that can be created in a single (batch) request.
-   * 
- * - * map<string, string> metadata = 3 [json_name = "metadata"]; - */ - java.util.Map - getMetadataMap(); - /** - *
-   * Additional structured details about this error.
-   *
-   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
-   * length. When identifying the current value of an exceeded limit, the units
-   * should be contained in the key, not the value.  For example, rather than
-   * {"instanceLimit": "100/request"}, should be returned as,
-   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
-   * instances that can be created in a single (batch) request.
-   * 
- * - * map<string, string> metadata = 3 [json_name = "metadata"]; - */ - /* nullable */ -java.lang.String getMetadataOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - *
-   * Additional structured details about this error.
-   *
-   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
-   * length. When identifying the current value of an exceeded limit, the units
-   * should be contained in the key, not the value.  For example, rather than
-   * {"instanceLimit": "100/request"}, should be returned as,
-   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
-   * instances that can be created in a single (batch) request.
-   * 
- * - * map<string, string> metadata = 3 [json_name = "metadata"]; - */ - java.lang.String getMetadataOrThrow( - java.lang.String key); -} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/Help.java b/src/main/java/org/vdaas/vald/api/v1/rpc/Help.java deleted file mode 100644 index f06ea601..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/Help.java +++ /dev/null @@ -1,1648 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -/** - *
- * Provides links to documentation or for performing an out of band action.
- *
- * For example, if a quota check failed with an error indicating the calling
- * project hasn't enabled the accessed service, this can contain a URL pointing
- * directly to the right place in the developer console to flip the bit.
- * 
- * - * Protobuf type {@code rpc.v1.Help} - */ -public final class Help extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:rpc.v1.Help) - HelpOrBuilder { -private static final long serialVersionUID = 0L; - // Use Help.newBuilder() to construct. - private Help(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Help() { - links_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Help(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.Help.class, org.vdaas.vald.api.v1.rpc.Help.Builder.class); - } - - public interface LinkOrBuilder extends - // @@protoc_insertion_point(interface_extends:rpc.v1.Help.Link) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Describes what the link offers.
-     * 
- * - * string description = 1 [json_name = "description"]; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-     * Describes what the link offers.
-     * 
- * - * string description = 1 [json_name = "description"]; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-     * The URL of the link.
-     * 
- * - * string url = 2 [json_name = "url"]; - * @return The url. - */ - java.lang.String getUrl(); - /** - *
-     * The URL of the link.
-     * 
- * - * string url = 2 [json_name = "url"]; - * @return The bytes for url. - */ - com.google.protobuf.ByteString - getUrlBytes(); - } - /** - *
-   * Describes a URL link.
-   * 
- * - * Protobuf type {@code rpc.v1.Help.Link} - */ - public static final class Link extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:rpc.v1.Help.Link) - LinkOrBuilder { - private static final long serialVersionUID = 0L; - // Use Link.newBuilder() to construct. - private Link(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Link() { - description_ = ""; - url_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Link(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_Link_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_Link_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.Help.Link.class, org.vdaas.vald.api.v1.rpc.Help.Link.Builder.class); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - *
-     * Describes what the link offers.
-     * 
- * - * string description = 1 [json_name = "description"]; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-     * Describes what the link offers.
-     * 
- * - * string description = 1 [json_name = "description"]; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int URL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object url_ = ""; - /** - *
-     * The URL of the link.
-     * 
- * - * string url = 2 [json_name = "url"]; - * @return The url. - */ - @java.lang.Override - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } - } - /** - *
-     * The URL of the link.
-     * 
- * - * string url = 2 [json_name = "url"]; - * @return The bytes for url. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, url_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, url_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.rpc.Help.Link)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.rpc.Help.Link other = (org.vdaas.vald.api.v1.rpc.Help.Link) obj; - - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getUrl() - .equals(other.getUrl())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + URL_FIELD_NUMBER; - hash = (53 * hash) + getUrl().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.Help.Link 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 org.vdaas.vald.api.v1.rpc.Help.Link parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.rpc.Help.Link parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.Help.Link prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Describes a URL link.
-     * 
- * - * Protobuf type {@code rpc.v1.Help.Link} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:rpc.v1.Help.Link) - org.vdaas.vald.api.v1.rpc.Help.LinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_Link_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_Link_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.Help.Link.class, org.vdaas.vald.api.v1.rpc.Help.Link.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.rpc.Help.Link.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - description_ = ""; - url_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_Link_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.Help.Link getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.rpc.Help.Link.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.Help.Link build() { - org.vdaas.vald.api.v1.rpc.Help.Link result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.Help.Link buildPartial() { - org.vdaas.vald.api.v1.rpc.Help.Link result = new org.vdaas.vald.api.v1.rpc.Help.Link(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.rpc.Help.Link result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.url_ = url_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.rpc.Help.Link) { - return mergeFrom((org.vdaas.vald.api.v1.rpc.Help.Link)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.Help.Link other) { - if (other == org.vdaas.vald.api.v1.rpc.Help.Link.getDefaultInstance()) return this; - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getUrl().isEmpty()) { - url_ = other.url_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - url_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object description_ = ""; - /** - *
-       * Describes what the link offers.
-       * 
- * - * string description = 1 [json_name = "description"]; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Describes what the link offers.
-       * 
- * - * string description = 1 [json_name = "description"]; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Describes what the link offers.
-       * 
- * - * string description = 1 [json_name = "description"]; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - description_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Describes what the link offers.
-       * 
- * - * string description = 1 [json_name = "description"]; - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Describes what the link offers.
-       * 
- * - * string description = 1 [json_name = "description"]; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object url_ = ""; - /** - *
-       * The URL of the link.
-       * 
- * - * string url = 2 [json_name = "url"]; - * @return The url. - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The URL of the link.
-       * 
- * - * string url = 2 [json_name = "url"]; - * @return The bytes for url. - */ - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The URL of the link.
-       * 
- * - * string url = 2 [json_name = "url"]; - * @param value The url to set. - * @return This builder for chaining. - */ - public Builder setUrl( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - url_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The URL of the link.
-       * 
- * - * string url = 2 [json_name = "url"]; - * @return This builder for chaining. - */ - public Builder clearUrl() { - url_ = getDefaultInstance().getUrl(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * The URL of the link.
-       * 
- * - * string url = 2 [json_name = "url"]; - * @param value The bytes for url to set. - * @return This builder for chaining. - */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - url_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:rpc.v1.Help.Link) - } - - // @@protoc_insertion_point(class_scope:rpc.v1.Help.Link) - private static final org.vdaas.vald.api.v1.rpc.Help.Link DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.Help.Link(); - } - - public static org.vdaas.vald.api.v1.rpc.Help.Link getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Link parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.Help.Link getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int LINKS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List links_; - /** - *
-   * URL(s) pointing to additional information on handling the current error.
-   * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - @java.lang.Override - public java.util.List getLinksList() { - return links_; - } - /** - *
-   * URL(s) pointing to additional information on handling the current error.
-   * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - @java.lang.Override - public java.util.List - getLinksOrBuilderList() { - return links_; - } - /** - *
-   * URL(s) pointing to additional information on handling the current error.
-   * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - @java.lang.Override - public int getLinksCount() { - return links_.size(); - } - /** - *
-   * URL(s) pointing to additional information on handling the current error.
-   * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.Help.Link getLinks(int index) { - return links_.get(index); - } - /** - *
-   * URL(s) pointing to additional information on handling the current error.
-   * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.Help.LinkOrBuilder getLinksOrBuilder( - int index) { - return links_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < links_.size(); i++) { - output.writeMessage(1, links_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < links_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, links_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.rpc.Help)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.rpc.Help other = (org.vdaas.vald.api.v1.rpc.Help) obj; - - if (!getLinksList() - .equals(other.getLinksList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getLinksCount() > 0) { - hash = (37 * hash) + LINKS_FIELD_NUMBER; - hash = (53 * hash) + getLinksList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.rpc.Help parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.Help parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.Help parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.Help parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.Help parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.Help parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.Help parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.Help 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 org.vdaas.vald.api.v1.rpc.Help parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.rpc.Help parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.Help parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.Help parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.Help prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Provides links to documentation or for performing an out of band action.
-   *
-   * For example, if a quota check failed with an error indicating the calling
-   * project hasn't enabled the accessed service, this can contain a URL pointing
-   * directly to the right place in the developer console to flip the bit.
-   * 
- * - * Protobuf type {@code rpc.v1.Help} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:rpc.v1.Help) - org.vdaas.vald.api.v1.rpc.HelpOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.Help.class, org.vdaas.vald.api.v1.rpc.Help.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.rpc.Help.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (linksBuilder_ == null) { - links_ = java.util.Collections.emptyList(); - } else { - links_ = null; - linksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.Help getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.rpc.Help.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.Help build() { - org.vdaas.vald.api.v1.rpc.Help result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.Help buildPartial() { - org.vdaas.vald.api.v1.rpc.Help result = new org.vdaas.vald.api.v1.rpc.Help(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.rpc.Help result) { - if (linksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - links_ = java.util.Collections.unmodifiableList(links_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.links_ = links_; - } else { - result.links_ = linksBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.rpc.Help result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.rpc.Help) { - return mergeFrom((org.vdaas.vald.api.v1.rpc.Help)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.Help other) { - if (other == org.vdaas.vald.api.v1.rpc.Help.getDefaultInstance()) return this; - if (linksBuilder_ == null) { - if (!other.links_.isEmpty()) { - if (links_.isEmpty()) { - links_ = other.links_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLinksIsMutable(); - links_.addAll(other.links_); - } - onChanged(); - } - } else { - if (!other.links_.isEmpty()) { - if (linksBuilder_.isEmpty()) { - linksBuilder_.dispose(); - linksBuilder_ = null; - links_ = other.links_; - bitField0_ = (bitField0_ & ~0x00000001); - linksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLinksFieldBuilder() : null; - } else { - linksBuilder_.addAllMessages(other.links_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.rpc.Help.Link m = - input.readMessage( - org.vdaas.vald.api.v1.rpc.Help.Link.parser(), - extensionRegistry); - if (linksBuilder_ == null) { - ensureLinksIsMutable(); - links_.add(m); - } else { - linksBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List links_ = - java.util.Collections.emptyList(); - private void ensureLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - links_ = new java.util.ArrayList(links_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.rpc.Help.Link, org.vdaas.vald.api.v1.rpc.Help.Link.Builder, org.vdaas.vald.api.v1.rpc.Help.LinkOrBuilder> linksBuilder_; - - /** - *
-     * URL(s) pointing to additional information on handling the current error.
-     * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - public java.util.List getLinksList() { - if (linksBuilder_ == null) { - return java.util.Collections.unmodifiableList(links_); - } else { - return linksBuilder_.getMessageList(); - } - } - /** - *
-     * URL(s) pointing to additional information on handling the current error.
-     * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - public int getLinksCount() { - if (linksBuilder_ == null) { - return links_.size(); - } else { - return linksBuilder_.getCount(); - } - } - /** - *
-     * URL(s) pointing to additional information on handling the current error.
-     * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - public org.vdaas.vald.api.v1.rpc.Help.Link getLinks(int index) { - if (linksBuilder_ == null) { - return links_.get(index); - } else { - return linksBuilder_.getMessage(index); - } - } - /** - *
-     * URL(s) pointing to additional information on handling the current error.
-     * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - public Builder setLinks( - int index, org.vdaas.vald.api.v1.rpc.Help.Link value) { - if (linksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLinksIsMutable(); - links_.set(index, value); - onChanged(); - } else { - linksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * URL(s) pointing to additional information on handling the current error.
-     * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - public Builder setLinks( - int index, org.vdaas.vald.api.v1.rpc.Help.Link.Builder builderForValue) { - if (linksBuilder_ == null) { - ensureLinksIsMutable(); - links_.set(index, builderForValue.build()); - onChanged(); - } else { - linksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * URL(s) pointing to additional information on handling the current error.
-     * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - public Builder addLinks(org.vdaas.vald.api.v1.rpc.Help.Link value) { - if (linksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLinksIsMutable(); - links_.add(value); - onChanged(); - } else { - linksBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * URL(s) pointing to additional information on handling the current error.
-     * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - public Builder addLinks( - int index, org.vdaas.vald.api.v1.rpc.Help.Link value) { - if (linksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLinksIsMutable(); - links_.add(index, value); - onChanged(); - } else { - linksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * URL(s) pointing to additional information on handling the current error.
-     * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - public Builder addLinks( - org.vdaas.vald.api.v1.rpc.Help.Link.Builder builderForValue) { - if (linksBuilder_ == null) { - ensureLinksIsMutable(); - links_.add(builderForValue.build()); - onChanged(); - } else { - linksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * URL(s) pointing to additional information on handling the current error.
-     * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - public Builder addLinks( - int index, org.vdaas.vald.api.v1.rpc.Help.Link.Builder builderForValue) { - if (linksBuilder_ == null) { - ensureLinksIsMutable(); - links_.add(index, builderForValue.build()); - onChanged(); - } else { - linksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * URL(s) pointing to additional information on handling the current error.
-     * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - public Builder addAllLinks( - java.lang.Iterable values) { - if (linksBuilder_ == null) { - ensureLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, links_); - onChanged(); - } else { - linksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * URL(s) pointing to additional information on handling the current error.
-     * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - public Builder clearLinks() { - if (linksBuilder_ == null) { - links_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - linksBuilder_.clear(); - } - return this; - } - /** - *
-     * URL(s) pointing to additional information on handling the current error.
-     * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - public Builder removeLinks(int index) { - if (linksBuilder_ == null) { - ensureLinksIsMutable(); - links_.remove(index); - onChanged(); - } else { - linksBuilder_.remove(index); - } - return this; - } - /** - *
-     * URL(s) pointing to additional information on handling the current error.
-     * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - public org.vdaas.vald.api.v1.rpc.Help.Link.Builder getLinksBuilder( - int index) { - return getLinksFieldBuilder().getBuilder(index); - } - /** - *
-     * URL(s) pointing to additional information on handling the current error.
-     * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - public org.vdaas.vald.api.v1.rpc.Help.LinkOrBuilder getLinksOrBuilder( - int index) { - if (linksBuilder_ == null) { - return links_.get(index); } else { - return linksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * URL(s) pointing to additional information on handling the current error.
-     * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - public java.util.List - getLinksOrBuilderList() { - if (linksBuilder_ != null) { - return linksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(links_); - } - } - /** - *
-     * URL(s) pointing to additional information on handling the current error.
-     * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - public org.vdaas.vald.api.v1.rpc.Help.Link.Builder addLinksBuilder() { - return getLinksFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.rpc.Help.Link.getDefaultInstance()); - } - /** - *
-     * URL(s) pointing to additional information on handling the current error.
-     * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - public org.vdaas.vald.api.v1.rpc.Help.Link.Builder addLinksBuilder( - int index) { - return getLinksFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.rpc.Help.Link.getDefaultInstance()); - } - /** - *
-     * URL(s) pointing to additional information on handling the current error.
-     * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - public java.util.List - getLinksBuilderList() { - return getLinksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.rpc.Help.Link, org.vdaas.vald.api.v1.rpc.Help.Link.Builder, org.vdaas.vald.api.v1.rpc.Help.LinkOrBuilder> - getLinksFieldBuilder() { - if (linksBuilder_ == null) { - linksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.rpc.Help.Link, org.vdaas.vald.api.v1.rpc.Help.Link.Builder, org.vdaas.vald.api.v1.rpc.Help.LinkOrBuilder>( - links_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - links_ = null; - } - return linksBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:rpc.v1.Help) - } - - // @@protoc_insertion_point(class_scope:rpc.v1.Help) - private static final org.vdaas.vald.api.v1.rpc.Help DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.Help(); - } - - public static org.vdaas.vald.api.v1.rpc.Help getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Help parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.Help getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/HelpOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/HelpOrBuilder.java deleted file mode 100644 index 6058db4b..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/HelpOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -public interface HelpOrBuilder extends - // @@protoc_insertion_point(interface_extends:rpc.v1.Help) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * URL(s) pointing to additional information on handling the current error.
-   * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - java.util.List - getLinksList(); - /** - *
-   * URL(s) pointing to additional information on handling the current error.
-   * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - org.vdaas.vald.api.v1.rpc.Help.Link getLinks(int index); - /** - *
-   * URL(s) pointing to additional information on handling the current error.
-   * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - int getLinksCount(); - /** - *
-   * URL(s) pointing to additional information on handling the current error.
-   * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - java.util.List - getLinksOrBuilderList(); - /** - *
-   * URL(s) pointing to additional information on handling the current error.
-   * 
- * - * repeated .rpc.v1.Help.Link links = 1 [json_name = "links"]; - */ - org.vdaas.vald.api.v1.rpc.Help.LinkOrBuilder getLinksOrBuilder( - int index); -} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/LocalizedMessage.java b/src/main/java/org/vdaas/vald/api/v1/rpc/LocalizedMessage.java deleted file mode 100644 index 897e3c59..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/LocalizedMessage.java +++ /dev/null @@ -1,758 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -/** - *
- * Provides a localized error message that is safe to return to the user
- * which can be attached to an RPC error.
- * 
- * - * Protobuf type {@code rpc.v1.LocalizedMessage} - */ -public final class LocalizedMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:rpc.v1.LocalizedMessage) - LocalizedMessageOrBuilder { -private static final long serialVersionUID = 0L; - // Use LocalizedMessage.newBuilder() to construct. - private LocalizedMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LocalizedMessage() { - locale_ = ""; - message_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LocalizedMessage(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_LocalizedMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_LocalizedMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.LocalizedMessage.class, org.vdaas.vald.api.v1.rpc.LocalizedMessage.Builder.class); - } - - public static final int LOCALE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object locale_ = ""; - /** - *
-   * The locale used following the specification defined at
-   * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
-   * Examples are: "en-US", "fr-CH", "es-MX"
-   * 
- * - * string locale = 1 [json_name = "locale"]; - * @return The locale. - */ - @java.lang.Override - public java.lang.String getLocale() { - java.lang.Object ref = locale_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - locale_ = s; - return s; - } - } - /** - *
-   * The locale used following the specification defined at
-   * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
-   * Examples are: "en-US", "fr-CH", "es-MX"
-   * 
- * - * string locale = 1 [json_name = "locale"]; - * @return The bytes for locale. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLocaleBytes() { - java.lang.Object ref = locale_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - locale_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object message_ = ""; - /** - *
-   * The localized error message in the above locale.
-   * 
- * - * string message = 2 [json_name = "message"]; - * @return The message. - */ - @java.lang.Override - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - *
-   * The localized error message in the above locale.
-   * 
- * - * string message = 2 [json_name = "message"]; - * @return The bytes for message. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locale_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, locale_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locale_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, locale_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.rpc.LocalizedMessage)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.rpc.LocalizedMessage other = (org.vdaas.vald.api.v1.rpc.LocalizedMessage) obj; - - if (!getLocale() - .equals(other.getLocale())) return false; - if (!getMessage() - .equals(other.getMessage())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LOCALE_FIELD_NUMBER; - hash = (53 * hash) + getLocale().hashCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.LocalizedMessage 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 org.vdaas.vald.api.v1.rpc.LocalizedMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.LocalizedMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Provides a localized error message that is safe to return to the user
-   * which can be attached to an RPC error.
-   * 
- * - * Protobuf type {@code rpc.v1.LocalizedMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:rpc.v1.LocalizedMessage) - org.vdaas.vald.api.v1.rpc.LocalizedMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_LocalizedMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_LocalizedMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.LocalizedMessage.class, org.vdaas.vald.api.v1.rpc.LocalizedMessage.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.rpc.LocalizedMessage.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - locale_ = ""; - message_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_LocalizedMessage_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.LocalizedMessage getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.rpc.LocalizedMessage.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.LocalizedMessage build() { - org.vdaas.vald.api.v1.rpc.LocalizedMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.LocalizedMessage buildPartial() { - org.vdaas.vald.api.v1.rpc.LocalizedMessage result = new org.vdaas.vald.api.v1.rpc.LocalizedMessage(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.rpc.LocalizedMessage result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.locale_ = locale_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.message_ = message_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.rpc.LocalizedMessage) { - return mergeFrom((org.vdaas.vald.api.v1.rpc.LocalizedMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.LocalizedMessage other) { - if (other == org.vdaas.vald.api.v1.rpc.LocalizedMessage.getDefaultInstance()) return this; - if (!other.getLocale().isEmpty()) { - locale_ = other.locale_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - locale_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - message_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object locale_ = ""; - /** - *
-     * The locale used following the specification defined at
-     * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
-     * Examples are: "en-US", "fr-CH", "es-MX"
-     * 
- * - * string locale = 1 [json_name = "locale"]; - * @return The locale. - */ - public java.lang.String getLocale() { - java.lang.Object ref = locale_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - locale_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The locale used following the specification defined at
-     * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
-     * Examples are: "en-US", "fr-CH", "es-MX"
-     * 
- * - * string locale = 1 [json_name = "locale"]; - * @return The bytes for locale. - */ - public com.google.protobuf.ByteString - getLocaleBytes() { - java.lang.Object ref = locale_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - locale_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The locale used following the specification defined at
-     * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
-     * Examples are: "en-US", "fr-CH", "es-MX"
-     * 
- * - * string locale = 1 [json_name = "locale"]; - * @param value The locale to set. - * @return This builder for chaining. - */ - public Builder setLocale( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - locale_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The locale used following the specification defined at
-     * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
-     * Examples are: "en-US", "fr-CH", "es-MX"
-     * 
- * - * string locale = 1 [json_name = "locale"]; - * @return This builder for chaining. - */ - public Builder clearLocale() { - locale_ = getDefaultInstance().getLocale(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The locale used following the specification defined at
-     * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
-     * Examples are: "en-US", "fr-CH", "es-MX"
-     * 
- * - * string locale = 1 [json_name = "locale"]; - * @param value The bytes for locale to set. - * @return This builder for chaining. - */ - public Builder setLocaleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - locale_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-     * The localized error message in the above locale.
-     * 
- * - * string message = 2 [json_name = "message"]; - * @return The message. - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The localized error message in the above locale.
-     * 
- * - * string message = 2 [json_name = "message"]; - * @return The bytes for message. - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The localized error message in the above locale.
-     * 
- * - * string message = 2 [json_name = "message"]; - * @param value The message to set. - * @return This builder for chaining. - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - message_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The localized error message in the above locale.
-     * 
- * - * string message = 2 [json_name = "message"]; - * @return This builder for chaining. - */ - public Builder clearMessage() { - message_ = getDefaultInstance().getMessage(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * The localized error message in the above locale.
-     * 
- * - * string message = 2 [json_name = "message"]; - * @param value The bytes for message to set. - * @return This builder for chaining. - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - message_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:rpc.v1.LocalizedMessage) - } - - // @@protoc_insertion_point(class_scope:rpc.v1.LocalizedMessage) - private static final org.vdaas.vald.api.v1.rpc.LocalizedMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.LocalizedMessage(); - } - - public static org.vdaas.vald.api.v1.rpc.LocalizedMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocalizedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.LocalizedMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/LocalizedMessageOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/LocalizedMessageOrBuilder.java deleted file mode 100644 index dd981e5b..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/LocalizedMessageOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -public interface LocalizedMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:rpc.v1.LocalizedMessage) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The locale used following the specification defined at
-   * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
-   * Examples are: "en-US", "fr-CH", "es-MX"
-   * 
- * - * string locale = 1 [json_name = "locale"]; - * @return The locale. - */ - java.lang.String getLocale(); - /** - *
-   * The locale used following the specification defined at
-   * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
-   * Examples are: "en-US", "fr-CH", "es-MX"
-   * 
- * - * string locale = 1 [json_name = "locale"]; - * @return The bytes for locale. - */ - com.google.protobuf.ByteString - getLocaleBytes(); - - /** - *
-   * The localized error message in the above locale.
-   * 
- * - * string message = 2 [json_name = "message"]; - * @return The message. - */ - java.lang.String getMessage(); - /** - *
-   * The localized error message in the above locale.
-   * 
- * - * string message = 2 [json_name = "message"]; - * @return The bytes for message. - */ - com.google.protobuf.ByteString - getMessageBytes(); -} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/PreconditionFailure.java b/src/main/java/org/vdaas/vald/api/v1/rpc/PreconditionFailure.java deleted file mode 100644 index ae566584..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/PreconditionFailure.java +++ /dev/null @@ -1,1895 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -/** - *
- * Describes what preconditions have failed.
- *
- * For example, if an RPC failed because it required the Terms of Service to be
- * acknowledged, it could list the terms of service violation in the
- * PreconditionFailure message.
- * 
- * - * Protobuf type {@code rpc.v1.PreconditionFailure} - */ -public final class PreconditionFailure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:rpc.v1.PreconditionFailure) - PreconditionFailureOrBuilder { -private static final long serialVersionUID = 0L; - // Use PreconditionFailure.newBuilder() to construct. - private PreconditionFailure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PreconditionFailure() { - violations_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PreconditionFailure(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.PreconditionFailure.class, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Builder.class); - } - - public interface ViolationOrBuilder extends - // @@protoc_insertion_point(interface_extends:rpc.v1.PreconditionFailure.Violation) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The type of PreconditionFailure. We recommend using a service-specific
-     * enum type to define the supported precondition violation subjects. For
-     * example, "TOS" for "Terms of Service violation".
-     * 
- * - * string type = 1 [json_name = "type"]; - * @return The type. - */ - java.lang.String getType(); - /** - *
-     * The type of PreconditionFailure. We recommend using a service-specific
-     * enum type to define the supported precondition violation subjects. For
-     * example, "TOS" for "Terms of Service violation".
-     * 
- * - * string type = 1 [json_name = "type"]; - * @return The bytes for type. - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - *
-     * The subject, relative to the type, that failed.
-     * For example, "google.com/cloud" relative to the "TOS" type would indicate
-     * which terms of service is being referenced.
-     * 
- * - * string subject = 2 [json_name = "subject"]; - * @return The subject. - */ - java.lang.String getSubject(); - /** - *
-     * The subject, relative to the type, that failed.
-     * For example, "google.com/cloud" relative to the "TOS" type would indicate
-     * which terms of service is being referenced.
-     * 
- * - * string subject = 2 [json_name = "subject"]; - * @return The bytes for subject. - */ - com.google.protobuf.ByteString - getSubjectBytes(); - - /** - *
-     * A description of how the precondition failed. Developers can use this
-     * description to understand how to fix the failure.
-     *
-     * For example: "Terms of service not accepted".
-     * 
- * - * string description = 3 [json_name = "description"]; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-     * A description of how the precondition failed. Developers can use this
-     * description to understand how to fix the failure.
-     *
-     * For example: "Terms of service not accepted".
-     * 
- * - * string description = 3 [json_name = "description"]; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - } - /** - *
-   * A message type used to describe a single precondition failure.
-   * 
- * - * Protobuf type {@code rpc.v1.PreconditionFailure.Violation} - */ - public static final class Violation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:rpc.v1.PreconditionFailure.Violation) - ViolationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Violation.newBuilder() to construct. - private Violation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Violation() { - type_ = ""; - subject_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Violation(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_Violation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_Violation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.class, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object type_ = ""; - /** - *
-     * The type of PreconditionFailure. We recommend using a service-specific
-     * enum type to define the supported precondition violation subjects. For
-     * example, "TOS" for "Terms of Service violation".
-     * 
- * - * string type = 1 [json_name = "type"]; - * @return The type. - */ - @java.lang.Override - public java.lang.String getType() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } - } - /** - *
-     * The type of PreconditionFailure. We recommend using a service-specific
-     * enum type to define the supported precondition violation subjects. For
-     * example, "TOS" for "Terms of Service violation".
-     * 
- * - * string type = 1 [json_name = "type"]; - * @return The bytes for type. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUBJECT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object subject_ = ""; - /** - *
-     * The subject, relative to the type, that failed.
-     * For example, "google.com/cloud" relative to the "TOS" type would indicate
-     * which terms of service is being referenced.
-     * 
- * - * string subject = 2 [json_name = "subject"]; - * @return The subject. - */ - @java.lang.Override - public java.lang.String getSubject() { - java.lang.Object ref = subject_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subject_ = s; - return s; - } - } - /** - *
-     * The subject, relative to the type, that failed.
-     * For example, "google.com/cloud" relative to the "TOS" type would indicate
-     * which terms of service is being referenced.
-     * 
- * - * string subject = 2 [json_name = "subject"]; - * @return The bytes for subject. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSubjectBytes() { - java.lang.Object ref = subject_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subject_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - *
-     * A description of how the precondition failed. Developers can use this
-     * description to understand how to fix the failure.
-     *
-     * For example: "Terms of service not accepted".
-     * 
- * - * string description = 3 [json_name = "description"]; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-     * A description of how the precondition failed. Developers can use this
-     * description to understand how to fix the failure.
-     *
-     * For example: "Terms of service not accepted".
-     * 
- * - * string description = 3 [json_name = "description"]; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subject_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subject_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation other = (org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation) obj; - - if (!getType() - .equals(other.getType())) return false; - if (!getSubject() - .equals(other.getSubject())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - hash = (37 * hash) + SUBJECT_FIELD_NUMBER; - hash = (53 * hash) + getSubject().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation 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 org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A message type used to describe a single precondition failure.
-     * 
- * - * Protobuf type {@code rpc.v1.PreconditionFailure.Violation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:rpc.v1.PreconditionFailure.Violation) - org.vdaas.vald.api.v1.rpc.PreconditionFailure.ViolationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_Violation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_Violation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.class, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - type_ = ""; - subject_ = ""; - description_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_Violation_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation build() { - org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation buildPartial() { - org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation result = new org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.type_ = type_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.subject_ = subject_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.description_ = description_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation) { - return mergeFrom((org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation other) { - if (other == org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.getDefaultInstance()) return this; - if (!other.getType().isEmpty()) { - type_ = other.type_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getSubject().isEmpty()) { - subject_ = other.subject_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - type_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - subject_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object type_ = ""; - /** - *
-       * The type of PreconditionFailure. We recommend using a service-specific
-       * enum type to define the supported precondition violation subjects. For
-       * example, "TOS" for "Terms of Service violation".
-       * 
- * - * string type = 1 [json_name = "type"]; - * @return The type. - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The type of PreconditionFailure. We recommend using a service-specific
-       * enum type to define the supported precondition violation subjects. For
-       * example, "TOS" for "Terms of Service violation".
-       * 
- * - * string type = 1 [json_name = "type"]; - * @return The bytes for type. - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The type of PreconditionFailure. We recommend using a service-specific
-       * enum type to define the supported precondition violation subjects. For
-       * example, "TOS" for "Terms of Service violation".
-       * 
- * - * string type = 1 [json_name = "type"]; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - type_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The type of PreconditionFailure. We recommend using a service-specific
-       * enum type to define the supported precondition violation subjects. For
-       * example, "TOS" for "Terms of Service violation".
-       * 
- * - * string type = 1 [json_name = "type"]; - * @return This builder for chaining. - */ - public Builder clearType() { - type_ = getDefaultInstance().getType(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The type of PreconditionFailure. We recommend using a service-specific
-       * enum type to define the supported precondition violation subjects. For
-       * example, "TOS" for "Terms of Service violation".
-       * 
- * - * string type = 1 [json_name = "type"]; - * @param value The bytes for type to set. - * @return This builder for chaining. - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - type_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object subject_ = ""; - /** - *
-       * The subject, relative to the type, that failed.
-       * For example, "google.com/cloud" relative to the "TOS" type would indicate
-       * which terms of service is being referenced.
-       * 
- * - * string subject = 2 [json_name = "subject"]; - * @return The subject. - */ - public java.lang.String getSubject() { - java.lang.Object ref = subject_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subject_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The subject, relative to the type, that failed.
-       * For example, "google.com/cloud" relative to the "TOS" type would indicate
-       * which terms of service is being referenced.
-       * 
- * - * string subject = 2 [json_name = "subject"]; - * @return The bytes for subject. - */ - public com.google.protobuf.ByteString - getSubjectBytes() { - java.lang.Object ref = subject_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subject_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The subject, relative to the type, that failed.
-       * For example, "google.com/cloud" relative to the "TOS" type would indicate
-       * which terms of service is being referenced.
-       * 
- * - * string subject = 2 [json_name = "subject"]; - * @param value The subject to set. - * @return This builder for chaining. - */ - public Builder setSubject( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - subject_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The subject, relative to the type, that failed.
-       * For example, "google.com/cloud" relative to the "TOS" type would indicate
-       * which terms of service is being referenced.
-       * 
- * - * string subject = 2 [json_name = "subject"]; - * @return This builder for chaining. - */ - public Builder clearSubject() { - subject_ = getDefaultInstance().getSubject(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * The subject, relative to the type, that failed.
-       * For example, "google.com/cloud" relative to the "TOS" type would indicate
-       * which terms of service is being referenced.
-       * 
- * - * string subject = 2 [json_name = "subject"]; - * @param value The bytes for subject to set. - * @return This builder for chaining. - */ - public Builder setSubjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - subject_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-       * A description of how the precondition failed. Developers can use this
-       * description to understand how to fix the failure.
-       *
-       * For example: "Terms of service not accepted".
-       * 
- * - * string description = 3 [json_name = "description"]; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A description of how the precondition failed. Developers can use this
-       * description to understand how to fix the failure.
-       *
-       * For example: "Terms of service not accepted".
-       * 
- * - * string description = 3 [json_name = "description"]; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A description of how the precondition failed. Developers can use this
-       * description to understand how to fix the failure.
-       *
-       * For example: "Terms of service not accepted".
-       * 
- * - * string description = 3 [json_name = "description"]; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * A description of how the precondition failed. Developers can use this
-       * description to understand how to fix the failure.
-       *
-       * For example: "Terms of service not accepted".
-       * 
- * - * string description = 3 [json_name = "description"]; - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-       * A description of how the precondition failed. Developers can use this
-       * description to understand how to fix the failure.
-       *
-       * For example: "Terms of service not accepted".
-       * 
- * - * string description = 3 [json_name = "description"]; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:rpc.v1.PreconditionFailure.Violation) - } - - // @@protoc_insertion_point(class_scope:rpc.v1.PreconditionFailure.Violation) - private static final org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation(); - } - - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Violation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int VIOLATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List violations_; - /** - *
-   * Describes all precondition violations.
-   * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - @java.lang.Override - public java.util.List getViolationsList() { - return violations_; - } - /** - *
-   * Describes all precondition violations.
-   * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - @java.lang.Override - public java.util.List - getViolationsOrBuilderList() { - return violations_; - } - /** - *
-   * Describes all precondition violations.
-   * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - @java.lang.Override - public int getViolationsCount() { - return violations_.size(); - } - /** - *
-   * Describes all precondition violations.
-   * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation getViolations(int index) { - return violations_.get(index); - } - /** - *
-   * Describes all precondition violations.
-   * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.PreconditionFailure.ViolationOrBuilder getViolationsOrBuilder( - int index) { - return violations_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < violations_.size(); i++) { - output.writeMessage(1, violations_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < violations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, violations_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.rpc.PreconditionFailure)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.rpc.PreconditionFailure other = (org.vdaas.vald.api.v1.rpc.PreconditionFailure) obj; - - if (!getViolationsList() - .equals(other.getViolationsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getViolationsCount() > 0) { - hash = (37 * hash) + VIOLATIONS_FIELD_NUMBER; - hash = (53 * hash) + getViolationsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure 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 org.vdaas.vald.api.v1.rpc.PreconditionFailure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.PreconditionFailure prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Describes what preconditions have failed.
-   *
-   * For example, if an RPC failed because it required the Terms of Service to be
-   * acknowledged, it could list the terms of service violation in the
-   * PreconditionFailure message.
-   * 
- * - * Protobuf type {@code rpc.v1.PreconditionFailure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:rpc.v1.PreconditionFailure) - org.vdaas.vald.api.v1.rpc.PreconditionFailureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.PreconditionFailure.class, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.rpc.PreconditionFailure.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (violationsBuilder_ == null) { - violations_ = java.util.Collections.emptyList(); - } else { - violations_ = null; - violationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.PreconditionFailure getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.rpc.PreconditionFailure.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.PreconditionFailure build() { - org.vdaas.vald.api.v1.rpc.PreconditionFailure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.PreconditionFailure buildPartial() { - org.vdaas.vald.api.v1.rpc.PreconditionFailure result = new org.vdaas.vald.api.v1.rpc.PreconditionFailure(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.rpc.PreconditionFailure result) { - if (violationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - violations_ = java.util.Collections.unmodifiableList(violations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.violations_ = violations_; - } else { - result.violations_ = violationsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.rpc.PreconditionFailure result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.rpc.PreconditionFailure) { - return mergeFrom((org.vdaas.vald.api.v1.rpc.PreconditionFailure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.PreconditionFailure other) { - if (other == org.vdaas.vald.api.v1.rpc.PreconditionFailure.getDefaultInstance()) return this; - if (violationsBuilder_ == null) { - if (!other.violations_.isEmpty()) { - if (violations_.isEmpty()) { - violations_ = other.violations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureViolationsIsMutable(); - violations_.addAll(other.violations_); - } - onChanged(); - } - } else { - if (!other.violations_.isEmpty()) { - if (violationsBuilder_.isEmpty()) { - violationsBuilder_.dispose(); - violationsBuilder_ = null; - violations_ = other.violations_; - bitField0_ = (bitField0_ & ~0x00000001); - violationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getViolationsFieldBuilder() : null; - } else { - violationsBuilder_.addAllMessages(other.violations_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation m = - input.readMessage( - org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.parser(), - extensionRegistry); - if (violationsBuilder_ == null) { - ensureViolationsIsMutable(); - violations_.add(m); - } else { - violationsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List violations_ = - java.util.Collections.emptyList(); - private void ensureViolationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - violations_ = new java.util.ArrayList(violations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder, org.vdaas.vald.api.v1.rpc.PreconditionFailure.ViolationOrBuilder> violationsBuilder_; - - /** - *
-     * Describes all precondition violations.
-     * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - public java.util.List getViolationsList() { - if (violationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(violations_); - } else { - return violationsBuilder_.getMessageList(); - } - } - /** - *
-     * Describes all precondition violations.
-     * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - public int getViolationsCount() { - if (violationsBuilder_ == null) { - return violations_.size(); - } else { - return violationsBuilder_.getCount(); - } - } - /** - *
-     * Describes all precondition violations.
-     * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - public org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation getViolations(int index) { - if (violationsBuilder_ == null) { - return violations_.get(index); - } else { - return violationsBuilder_.getMessage(index); - } - } - /** - *
-     * Describes all precondition violations.
-     * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - public Builder setViolations( - int index, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation value) { - if (violationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureViolationsIsMutable(); - violations_.set(index, value); - onChanged(); - } else { - violationsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Describes all precondition violations.
-     * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - public Builder setViolations( - int index, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder builderForValue) { - if (violationsBuilder_ == null) { - ensureViolationsIsMutable(); - violations_.set(index, builderForValue.build()); - onChanged(); - } else { - violationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Describes all precondition violations.
-     * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - public Builder addViolations(org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation value) { - if (violationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureViolationsIsMutable(); - violations_.add(value); - onChanged(); - } else { - violationsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Describes all precondition violations.
-     * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - public Builder addViolations( - int index, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation value) { - if (violationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureViolationsIsMutable(); - violations_.add(index, value); - onChanged(); - } else { - violationsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Describes all precondition violations.
-     * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - public Builder addViolations( - org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder builderForValue) { - if (violationsBuilder_ == null) { - ensureViolationsIsMutable(); - violations_.add(builderForValue.build()); - onChanged(); - } else { - violationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Describes all precondition violations.
-     * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - public Builder addViolations( - int index, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder builderForValue) { - if (violationsBuilder_ == null) { - ensureViolationsIsMutable(); - violations_.add(index, builderForValue.build()); - onChanged(); - } else { - violationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Describes all precondition violations.
-     * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - public Builder addAllViolations( - java.lang.Iterable values) { - if (violationsBuilder_ == null) { - ensureViolationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, violations_); - onChanged(); - } else { - violationsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Describes all precondition violations.
-     * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - public Builder clearViolations() { - if (violationsBuilder_ == null) { - violations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - violationsBuilder_.clear(); - } - return this; - } - /** - *
-     * Describes all precondition violations.
-     * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - public Builder removeViolations(int index) { - if (violationsBuilder_ == null) { - ensureViolationsIsMutable(); - violations_.remove(index); - onChanged(); - } else { - violationsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Describes all precondition violations.
-     * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - public org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder getViolationsBuilder( - int index) { - return getViolationsFieldBuilder().getBuilder(index); - } - /** - *
-     * Describes all precondition violations.
-     * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - public org.vdaas.vald.api.v1.rpc.PreconditionFailure.ViolationOrBuilder getViolationsOrBuilder( - int index) { - if (violationsBuilder_ == null) { - return violations_.get(index); } else { - return violationsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Describes all precondition violations.
-     * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - public java.util.List - getViolationsOrBuilderList() { - if (violationsBuilder_ != null) { - return violationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(violations_); - } - } - /** - *
-     * Describes all precondition violations.
-     * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - public org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder addViolationsBuilder() { - return getViolationsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.getDefaultInstance()); - } - /** - *
-     * Describes all precondition violations.
-     * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - public org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder addViolationsBuilder( - int index) { - return getViolationsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.getDefaultInstance()); - } - /** - *
-     * Describes all precondition violations.
-     * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - public java.util.List - getViolationsBuilderList() { - return getViolationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder, org.vdaas.vald.api.v1.rpc.PreconditionFailure.ViolationOrBuilder> - getViolationsFieldBuilder() { - if (violationsBuilder_ == null) { - violationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder, org.vdaas.vald.api.v1.rpc.PreconditionFailure.ViolationOrBuilder>( - violations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - violations_ = null; - } - return violationsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:rpc.v1.PreconditionFailure) - } - - // @@protoc_insertion_point(class_scope:rpc.v1.PreconditionFailure) - private static final org.vdaas.vald.api.v1.rpc.PreconditionFailure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.PreconditionFailure(); - } - - public static org.vdaas.vald.api.v1.rpc.PreconditionFailure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PreconditionFailure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.PreconditionFailure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/PreconditionFailureOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/PreconditionFailureOrBuilder.java deleted file mode 100644 index 8737d3ac..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/PreconditionFailureOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -public interface PreconditionFailureOrBuilder extends - // @@protoc_insertion_point(interface_extends:rpc.v1.PreconditionFailure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Describes all precondition violations.
-   * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - java.util.List - getViolationsList(); - /** - *
-   * Describes all precondition violations.
-   * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation getViolations(int index); - /** - *
-   * Describes all precondition violations.
-   * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - int getViolationsCount(); - /** - *
-   * Describes all precondition violations.
-   * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - java.util.List - getViolationsOrBuilderList(); - /** - *
-   * Describes all precondition violations.
-   * 
- * - * repeated .rpc.v1.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - */ - org.vdaas.vald.api.v1.rpc.PreconditionFailure.ViolationOrBuilder getViolationsOrBuilder( - int index); -} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/QuotaFailure.java b/src/main/java/org/vdaas/vald/api/v1/rpc/QuotaFailure.java deleted file mode 100644 index 0c635ed6..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/QuotaFailure.java +++ /dev/null @@ -1,1734 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -/** - *
- * Describes how a quota check failed.
- *
- * For example if a daily limit was exceeded for the calling project,
- * a service could respond with a QuotaFailure detail containing the project
- * id and the description of the quota limit that was exceeded.  If the
- * calling project hasn't enabled the service in the developer console, then
- * a service could respond with the project id and set `service_disabled`
- * to true.
- *
- * Also see RetryInfo and Help types for other details about handling a
- * quota failure.
- * 
- * - * Protobuf type {@code rpc.v1.QuotaFailure} - */ -public final class QuotaFailure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:rpc.v1.QuotaFailure) - QuotaFailureOrBuilder { -private static final long serialVersionUID = 0L; - // Use QuotaFailure.newBuilder() to construct. - private QuotaFailure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QuotaFailure() { - violations_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new QuotaFailure(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.QuotaFailure.class, org.vdaas.vald.api.v1.rpc.QuotaFailure.Builder.class); - } - - public interface ViolationOrBuilder extends - // @@protoc_insertion_point(interface_extends:rpc.v1.QuotaFailure.Violation) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The subject on which the quota check failed.
-     * For example, "clientip:<ip address of client>" or "project:<Google
-     * developer project id>".
-     * 
- * - * string subject = 1 [json_name = "subject"]; - * @return The subject. - */ - java.lang.String getSubject(); - /** - *
-     * The subject on which the quota check failed.
-     * For example, "clientip:<ip address of client>" or "project:<Google
-     * developer project id>".
-     * 
- * - * string subject = 1 [json_name = "subject"]; - * @return The bytes for subject. - */ - com.google.protobuf.ByteString - getSubjectBytes(); - - /** - *
-     * A description of how the quota check failed. Clients can use this
-     * description to find more about the quota configuration in the service's
-     * public documentation, or find the relevant quota limit to adjust through
-     * developer console.
-     *
-     * For example: "Service disabled" or "Daily Limit for read operations
-     * exceeded".
-     * 
- * - * string description = 2 [json_name = "description"]; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-     * A description of how the quota check failed. Clients can use this
-     * description to find more about the quota configuration in the service's
-     * public documentation, or find the relevant quota limit to adjust through
-     * developer console.
-     *
-     * For example: "Service disabled" or "Daily Limit for read operations
-     * exceeded".
-     * 
- * - * string description = 2 [json_name = "description"]; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - } - /** - *
-   * A message type used to describe a single quota violation.  For example, a
-   * daily quota or a custom quota that was exceeded.
-   * 
- * - * Protobuf type {@code rpc.v1.QuotaFailure.Violation} - */ - public static final class Violation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:rpc.v1.QuotaFailure.Violation) - ViolationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Violation.newBuilder() to construct. - private Violation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Violation() { - subject_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Violation(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_Violation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_Violation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.class, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder.class); - } - - public static final int SUBJECT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object subject_ = ""; - /** - *
-     * The subject on which the quota check failed.
-     * For example, "clientip:<ip address of client>" or "project:<Google
-     * developer project id>".
-     * 
- * - * string subject = 1 [json_name = "subject"]; - * @return The subject. - */ - @java.lang.Override - public java.lang.String getSubject() { - java.lang.Object ref = subject_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subject_ = s; - return s; - } - } - /** - *
-     * The subject on which the quota check failed.
-     * For example, "clientip:<ip address of client>" or "project:<Google
-     * developer project id>".
-     * 
- * - * string subject = 1 [json_name = "subject"]; - * @return The bytes for subject. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSubjectBytes() { - java.lang.Object ref = subject_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subject_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - *
-     * A description of how the quota check failed. Clients can use this
-     * description to find more about the quota configuration in the service's
-     * public documentation, or find the relevant quota limit to adjust through
-     * developer console.
-     *
-     * For example: "Service disabled" or "Daily Limit for read operations
-     * exceeded".
-     * 
- * - * string description = 2 [json_name = "description"]; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-     * A description of how the quota check failed. Clients can use this
-     * description to find more about the quota configuration in the service's
-     * public documentation, or find the relevant quota limit to adjust through
-     * developer console.
-     *
-     * For example: "Service disabled" or "Daily Limit for read operations
-     * exceeded".
-     * 
- * - * string description = 2 [json_name = "description"]; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subject_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subject_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation other = (org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation) obj; - - if (!getSubject() - .equals(other.getSubject())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SUBJECT_FIELD_NUMBER; - hash = (53 * hash) + getSubject().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation 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 org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A message type used to describe a single quota violation.  For example, a
-     * daily quota or a custom quota that was exceeded.
-     * 
- * - * Protobuf type {@code rpc.v1.QuotaFailure.Violation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:rpc.v1.QuotaFailure.Violation) - org.vdaas.vald.api.v1.rpc.QuotaFailure.ViolationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_Violation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_Violation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.class, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - subject_ = ""; - description_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_Violation_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation build() { - org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation buildPartial() { - org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation result = new org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.subject_ = subject_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.description_ = description_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation) { - return mergeFrom((org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation other) { - if (other == org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.getDefaultInstance()) return this; - if (!other.getSubject().isEmpty()) { - subject_ = other.subject_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - subject_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object subject_ = ""; - /** - *
-       * The subject on which the quota check failed.
-       * For example, "clientip:<ip address of client>" or "project:<Google
-       * developer project id>".
-       * 
- * - * string subject = 1 [json_name = "subject"]; - * @return The subject. - */ - public java.lang.String getSubject() { - java.lang.Object ref = subject_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subject_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The subject on which the quota check failed.
-       * For example, "clientip:<ip address of client>" or "project:<Google
-       * developer project id>".
-       * 
- * - * string subject = 1 [json_name = "subject"]; - * @return The bytes for subject. - */ - public com.google.protobuf.ByteString - getSubjectBytes() { - java.lang.Object ref = subject_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subject_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The subject on which the quota check failed.
-       * For example, "clientip:<ip address of client>" or "project:<Google
-       * developer project id>".
-       * 
- * - * string subject = 1 [json_name = "subject"]; - * @param value The subject to set. - * @return This builder for chaining. - */ - public Builder setSubject( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - subject_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The subject on which the quota check failed.
-       * For example, "clientip:<ip address of client>" or "project:<Google
-       * developer project id>".
-       * 
- * - * string subject = 1 [json_name = "subject"]; - * @return This builder for chaining. - */ - public Builder clearSubject() { - subject_ = getDefaultInstance().getSubject(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The subject on which the quota check failed.
-       * For example, "clientip:<ip address of client>" or "project:<Google
-       * developer project id>".
-       * 
- * - * string subject = 1 [json_name = "subject"]; - * @param value The bytes for subject to set. - * @return This builder for chaining. - */ - public Builder setSubjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - subject_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-       * A description of how the quota check failed. Clients can use this
-       * description to find more about the quota configuration in the service's
-       * public documentation, or find the relevant quota limit to adjust through
-       * developer console.
-       *
-       * For example: "Service disabled" or "Daily Limit for read operations
-       * exceeded".
-       * 
- * - * string description = 2 [json_name = "description"]; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A description of how the quota check failed. Clients can use this
-       * description to find more about the quota configuration in the service's
-       * public documentation, or find the relevant quota limit to adjust through
-       * developer console.
-       *
-       * For example: "Service disabled" or "Daily Limit for read operations
-       * exceeded".
-       * 
- * - * string description = 2 [json_name = "description"]; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A description of how the quota check failed. Clients can use this
-       * description to find more about the quota configuration in the service's
-       * public documentation, or find the relevant quota limit to adjust through
-       * developer console.
-       *
-       * For example: "Service disabled" or "Daily Limit for read operations
-       * exceeded".
-       * 
- * - * string description = 2 [json_name = "description"]; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - description_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * A description of how the quota check failed. Clients can use this
-       * description to find more about the quota configuration in the service's
-       * public documentation, or find the relevant quota limit to adjust through
-       * developer console.
-       *
-       * For example: "Service disabled" or "Daily Limit for read operations
-       * exceeded".
-       * 
- * - * string description = 2 [json_name = "description"]; - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * A description of how the quota check failed. Clients can use this
-       * description to find more about the quota configuration in the service's
-       * public documentation, or find the relevant quota limit to adjust through
-       * developer console.
-       *
-       * For example: "Service disabled" or "Daily Limit for read operations
-       * exceeded".
-       * 
- * - * string description = 2 [json_name = "description"]; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:rpc.v1.QuotaFailure.Violation) - } - - // @@protoc_insertion_point(class_scope:rpc.v1.QuotaFailure.Violation) - private static final org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation(); - } - - public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Violation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int VIOLATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List violations_; - /** - *
-   * Describes all quota violations.
-   * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - @java.lang.Override - public java.util.List getViolationsList() { - return violations_; - } - /** - *
-   * Describes all quota violations.
-   * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - @java.lang.Override - public java.util.List - getViolationsOrBuilderList() { - return violations_; - } - /** - *
-   * Describes all quota violations.
-   * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - @java.lang.Override - public int getViolationsCount() { - return violations_.size(); - } - /** - *
-   * Describes all quota violations.
-   * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation getViolations(int index) { - return violations_.get(index); - } - /** - *
-   * Describes all quota violations.
-   * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.QuotaFailure.ViolationOrBuilder getViolationsOrBuilder( - int index) { - return violations_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < violations_.size(); i++) { - output.writeMessage(1, violations_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < violations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, violations_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.rpc.QuotaFailure)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.rpc.QuotaFailure other = (org.vdaas.vald.api.v1.rpc.QuotaFailure) obj; - - if (!getViolationsList() - .equals(other.getViolationsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getViolationsCount() > 0) { - hash = (37 * hash) + VIOLATIONS_FIELD_NUMBER; - hash = (53 * hash) + getViolationsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.QuotaFailure 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 org.vdaas.vald.api.v1.rpc.QuotaFailure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.QuotaFailure prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Describes how a quota check failed.
-   *
-   * For example if a daily limit was exceeded for the calling project,
-   * a service could respond with a QuotaFailure detail containing the project
-   * id and the description of the quota limit that was exceeded.  If the
-   * calling project hasn't enabled the service in the developer console, then
-   * a service could respond with the project id and set `service_disabled`
-   * to true.
-   *
-   * Also see RetryInfo and Help types for other details about handling a
-   * quota failure.
-   * 
- * - * Protobuf type {@code rpc.v1.QuotaFailure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:rpc.v1.QuotaFailure) - org.vdaas.vald.api.v1.rpc.QuotaFailureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.QuotaFailure.class, org.vdaas.vald.api.v1.rpc.QuotaFailure.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.rpc.QuotaFailure.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (violationsBuilder_ == null) { - violations_ = java.util.Collections.emptyList(); - } else { - violations_ = null; - violationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.QuotaFailure getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.rpc.QuotaFailure.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.QuotaFailure build() { - org.vdaas.vald.api.v1.rpc.QuotaFailure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.QuotaFailure buildPartial() { - org.vdaas.vald.api.v1.rpc.QuotaFailure result = new org.vdaas.vald.api.v1.rpc.QuotaFailure(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.rpc.QuotaFailure result) { - if (violationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - violations_ = java.util.Collections.unmodifiableList(violations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.violations_ = violations_; - } else { - result.violations_ = violationsBuilder_.build(); - } - } - - private void buildPartial0(org.vdaas.vald.api.v1.rpc.QuotaFailure result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.rpc.QuotaFailure) { - return mergeFrom((org.vdaas.vald.api.v1.rpc.QuotaFailure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.QuotaFailure other) { - if (other == org.vdaas.vald.api.v1.rpc.QuotaFailure.getDefaultInstance()) return this; - if (violationsBuilder_ == null) { - if (!other.violations_.isEmpty()) { - if (violations_.isEmpty()) { - violations_ = other.violations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureViolationsIsMutable(); - violations_.addAll(other.violations_); - } - onChanged(); - } - } else { - if (!other.violations_.isEmpty()) { - if (violationsBuilder_.isEmpty()) { - violationsBuilder_.dispose(); - violationsBuilder_ = null; - violations_ = other.violations_; - bitField0_ = (bitField0_ & ~0x00000001); - violationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getViolationsFieldBuilder() : null; - } else { - violationsBuilder_.addAllMessages(other.violations_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation m = - input.readMessage( - org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.parser(), - extensionRegistry); - if (violationsBuilder_ == null) { - ensureViolationsIsMutable(); - violations_.add(m); - } else { - violationsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List violations_ = - java.util.Collections.emptyList(); - private void ensureViolationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - violations_ = new java.util.ArrayList(violations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder, org.vdaas.vald.api.v1.rpc.QuotaFailure.ViolationOrBuilder> violationsBuilder_; - - /** - *
-     * Describes all quota violations.
-     * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - public java.util.List getViolationsList() { - if (violationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(violations_); - } else { - return violationsBuilder_.getMessageList(); - } - } - /** - *
-     * Describes all quota violations.
-     * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - public int getViolationsCount() { - if (violationsBuilder_ == null) { - return violations_.size(); - } else { - return violationsBuilder_.getCount(); - } - } - /** - *
-     * Describes all quota violations.
-     * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - public org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation getViolations(int index) { - if (violationsBuilder_ == null) { - return violations_.get(index); - } else { - return violationsBuilder_.getMessage(index); - } - } - /** - *
-     * Describes all quota violations.
-     * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - public Builder setViolations( - int index, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation value) { - if (violationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureViolationsIsMutable(); - violations_.set(index, value); - onChanged(); - } else { - violationsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Describes all quota violations.
-     * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - public Builder setViolations( - int index, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder builderForValue) { - if (violationsBuilder_ == null) { - ensureViolationsIsMutable(); - violations_.set(index, builderForValue.build()); - onChanged(); - } else { - violationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Describes all quota violations.
-     * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - public Builder addViolations(org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation value) { - if (violationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureViolationsIsMutable(); - violations_.add(value); - onChanged(); - } else { - violationsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Describes all quota violations.
-     * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - public Builder addViolations( - int index, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation value) { - if (violationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureViolationsIsMutable(); - violations_.add(index, value); - onChanged(); - } else { - violationsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Describes all quota violations.
-     * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - public Builder addViolations( - org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder builderForValue) { - if (violationsBuilder_ == null) { - ensureViolationsIsMutable(); - violations_.add(builderForValue.build()); - onChanged(); - } else { - violationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Describes all quota violations.
-     * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - public Builder addViolations( - int index, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder builderForValue) { - if (violationsBuilder_ == null) { - ensureViolationsIsMutable(); - violations_.add(index, builderForValue.build()); - onChanged(); - } else { - violationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Describes all quota violations.
-     * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - public Builder addAllViolations( - java.lang.Iterable values) { - if (violationsBuilder_ == null) { - ensureViolationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, violations_); - onChanged(); - } else { - violationsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Describes all quota violations.
-     * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - public Builder clearViolations() { - if (violationsBuilder_ == null) { - violations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - violationsBuilder_.clear(); - } - return this; - } - /** - *
-     * Describes all quota violations.
-     * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - public Builder removeViolations(int index) { - if (violationsBuilder_ == null) { - ensureViolationsIsMutable(); - violations_.remove(index); - onChanged(); - } else { - violationsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Describes all quota violations.
-     * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - public org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder getViolationsBuilder( - int index) { - return getViolationsFieldBuilder().getBuilder(index); - } - /** - *
-     * Describes all quota violations.
-     * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - public org.vdaas.vald.api.v1.rpc.QuotaFailure.ViolationOrBuilder getViolationsOrBuilder( - int index) { - if (violationsBuilder_ == null) { - return violations_.get(index); } else { - return violationsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Describes all quota violations.
-     * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - public java.util.List - getViolationsOrBuilderList() { - if (violationsBuilder_ != null) { - return violationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(violations_); - } - } - /** - *
-     * Describes all quota violations.
-     * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - public org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder addViolationsBuilder() { - return getViolationsFieldBuilder().addBuilder( - org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.getDefaultInstance()); - } - /** - *
-     * Describes all quota violations.
-     * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - public org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder addViolationsBuilder( - int index) { - return getViolationsFieldBuilder().addBuilder( - index, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.getDefaultInstance()); - } - /** - *
-     * Describes all quota violations.
-     * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - public java.util.List - getViolationsBuilderList() { - return getViolationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder, org.vdaas.vald.api.v1.rpc.QuotaFailure.ViolationOrBuilder> - getViolationsFieldBuilder() { - if (violationsBuilder_ == null) { - violationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder, org.vdaas.vald.api.v1.rpc.QuotaFailure.ViolationOrBuilder>( - violations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - violations_ = null; - } - return violationsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:rpc.v1.QuotaFailure) - } - - // @@protoc_insertion_point(class_scope:rpc.v1.QuotaFailure) - private static final org.vdaas.vald.api.v1.rpc.QuotaFailure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.QuotaFailure(); - } - - public static org.vdaas.vald.api.v1.rpc.QuotaFailure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QuotaFailure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.QuotaFailure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/QuotaFailureOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/QuotaFailureOrBuilder.java deleted file mode 100644 index ce044d74..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/QuotaFailureOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -public interface QuotaFailureOrBuilder extends - // @@protoc_insertion_point(interface_extends:rpc.v1.QuotaFailure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Describes all quota violations.
-   * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - java.util.List - getViolationsList(); - /** - *
-   * Describes all quota violations.
-   * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation getViolations(int index); - /** - *
-   * Describes all quota violations.
-   * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - int getViolationsCount(); - /** - *
-   * Describes all quota violations.
-   * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - java.util.List - getViolationsOrBuilderList(); - /** - *
-   * Describes all quota violations.
-   * 
- * - * repeated .rpc.v1.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - */ - org.vdaas.vald.api.v1.rpc.QuotaFailure.ViolationOrBuilder getViolationsOrBuilder( - int index); -} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/RequestInfo.java b/src/main/java/org/vdaas/vald/api/v1/rpc/RequestInfo.java deleted file mode 100644 index 484390da..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/RequestInfo.java +++ /dev/null @@ -1,758 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -/** - *
- * Contains metadata about the request that clients can attach when filing a bug
- * or providing other forms of feedback.
- * 
- * - * Protobuf type {@code rpc.v1.RequestInfo} - */ -public final class RequestInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:rpc.v1.RequestInfo) - RequestInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use RequestInfo.newBuilder() to construct. - private RequestInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RequestInfo() { - requestId_ = ""; - servingData_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RequestInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RequestInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RequestInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.RequestInfo.class, org.vdaas.vald.api.v1.rpc.RequestInfo.Builder.class); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object requestId_ = ""; - /** - *
-   * An opaque string that should only be interpreted by the service generating
-   * it. For example, it can be used to identify requests in the service's logs.
-   * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - *
-   * An opaque string that should only be interpreted by the service generating
-   * it. For example, it can be used to identify requests in the service's logs.
-   * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVING_DATA_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object servingData_ = ""; - /** - *
-   * Any data that was used to serve this request. For example, an encrypted
-   * stack trace that can be sent back to the service provider for debugging.
-   * 
- * - * string serving_data = 2 [json_name = "servingData"]; - * @return The servingData. - */ - @java.lang.Override - public java.lang.String getServingData() { - java.lang.Object ref = servingData_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servingData_ = s; - return s; - } - } - /** - *
-   * Any data that was used to serve this request. For example, an encrypted
-   * stack trace that can be sent back to the service provider for debugging.
-   * 
- * - * string serving_data = 2 [json_name = "servingData"]; - * @return The bytes for servingData. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getServingDataBytes() { - java.lang.Object ref = servingData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - servingData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servingData_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, servingData_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servingData_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, servingData_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.rpc.RequestInfo)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.rpc.RequestInfo other = (org.vdaas.vald.api.v1.rpc.RequestInfo) obj; - - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (!getServingData() - .equals(other.getServingData())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (37 * hash) + SERVING_DATA_FIELD_NUMBER; - hash = (53 * hash) + getServingData().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.RequestInfo 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 org.vdaas.vald.api.v1.rpc.RequestInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.rpc.RequestInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.RequestInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Contains metadata about the request that clients can attach when filing a bug
-   * or providing other forms of feedback.
-   * 
- * - * Protobuf type {@code rpc.v1.RequestInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:rpc.v1.RequestInfo) - org.vdaas.vald.api.v1.rpc.RequestInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RequestInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RequestInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.RequestInfo.class, org.vdaas.vald.api.v1.rpc.RequestInfo.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.rpc.RequestInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - requestId_ = ""; - servingData_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RequestInfo_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.RequestInfo getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.rpc.RequestInfo.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.RequestInfo build() { - org.vdaas.vald.api.v1.rpc.RequestInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.RequestInfo buildPartial() { - org.vdaas.vald.api.v1.rpc.RequestInfo result = new org.vdaas.vald.api.v1.rpc.RequestInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.rpc.RequestInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.requestId_ = requestId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.servingData_ = servingData_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.rpc.RequestInfo) { - return mergeFrom((org.vdaas.vald.api.v1.rpc.RequestInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.RequestInfo other) { - if (other == org.vdaas.vald.api.v1.rpc.RequestInfo.getDefaultInstance()) return this; - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getServingData().isEmpty()) { - servingData_ = other.servingData_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - servingData_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object requestId_ = ""; - /** - *
-     * An opaque string that should only be interpreted by the service generating
-     * it. For example, it can be used to identify requests in the service's logs.
-     * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * An opaque string that should only be interpreted by the service generating
-     * it. For example, it can be used to identify requests in the service's logs.
-     * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * An opaque string that should only be interpreted by the service generating
-     * it. For example, it can be used to identify requests in the service's logs.
-     * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - requestId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * An opaque string that should only be interpreted by the service generating
-     * it. For example, it can be used to identify requests in the service's logs.
-     * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return This builder for chaining. - */ - public Builder clearRequestId() { - requestId_ = getDefaultInstance().getRequestId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * An opaque string that should only be interpreted by the service generating
-     * it. For example, it can be used to identify requests in the service's logs.
-     * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - requestId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object servingData_ = ""; - /** - *
-     * Any data that was used to serve this request. For example, an encrypted
-     * stack trace that can be sent back to the service provider for debugging.
-     * 
- * - * string serving_data = 2 [json_name = "servingData"]; - * @return The servingData. - */ - public java.lang.String getServingData() { - java.lang.Object ref = servingData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servingData_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Any data that was used to serve this request. For example, an encrypted
-     * stack trace that can be sent back to the service provider for debugging.
-     * 
- * - * string serving_data = 2 [json_name = "servingData"]; - * @return The bytes for servingData. - */ - public com.google.protobuf.ByteString - getServingDataBytes() { - java.lang.Object ref = servingData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - servingData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Any data that was used to serve this request. For example, an encrypted
-     * stack trace that can be sent back to the service provider for debugging.
-     * 
- * - * string serving_data = 2 [json_name = "servingData"]; - * @param value The servingData to set. - * @return This builder for chaining. - */ - public Builder setServingData( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - servingData_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Any data that was used to serve this request. For example, an encrypted
-     * stack trace that can be sent back to the service provider for debugging.
-     * 
- * - * string serving_data = 2 [json_name = "servingData"]; - * @return This builder for chaining. - */ - public Builder clearServingData() { - servingData_ = getDefaultInstance().getServingData(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Any data that was used to serve this request. For example, an encrypted
-     * stack trace that can be sent back to the service provider for debugging.
-     * 
- * - * string serving_data = 2 [json_name = "servingData"]; - * @param value The bytes for servingData to set. - * @return This builder for chaining. - */ - public Builder setServingDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - servingData_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:rpc.v1.RequestInfo) - } - - // @@protoc_insertion_point(class_scope:rpc.v1.RequestInfo) - private static final org.vdaas.vald.api.v1.rpc.RequestInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.RequestInfo(); - } - - public static org.vdaas.vald.api.v1.rpc.RequestInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequestInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.RequestInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/RequestInfoOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/RequestInfoOrBuilder.java deleted file mode 100644 index 66a0f6fe..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/RequestInfoOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -public interface RequestInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:rpc.v1.RequestInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * An opaque string that should only be interpreted by the service generating
-   * it. For example, it can be used to identify requests in the service's logs.
-   * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - *
-   * An opaque string that should only be interpreted by the service generating
-   * it. For example, it can be used to identify requests in the service's logs.
-   * 
- * - * string request_id = 1 [json_name = "requestId"]; - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-   * Any data that was used to serve this request. For example, an encrypted
-   * stack trace that can be sent back to the service provider for debugging.
-   * 
- * - * string serving_data = 2 [json_name = "servingData"]; - * @return The servingData. - */ - java.lang.String getServingData(); - /** - *
-   * Any data that was used to serve this request. For example, an encrypted
-   * stack trace that can be sent back to the service provider for debugging.
-   * 
- * - * string serving_data = 2 [json_name = "servingData"]; - * @return The bytes for servingData. - */ - com.google.protobuf.ByteString - getServingDataBytes(); -} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/ResourceInfo.java b/src/main/java/org/vdaas/vald/api/v1/rpc/ResourceInfo.java deleted file mode 100644 index e89f1780..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/ResourceInfo.java +++ /dev/null @@ -1,1133 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -/** - *
- * Describes the resource that is being accessed.
- * 
- * - * Protobuf type {@code rpc.v1.ResourceInfo} - */ -public final class ResourceInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:rpc.v1.ResourceInfo) - ResourceInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResourceInfo.newBuilder() to construct. - private ResourceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResourceInfo() { - resourceType_ = ""; - resourceName_ = ""; - owner_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ResourceInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ResourceInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ResourceInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.ResourceInfo.class, org.vdaas.vald.api.v1.rpc.ResourceInfo.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object resourceType_ = ""; - /** - *
-   * A name for the type of resource being accessed, e.g. "sql table",
-   * "cloud storage bucket", "file", "Google calendar"; or the type URL
-   * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
-   * 
- * - * string resource_type = 1 [json_name = "resourceType"]; - * @return The resourceType. - */ - @java.lang.Override - public java.lang.String getResourceType() { - java.lang.Object ref = resourceType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceType_ = s; - return s; - } - } - /** - *
-   * A name for the type of resource being accessed, e.g. "sql table",
-   * "cloud storage bucket", "file", "Google calendar"; or the type URL
-   * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
-   * 
- * - * string resource_type = 1 [json_name = "resourceType"]; - * @return The bytes for resourceType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResourceTypeBytes() { - java.lang.Object ref = resourceType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resourceType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object resourceName_ = ""; - /** - *
-   * The name of the resource being accessed.  For example, a shared calendar
-   * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
-   * error is
-   * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
-   * 
- * - * string resource_name = 2 [json_name = "resourceName"]; - * @return The resourceName. - */ - @java.lang.Override - public java.lang.String getResourceName() { - java.lang.Object ref = resourceName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceName_ = s; - return s; - } - } - /** - *
-   * The name of the resource being accessed.  For example, a shared calendar
-   * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
-   * error is
-   * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
-   * 
- * - * string resource_name = 2 [json_name = "resourceName"]; - * @return The bytes for resourceName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResourceNameBytes() { - java.lang.Object ref = resourceName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resourceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OWNER_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object owner_ = ""; - /** - *
-   * The owner of the resource (optional).
-   * For example, "user:<owner email>" or "project:<Google developer project
-   * id>".
-   * 
- * - * string owner = 3 [json_name = "owner"]; - * @return The owner. - */ - @java.lang.Override - public java.lang.String getOwner() { - java.lang.Object ref = owner_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - owner_ = s; - return s; - } - } - /** - *
-   * The owner of the resource (optional).
-   * For example, "user:<owner email>" or "project:<Google developer project
-   * id>".
-   * 
- * - * string owner = 3 [json_name = "owner"]; - * @return The bytes for owner. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOwnerBytes() { - java.lang.Object ref = owner_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - owner_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - *
-   * Describes what error is encountered when accessing this resource.
-   * For example, updating a cloud project may require the `writer` permission
-   * on the developer console project.
-   * 
- * - * string description = 4 [json_name = "description"]; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-   * Describes what error is encountered when accessing this resource.
-   * For example, updating a cloud project may require the `writer` permission
-   * on the developer console project.
-   * 
- * - * string description = 4 [json_name = "description"]; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(owner_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, owner_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(owner_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, owner_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.rpc.ResourceInfo)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.rpc.ResourceInfo other = (org.vdaas.vald.api.v1.rpc.ResourceInfo) obj; - - if (!getResourceType() - .equals(other.getResourceType())) return false; - if (!getResourceName() - .equals(other.getResourceName())) return false; - if (!getOwner() - .equals(other.getOwner())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getResourceType().hashCode(); - hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getResourceName().hashCode(); - hash = (37 * hash) + OWNER_FIELD_NUMBER; - hash = (53 * hash) + getOwner().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.ResourceInfo 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 org.vdaas.vald.api.v1.rpc.ResourceInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.ResourceInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Describes the resource that is being accessed.
-   * 
- * - * Protobuf type {@code rpc.v1.ResourceInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:rpc.v1.ResourceInfo) - org.vdaas.vald.api.v1.rpc.ResourceInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ResourceInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ResourceInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.ResourceInfo.class, org.vdaas.vald.api.v1.rpc.ResourceInfo.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.rpc.ResourceInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - resourceType_ = ""; - resourceName_ = ""; - owner_ = ""; - description_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ResourceInfo_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.ResourceInfo getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.rpc.ResourceInfo.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.ResourceInfo build() { - org.vdaas.vald.api.v1.rpc.ResourceInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.ResourceInfo buildPartial() { - org.vdaas.vald.api.v1.rpc.ResourceInfo result = new org.vdaas.vald.api.v1.rpc.ResourceInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.rpc.ResourceInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.resourceType_ = resourceType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.resourceName_ = resourceName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.owner_ = owner_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.description_ = description_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.rpc.ResourceInfo) { - return mergeFrom((org.vdaas.vald.api.v1.rpc.ResourceInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.ResourceInfo other) { - if (other == org.vdaas.vald.api.v1.rpc.ResourceInfo.getDefaultInstance()) return this; - if (!other.getResourceType().isEmpty()) { - resourceType_ = other.resourceType_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getResourceName().isEmpty()) { - resourceName_ = other.resourceName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getOwner().isEmpty()) { - owner_ = other.owner_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - resourceType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - resourceName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - owner_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object resourceType_ = ""; - /** - *
-     * A name for the type of resource being accessed, e.g. "sql table",
-     * "cloud storage bucket", "file", "Google calendar"; or the type URL
-     * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
-     * 
- * - * string resource_type = 1 [json_name = "resourceType"]; - * @return The resourceType. - */ - public java.lang.String getResourceType() { - java.lang.Object ref = resourceType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A name for the type of resource being accessed, e.g. "sql table",
-     * "cloud storage bucket", "file", "Google calendar"; or the type URL
-     * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
-     * 
- * - * string resource_type = 1 [json_name = "resourceType"]; - * @return The bytes for resourceType. - */ - public com.google.protobuf.ByteString - getResourceTypeBytes() { - java.lang.Object ref = resourceType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resourceType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A name for the type of resource being accessed, e.g. "sql table",
-     * "cloud storage bucket", "file", "Google calendar"; or the type URL
-     * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
-     * 
- * - * string resource_type = 1 [json_name = "resourceType"]; - * @param value The resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - resourceType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * A name for the type of resource being accessed, e.g. "sql table",
-     * "cloud storage bucket", "file", "Google calendar"; or the type URL
-     * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
-     * 
- * - * string resource_type = 1 [json_name = "resourceType"]; - * @return This builder for chaining. - */ - public Builder clearResourceType() { - resourceType_ = getDefaultInstance().getResourceType(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * A name for the type of resource being accessed, e.g. "sql table",
-     * "cloud storage bucket", "file", "Google calendar"; or the type URL
-     * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
-     * 
- * - * string resource_type = 1 [json_name = "resourceType"]; - * @param value The bytes for resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - resourceType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object resourceName_ = ""; - /** - *
-     * The name of the resource being accessed.  For example, a shared calendar
-     * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
-     * error is
-     * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
-     * 
- * - * string resource_name = 2 [json_name = "resourceName"]; - * @return The resourceName. - */ - public java.lang.String getResourceName() { - java.lang.Object ref = resourceName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of the resource being accessed.  For example, a shared calendar
-     * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
-     * error is
-     * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
-     * 
- * - * string resource_name = 2 [json_name = "resourceName"]; - * @return The bytes for resourceName. - */ - public com.google.protobuf.ByteString - getResourceNameBytes() { - java.lang.Object ref = resourceName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resourceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of the resource being accessed.  For example, a shared calendar
-     * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
-     * error is
-     * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
-     * 
- * - * string resource_name = 2 [json_name = "resourceName"]; - * @param value The resourceName to set. - * @return This builder for chaining. - */ - public Builder setResourceName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - resourceName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The name of the resource being accessed.  For example, a shared calendar
-     * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
-     * error is
-     * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
-     * 
- * - * string resource_name = 2 [json_name = "resourceName"]; - * @return This builder for chaining. - */ - public Builder clearResourceName() { - resourceName_ = getDefaultInstance().getResourceName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * The name of the resource being accessed.  For example, a shared calendar
-     * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
-     * error is
-     * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
-     * 
- * - * string resource_name = 2 [json_name = "resourceName"]; - * @param value The bytes for resourceName to set. - * @return This builder for chaining. - */ - public Builder setResourceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - resourceName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object owner_ = ""; - /** - *
-     * The owner of the resource (optional).
-     * For example, "user:<owner email>" or "project:<Google developer project
-     * id>".
-     * 
- * - * string owner = 3 [json_name = "owner"]; - * @return The owner. - */ - public java.lang.String getOwner() { - java.lang.Object ref = owner_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - owner_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The owner of the resource (optional).
-     * For example, "user:<owner email>" or "project:<Google developer project
-     * id>".
-     * 
- * - * string owner = 3 [json_name = "owner"]; - * @return The bytes for owner. - */ - public com.google.protobuf.ByteString - getOwnerBytes() { - java.lang.Object ref = owner_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - owner_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The owner of the resource (optional).
-     * For example, "user:<owner email>" or "project:<Google developer project
-     * id>".
-     * 
- * - * string owner = 3 [json_name = "owner"]; - * @param value The owner to set. - * @return This builder for chaining. - */ - public Builder setOwner( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - owner_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * The owner of the resource (optional).
-     * For example, "user:<owner email>" or "project:<Google developer project
-     * id>".
-     * 
- * - * string owner = 3 [json_name = "owner"]; - * @return This builder for chaining. - */ - public Builder clearOwner() { - owner_ = getDefaultInstance().getOwner(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * The owner of the resource (optional).
-     * For example, "user:<owner email>" or "project:<Google developer project
-     * id>".
-     * 
- * - * string owner = 3 [json_name = "owner"]; - * @param value The bytes for owner to set. - * @return This builder for chaining. - */ - public Builder setOwnerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - owner_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * Describes what error is encountered when accessing this resource.
-     * For example, updating a cloud project may require the `writer` permission
-     * on the developer console project.
-     * 
- * - * string description = 4 [json_name = "description"]; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Describes what error is encountered when accessing this resource.
-     * For example, updating a cloud project may require the `writer` permission
-     * on the developer console project.
-     * 
- * - * string description = 4 [json_name = "description"]; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Describes what error is encountered when accessing this resource.
-     * For example, updating a cloud project may require the `writer` permission
-     * on the developer console project.
-     * 
- * - * string description = 4 [json_name = "description"]; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - description_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Describes what error is encountered when accessing this resource.
-     * For example, updating a cloud project may require the `writer` permission
-     * on the developer console project.
-     * 
- * - * string description = 4 [json_name = "description"]; - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Describes what error is encountered when accessing this resource.
-     * For example, updating a cloud project may require the `writer` permission
-     * on the developer console project.
-     * 
- * - * string description = 4 [json_name = "description"]; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:rpc.v1.ResourceInfo) - } - - // @@protoc_insertion_point(class_scope:rpc.v1.ResourceInfo) - private static final org.vdaas.vald.api.v1.rpc.ResourceInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.ResourceInfo(); - } - - public static org.vdaas.vald.api.v1.rpc.ResourceInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.ResourceInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/ResourceInfoOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/ResourceInfoOrBuilder.java deleted file mode 100644 index f37136bc..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/ResourceInfoOrBuilder.java +++ /dev/null @@ -1,108 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -public interface ResourceInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:rpc.v1.ResourceInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A name for the type of resource being accessed, e.g. "sql table",
-   * "cloud storage bucket", "file", "Google calendar"; or the type URL
-   * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
-   * 
- * - * string resource_type = 1 [json_name = "resourceType"]; - * @return The resourceType. - */ - java.lang.String getResourceType(); - /** - *
-   * A name for the type of resource being accessed, e.g. "sql table",
-   * "cloud storage bucket", "file", "Google calendar"; or the type URL
-   * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
-   * 
- * - * string resource_type = 1 [json_name = "resourceType"]; - * @return The bytes for resourceType. - */ - com.google.protobuf.ByteString - getResourceTypeBytes(); - - /** - *
-   * The name of the resource being accessed.  For example, a shared calendar
-   * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
-   * error is
-   * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
-   * 
- * - * string resource_name = 2 [json_name = "resourceName"]; - * @return The resourceName. - */ - java.lang.String getResourceName(); - /** - *
-   * The name of the resource being accessed.  For example, a shared calendar
-   * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
-   * error is
-   * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
-   * 
- * - * string resource_name = 2 [json_name = "resourceName"]; - * @return The bytes for resourceName. - */ - com.google.protobuf.ByteString - getResourceNameBytes(); - - /** - *
-   * The owner of the resource (optional).
-   * For example, "user:<owner email>" or "project:<Google developer project
-   * id>".
-   * 
- * - * string owner = 3 [json_name = "owner"]; - * @return The owner. - */ - java.lang.String getOwner(); - /** - *
-   * The owner of the resource (optional).
-   * For example, "user:<owner email>" or "project:<Google developer project
-   * id>".
-   * 
- * - * string owner = 3 [json_name = "owner"]; - * @return The bytes for owner. - */ - com.google.protobuf.ByteString - getOwnerBytes(); - - /** - *
-   * Describes what error is encountered when accessing this resource.
-   * For example, updating a cloud project may require the `writer` permission
-   * on the developer console project.
-   * 
- * - * string description = 4 [json_name = "description"]; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-   * Describes what error is encountered when accessing this resource.
-   * For example, updating a cloud project may require the `writer` permission
-   * on the developer console project.
-   * 
- * - * string description = 4 [json_name = "description"]; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); -} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/RetryInfo.java b/src/main/java/org/vdaas/vald/api/v1/rpc/RetryInfo.java deleted file mode 100644 index 393950dd..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/RetryInfo.java +++ /dev/null @@ -1,679 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -/** - *
- * Describes when the clients can retry a failed request. Clients could ignore
- * the recommendation here or retry when this information is missing from error
- * responses.
- *
- * It's always recommended that clients should use exponential backoff when
- * retrying.
- *
- * Clients should wait until `retry_delay` amount of time has passed since
- * receiving the error response before retrying.  If retrying requests also
- * fail, clients should use an exponential backoff scheme to gradually increase
- * the delay between retries based on `retry_delay`, until either a maximum
- * number of retries have been reached or a maximum retry delay cap has been
- * reached.
- * 
- * - * Protobuf type {@code rpc.v1.RetryInfo} - */ -public final class RetryInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:rpc.v1.RetryInfo) - RetryInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use RetryInfo.newBuilder() to construct. - private RetryInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RetryInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RetryInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RetryInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RetryInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.RetryInfo.class, org.vdaas.vald.api.v1.rpc.RetryInfo.Builder.class); - } - - private int bitField0_; - public static final int RETRY_DELAY_FIELD_NUMBER = 1; - private com.google.protobuf.Duration retryDelay_; - /** - *
-   * Clients should wait at least this long between retrying the same request.
-   * 
- * - * .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - * @return Whether the retryDelay field is set. - */ - @java.lang.Override - public boolean hasRetryDelay() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * Clients should wait at least this long between retrying the same request.
-   * 
- * - * .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - * @return The retryDelay. - */ - @java.lang.Override - public com.google.protobuf.Duration getRetryDelay() { - return retryDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retryDelay_; - } - /** - *
-   * Clients should wait at least this long between retrying the same request.
-   * 
- * - * .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getRetryDelayOrBuilder() { - return retryDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retryDelay_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getRetryDelay()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRetryDelay()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.vdaas.vald.api.v1.rpc.RetryInfo)) { - return super.equals(obj); - } - org.vdaas.vald.api.v1.rpc.RetryInfo other = (org.vdaas.vald.api.v1.rpc.RetryInfo) obj; - - if (hasRetryDelay() != other.hasRetryDelay()) return false; - if (hasRetryDelay()) { - if (!getRetryDelay() - .equals(other.getRetryDelay())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRetryDelay()) { - hash = (37 * hash) + RETRY_DELAY_FIELD_NUMBER; - hash = (53 * hash) + getRetryDelay().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.RetryInfo 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 org.vdaas.vald.api.v1.rpc.RetryInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static org.vdaas.vald.api.v1.rpc.RetryInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.RetryInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Describes when the clients can retry a failed request. Clients could ignore
-   * the recommendation here or retry when this information is missing from error
-   * responses.
-   *
-   * It's always recommended that clients should use exponential backoff when
-   * retrying.
-   *
-   * Clients should wait until `retry_delay` amount of time has passed since
-   * receiving the error response before retrying.  If retrying requests also
-   * fail, clients should use an exponential backoff scheme to gradually increase
-   * the delay between retries based on `retry_delay`, until either a maximum
-   * number of retries have been reached or a maximum retry delay cap has been
-   * reached.
-   * 
- * - * Protobuf type {@code rpc.v1.RetryInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:rpc.v1.RetryInfo) - org.vdaas.vald.api.v1.rpc.RetryInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RetryInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RetryInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.vdaas.vald.api.v1.rpc.RetryInfo.class, org.vdaas.vald.api.v1.rpc.RetryInfo.Builder.class); - } - - // Construct using org.vdaas.vald.api.v1.rpc.RetryInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRetryDelayFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - retryDelay_ = null; - if (retryDelayBuilder_ != null) { - retryDelayBuilder_.dispose(); - retryDelayBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RetryInfo_descriptor; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.RetryInfo getDefaultInstanceForType() { - return org.vdaas.vald.api.v1.rpc.RetryInfo.getDefaultInstance(); - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.RetryInfo build() { - org.vdaas.vald.api.v1.rpc.RetryInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.RetryInfo buildPartial() { - org.vdaas.vald.api.v1.rpc.RetryInfo result = new org.vdaas.vald.api.v1.rpc.RetryInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(org.vdaas.vald.api.v1.rpc.RetryInfo result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.retryDelay_ = retryDelayBuilder_ == null - ? retryDelay_ - : retryDelayBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.vdaas.vald.api.v1.rpc.RetryInfo) { - return mergeFrom((org.vdaas.vald.api.v1.rpc.RetryInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.RetryInfo other) { - if (other == org.vdaas.vald.api.v1.rpc.RetryInfo.getDefaultInstance()) return this; - if (other.hasRetryDelay()) { - mergeRetryDelay(other.getRetryDelay()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getRetryDelayFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.Duration retryDelay_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> retryDelayBuilder_; - /** - *
-     * Clients should wait at least this long between retrying the same request.
-     * 
- * - * .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - * @return Whether the retryDelay field is set. - */ - public boolean hasRetryDelay() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Clients should wait at least this long between retrying the same request.
-     * 
- * - * .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - * @return The retryDelay. - */ - public com.google.protobuf.Duration getRetryDelay() { - if (retryDelayBuilder_ == null) { - return retryDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retryDelay_; - } else { - return retryDelayBuilder_.getMessage(); - } - } - /** - *
-     * Clients should wait at least this long between retrying the same request.
-     * 
- * - * .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - */ - public Builder setRetryDelay(com.google.protobuf.Duration value) { - if (retryDelayBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - retryDelay_ = value; - } else { - retryDelayBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Clients should wait at least this long between retrying the same request.
-     * 
- * - * .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - */ - public Builder setRetryDelay( - com.google.protobuf.Duration.Builder builderForValue) { - if (retryDelayBuilder_ == null) { - retryDelay_ = builderForValue.build(); - } else { - retryDelayBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Clients should wait at least this long between retrying the same request.
-     * 
- * - * .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - */ - public Builder mergeRetryDelay(com.google.protobuf.Duration value) { - if (retryDelayBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - retryDelay_ != null && - retryDelay_ != com.google.protobuf.Duration.getDefaultInstance()) { - getRetryDelayBuilder().mergeFrom(value); - } else { - retryDelay_ = value; - } - } else { - retryDelayBuilder_.mergeFrom(value); - } - if (retryDelay_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - *
-     * Clients should wait at least this long between retrying the same request.
-     * 
- * - * .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - */ - public Builder clearRetryDelay() { - bitField0_ = (bitField0_ & ~0x00000001); - retryDelay_ = null; - if (retryDelayBuilder_ != null) { - retryDelayBuilder_.dispose(); - retryDelayBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Clients should wait at least this long between retrying the same request.
-     * 
- * - * .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - */ - public com.google.protobuf.Duration.Builder getRetryDelayBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRetryDelayFieldBuilder().getBuilder(); - } - /** - *
-     * Clients should wait at least this long between retrying the same request.
-     * 
- * - * .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - */ - public com.google.protobuf.DurationOrBuilder getRetryDelayOrBuilder() { - if (retryDelayBuilder_ != null) { - return retryDelayBuilder_.getMessageOrBuilder(); - } else { - return retryDelay_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : retryDelay_; - } - } - /** - *
-     * Clients should wait at least this long between retrying the same request.
-     * 
- * - * .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getRetryDelayFieldBuilder() { - if (retryDelayBuilder_ == null) { - retryDelayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getRetryDelay(), - getParentForChildren(), - isClean()); - retryDelay_ = null; - } - return retryDelayBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:rpc.v1.RetryInfo) - } - - // @@protoc_insertion_point(class_scope:rpc.v1.RetryInfo) - private static final org.vdaas.vald.api.v1.rpc.RetryInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.RetryInfo(); - } - - public static org.vdaas.vald.api.v1.rpc.RetryInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetryInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.vdaas.vald.api.v1.rpc.RetryInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/RetryInfoOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/RetryInfoOrBuilder.java deleted file mode 100644 index d37cf561..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/rpc/RetryInfoOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/rpc/errdetails/error_details.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.rpc; - -public interface RetryInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:rpc.v1.RetryInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Clients should wait at least this long between retrying the same request.
-   * 
- * - * .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - * @return Whether the retryDelay field is set. - */ - boolean hasRetryDelay(); - /** - *
-   * Clients should wait at least this long between retrying the same request.
-   * 
- * - * .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - * @return The retryDelay. - */ - com.google.protobuf.Duration getRetryDelay(); - /** - *
-   * Clients should wait at least this long between retrying the same request.
-   * 
- * - * .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - */ - com.google.protobuf.DurationOrBuilder getRetryDelayOrBuilder(); -} diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/FilterGrpc.java b/src/main/java/org/vdaas/vald/api/v1/vald/FilterGrpc.java deleted file mode 100644 index def34566..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/vald/FilterGrpc.java +++ /dev/null @@ -1,1181 +0,0 @@ -package org.vdaas.vald.api.v1.vald; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Filter service provides ways to connect to Vald through filter.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.64.0)", - comments = "Source: v1/vald/filter.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class FilterGrpc { - - private FilterGrpc() {} - - public static final java.lang.String SERVICE_NAME = "vald.v1.Filter"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getSearchObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchObject", - requestType = org.vdaas.vald.api.v1.payload.Search.ObjectRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Search.Response.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSearchObjectMethod() { - io.grpc.MethodDescriptor getSearchObjectMethod; - if ((getSearchObjectMethod = FilterGrpc.getSearchObjectMethod) == null) { - synchronized (FilterGrpc.class) { - if ((getSearchObjectMethod = FilterGrpc.getSearchObjectMethod) == null) { - FilterGrpc.getSearchObjectMethod = getSearchObjectMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.ObjectRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.Response.getDefaultInstance())) - .setSchemaDescriptor(new FilterMethodDescriptorSupplier("SearchObject")) - .build(); - } - } - } - return getSearchObjectMethod; - } - - private static volatile io.grpc.MethodDescriptor getMultiSearchObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MultiSearchObject", - requestType = org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Search.Responses.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMultiSearchObjectMethod() { - io.grpc.MethodDescriptor getMultiSearchObjectMethod; - if ((getMultiSearchObjectMethod = FilterGrpc.getMultiSearchObjectMethod) == null) { - synchronized (FilterGrpc.class) { - if ((getMultiSearchObjectMethod = FilterGrpc.getMultiSearchObjectMethod) == null) { - FilterGrpc.getMultiSearchObjectMethod = getMultiSearchObjectMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MultiSearchObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.Responses.getDefaultInstance())) - .setSchemaDescriptor(new FilterMethodDescriptorSupplier("MultiSearchObject")) - .build(); - } - } - } - return getMultiSearchObjectMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamSearchObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamSearchObject", - requestType = org.vdaas.vald.api.v1.payload.Search.ObjectRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Search.StreamResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamSearchObjectMethod() { - io.grpc.MethodDescriptor getStreamSearchObjectMethod; - if ((getStreamSearchObjectMethod = FilterGrpc.getStreamSearchObjectMethod) == null) { - synchronized (FilterGrpc.class) { - if ((getStreamSearchObjectMethod = FilterGrpc.getStreamSearchObjectMethod) == null) { - FilterGrpc.getStreamSearchObjectMethod = getStreamSearchObjectMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamSearchObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.ObjectRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.StreamResponse.getDefaultInstance())) - .setSchemaDescriptor(new FilterMethodDescriptorSupplier("StreamSearchObject")) - .build(); - } - } - } - return getStreamSearchObjectMethod; - } - - private static volatile io.grpc.MethodDescriptor getInsertObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "InsertObject", - requestType = org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Location.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getInsertObjectMethod() { - io.grpc.MethodDescriptor getInsertObjectMethod; - if ((getInsertObjectMethod = FilterGrpc.getInsertObjectMethod) == null) { - synchronized (FilterGrpc.class) { - if ((getInsertObjectMethod = FilterGrpc.getInsertObjectMethod) == null) { - FilterGrpc.getInsertObjectMethod = getInsertObjectMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InsertObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Location.getDefaultInstance())) - .setSchemaDescriptor(new FilterMethodDescriptorSupplier("InsertObject")) - .build(); - } - } - } - return getInsertObjectMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamInsertObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamInsertObject", - requestType = org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Object.StreamLocation.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamInsertObjectMethod() { - io.grpc.MethodDescriptor getStreamInsertObjectMethod; - if ((getStreamInsertObjectMethod = FilterGrpc.getStreamInsertObjectMethod) == null) { - synchronized (FilterGrpc.class) { - if ((getStreamInsertObjectMethod = FilterGrpc.getStreamInsertObjectMethod) == null) { - FilterGrpc.getStreamInsertObjectMethod = getStreamInsertObjectMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamInsertObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.StreamLocation.getDefaultInstance())) - .setSchemaDescriptor(new FilterMethodDescriptorSupplier("StreamInsertObject")) - .build(); - } - } - } - return getStreamInsertObjectMethod; - } - - private static volatile io.grpc.MethodDescriptor getMultiInsertObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MultiInsertObject", - requestType = org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Locations.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMultiInsertObjectMethod() { - io.grpc.MethodDescriptor getMultiInsertObjectMethod; - if ((getMultiInsertObjectMethod = FilterGrpc.getMultiInsertObjectMethod) == null) { - synchronized (FilterGrpc.class) { - if ((getMultiInsertObjectMethod = FilterGrpc.getMultiInsertObjectMethod) == null) { - FilterGrpc.getMultiInsertObjectMethod = getMultiInsertObjectMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MultiInsertObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Locations.getDefaultInstance())) - .setSchemaDescriptor(new FilterMethodDescriptorSupplier("MultiInsertObject")) - .build(); - } - } - } - return getMultiInsertObjectMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateObject", - requestType = org.vdaas.vald.api.v1.payload.Update.ObjectRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Location.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateObjectMethod() { - io.grpc.MethodDescriptor getUpdateObjectMethod; - if ((getUpdateObjectMethod = FilterGrpc.getUpdateObjectMethod) == null) { - synchronized (FilterGrpc.class) { - if ((getUpdateObjectMethod = FilterGrpc.getUpdateObjectMethod) == null) { - FilterGrpc.getUpdateObjectMethod = getUpdateObjectMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Update.ObjectRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Location.getDefaultInstance())) - .setSchemaDescriptor(new FilterMethodDescriptorSupplier("UpdateObject")) - .build(); - } - } - } - return getUpdateObjectMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamUpdateObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamUpdateObject", - requestType = org.vdaas.vald.api.v1.payload.Update.ObjectRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Object.StreamLocation.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamUpdateObjectMethod() { - io.grpc.MethodDescriptor getStreamUpdateObjectMethod; - if ((getStreamUpdateObjectMethod = FilterGrpc.getStreamUpdateObjectMethod) == null) { - synchronized (FilterGrpc.class) { - if ((getStreamUpdateObjectMethod = FilterGrpc.getStreamUpdateObjectMethod) == null) { - FilterGrpc.getStreamUpdateObjectMethod = getStreamUpdateObjectMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamUpdateObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Update.ObjectRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.StreamLocation.getDefaultInstance())) - .setSchemaDescriptor(new FilterMethodDescriptorSupplier("StreamUpdateObject")) - .build(); - } - } - } - return getStreamUpdateObjectMethod; - } - - private static volatile io.grpc.MethodDescriptor getMultiUpdateObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MultiUpdateObject", - requestType = org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Locations.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMultiUpdateObjectMethod() { - io.grpc.MethodDescriptor getMultiUpdateObjectMethod; - if ((getMultiUpdateObjectMethod = FilterGrpc.getMultiUpdateObjectMethod) == null) { - synchronized (FilterGrpc.class) { - if ((getMultiUpdateObjectMethod = FilterGrpc.getMultiUpdateObjectMethod) == null) { - FilterGrpc.getMultiUpdateObjectMethod = getMultiUpdateObjectMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MultiUpdateObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Locations.getDefaultInstance())) - .setSchemaDescriptor(new FilterMethodDescriptorSupplier("MultiUpdateObject")) - .build(); - } - } - } - return getMultiUpdateObjectMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpsertObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpsertObject", - requestType = org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Location.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpsertObjectMethod() { - io.grpc.MethodDescriptor getUpsertObjectMethod; - if ((getUpsertObjectMethod = FilterGrpc.getUpsertObjectMethod) == null) { - synchronized (FilterGrpc.class) { - if ((getUpsertObjectMethod = FilterGrpc.getUpsertObjectMethod) == null) { - FilterGrpc.getUpsertObjectMethod = getUpsertObjectMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpsertObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Location.getDefaultInstance())) - .setSchemaDescriptor(new FilterMethodDescriptorSupplier("UpsertObject")) - .build(); - } - } - } - return getUpsertObjectMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamUpsertObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamUpsertObject", - requestType = org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Object.StreamLocation.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamUpsertObjectMethod() { - io.grpc.MethodDescriptor getStreamUpsertObjectMethod; - if ((getStreamUpsertObjectMethod = FilterGrpc.getStreamUpsertObjectMethod) == null) { - synchronized (FilterGrpc.class) { - if ((getStreamUpsertObjectMethod = FilterGrpc.getStreamUpsertObjectMethod) == null) { - FilterGrpc.getStreamUpsertObjectMethod = getStreamUpsertObjectMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamUpsertObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.StreamLocation.getDefaultInstance())) - .setSchemaDescriptor(new FilterMethodDescriptorSupplier("StreamUpsertObject")) - .build(); - } - } - } - return getStreamUpsertObjectMethod; - } - - private static volatile io.grpc.MethodDescriptor getMultiUpsertObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MultiUpsertObject", - requestType = org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Locations.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMultiUpsertObjectMethod() { - io.grpc.MethodDescriptor getMultiUpsertObjectMethod; - if ((getMultiUpsertObjectMethod = FilterGrpc.getMultiUpsertObjectMethod) == null) { - synchronized (FilterGrpc.class) { - if ((getMultiUpsertObjectMethod = FilterGrpc.getMultiUpsertObjectMethod) == null) { - FilterGrpc.getMultiUpsertObjectMethod = getMultiUpsertObjectMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MultiUpsertObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Locations.getDefaultInstance())) - .setSchemaDescriptor(new FilterMethodDescriptorSupplier("MultiUpsertObject")) - .build(); - } - } - } - return getMultiUpsertObjectMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static FilterStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FilterStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FilterStub(channel, callOptions); - } - }; - return FilterStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static FilterBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FilterBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FilterBlockingStub(channel, callOptions); - } - }; - return FilterBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static FilterFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FilterFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FilterFutureStub(channel, callOptions); - } - }; - return FilterFutureStub.newStub(factory, channel); - } - - /** - *
-   * Filter service provides ways to connect to Vald through filter.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * A method to search object.
-     * 
- */ - default void searchObject(org.vdaas.vald.api.v1.payload.Search.ObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchObjectMethod(), responseObserver); - } - - /** - *
-     * A method to search multiple objects.
-     * 
- */ - default void multiSearchObject(org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMultiSearchObjectMethod(), responseObserver); - } - - /** - *
-     * A method to search object by bidirectional streaming.
-     * 
- */ - default io.grpc.stub.StreamObserver streamSearchObject( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamSearchObjectMethod(), responseObserver); - } - - /** - *
-     * A method insert object.
-     * 
- */ - default void insertObject(org.vdaas.vald.api.v1.payload.Insert.ObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInsertObjectMethod(), responseObserver); - } - - /** - *
-     * Represent the streaming RPC to insert object by bidirectional streaming.
-     * 
- */ - default io.grpc.stub.StreamObserver streamInsertObject( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamInsertObjectMethod(), responseObserver); - } - - /** - *
-     * A method to insert multiple objects.
-     * 
- */ - default void multiInsertObject(org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMultiInsertObjectMethod(), responseObserver); - } - - /** - *
-     * A method to update object.
-     * 
- */ - default void updateObject(org.vdaas.vald.api.v1.payload.Update.ObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateObjectMethod(), responseObserver); - } - - /** - *
-     * A method to update object by bidirectional streaming.
-     * 
- */ - default io.grpc.stub.StreamObserver streamUpdateObject( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamUpdateObjectMethod(), responseObserver); - } - - /** - *
-     * A method to update multiple objects.
-     * 
- */ - default void multiUpdateObject(org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMultiUpdateObjectMethod(), responseObserver); - } - - /** - *
-     * A method to upsert object.
-     * 
- */ - default void upsertObject(org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpsertObjectMethod(), responseObserver); - } - - /** - *
-     * A method to upsert object by bidirectional streaming.
-     * 
- */ - default io.grpc.stub.StreamObserver streamUpsertObject( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamUpsertObjectMethod(), responseObserver); - } - - /** - *
-     * A method to upsert multiple objects.
-     * 
- */ - default void multiUpsertObject(org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMultiUpsertObjectMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Filter. - *
-   * Filter service provides ways to connect to Vald through filter.
-   * 
- */ - public static abstract class FilterImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return FilterGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Filter. - *
-   * Filter service provides ways to connect to Vald through filter.
-   * 
- */ - public static final class FilterStub - extends io.grpc.stub.AbstractAsyncStub { - private FilterStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FilterStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FilterStub(channel, callOptions); - } - - /** - *
-     * A method to search object.
-     * 
- */ - public void searchObject(org.vdaas.vald.api.v1.payload.Search.ObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchObjectMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to search multiple objects.
-     * 
- */ - public void multiSearchObject(org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMultiSearchObjectMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to search object by bidirectional streaming.
-     * 
- */ - public io.grpc.stub.StreamObserver streamSearchObject( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamSearchObjectMethod(), getCallOptions()), responseObserver); - } - - /** - *
-     * A method insert object.
-     * 
- */ - public void insertObject(org.vdaas.vald.api.v1.payload.Insert.ObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getInsertObjectMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Represent the streaming RPC to insert object by bidirectional streaming.
-     * 
- */ - public io.grpc.stub.StreamObserver streamInsertObject( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamInsertObjectMethod(), getCallOptions()), responseObserver); - } - - /** - *
-     * A method to insert multiple objects.
-     * 
- */ - public void multiInsertObject(org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMultiInsertObjectMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to update object.
-     * 
- */ - public void updateObject(org.vdaas.vald.api.v1.payload.Update.ObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateObjectMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to update object by bidirectional streaming.
-     * 
- */ - public io.grpc.stub.StreamObserver streamUpdateObject( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamUpdateObjectMethod(), getCallOptions()), responseObserver); - } - - /** - *
-     * A method to update multiple objects.
-     * 
- */ - public void multiUpdateObject(org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMultiUpdateObjectMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to upsert object.
-     * 
- */ - public void upsertObject(org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpsertObjectMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to upsert object by bidirectional streaming.
-     * 
- */ - public io.grpc.stub.StreamObserver streamUpsertObject( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamUpsertObjectMethod(), getCallOptions()), responseObserver); - } - - /** - *
-     * A method to upsert multiple objects.
-     * 
- */ - public void multiUpsertObject(org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMultiUpsertObjectMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Filter. - *
-   * Filter service provides ways to connect to Vald through filter.
-   * 
- */ - public static final class FilterBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private FilterBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FilterBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FilterBlockingStub(channel, callOptions); - } - - /** - *
-     * A method to search object.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Search.Response searchObject(org.vdaas.vald.api.v1.payload.Search.ObjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchObjectMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to search multiple objects.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Search.Responses multiSearchObject(org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMultiSearchObjectMethod(), getCallOptions(), request); - } - - /** - *
-     * A method insert object.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Location insertObject(org.vdaas.vald.api.v1.payload.Insert.ObjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getInsertObjectMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to insert multiple objects.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Locations multiInsertObject(org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMultiInsertObjectMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to update object.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Location updateObject(org.vdaas.vald.api.v1.payload.Update.ObjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateObjectMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to update multiple objects.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Locations multiUpdateObject(org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMultiUpdateObjectMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to upsert object.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Location upsertObject(org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpsertObjectMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to upsert multiple objects.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Locations multiUpsertObject(org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMultiUpsertObjectMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Filter. - *
-   * Filter service provides ways to connect to Vald through filter.
-   * 
- */ - public static final class FilterFutureStub - extends io.grpc.stub.AbstractFutureStub { - private FilterFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FilterFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FilterFutureStub(channel, callOptions); - } - - /** - *
-     * A method to search object.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture searchObject( - org.vdaas.vald.api.v1.payload.Search.ObjectRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchObjectMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to search multiple objects.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture multiSearchObject( - org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMultiSearchObjectMethod(), getCallOptions()), request); - } - - /** - *
-     * A method insert object.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture insertObject( - org.vdaas.vald.api.v1.payload.Insert.ObjectRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getInsertObjectMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to insert multiple objects.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture multiInsertObject( - org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMultiInsertObjectMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to update object.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateObject( - org.vdaas.vald.api.v1.payload.Update.ObjectRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateObjectMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to update multiple objects.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture multiUpdateObject( - org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMultiUpdateObjectMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to upsert object.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture upsertObject( - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpsertObjectMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to upsert multiple objects.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture multiUpsertObject( - org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMultiUpsertObjectMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_SEARCH_OBJECT = 0; - private static final int METHODID_MULTI_SEARCH_OBJECT = 1; - private static final int METHODID_INSERT_OBJECT = 2; - private static final int METHODID_MULTI_INSERT_OBJECT = 3; - private static final int METHODID_UPDATE_OBJECT = 4; - private static final int METHODID_MULTI_UPDATE_OBJECT = 5; - private static final int METHODID_UPSERT_OBJECT = 6; - private static final int METHODID_MULTI_UPSERT_OBJECT = 7; - private static final int METHODID_STREAM_SEARCH_OBJECT = 8; - private static final int METHODID_STREAM_INSERT_OBJECT = 9; - private static final int METHODID_STREAM_UPDATE_OBJECT = 10; - private static final int METHODID_STREAM_UPSERT_OBJECT = 11; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_SEARCH_OBJECT: - serviceImpl.searchObject((org.vdaas.vald.api.v1.payload.Search.ObjectRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MULTI_SEARCH_OBJECT: - serviceImpl.multiSearchObject((org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_INSERT_OBJECT: - serviceImpl.insertObject((org.vdaas.vald.api.v1.payload.Insert.ObjectRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MULTI_INSERT_OBJECT: - serviceImpl.multiInsertObject((org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_OBJECT: - serviceImpl.updateObject((org.vdaas.vald.api.v1.payload.Update.ObjectRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MULTI_UPDATE_OBJECT: - serviceImpl.multiUpdateObject((org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPSERT_OBJECT: - serviceImpl.upsertObject((org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MULTI_UPSERT_OBJECT: - serviceImpl.multiUpsertObject((org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest) 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) { - case METHODID_STREAM_SEARCH_OBJECT: - return (io.grpc.stub.StreamObserver) serviceImpl.streamSearchObject( - (io.grpc.stub.StreamObserver) responseObserver); - case METHODID_STREAM_INSERT_OBJECT: - return (io.grpc.stub.StreamObserver) serviceImpl.streamInsertObject( - (io.grpc.stub.StreamObserver) responseObserver); - case METHODID_STREAM_UPDATE_OBJECT: - return (io.grpc.stub.StreamObserver) serviceImpl.streamUpdateObject( - (io.grpc.stub.StreamObserver) responseObserver); - case METHODID_STREAM_UPSERT_OBJECT: - return (io.grpc.stub.StreamObserver) serviceImpl.streamUpsertObject( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getSearchObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Search.ObjectRequest, - org.vdaas.vald.api.v1.payload.Search.Response>( - service, METHODID_SEARCH_OBJECT))) - .addMethod( - getMultiSearchObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Search.MultiObjectRequest, - org.vdaas.vald.api.v1.payload.Search.Responses>( - service, METHODID_MULTI_SEARCH_OBJECT))) - .addMethod( - getStreamSearchObjectMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Search.ObjectRequest, - org.vdaas.vald.api.v1.payload.Search.StreamResponse>( - service, METHODID_STREAM_SEARCH_OBJECT))) - .addMethod( - getInsertObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Insert.ObjectRequest, - org.vdaas.vald.api.v1.payload.Object.Location>( - service, METHODID_INSERT_OBJECT))) - .addMethod( - getStreamInsertObjectMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Insert.ObjectRequest, - org.vdaas.vald.api.v1.payload.Object.StreamLocation>( - service, METHODID_STREAM_INSERT_OBJECT))) - .addMethod( - getMultiInsertObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Insert.MultiObjectRequest, - org.vdaas.vald.api.v1.payload.Object.Locations>( - service, METHODID_MULTI_INSERT_OBJECT))) - .addMethod( - getUpdateObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Update.ObjectRequest, - org.vdaas.vald.api.v1.payload.Object.Location>( - service, METHODID_UPDATE_OBJECT))) - .addMethod( - getStreamUpdateObjectMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Update.ObjectRequest, - org.vdaas.vald.api.v1.payload.Object.StreamLocation>( - service, METHODID_STREAM_UPDATE_OBJECT))) - .addMethod( - getMultiUpdateObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Update.MultiObjectRequest, - org.vdaas.vald.api.v1.payload.Object.Locations>( - service, METHODID_MULTI_UPDATE_OBJECT))) - .addMethod( - getUpsertObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest, - org.vdaas.vald.api.v1.payload.Object.Location>( - service, METHODID_UPSERT_OBJECT))) - .addMethod( - getStreamUpsertObjectMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest, - org.vdaas.vald.api.v1.payload.Object.StreamLocation>( - service, METHODID_STREAM_UPSERT_OBJECT))) - .addMethod( - getMultiUpsertObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Upsert.MultiObjectRequest, - org.vdaas.vald.api.v1.payload.Object.Locations>( - service, METHODID_MULTI_UPSERT_OBJECT))) - .build(); - } - - private static abstract class FilterBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - FilterBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return org.vdaas.vald.api.v1.vald.ValdFilter.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Filter"); - } - } - - private static final class FilterFileDescriptorSupplier - extends FilterBaseDescriptorSupplier { - FilterFileDescriptorSupplier() {} - } - - private static final class FilterMethodDescriptorSupplier - extends FilterBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - FilterMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (FilterGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new FilterFileDescriptorSupplier()) - .addMethod(getSearchObjectMethod()) - .addMethod(getMultiSearchObjectMethod()) - .addMethod(getStreamSearchObjectMethod()) - .addMethod(getInsertObjectMethod()) - .addMethod(getStreamInsertObjectMethod()) - .addMethod(getMultiInsertObjectMethod()) - .addMethod(getUpdateObjectMethod()) - .addMethod(getStreamUpdateObjectMethod()) - .addMethod(getMultiUpdateObjectMethod()) - .addMethod(getUpsertObjectMethod()) - .addMethod(getStreamUpsertObjectMethod()) - .addMethod(getMultiUpsertObjectMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/FlushGrpc.java b/src/main/java/org/vdaas/vald/api/v1/vald/FlushGrpc.java deleted file mode 100644 index 71660f02..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/vald/FlushGrpc.java +++ /dev/null @@ -1,323 +0,0 @@ -package org.vdaas.vald.api.v1.vald; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Flush service provides ways to flush all indexed vectors.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.64.0)", - comments = "Source: v1/vald/flush.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class FlushGrpc { - - private FlushGrpc() {} - - public static final java.lang.String SERVICE_NAME = "vald.v1.Flush"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getFlushMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Flush", - requestType = org.vdaas.vald.api.v1.payload.Flush.Request.class, - responseType = org.vdaas.vald.api.v1.payload.Info.Index.Count.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFlushMethod() { - io.grpc.MethodDescriptor getFlushMethod; - if ((getFlushMethod = FlushGrpc.getFlushMethod) == null) { - synchronized (FlushGrpc.class) { - if ((getFlushMethod = FlushGrpc.getFlushMethod) == null) { - FlushGrpc.getFlushMethod = getFlushMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Flush")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Flush.Request.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Info.Index.Count.getDefaultInstance())) - .setSchemaDescriptor(new FlushMethodDescriptorSupplier("Flush")) - .build(); - } - } - } - return getFlushMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static FlushStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FlushStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FlushStub(channel, callOptions); - } - }; - return FlushStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static FlushBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FlushBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FlushBlockingStub(channel, callOptions); - } - }; - return FlushBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static FlushFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FlushFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FlushFutureStub(channel, callOptions); - } - }; - return FlushFutureStub.newStub(factory, channel); - } - - /** - *
-   * Flush service provides ways to flush all indexed vectors.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * A method to flush all indexed vector.
-     * 
- */ - default void flush(org.vdaas.vald.api.v1.payload.Flush.Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFlushMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Flush. - *
-   * Flush service provides ways to flush all indexed vectors.
-   * 
- */ - public static abstract class FlushImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return FlushGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Flush. - *
-   * Flush service provides ways to flush all indexed vectors.
-   * 
- */ - public static final class FlushStub - extends io.grpc.stub.AbstractAsyncStub { - private FlushStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FlushStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FlushStub(channel, callOptions); - } - - /** - *
-     * A method to flush all indexed vector.
-     * 
- */ - public void flush(org.vdaas.vald.api.v1.payload.Flush.Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFlushMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Flush. - *
-   * Flush service provides ways to flush all indexed vectors.
-   * 
- */ - public static final class FlushBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private FlushBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FlushBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FlushBlockingStub(channel, callOptions); - } - - /** - *
-     * A method to flush all indexed vector.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Info.Index.Count flush(org.vdaas.vald.api.v1.payload.Flush.Request request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFlushMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Flush. - *
-   * Flush service provides ways to flush all indexed vectors.
-   * 
- */ - public static final class FlushFutureStub - extends io.grpc.stub.AbstractFutureStub { - private FlushFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FlushFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FlushFutureStub(channel, callOptions); - } - - /** - *
-     * A method to flush all indexed vector.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture flush( - org.vdaas.vald.api.v1.payload.Flush.Request request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFlushMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_FLUSH = 0; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_FLUSH: - serviceImpl.flush((org.vdaas.vald.api.v1.payload.Flush.Request) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getFlushMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Flush.Request, - org.vdaas.vald.api.v1.payload.Info.Index.Count>( - service, METHODID_FLUSH))) - .build(); - } - - private static abstract class FlushBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - FlushBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return org.vdaas.vald.api.v1.vald.ValdFlush.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Flush"); - } - } - - private static final class FlushFileDescriptorSupplier - extends FlushBaseDescriptorSupplier { - FlushFileDescriptorSupplier() {} - } - - private static final class FlushMethodDescriptorSupplier - extends FlushBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - FlushMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (FlushGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new FlushFileDescriptorSupplier()) - .addMethod(getFlushMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/InsertGrpc.java b/src/main/java/org/vdaas/vald/api/v1/vald/InsertGrpc.java deleted file mode 100644 index b9be635b..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/vald/InsertGrpc.java +++ /dev/null @@ -1,473 +0,0 @@ -package org.vdaas.vald.api.v1.vald; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Insert service provides ways to add new vectors.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.64.0)", - comments = "Source: v1/vald/insert.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class InsertGrpc { - - private InsertGrpc() {} - - public static final java.lang.String SERVICE_NAME = "vald.v1.Insert"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getInsertMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Insert", - requestType = org.vdaas.vald.api.v1.payload.Insert.Request.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Location.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getInsertMethod() { - io.grpc.MethodDescriptor getInsertMethod; - if ((getInsertMethod = InsertGrpc.getInsertMethod) == null) { - synchronized (InsertGrpc.class) { - if ((getInsertMethod = InsertGrpc.getInsertMethod) == null) { - InsertGrpc.getInsertMethod = getInsertMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Insert")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Insert.Request.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Location.getDefaultInstance())) - .setSchemaDescriptor(new InsertMethodDescriptorSupplier("Insert")) - .build(); - } - } - } - return getInsertMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamInsertMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamInsert", - requestType = org.vdaas.vald.api.v1.payload.Insert.Request.class, - responseType = org.vdaas.vald.api.v1.payload.Object.StreamLocation.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamInsertMethod() { - io.grpc.MethodDescriptor getStreamInsertMethod; - if ((getStreamInsertMethod = InsertGrpc.getStreamInsertMethod) == null) { - synchronized (InsertGrpc.class) { - if ((getStreamInsertMethod = InsertGrpc.getStreamInsertMethod) == null) { - InsertGrpc.getStreamInsertMethod = getStreamInsertMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamInsert")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Insert.Request.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.StreamLocation.getDefaultInstance())) - .setSchemaDescriptor(new InsertMethodDescriptorSupplier("StreamInsert")) - .build(); - } - } - } - return getStreamInsertMethod; - } - - private static volatile io.grpc.MethodDescriptor getMultiInsertMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MultiInsert", - requestType = org.vdaas.vald.api.v1.payload.Insert.MultiRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Locations.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMultiInsertMethod() { - io.grpc.MethodDescriptor getMultiInsertMethod; - if ((getMultiInsertMethod = InsertGrpc.getMultiInsertMethod) == null) { - synchronized (InsertGrpc.class) { - if ((getMultiInsertMethod = InsertGrpc.getMultiInsertMethod) == null) { - InsertGrpc.getMultiInsertMethod = getMultiInsertMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MultiInsert")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Insert.MultiRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Locations.getDefaultInstance())) - .setSchemaDescriptor(new InsertMethodDescriptorSupplier("MultiInsert")) - .build(); - } - } - } - return getMultiInsertMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static InsertStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public InsertStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new InsertStub(channel, callOptions); - } - }; - return InsertStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static InsertBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public InsertBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new InsertBlockingStub(channel, callOptions); - } - }; - return InsertBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static InsertFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public InsertFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new InsertFutureStub(channel, callOptions); - } - }; - return InsertFutureStub.newStub(factory, channel); - } - - /** - *
-   * Insert service provides ways to add new vectors.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * A method to add a new single vector.
-     * 
- */ - default void insert(org.vdaas.vald.api.v1.payload.Insert.Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInsertMethod(), responseObserver); - } - - /** - *
-     * A method to add new multiple vectors by bidirectional streaming.
-     * 
- */ - default io.grpc.stub.StreamObserver streamInsert( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamInsertMethod(), responseObserver); - } - - /** - *
-     * A method to add new multiple vectors in a single request.
-     * 
- */ - default void multiInsert(org.vdaas.vald.api.v1.payload.Insert.MultiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMultiInsertMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Insert. - *
-   * Insert service provides ways to add new vectors.
-   * 
- */ - public static abstract class InsertImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return InsertGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Insert. - *
-   * Insert service provides ways to add new vectors.
-   * 
- */ - public static final class InsertStub - extends io.grpc.stub.AbstractAsyncStub { - private InsertStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected InsertStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new InsertStub(channel, callOptions); - } - - /** - *
-     * A method to add a new single vector.
-     * 
- */ - public void insert(org.vdaas.vald.api.v1.payload.Insert.Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getInsertMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to add new multiple vectors by bidirectional streaming.
-     * 
- */ - public io.grpc.stub.StreamObserver streamInsert( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamInsertMethod(), getCallOptions()), responseObserver); - } - - /** - *
-     * A method to add new multiple vectors in a single request.
-     * 
- */ - public void multiInsert(org.vdaas.vald.api.v1.payload.Insert.MultiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMultiInsertMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Insert. - *
-   * Insert service provides ways to add new vectors.
-   * 
- */ - public static final class InsertBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private InsertBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected InsertBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new InsertBlockingStub(channel, callOptions); - } - - /** - *
-     * A method to add a new single vector.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Location insert(org.vdaas.vald.api.v1.payload.Insert.Request request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getInsertMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to add new multiple vectors in a single request.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Locations multiInsert(org.vdaas.vald.api.v1.payload.Insert.MultiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMultiInsertMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Insert. - *
-   * Insert service provides ways to add new vectors.
-   * 
- */ - public static final class InsertFutureStub - extends io.grpc.stub.AbstractFutureStub { - private InsertFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected InsertFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new InsertFutureStub(channel, callOptions); - } - - /** - *
-     * A method to add a new single vector.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture insert( - org.vdaas.vald.api.v1.payload.Insert.Request request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getInsertMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to add new multiple vectors in a single request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture multiInsert( - org.vdaas.vald.api.v1.payload.Insert.MultiRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMultiInsertMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_INSERT = 0; - private static final int METHODID_MULTI_INSERT = 1; - private static final int METHODID_STREAM_INSERT = 2; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_INSERT: - serviceImpl.insert((org.vdaas.vald.api.v1.payload.Insert.Request) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MULTI_INSERT: - serviceImpl.multiInsert((org.vdaas.vald.api.v1.payload.Insert.MultiRequest) 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) { - case METHODID_STREAM_INSERT: - return (io.grpc.stub.StreamObserver) serviceImpl.streamInsert( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getInsertMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Insert.Request, - org.vdaas.vald.api.v1.payload.Object.Location>( - service, METHODID_INSERT))) - .addMethod( - getStreamInsertMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Insert.Request, - org.vdaas.vald.api.v1.payload.Object.StreamLocation>( - service, METHODID_STREAM_INSERT))) - .addMethod( - getMultiInsertMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Insert.MultiRequest, - org.vdaas.vald.api.v1.payload.Object.Locations>( - service, METHODID_MULTI_INSERT))) - .build(); - } - - private static abstract class InsertBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - InsertBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return org.vdaas.vald.api.v1.vald.ValdInsert.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Insert"); - } - } - - private static final class InsertFileDescriptorSupplier - extends InsertBaseDescriptorSupplier { - InsertFileDescriptorSupplier() {} - } - - private static final class InsertMethodDescriptorSupplier - extends InsertBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - InsertMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (InsertGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new InsertFileDescriptorSupplier()) - .addMethod(getInsertMethod()) - .addMethod(getStreamInsertMethod()) - .addMethod(getMultiInsertMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/ObjectGrpc.java b/src/main/java/org/vdaas/vald/api/v1/vald/ObjectGrpc.java deleted file mode 100644 index 0b63f27c..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/vald/ObjectGrpc.java +++ /dev/null @@ -1,549 +0,0 @@ -package org.vdaas.vald.api.v1.vald; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Object service provides ways to fetch indexed vectors.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.64.0)", - comments = "Source: v1/vald/object.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ObjectGrpc { - - private ObjectGrpc() {} - - public static final java.lang.String SERVICE_NAME = "vald.v1.Object"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getExistsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Exists", - requestType = org.vdaas.vald.api.v1.payload.Object.ID.class, - responseType = org.vdaas.vald.api.v1.payload.Object.ID.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getExistsMethod() { - io.grpc.MethodDescriptor getExistsMethod; - if ((getExistsMethod = ObjectGrpc.getExistsMethod) == null) { - synchronized (ObjectGrpc.class) { - if ((getExistsMethod = ObjectGrpc.getExistsMethod) == null) { - ObjectGrpc.getExistsMethod = getExistsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Exists")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.ID.getDefaultInstance())) - .setSchemaDescriptor(new ObjectMethodDescriptorSupplier("Exists")) - .build(); - } - } - } - return getExistsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetObject", - requestType = org.vdaas.vald.api.v1.payload.Object.VectorRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Vector.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetObjectMethod() { - io.grpc.MethodDescriptor getGetObjectMethod; - if ((getGetObjectMethod = ObjectGrpc.getGetObjectMethod) == null) { - synchronized (ObjectGrpc.class) { - if ((getGetObjectMethod = ObjectGrpc.getGetObjectMethod) == null) { - ObjectGrpc.getGetObjectMethod = getGetObjectMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.VectorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance())) - .setSchemaDescriptor(new ObjectMethodDescriptorSupplier("GetObject")) - .build(); - } - } - } - return getGetObjectMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamGetObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamGetObject", - requestType = org.vdaas.vald.api.v1.payload.Object.VectorRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Object.StreamVector.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamGetObjectMethod() { - io.grpc.MethodDescriptor getStreamGetObjectMethod; - if ((getStreamGetObjectMethod = ObjectGrpc.getStreamGetObjectMethod) == null) { - synchronized (ObjectGrpc.class) { - if ((getStreamGetObjectMethod = ObjectGrpc.getStreamGetObjectMethod) == null) { - ObjectGrpc.getStreamGetObjectMethod = getStreamGetObjectMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamGetObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.VectorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.StreamVector.getDefaultInstance())) - .setSchemaDescriptor(new ObjectMethodDescriptorSupplier("StreamGetObject")) - .build(); - } - } - } - return getStreamGetObjectMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamListObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamListObject", - requestType = org.vdaas.vald.api.v1.payload.Object.List.Request.class, - responseType = org.vdaas.vald.api.v1.payload.Object.List.Response.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getStreamListObjectMethod() { - io.grpc.MethodDescriptor getStreamListObjectMethod; - if ((getStreamListObjectMethod = ObjectGrpc.getStreamListObjectMethod) == null) { - synchronized (ObjectGrpc.class) { - if ((getStreamListObjectMethod = ObjectGrpc.getStreamListObjectMethod) == null) { - ObjectGrpc.getStreamListObjectMethod = getStreamListObjectMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamListObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.List.Request.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.List.Response.getDefaultInstance())) - .setSchemaDescriptor(new ObjectMethodDescriptorSupplier("StreamListObject")) - .build(); - } - } - } - return getStreamListObjectMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ObjectStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ObjectStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ObjectStub(channel, callOptions); - } - }; - return ObjectStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ObjectBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ObjectBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ObjectBlockingStub(channel, callOptions); - } - }; - return ObjectBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ObjectFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ObjectFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ObjectFutureStub(channel, callOptions); - } - }; - return ObjectFutureStub.newStub(factory, channel); - } - - /** - *
-   * Object service provides ways to fetch indexed vectors.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * A method to check whether a specified ID is indexed or not.
-     * 
- */ - default void exists(org.vdaas.vald.api.v1.payload.Object.ID request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExistsMethod(), responseObserver); - } - - /** - *
-     * A method to fetch a vector.
-     * 
- */ - default void getObject(org.vdaas.vald.api.v1.payload.Object.VectorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetObjectMethod(), responseObserver); - } - - /** - *
-     * A method to fetch vectors by bidirectional streaming.
-     * 
- */ - default io.grpc.stub.StreamObserver streamGetObject( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamGetObjectMethod(), responseObserver); - } - - /** - *
-     * A method to get all the vectors with server streaming
-     * 
- */ - default void streamListObject(org.vdaas.vald.api.v1.payload.Object.List.Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStreamListObjectMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Object. - *
-   * Object service provides ways to fetch indexed vectors.
-   * 
- */ - public static abstract class ObjectImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return ObjectGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Object. - *
-   * Object service provides ways to fetch indexed vectors.
-   * 
- */ - public static final class ObjectStub - extends io.grpc.stub.AbstractAsyncStub { - private ObjectStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ObjectStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ObjectStub(channel, callOptions); - } - - /** - *
-     * A method to check whether a specified ID is indexed or not.
-     * 
- */ - public void exists(org.vdaas.vald.api.v1.payload.Object.ID request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExistsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to fetch a vector.
-     * 
- */ - public void getObject(org.vdaas.vald.api.v1.payload.Object.VectorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetObjectMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to fetch vectors by bidirectional streaming.
-     * 
- */ - public io.grpc.stub.StreamObserver streamGetObject( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamGetObjectMethod(), getCallOptions()), responseObserver); - } - - /** - *
-     * A method to get all the vectors with server streaming
-     * 
- */ - public void streamListObject(org.vdaas.vald.api.v1.payload.Object.List.Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getStreamListObjectMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Object. - *
-   * Object service provides ways to fetch indexed vectors.
-   * 
- */ - public static final class ObjectBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ObjectBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ObjectBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ObjectBlockingStub(channel, callOptions); - } - - /** - *
-     * A method to check whether a specified ID is indexed or not.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.ID exists(org.vdaas.vald.api.v1.payload.Object.ID request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExistsMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to fetch a vector.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Vector getObject(org.vdaas.vald.api.v1.payload.Object.VectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetObjectMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to get all the vectors with server streaming
-     * 
- */ - public java.util.Iterator streamListObject( - org.vdaas.vald.api.v1.payload.Object.List.Request request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getStreamListObjectMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Object. - *
-   * Object service provides ways to fetch indexed vectors.
-   * 
- */ - public static final class ObjectFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ObjectFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ObjectFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ObjectFutureStub(channel, callOptions); - } - - /** - *
-     * A method to check whether a specified ID is indexed or not.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture exists( - org.vdaas.vald.api.v1.payload.Object.ID request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExistsMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to fetch a vector.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getObject( - org.vdaas.vald.api.v1.payload.Object.VectorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetObjectMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_EXISTS = 0; - private static final int METHODID_GET_OBJECT = 1; - private static final int METHODID_STREAM_LIST_OBJECT = 2; - private static final int METHODID_STREAM_GET_OBJECT = 3; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_EXISTS: - serviceImpl.exists((org.vdaas.vald.api.v1.payload.Object.ID) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_OBJECT: - serviceImpl.getObject((org.vdaas.vald.api.v1.payload.Object.VectorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STREAM_LIST_OBJECT: - serviceImpl.streamListObject((org.vdaas.vald.api.v1.payload.Object.List.Request) 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) { - case METHODID_STREAM_GET_OBJECT: - return (io.grpc.stub.StreamObserver) serviceImpl.streamGetObject( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getExistsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Object.ID, - org.vdaas.vald.api.v1.payload.Object.ID>( - service, METHODID_EXISTS))) - .addMethod( - getGetObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Object.VectorRequest, - org.vdaas.vald.api.v1.payload.Object.Vector>( - service, METHODID_GET_OBJECT))) - .addMethod( - getStreamGetObjectMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Object.VectorRequest, - org.vdaas.vald.api.v1.payload.Object.StreamVector>( - service, METHODID_STREAM_GET_OBJECT))) - .addMethod( - getStreamListObjectMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Object.List.Request, - org.vdaas.vald.api.v1.payload.Object.List.Response>( - service, METHODID_STREAM_LIST_OBJECT))) - .build(); - } - - private static abstract class ObjectBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ObjectBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return org.vdaas.vald.api.v1.vald.ValdObject.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Object"); - } - } - - private static final class ObjectFileDescriptorSupplier - extends ObjectBaseDescriptorSupplier { - ObjectFileDescriptorSupplier() {} - } - - private static final class ObjectMethodDescriptorSupplier - extends ObjectBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - ObjectMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ObjectGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ObjectFileDescriptorSupplier()) - .addMethod(getExistsMethod()) - .addMethod(getGetObjectMethod()) - .addMethod(getStreamGetObjectMethod()) - .addMethod(getStreamListObjectMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/RemoveGrpc.java b/src/main/java/org/vdaas/vald/api/v1/vald/RemoveGrpc.java deleted file mode 100644 index 18742992..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/vald/RemoveGrpc.java +++ /dev/null @@ -1,559 +0,0 @@ -package org.vdaas.vald.api.v1.vald; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Remove service provides ways to remove indexed vectors.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.64.0)", - comments = "Source: v1/vald/remove.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class RemoveGrpc { - - private RemoveGrpc() {} - - public static final java.lang.String SERVICE_NAME = "vald.v1.Remove"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getRemoveMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Remove", - requestType = org.vdaas.vald.api.v1.payload.Remove.Request.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Location.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRemoveMethod() { - io.grpc.MethodDescriptor getRemoveMethod; - if ((getRemoveMethod = RemoveGrpc.getRemoveMethod) == null) { - synchronized (RemoveGrpc.class) { - if ((getRemoveMethod = RemoveGrpc.getRemoveMethod) == null) { - RemoveGrpc.getRemoveMethod = getRemoveMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Remove")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Remove.Request.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Location.getDefaultInstance())) - .setSchemaDescriptor(new RemoveMethodDescriptorSupplier("Remove")) - .build(); - } - } - } - return getRemoveMethod; - } - - private static volatile io.grpc.MethodDescriptor getRemoveByTimestampMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RemoveByTimestamp", - requestType = org.vdaas.vald.api.v1.payload.Remove.TimestampRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Locations.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRemoveByTimestampMethod() { - io.grpc.MethodDescriptor getRemoveByTimestampMethod; - if ((getRemoveByTimestampMethod = RemoveGrpc.getRemoveByTimestampMethod) == null) { - synchronized (RemoveGrpc.class) { - if ((getRemoveByTimestampMethod = RemoveGrpc.getRemoveByTimestampMethod) == null) { - RemoveGrpc.getRemoveByTimestampMethod = getRemoveByTimestampMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveByTimestamp")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Remove.TimestampRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Locations.getDefaultInstance())) - .setSchemaDescriptor(new RemoveMethodDescriptorSupplier("RemoveByTimestamp")) - .build(); - } - } - } - return getRemoveByTimestampMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamRemoveMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamRemove", - requestType = org.vdaas.vald.api.v1.payload.Remove.Request.class, - responseType = org.vdaas.vald.api.v1.payload.Object.StreamLocation.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamRemoveMethod() { - io.grpc.MethodDescriptor getStreamRemoveMethod; - if ((getStreamRemoveMethod = RemoveGrpc.getStreamRemoveMethod) == null) { - synchronized (RemoveGrpc.class) { - if ((getStreamRemoveMethod = RemoveGrpc.getStreamRemoveMethod) == null) { - RemoveGrpc.getStreamRemoveMethod = getStreamRemoveMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamRemove")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Remove.Request.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.StreamLocation.getDefaultInstance())) - .setSchemaDescriptor(new RemoveMethodDescriptorSupplier("StreamRemove")) - .build(); - } - } - } - return getStreamRemoveMethod; - } - - private static volatile io.grpc.MethodDescriptor getMultiRemoveMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MultiRemove", - requestType = org.vdaas.vald.api.v1.payload.Remove.MultiRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Locations.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMultiRemoveMethod() { - io.grpc.MethodDescriptor getMultiRemoveMethod; - if ((getMultiRemoveMethod = RemoveGrpc.getMultiRemoveMethod) == null) { - synchronized (RemoveGrpc.class) { - if ((getMultiRemoveMethod = RemoveGrpc.getMultiRemoveMethod) == null) { - RemoveGrpc.getMultiRemoveMethod = getMultiRemoveMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MultiRemove")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Remove.MultiRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Locations.getDefaultInstance())) - .setSchemaDescriptor(new RemoveMethodDescriptorSupplier("MultiRemove")) - .build(); - } - } - } - return getMultiRemoveMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static RemoveStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RemoveStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RemoveStub(channel, callOptions); - } - }; - return RemoveStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static RemoveBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RemoveBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RemoveBlockingStub(channel, callOptions); - } - }; - return RemoveBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static RemoveFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RemoveFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RemoveFutureStub(channel, callOptions); - } - }; - return RemoveFutureStub.newStub(factory, channel); - } - - /** - *
-   * Remove service provides ways to remove indexed vectors.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * A method to remove an indexed vector.
-     * 
- */ - default void remove(org.vdaas.vald.api.v1.payload.Remove.Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveMethod(), responseObserver); - } - - /** - *
-     * A method to remove an indexed vector based on timestamp.
-     * 
- */ - default void removeByTimestamp(org.vdaas.vald.api.v1.payload.Remove.TimestampRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveByTimestampMethod(), responseObserver); - } - - /** - *
-     * A method to remove multiple indexed vectors by bidirectional streaming.
-     * 
- */ - default io.grpc.stub.StreamObserver streamRemove( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamRemoveMethod(), responseObserver); - } - - /** - *
-     * A method to remove multiple indexed vectors in a single request.
-     * 
- */ - default void multiRemove(org.vdaas.vald.api.v1.payload.Remove.MultiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMultiRemoveMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Remove. - *
-   * Remove service provides ways to remove indexed vectors.
-   * 
- */ - public static abstract class RemoveImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return RemoveGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Remove. - *
-   * Remove service provides ways to remove indexed vectors.
-   * 
- */ - public static final class RemoveStub - extends io.grpc.stub.AbstractAsyncStub { - private RemoveStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RemoveStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RemoveStub(channel, callOptions); - } - - /** - *
-     * A method to remove an indexed vector.
-     * 
- */ - public void remove(org.vdaas.vald.api.v1.payload.Remove.Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRemoveMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to remove an indexed vector based on timestamp.
-     * 
- */ - public void removeByTimestamp(org.vdaas.vald.api.v1.payload.Remove.TimestampRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRemoveByTimestampMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to remove multiple indexed vectors by bidirectional streaming.
-     * 
- */ - public io.grpc.stub.StreamObserver streamRemove( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamRemoveMethod(), getCallOptions()), responseObserver); - } - - /** - *
-     * A method to remove multiple indexed vectors in a single request.
-     * 
- */ - public void multiRemove(org.vdaas.vald.api.v1.payload.Remove.MultiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMultiRemoveMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Remove. - *
-   * Remove service provides ways to remove indexed vectors.
-   * 
- */ - public static final class RemoveBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private RemoveBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RemoveBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RemoveBlockingStub(channel, callOptions); - } - - /** - *
-     * A method to remove an indexed vector.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Location remove(org.vdaas.vald.api.v1.payload.Remove.Request request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRemoveMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to remove an indexed vector based on timestamp.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Locations removeByTimestamp(org.vdaas.vald.api.v1.payload.Remove.TimestampRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRemoveByTimestampMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to remove multiple indexed vectors in a single request.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Locations multiRemove(org.vdaas.vald.api.v1.payload.Remove.MultiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMultiRemoveMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Remove. - *
-   * Remove service provides ways to remove indexed vectors.
-   * 
- */ - public static final class RemoveFutureStub - extends io.grpc.stub.AbstractFutureStub { - private RemoveFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RemoveFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RemoveFutureStub(channel, callOptions); - } - - /** - *
-     * A method to remove an indexed vector.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture remove( - org.vdaas.vald.api.v1.payload.Remove.Request request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRemoveMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to remove an indexed vector based on timestamp.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture removeByTimestamp( - org.vdaas.vald.api.v1.payload.Remove.TimestampRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRemoveByTimestampMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to remove multiple indexed vectors in a single request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture multiRemove( - org.vdaas.vald.api.v1.payload.Remove.MultiRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMultiRemoveMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_REMOVE = 0; - private static final int METHODID_REMOVE_BY_TIMESTAMP = 1; - private static final int METHODID_MULTI_REMOVE = 2; - private static final int METHODID_STREAM_REMOVE = 3; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_REMOVE: - serviceImpl.remove((org.vdaas.vald.api.v1.payload.Remove.Request) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_REMOVE_BY_TIMESTAMP: - serviceImpl.removeByTimestamp((org.vdaas.vald.api.v1.payload.Remove.TimestampRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MULTI_REMOVE: - serviceImpl.multiRemove((org.vdaas.vald.api.v1.payload.Remove.MultiRequest) 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) { - case METHODID_STREAM_REMOVE: - return (io.grpc.stub.StreamObserver) serviceImpl.streamRemove( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getRemoveMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Remove.Request, - org.vdaas.vald.api.v1.payload.Object.Location>( - service, METHODID_REMOVE))) - .addMethod( - getRemoveByTimestampMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Remove.TimestampRequest, - org.vdaas.vald.api.v1.payload.Object.Locations>( - service, METHODID_REMOVE_BY_TIMESTAMP))) - .addMethod( - getStreamRemoveMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Remove.Request, - org.vdaas.vald.api.v1.payload.Object.StreamLocation>( - service, METHODID_STREAM_REMOVE))) - .addMethod( - getMultiRemoveMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Remove.MultiRequest, - org.vdaas.vald.api.v1.payload.Object.Locations>( - service, METHODID_MULTI_REMOVE))) - .build(); - } - - private static abstract class RemoveBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - RemoveBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return org.vdaas.vald.api.v1.vald.ValdRemove.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Remove"); - } - } - - private static final class RemoveFileDescriptorSupplier - extends RemoveBaseDescriptorSupplier { - RemoveFileDescriptorSupplier() {} - } - - private static final class RemoveMethodDescriptorSupplier - extends RemoveBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - RemoveMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (RemoveGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new RemoveFileDescriptorSupplier()) - .addMethod(getRemoveMethod()) - .addMethod(getRemoveByTimestampMethod()) - .addMethod(getStreamRemoveMethod()) - .addMethod(getMultiRemoveMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/SearchGrpc.java b/src/main/java/org/vdaas/vald/api/v1/vald/SearchGrpc.java deleted file mode 100644 index e1ba0be5..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/vald/SearchGrpc.java +++ /dev/null @@ -1,1189 +0,0 @@ -package org.vdaas.vald.api.v1.vald; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Search service provides ways to search indexed vectors.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.64.0)", - comments = "Source: v1/vald/search.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SearchGrpc { - - private SearchGrpc() {} - - public static final java.lang.String SERVICE_NAME = "vald.v1.Search"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getSearchMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Search", - requestType = org.vdaas.vald.api.v1.payload.Search.Request.class, - responseType = org.vdaas.vald.api.v1.payload.Search.Response.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSearchMethod() { - io.grpc.MethodDescriptor getSearchMethod; - if ((getSearchMethod = SearchGrpc.getSearchMethod) == null) { - synchronized (SearchGrpc.class) { - if ((getSearchMethod = SearchGrpc.getSearchMethod) == null) { - SearchGrpc.getSearchMethod = getSearchMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Search")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.Request.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.Response.getDefaultInstance())) - .setSchemaDescriptor(new SearchMethodDescriptorSupplier("Search")) - .build(); - } - } - } - return getSearchMethod; - } - - private static volatile io.grpc.MethodDescriptor getSearchByIDMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchByID", - requestType = org.vdaas.vald.api.v1.payload.Search.IDRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Search.Response.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSearchByIDMethod() { - io.grpc.MethodDescriptor getSearchByIDMethod; - if ((getSearchByIDMethod = SearchGrpc.getSearchByIDMethod) == null) { - synchronized (SearchGrpc.class) { - if ((getSearchByIDMethod = SearchGrpc.getSearchByIDMethod) == null) { - SearchGrpc.getSearchByIDMethod = getSearchByIDMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchByID")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.IDRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.Response.getDefaultInstance())) - .setSchemaDescriptor(new SearchMethodDescriptorSupplier("SearchByID")) - .build(); - } - } - } - return getSearchByIDMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamSearchMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamSearch", - requestType = org.vdaas.vald.api.v1.payload.Search.Request.class, - responseType = org.vdaas.vald.api.v1.payload.Search.StreamResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamSearchMethod() { - io.grpc.MethodDescriptor getStreamSearchMethod; - if ((getStreamSearchMethod = SearchGrpc.getStreamSearchMethod) == null) { - synchronized (SearchGrpc.class) { - if ((getStreamSearchMethod = SearchGrpc.getStreamSearchMethod) == null) { - SearchGrpc.getStreamSearchMethod = getStreamSearchMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamSearch")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.Request.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.StreamResponse.getDefaultInstance())) - .setSchemaDescriptor(new SearchMethodDescriptorSupplier("StreamSearch")) - .build(); - } - } - } - return getStreamSearchMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamSearchByIDMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamSearchByID", - requestType = org.vdaas.vald.api.v1.payload.Search.IDRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Search.StreamResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamSearchByIDMethod() { - io.grpc.MethodDescriptor getStreamSearchByIDMethod; - if ((getStreamSearchByIDMethod = SearchGrpc.getStreamSearchByIDMethod) == null) { - synchronized (SearchGrpc.class) { - if ((getStreamSearchByIDMethod = SearchGrpc.getStreamSearchByIDMethod) == null) { - SearchGrpc.getStreamSearchByIDMethod = getStreamSearchByIDMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamSearchByID")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.IDRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.StreamResponse.getDefaultInstance())) - .setSchemaDescriptor(new SearchMethodDescriptorSupplier("StreamSearchByID")) - .build(); - } - } - } - return getStreamSearchByIDMethod; - } - - private static volatile io.grpc.MethodDescriptor getMultiSearchMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MultiSearch", - requestType = org.vdaas.vald.api.v1.payload.Search.MultiRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Search.Responses.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMultiSearchMethod() { - io.grpc.MethodDescriptor getMultiSearchMethod; - if ((getMultiSearchMethod = SearchGrpc.getMultiSearchMethod) == null) { - synchronized (SearchGrpc.class) { - if ((getMultiSearchMethod = SearchGrpc.getMultiSearchMethod) == null) { - SearchGrpc.getMultiSearchMethod = getMultiSearchMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MultiSearch")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.MultiRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.Responses.getDefaultInstance())) - .setSchemaDescriptor(new SearchMethodDescriptorSupplier("MultiSearch")) - .build(); - } - } - } - return getMultiSearchMethod; - } - - private static volatile io.grpc.MethodDescriptor getMultiSearchByIDMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MultiSearchByID", - requestType = org.vdaas.vald.api.v1.payload.Search.MultiIDRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Search.Responses.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMultiSearchByIDMethod() { - io.grpc.MethodDescriptor getMultiSearchByIDMethod; - if ((getMultiSearchByIDMethod = SearchGrpc.getMultiSearchByIDMethod) == null) { - synchronized (SearchGrpc.class) { - if ((getMultiSearchByIDMethod = SearchGrpc.getMultiSearchByIDMethod) == null) { - SearchGrpc.getMultiSearchByIDMethod = getMultiSearchByIDMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MultiSearchByID")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.MultiIDRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.Responses.getDefaultInstance())) - .setSchemaDescriptor(new SearchMethodDescriptorSupplier("MultiSearchByID")) - .build(); - } - } - } - return getMultiSearchByIDMethod; - } - - private static volatile io.grpc.MethodDescriptor getLinearSearchMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LinearSearch", - requestType = org.vdaas.vald.api.v1.payload.Search.Request.class, - responseType = org.vdaas.vald.api.v1.payload.Search.Response.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLinearSearchMethod() { - io.grpc.MethodDescriptor getLinearSearchMethod; - if ((getLinearSearchMethod = SearchGrpc.getLinearSearchMethod) == null) { - synchronized (SearchGrpc.class) { - if ((getLinearSearchMethod = SearchGrpc.getLinearSearchMethod) == null) { - SearchGrpc.getLinearSearchMethod = getLinearSearchMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LinearSearch")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.Request.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.Response.getDefaultInstance())) - .setSchemaDescriptor(new SearchMethodDescriptorSupplier("LinearSearch")) - .build(); - } - } - } - return getLinearSearchMethod; - } - - private static volatile io.grpc.MethodDescriptor getLinearSearchByIDMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LinearSearchByID", - requestType = org.vdaas.vald.api.v1.payload.Search.IDRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Search.Response.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLinearSearchByIDMethod() { - io.grpc.MethodDescriptor getLinearSearchByIDMethod; - if ((getLinearSearchByIDMethod = SearchGrpc.getLinearSearchByIDMethod) == null) { - synchronized (SearchGrpc.class) { - if ((getLinearSearchByIDMethod = SearchGrpc.getLinearSearchByIDMethod) == null) { - SearchGrpc.getLinearSearchByIDMethod = getLinearSearchByIDMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LinearSearchByID")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.IDRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.Response.getDefaultInstance())) - .setSchemaDescriptor(new SearchMethodDescriptorSupplier("LinearSearchByID")) - .build(); - } - } - } - return getLinearSearchByIDMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamLinearSearchMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamLinearSearch", - requestType = org.vdaas.vald.api.v1.payload.Search.Request.class, - responseType = org.vdaas.vald.api.v1.payload.Search.StreamResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamLinearSearchMethod() { - io.grpc.MethodDescriptor getStreamLinearSearchMethod; - if ((getStreamLinearSearchMethod = SearchGrpc.getStreamLinearSearchMethod) == null) { - synchronized (SearchGrpc.class) { - if ((getStreamLinearSearchMethod = SearchGrpc.getStreamLinearSearchMethod) == null) { - SearchGrpc.getStreamLinearSearchMethod = getStreamLinearSearchMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamLinearSearch")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.Request.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.StreamResponse.getDefaultInstance())) - .setSchemaDescriptor(new SearchMethodDescriptorSupplier("StreamLinearSearch")) - .build(); - } - } - } - return getStreamLinearSearchMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamLinearSearchByIDMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamLinearSearchByID", - requestType = org.vdaas.vald.api.v1.payload.Search.IDRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Search.StreamResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamLinearSearchByIDMethod() { - io.grpc.MethodDescriptor getStreamLinearSearchByIDMethod; - if ((getStreamLinearSearchByIDMethod = SearchGrpc.getStreamLinearSearchByIDMethod) == null) { - synchronized (SearchGrpc.class) { - if ((getStreamLinearSearchByIDMethod = SearchGrpc.getStreamLinearSearchByIDMethod) == null) { - SearchGrpc.getStreamLinearSearchByIDMethod = getStreamLinearSearchByIDMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamLinearSearchByID")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.IDRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.StreamResponse.getDefaultInstance())) - .setSchemaDescriptor(new SearchMethodDescriptorSupplier("StreamLinearSearchByID")) - .build(); - } - } - } - return getStreamLinearSearchByIDMethod; - } - - private static volatile io.grpc.MethodDescriptor getMultiLinearSearchMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MultiLinearSearch", - requestType = org.vdaas.vald.api.v1.payload.Search.MultiRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Search.Responses.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMultiLinearSearchMethod() { - io.grpc.MethodDescriptor getMultiLinearSearchMethod; - if ((getMultiLinearSearchMethod = SearchGrpc.getMultiLinearSearchMethod) == null) { - synchronized (SearchGrpc.class) { - if ((getMultiLinearSearchMethod = SearchGrpc.getMultiLinearSearchMethod) == null) { - SearchGrpc.getMultiLinearSearchMethod = getMultiLinearSearchMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MultiLinearSearch")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.MultiRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.Responses.getDefaultInstance())) - .setSchemaDescriptor(new SearchMethodDescriptorSupplier("MultiLinearSearch")) - .build(); - } - } - } - return getMultiLinearSearchMethod; - } - - private static volatile io.grpc.MethodDescriptor getMultiLinearSearchByIDMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MultiLinearSearchByID", - requestType = org.vdaas.vald.api.v1.payload.Search.MultiIDRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Search.Responses.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMultiLinearSearchByIDMethod() { - io.grpc.MethodDescriptor getMultiLinearSearchByIDMethod; - if ((getMultiLinearSearchByIDMethod = SearchGrpc.getMultiLinearSearchByIDMethod) == null) { - synchronized (SearchGrpc.class) { - if ((getMultiLinearSearchByIDMethod = SearchGrpc.getMultiLinearSearchByIDMethod) == null) { - SearchGrpc.getMultiLinearSearchByIDMethod = getMultiLinearSearchByIDMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MultiLinearSearchByID")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.MultiIDRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Search.Responses.getDefaultInstance())) - .setSchemaDescriptor(new SearchMethodDescriptorSupplier("MultiLinearSearchByID")) - .build(); - } - } - } - return getMultiLinearSearchByIDMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static SearchStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SearchStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SearchStub(channel, callOptions); - } - }; - return SearchStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SearchBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SearchBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SearchBlockingStub(channel, callOptions); - } - }; - return SearchBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static SearchFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SearchFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SearchFutureStub(channel, callOptions); - } - }; - return SearchFutureStub.newStub(factory, channel); - } - - /** - *
-   * Search service provides ways to search indexed vectors.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * A method to search indexed vectors by a raw vector.
-     * 
- */ - default void search(org.vdaas.vald.api.v1.payload.Search.Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchMethod(), responseObserver); - } - - /** - *
-     * A method to search indexed vectors by ID.
-     * 
- */ - default void searchByID(org.vdaas.vald.api.v1.payload.Search.IDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchByIDMethod(), responseObserver); - } - - /** - *
-     * A method to search indexed vectors by multiple vectors.
-     * 
- */ - default io.grpc.stub.StreamObserver streamSearch( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamSearchMethod(), responseObserver); - } - - /** - *
-     * A method to search indexed vectors by multiple IDs.
-     * 
- */ - default io.grpc.stub.StreamObserver streamSearchByID( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamSearchByIDMethod(), responseObserver); - } - - /** - *
-     * A method to search indexed vectors by multiple vectors in a single request.
-     * 
- */ - default void multiSearch(org.vdaas.vald.api.v1.payload.Search.MultiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMultiSearchMethod(), responseObserver); - } - - /** - *
-     * A method to search indexed vectors by multiple IDs in a single request.
-     * 
- */ - default void multiSearchByID(org.vdaas.vald.api.v1.payload.Search.MultiIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMultiSearchByIDMethod(), responseObserver); - } - - /** - *
-     * A method to linear search indexed vectors by a raw vector.
-     * 
- */ - default void linearSearch(org.vdaas.vald.api.v1.payload.Search.Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLinearSearchMethod(), responseObserver); - } - - /** - *
-     * A method to linear search indexed vectors by ID.
-     * 
- */ - default void linearSearchByID(org.vdaas.vald.api.v1.payload.Search.IDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLinearSearchByIDMethod(), responseObserver); - } - - /** - *
-     * A method to linear search indexed vectors by multiple vectors.
-     * 
- */ - default io.grpc.stub.StreamObserver streamLinearSearch( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamLinearSearchMethod(), responseObserver); - } - - /** - *
-     * A method to linear search indexed vectors by multiple IDs.
-     * 
- */ - default io.grpc.stub.StreamObserver streamLinearSearchByID( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamLinearSearchByIDMethod(), responseObserver); - } - - /** - *
-     * A method to linear search indexed vectors by multiple vectors in a single
-     * request.
-     * 
- */ - default void multiLinearSearch(org.vdaas.vald.api.v1.payload.Search.MultiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMultiLinearSearchMethod(), responseObserver); - } - - /** - *
-     * A method to linear search indexed vectors by multiple IDs in a single
-     * request.
-     * 
- */ - default void multiLinearSearchByID(org.vdaas.vald.api.v1.payload.Search.MultiIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMultiLinearSearchByIDMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Search. - *
-   * Search service provides ways to search indexed vectors.
-   * 
- */ - public static abstract class SearchImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return SearchGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Search. - *
-   * Search service provides ways to search indexed vectors.
-   * 
- */ - public static final class SearchStub - extends io.grpc.stub.AbstractAsyncStub { - private SearchStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SearchStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SearchStub(channel, callOptions); - } - - /** - *
-     * A method to search indexed vectors by a raw vector.
-     * 
- */ - public void search(org.vdaas.vald.api.v1.payload.Search.Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to search indexed vectors by ID.
-     * 
- */ - public void searchByID(org.vdaas.vald.api.v1.payload.Search.IDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchByIDMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to search indexed vectors by multiple vectors.
-     * 
- */ - public io.grpc.stub.StreamObserver streamSearch( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamSearchMethod(), getCallOptions()), responseObserver); - } - - /** - *
-     * A method to search indexed vectors by multiple IDs.
-     * 
- */ - public io.grpc.stub.StreamObserver streamSearchByID( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamSearchByIDMethod(), getCallOptions()), responseObserver); - } - - /** - *
-     * A method to search indexed vectors by multiple vectors in a single request.
-     * 
- */ - public void multiSearch(org.vdaas.vald.api.v1.payload.Search.MultiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMultiSearchMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to search indexed vectors by multiple IDs in a single request.
-     * 
- */ - public void multiSearchByID(org.vdaas.vald.api.v1.payload.Search.MultiIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMultiSearchByIDMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to linear search indexed vectors by a raw vector.
-     * 
- */ - public void linearSearch(org.vdaas.vald.api.v1.payload.Search.Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLinearSearchMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to linear search indexed vectors by ID.
-     * 
- */ - public void linearSearchByID(org.vdaas.vald.api.v1.payload.Search.IDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLinearSearchByIDMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to linear search indexed vectors by multiple vectors.
-     * 
- */ - public io.grpc.stub.StreamObserver streamLinearSearch( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamLinearSearchMethod(), getCallOptions()), responseObserver); - } - - /** - *
-     * A method to linear search indexed vectors by multiple IDs.
-     * 
- */ - public io.grpc.stub.StreamObserver streamLinearSearchByID( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamLinearSearchByIDMethod(), getCallOptions()), responseObserver); - } - - /** - *
-     * A method to linear search indexed vectors by multiple vectors in a single
-     * request.
-     * 
- */ - public void multiLinearSearch(org.vdaas.vald.api.v1.payload.Search.MultiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMultiLinearSearchMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to linear search indexed vectors by multiple IDs in a single
-     * request.
-     * 
- */ - public void multiLinearSearchByID(org.vdaas.vald.api.v1.payload.Search.MultiIDRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMultiLinearSearchByIDMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Search. - *
-   * Search service provides ways to search indexed vectors.
-   * 
- */ - public static final class SearchBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SearchBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SearchBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SearchBlockingStub(channel, callOptions); - } - - /** - *
-     * A method to search indexed vectors by a raw vector.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Search.Response search(org.vdaas.vald.api.v1.payload.Search.Request request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to search indexed vectors by ID.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Search.Response searchByID(org.vdaas.vald.api.v1.payload.Search.IDRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchByIDMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to search indexed vectors by multiple vectors in a single request.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Search.Responses multiSearch(org.vdaas.vald.api.v1.payload.Search.MultiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMultiSearchMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to search indexed vectors by multiple IDs in a single request.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Search.Responses multiSearchByID(org.vdaas.vald.api.v1.payload.Search.MultiIDRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMultiSearchByIDMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to linear search indexed vectors by a raw vector.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Search.Response linearSearch(org.vdaas.vald.api.v1.payload.Search.Request request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLinearSearchMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to linear search indexed vectors by ID.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Search.Response linearSearchByID(org.vdaas.vald.api.v1.payload.Search.IDRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLinearSearchByIDMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to linear search indexed vectors by multiple vectors in a single
-     * request.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Search.Responses multiLinearSearch(org.vdaas.vald.api.v1.payload.Search.MultiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMultiLinearSearchMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to linear search indexed vectors by multiple IDs in a single
-     * request.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Search.Responses multiLinearSearchByID(org.vdaas.vald.api.v1.payload.Search.MultiIDRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMultiLinearSearchByIDMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Search. - *
-   * Search service provides ways to search indexed vectors.
-   * 
- */ - public static final class SearchFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SearchFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SearchFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SearchFutureStub(channel, callOptions); - } - - /** - *
-     * A method to search indexed vectors by a raw vector.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture search( - org.vdaas.vald.api.v1.payload.Search.Request request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to search indexed vectors by ID.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture searchByID( - org.vdaas.vald.api.v1.payload.Search.IDRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchByIDMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to search indexed vectors by multiple vectors in a single request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture multiSearch( - org.vdaas.vald.api.v1.payload.Search.MultiRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMultiSearchMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to search indexed vectors by multiple IDs in a single request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture multiSearchByID( - org.vdaas.vald.api.v1.payload.Search.MultiIDRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMultiSearchByIDMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to linear search indexed vectors by a raw vector.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture linearSearch( - org.vdaas.vald.api.v1.payload.Search.Request request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLinearSearchMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to linear search indexed vectors by ID.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture linearSearchByID( - org.vdaas.vald.api.v1.payload.Search.IDRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLinearSearchByIDMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to linear search indexed vectors by multiple vectors in a single
-     * request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture multiLinearSearch( - org.vdaas.vald.api.v1.payload.Search.MultiRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMultiLinearSearchMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to linear search indexed vectors by multiple IDs in a single
-     * request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture multiLinearSearchByID( - org.vdaas.vald.api.v1.payload.Search.MultiIDRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMultiLinearSearchByIDMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_SEARCH = 0; - private static final int METHODID_SEARCH_BY_ID = 1; - private static final int METHODID_MULTI_SEARCH = 2; - private static final int METHODID_MULTI_SEARCH_BY_ID = 3; - private static final int METHODID_LINEAR_SEARCH = 4; - private static final int METHODID_LINEAR_SEARCH_BY_ID = 5; - private static final int METHODID_MULTI_LINEAR_SEARCH = 6; - private static final int METHODID_MULTI_LINEAR_SEARCH_BY_ID = 7; - private static final int METHODID_STREAM_SEARCH = 8; - private static final int METHODID_STREAM_SEARCH_BY_ID = 9; - private static final int METHODID_STREAM_LINEAR_SEARCH = 10; - private static final int METHODID_STREAM_LINEAR_SEARCH_BY_ID = 11; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_SEARCH: - serviceImpl.search((org.vdaas.vald.api.v1.payload.Search.Request) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEARCH_BY_ID: - serviceImpl.searchByID((org.vdaas.vald.api.v1.payload.Search.IDRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MULTI_SEARCH: - serviceImpl.multiSearch((org.vdaas.vald.api.v1.payload.Search.MultiRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MULTI_SEARCH_BY_ID: - serviceImpl.multiSearchByID((org.vdaas.vald.api.v1.payload.Search.MultiIDRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LINEAR_SEARCH: - serviceImpl.linearSearch((org.vdaas.vald.api.v1.payload.Search.Request) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LINEAR_SEARCH_BY_ID: - serviceImpl.linearSearchByID((org.vdaas.vald.api.v1.payload.Search.IDRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MULTI_LINEAR_SEARCH: - serviceImpl.multiLinearSearch((org.vdaas.vald.api.v1.payload.Search.MultiRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MULTI_LINEAR_SEARCH_BY_ID: - serviceImpl.multiLinearSearchByID((org.vdaas.vald.api.v1.payload.Search.MultiIDRequest) 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) { - case METHODID_STREAM_SEARCH: - return (io.grpc.stub.StreamObserver) serviceImpl.streamSearch( - (io.grpc.stub.StreamObserver) responseObserver); - case METHODID_STREAM_SEARCH_BY_ID: - return (io.grpc.stub.StreamObserver) serviceImpl.streamSearchByID( - (io.grpc.stub.StreamObserver) responseObserver); - case METHODID_STREAM_LINEAR_SEARCH: - return (io.grpc.stub.StreamObserver) serviceImpl.streamLinearSearch( - (io.grpc.stub.StreamObserver) responseObserver); - case METHODID_STREAM_LINEAR_SEARCH_BY_ID: - return (io.grpc.stub.StreamObserver) serviceImpl.streamLinearSearchByID( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getSearchMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Search.Request, - org.vdaas.vald.api.v1.payload.Search.Response>( - service, METHODID_SEARCH))) - .addMethod( - getSearchByIDMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Search.IDRequest, - org.vdaas.vald.api.v1.payload.Search.Response>( - service, METHODID_SEARCH_BY_ID))) - .addMethod( - getStreamSearchMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Search.Request, - org.vdaas.vald.api.v1.payload.Search.StreamResponse>( - service, METHODID_STREAM_SEARCH))) - .addMethod( - getStreamSearchByIDMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Search.IDRequest, - org.vdaas.vald.api.v1.payload.Search.StreamResponse>( - service, METHODID_STREAM_SEARCH_BY_ID))) - .addMethod( - getMultiSearchMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Search.MultiRequest, - org.vdaas.vald.api.v1.payload.Search.Responses>( - service, METHODID_MULTI_SEARCH))) - .addMethod( - getMultiSearchByIDMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Search.MultiIDRequest, - org.vdaas.vald.api.v1.payload.Search.Responses>( - service, METHODID_MULTI_SEARCH_BY_ID))) - .addMethod( - getLinearSearchMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Search.Request, - org.vdaas.vald.api.v1.payload.Search.Response>( - service, METHODID_LINEAR_SEARCH))) - .addMethod( - getLinearSearchByIDMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Search.IDRequest, - org.vdaas.vald.api.v1.payload.Search.Response>( - service, METHODID_LINEAR_SEARCH_BY_ID))) - .addMethod( - getStreamLinearSearchMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Search.Request, - org.vdaas.vald.api.v1.payload.Search.StreamResponse>( - service, METHODID_STREAM_LINEAR_SEARCH))) - .addMethod( - getStreamLinearSearchByIDMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Search.IDRequest, - org.vdaas.vald.api.v1.payload.Search.StreamResponse>( - service, METHODID_STREAM_LINEAR_SEARCH_BY_ID))) - .addMethod( - getMultiLinearSearchMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Search.MultiRequest, - org.vdaas.vald.api.v1.payload.Search.Responses>( - service, METHODID_MULTI_LINEAR_SEARCH))) - .addMethod( - getMultiLinearSearchByIDMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Search.MultiIDRequest, - org.vdaas.vald.api.v1.payload.Search.Responses>( - service, METHODID_MULTI_LINEAR_SEARCH_BY_ID))) - .build(); - } - - private static abstract class SearchBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SearchBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return org.vdaas.vald.api.v1.vald.ValdSearch.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Search"); - } - } - - private static final class SearchFileDescriptorSupplier - extends SearchBaseDescriptorSupplier { - SearchFileDescriptorSupplier() {} - } - - private static final class SearchMethodDescriptorSupplier - extends SearchBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - SearchMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SearchGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SearchFileDescriptorSupplier()) - .addMethod(getSearchMethod()) - .addMethod(getSearchByIDMethod()) - .addMethod(getStreamSearchMethod()) - .addMethod(getStreamSearchByIDMethod()) - .addMethod(getMultiSearchMethod()) - .addMethod(getMultiSearchByIDMethod()) - .addMethod(getLinearSearchMethod()) - .addMethod(getLinearSearchByIDMethod()) - .addMethod(getStreamLinearSearchMethod()) - .addMethod(getStreamLinearSearchByIDMethod()) - .addMethod(getMultiLinearSearchMethod()) - .addMethod(getMultiLinearSearchByIDMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/UpdateGrpc.java b/src/main/java/org/vdaas/vald/api/v1/vald/UpdateGrpc.java deleted file mode 100644 index fc2cf9bc..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/vald/UpdateGrpc.java +++ /dev/null @@ -1,473 +0,0 @@ -package org.vdaas.vald.api.v1.vald; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Update service provides ways to update indexed vectors.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.64.0)", - comments = "Source: v1/vald/update.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class UpdateGrpc { - - private UpdateGrpc() {} - - public static final java.lang.String SERVICE_NAME = "vald.v1.Update"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getUpdateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Update", - requestType = org.vdaas.vald.api.v1.payload.Update.Request.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Location.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateMethod() { - io.grpc.MethodDescriptor getUpdateMethod; - if ((getUpdateMethod = UpdateGrpc.getUpdateMethod) == null) { - synchronized (UpdateGrpc.class) { - if ((getUpdateMethod = UpdateGrpc.getUpdateMethod) == null) { - UpdateGrpc.getUpdateMethod = getUpdateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Update")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Update.Request.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Location.getDefaultInstance())) - .setSchemaDescriptor(new UpdateMethodDescriptorSupplier("Update")) - .build(); - } - } - } - return getUpdateMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamUpdateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamUpdate", - requestType = org.vdaas.vald.api.v1.payload.Update.Request.class, - responseType = org.vdaas.vald.api.v1.payload.Object.StreamLocation.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamUpdateMethod() { - io.grpc.MethodDescriptor getStreamUpdateMethod; - if ((getStreamUpdateMethod = UpdateGrpc.getStreamUpdateMethod) == null) { - synchronized (UpdateGrpc.class) { - if ((getStreamUpdateMethod = UpdateGrpc.getStreamUpdateMethod) == null) { - UpdateGrpc.getStreamUpdateMethod = getStreamUpdateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamUpdate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Update.Request.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.StreamLocation.getDefaultInstance())) - .setSchemaDescriptor(new UpdateMethodDescriptorSupplier("StreamUpdate")) - .build(); - } - } - } - return getStreamUpdateMethod; - } - - private static volatile io.grpc.MethodDescriptor getMultiUpdateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MultiUpdate", - requestType = org.vdaas.vald.api.v1.payload.Update.MultiRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Locations.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMultiUpdateMethod() { - io.grpc.MethodDescriptor getMultiUpdateMethod; - if ((getMultiUpdateMethod = UpdateGrpc.getMultiUpdateMethod) == null) { - synchronized (UpdateGrpc.class) { - if ((getMultiUpdateMethod = UpdateGrpc.getMultiUpdateMethod) == null) { - UpdateGrpc.getMultiUpdateMethod = getMultiUpdateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MultiUpdate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Update.MultiRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Locations.getDefaultInstance())) - .setSchemaDescriptor(new UpdateMethodDescriptorSupplier("MultiUpdate")) - .build(); - } - } - } - return getMultiUpdateMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static UpdateStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public UpdateStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UpdateStub(channel, callOptions); - } - }; - return UpdateStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static UpdateBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public UpdateBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UpdateBlockingStub(channel, callOptions); - } - }; - return UpdateBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static UpdateFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public UpdateFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UpdateFutureStub(channel, callOptions); - } - }; - return UpdateFutureStub.newStub(factory, channel); - } - - /** - *
-   * Update service provides ways to update indexed vectors.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * A method to update an indexed vector.
-     * 
- */ - default void update(org.vdaas.vald.api.v1.payload.Update.Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver); - } - - /** - *
-     * A method to update multiple indexed vectors by bidirectional streaming.
-     * 
- */ - default io.grpc.stub.StreamObserver streamUpdate( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamUpdateMethod(), responseObserver); - } - - /** - *
-     * A method to update multiple indexed vectors in a single request.
-     * 
- */ - default void multiUpdate(org.vdaas.vald.api.v1.payload.Update.MultiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMultiUpdateMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Update. - *
-   * Update service provides ways to update indexed vectors.
-   * 
- */ - public static abstract class UpdateImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return UpdateGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Update. - *
-   * Update service provides ways to update indexed vectors.
-   * 
- */ - public static final class UpdateStub - extends io.grpc.stub.AbstractAsyncStub { - private UpdateStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected UpdateStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UpdateStub(channel, callOptions); - } - - /** - *
-     * A method to update an indexed vector.
-     * 
- */ - public void update(org.vdaas.vald.api.v1.payload.Update.Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to update multiple indexed vectors by bidirectional streaming.
-     * 
- */ - public io.grpc.stub.StreamObserver streamUpdate( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamUpdateMethod(), getCallOptions()), responseObserver); - } - - /** - *
-     * A method to update multiple indexed vectors in a single request.
-     * 
- */ - public void multiUpdate(org.vdaas.vald.api.v1.payload.Update.MultiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMultiUpdateMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Update. - *
-   * Update service provides ways to update indexed vectors.
-   * 
- */ - public static final class UpdateBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private UpdateBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected UpdateBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UpdateBlockingStub(channel, callOptions); - } - - /** - *
-     * A method to update an indexed vector.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Location update(org.vdaas.vald.api.v1.payload.Update.Request request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to update multiple indexed vectors in a single request.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Locations multiUpdate(org.vdaas.vald.api.v1.payload.Update.MultiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMultiUpdateMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Update. - *
-   * Update service provides ways to update indexed vectors.
-   * 
- */ - public static final class UpdateFutureStub - extends io.grpc.stub.AbstractFutureStub { - private UpdateFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected UpdateFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UpdateFutureStub(channel, callOptions); - } - - /** - *
-     * A method to update an indexed vector.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture update( - org.vdaas.vald.api.v1.payload.Update.Request request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to update multiple indexed vectors in a single request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture multiUpdate( - org.vdaas.vald.api.v1.payload.Update.MultiRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMultiUpdateMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_UPDATE = 0; - private static final int METHODID_MULTI_UPDATE = 1; - private static final int METHODID_STREAM_UPDATE = 2; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_UPDATE: - serviceImpl.update((org.vdaas.vald.api.v1.payload.Update.Request) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MULTI_UPDATE: - serviceImpl.multiUpdate((org.vdaas.vald.api.v1.payload.Update.MultiRequest) 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) { - case METHODID_STREAM_UPDATE: - return (io.grpc.stub.StreamObserver) serviceImpl.streamUpdate( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getUpdateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Update.Request, - org.vdaas.vald.api.v1.payload.Object.Location>( - service, METHODID_UPDATE))) - .addMethod( - getStreamUpdateMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Update.Request, - org.vdaas.vald.api.v1.payload.Object.StreamLocation>( - service, METHODID_STREAM_UPDATE))) - .addMethod( - getMultiUpdateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Update.MultiRequest, - org.vdaas.vald.api.v1.payload.Object.Locations>( - service, METHODID_MULTI_UPDATE))) - .build(); - } - - private static abstract class UpdateBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - UpdateBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return org.vdaas.vald.api.v1.vald.ValdUpdate.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Update"); - } - } - - private static final class UpdateFileDescriptorSupplier - extends UpdateBaseDescriptorSupplier { - UpdateFileDescriptorSupplier() {} - } - - private static final class UpdateMethodDescriptorSupplier - extends UpdateBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - UpdateMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (UpdateGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new UpdateFileDescriptorSupplier()) - .addMethod(getUpdateMethod()) - .addMethod(getStreamUpdateMethod()) - .addMethod(getMultiUpdateMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/UpsertGrpc.java b/src/main/java/org/vdaas/vald/api/v1/vald/UpsertGrpc.java deleted file mode 100644 index 83c05cf8..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/vald/UpsertGrpc.java +++ /dev/null @@ -1,473 +0,0 @@ -package org.vdaas.vald.api.v1.vald; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Upsert service provides ways to insert/update vectors.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.64.0)", - comments = "Source: v1/vald/upsert.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class UpsertGrpc { - - private UpsertGrpc() {} - - public static final java.lang.String SERVICE_NAME = "vald.v1.Upsert"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getUpsertMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Upsert", - requestType = org.vdaas.vald.api.v1.payload.Upsert.Request.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Location.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpsertMethod() { - io.grpc.MethodDescriptor getUpsertMethod; - if ((getUpsertMethod = UpsertGrpc.getUpsertMethod) == null) { - synchronized (UpsertGrpc.class) { - if ((getUpsertMethod = UpsertGrpc.getUpsertMethod) == null) { - UpsertGrpc.getUpsertMethod = getUpsertMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Upsert")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Upsert.Request.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Location.getDefaultInstance())) - .setSchemaDescriptor(new UpsertMethodDescriptorSupplier("Upsert")) - .build(); - } - } - } - return getUpsertMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamUpsertMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamUpsert", - requestType = org.vdaas.vald.api.v1.payload.Upsert.Request.class, - responseType = org.vdaas.vald.api.v1.payload.Object.StreamLocation.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamUpsertMethod() { - io.grpc.MethodDescriptor getStreamUpsertMethod; - if ((getStreamUpsertMethod = UpsertGrpc.getStreamUpsertMethod) == null) { - synchronized (UpsertGrpc.class) { - if ((getStreamUpsertMethod = UpsertGrpc.getStreamUpsertMethod) == null) { - UpsertGrpc.getStreamUpsertMethod = getStreamUpsertMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamUpsert")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Upsert.Request.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.StreamLocation.getDefaultInstance())) - .setSchemaDescriptor(new UpsertMethodDescriptorSupplier("StreamUpsert")) - .build(); - } - } - } - return getStreamUpsertMethod; - } - - private static volatile io.grpc.MethodDescriptor getMultiUpsertMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MultiUpsert", - requestType = org.vdaas.vald.api.v1.payload.Upsert.MultiRequest.class, - responseType = org.vdaas.vald.api.v1.payload.Object.Locations.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getMultiUpsertMethod() { - io.grpc.MethodDescriptor getMultiUpsertMethod; - if ((getMultiUpsertMethod = UpsertGrpc.getMultiUpsertMethod) == null) { - synchronized (UpsertGrpc.class) { - if ((getMultiUpsertMethod = UpsertGrpc.getMultiUpsertMethod) == null) { - UpsertGrpc.getMultiUpsertMethod = getMultiUpsertMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MultiUpsert")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Upsert.MultiRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.vdaas.vald.api.v1.payload.Object.Locations.getDefaultInstance())) - .setSchemaDescriptor(new UpsertMethodDescriptorSupplier("MultiUpsert")) - .build(); - } - } - } - return getMultiUpsertMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static UpsertStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public UpsertStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UpsertStub(channel, callOptions); - } - }; - return UpsertStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static UpsertBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public UpsertBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UpsertBlockingStub(channel, callOptions); - } - }; - return UpsertBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static UpsertFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public UpsertFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UpsertFutureStub(channel, callOptions); - } - }; - return UpsertFutureStub.newStub(factory, channel); - } - - /** - *
-   * Upsert service provides ways to insert/update vectors.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * A method to insert/update a vector.
-     * 
- */ - default void upsert(org.vdaas.vald.api.v1.payload.Upsert.Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpsertMethod(), responseObserver); - } - - /** - *
-     * A method to insert/update multiple vectors by bidirectional streaming.
-     * 
- */ - default io.grpc.stub.StreamObserver streamUpsert( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamUpsertMethod(), responseObserver); - } - - /** - *
-     * A method to insert/update multiple vectors in a single request.
-     * 
- */ - default void multiUpsert(org.vdaas.vald.api.v1.payload.Upsert.MultiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMultiUpsertMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Upsert. - *
-   * Upsert service provides ways to insert/update vectors.
-   * 
- */ - public static abstract class UpsertImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return UpsertGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Upsert. - *
-   * Upsert service provides ways to insert/update vectors.
-   * 
- */ - public static final class UpsertStub - extends io.grpc.stub.AbstractAsyncStub { - private UpsertStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected UpsertStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UpsertStub(channel, callOptions); - } - - /** - *
-     * A method to insert/update a vector.
-     * 
- */ - public void upsert(org.vdaas.vald.api.v1.payload.Upsert.Request request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpsertMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * A method to insert/update multiple vectors by bidirectional streaming.
-     * 
- */ - public io.grpc.stub.StreamObserver streamUpsert( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamUpsertMethod(), getCallOptions()), responseObserver); - } - - /** - *
-     * A method to insert/update multiple vectors in a single request.
-     * 
- */ - public void multiUpsert(org.vdaas.vald.api.v1.payload.Upsert.MultiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMultiUpsertMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Upsert. - *
-   * Upsert service provides ways to insert/update vectors.
-   * 
- */ - public static final class UpsertBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private UpsertBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected UpsertBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UpsertBlockingStub(channel, callOptions); - } - - /** - *
-     * A method to insert/update a vector.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Location upsert(org.vdaas.vald.api.v1.payload.Upsert.Request request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpsertMethod(), getCallOptions(), request); - } - - /** - *
-     * A method to insert/update multiple vectors in a single request.
-     * 
- */ - public org.vdaas.vald.api.v1.payload.Object.Locations multiUpsert(org.vdaas.vald.api.v1.payload.Upsert.MultiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMultiUpsertMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Upsert. - *
-   * Upsert service provides ways to insert/update vectors.
-   * 
- */ - public static final class UpsertFutureStub - extends io.grpc.stub.AbstractFutureStub { - private UpsertFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected UpsertFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UpsertFutureStub(channel, callOptions); - } - - /** - *
-     * A method to insert/update a vector.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture upsert( - org.vdaas.vald.api.v1.payload.Upsert.Request request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpsertMethod(), getCallOptions()), request); - } - - /** - *
-     * A method to insert/update multiple vectors in a single request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture multiUpsert( - org.vdaas.vald.api.v1.payload.Upsert.MultiRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMultiUpsertMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_UPSERT = 0; - private static final int METHODID_MULTI_UPSERT = 1; - private static final int METHODID_STREAM_UPSERT = 2; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_UPSERT: - serviceImpl.upsert((org.vdaas.vald.api.v1.payload.Upsert.Request) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MULTI_UPSERT: - serviceImpl.multiUpsert((org.vdaas.vald.api.v1.payload.Upsert.MultiRequest) 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) { - case METHODID_STREAM_UPSERT: - return (io.grpc.stub.StreamObserver) serviceImpl.streamUpsert( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getUpsertMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Upsert.Request, - org.vdaas.vald.api.v1.payload.Object.Location>( - service, METHODID_UPSERT))) - .addMethod( - getStreamUpsertMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Upsert.Request, - org.vdaas.vald.api.v1.payload.Object.StreamLocation>( - service, METHODID_STREAM_UPSERT))) - .addMethod( - getMultiUpsertMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.vdaas.vald.api.v1.payload.Upsert.MultiRequest, - org.vdaas.vald.api.v1.payload.Object.Locations>( - service, METHODID_MULTI_UPSERT))) - .build(); - } - - private static abstract class UpsertBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - UpsertBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return org.vdaas.vald.api.v1.vald.ValdUpsert.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Upsert"); - } - } - - private static final class UpsertFileDescriptorSupplier - extends UpsertBaseDescriptorSupplier { - UpsertFileDescriptorSupplier() {} - } - - private static final class UpsertMethodDescriptorSupplier - extends UpsertBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - UpsertMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (UpsertGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new UpsertFileDescriptorSupplier()) - .addMethod(getUpsertMethod()) - .addMethod(getStreamUpsertMethod()) - .addMethod(getMultiUpsertMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/ValdFilter.java b/src/main/java/org/vdaas/vald/api/v1/vald/ValdFilter.java deleted file mode 100644 index 4aa58362..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/vald/ValdFilter.java +++ /dev/null @@ -1,82 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/vald/filter.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.vald; - -public final class ValdFilter { - private ValdFilter() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024v1/vald/filter.proto\022\007vald.v1\032\034google/" + - "api/annotations.proto\032\030v1/payload/payloa" + - "d.proto2\254\n\n\006Filter\022h\n\014SearchObject\022 .pay" + - "load.v1.Search.ObjectRequest\032\033.payload.v" + - "1.Search.Response\"\031\202\323\344\223\002\023\"\016/search/objec" + - "t:\001*\022|\n\021MultiSearchObject\022%.payload.v1.S" + - "earch.MultiObjectRequest\032\034.payload.v1.Se" + - "arch.Responses\"\"\202\323\344\223\002\034\"\027/search/object/m" + - "ultiple:\001*\022_\n\022StreamSearchObject\022 .paylo" + - "ad.v1.Search.ObjectRequest\032!.payload.v1." + - "Search.StreamResponse\"\000(\0010\001\022h\n\014InsertObj" + - "ect\022 .payload.v1.Insert.ObjectRequest\032\033." + - "payload.v1.Object.Location\"\031\202\323\344\223\002\023\"\016/ins" + - "ert/object:\001*\022_\n\022StreamInsertObject\022 .pa" + - "yload.v1.Insert.ObjectRequest\032!.payload." + - "v1.Object.StreamLocation\"\000(\0010\001\022|\n\021MultiI" + - "nsertObject\022%.payload.v1.Insert.MultiObj" + - "ectRequest\032\034.payload.v1.Object.Locations" + - "\"\"\202\323\344\223\002\034\"\027/insert/object/multiple:\001*\022h\n\014" + - "UpdateObject\022 .payload.v1.Update.ObjectR" + - "equest\032\033.payload.v1.Object.Location\"\031\202\323\344" + - "\223\002\023\"\016/update/object:\001*\022_\n\022StreamUpdateOb" + - "ject\022 .payload.v1.Update.ObjectRequest\032!" + - ".payload.v1.Object.StreamLocation\"\000(\0010\001\022" + - "|\n\021MultiUpdateObject\022%.payload.v1.Update" + - ".MultiObjectRequest\032\034.payload.v1.Object." + - "Locations\"\"\202\323\344\223\002\034\"\027/update/object/multip" + - "le:\001*\022h\n\014UpsertObject\022 .payload.v1.Upser" + - "t.ObjectRequest\032\033.payload.v1.Object.Loca" + - "tion\"\031\202\323\344\223\002\023\"\016/upsert/object:\001*\022_\n\022Strea" + - "mUpsertObject\022 .payload.v1.Upsert.Object" + - "Request\032!.payload.v1.Object.StreamLocati" + - "on\"\000(\0010\001\022|\n\021MultiUpsertObject\022%.payload." + - "v1.Upsert.MultiObjectRequest\032\034.payload.v" + - "1.Object.Locations\"\"\202\323\344\223\002\034\"\027/upsert/obje" + - "ct/multiple:\001*BS\n\032org.vdaas.vald.api.v1." + - "valdB\nValdFilterP\001Z\'github.com/vdaas/val" + - "d/apis/grpc/v1/valdb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/ValdFlush.java b/src/main/java/org/vdaas/vald/api/v1/vald/ValdFlush.java deleted file mode 100644 index 5623c363..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/vald/ValdFlush.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/vald/flush.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.vald; - -public final class ValdFlush { - private ValdFlush() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023v1/vald/flush.proto\022\007vald.v1\032\034google/a" + - "pi/annotations.proto\032\030v1/payload/payload" + - ".proto2Y\n\005Flush\022P\n\005Flush\022\031.payload.v1.Fl" + - "ush.Request\032\034.payload.v1.Info.Index.Coun" + - "t\"\016\202\323\344\223\002\010*\006/flushBR\n\032org.vdaas.vald.api." + - "v1.valdB\tValdFlushP\001Z\'github.com/vdaas/v" + - "ald/apis/grpc/v1/valdb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/ValdInsert.java b/src/main/java/org/vdaas/vald/api/v1/vald/ValdInsert.java deleted file mode 100644 index 1be48235..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/vald/ValdInsert.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/vald/insert.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.vald; - -public final class ValdInsert { - private ValdInsert() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024v1/vald/insert.proto\022\007vald.v1\032\034google/" + - "api/annotations.proto\032\030v1/payload/payloa" + - "d.proto2\237\002\n\006Insert\022U\n\006Insert\022\032.payload.v" + - "1.Insert.Request\032\033.payload.v1.Object.Loc" + - "ation\"\022\202\323\344\223\002\014\"\007/insert:\001*\022S\n\014StreamInser" + - "t\022\032.payload.v1.Insert.Request\032!.payload." + - "v1.Object.StreamLocation\"\000(\0010\001\022i\n\013MultiI" + - "nsert\022\037.payload.v1.Insert.MultiRequest\032\034" + - ".payload.v1.Object.Locations\"\033\202\323\344\223\002\025\"\020/i" + - "nsert/multiple:\001*BS\n\032org.vdaas.vald.api." + - "v1.valdB\nValdInsertP\001Z\'github.com/vdaas/" + - "vald/apis/grpc/v1/valdb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/ValdObject.java b/src/main/java/org/vdaas/vald/api/v1/vald/ValdObject.java deleted file mode 100644 index df8daaab..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/vald/ValdObject.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/vald/object.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.vald; - -public final class ValdObject { - private ValdObject() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024v1/vald/object.proto\022\007vald.v1\032\034google/" + - "api/annotations.proto\032\030v1/payload/payloa" + - "d.proto2\204\003\n\006Object\022L\n\006Exists\022\025.payload.v" + - "1.Object.ID\032\025.payload.v1.Object.ID\"\024\202\323\344\223" + - "\002\016\022\014/exists/{id}\022a\n\tGetObject\022 .payload." + - "v1.Object.VectorRequest\032\031.payload.v1.Obj" + - "ect.Vector\"\027\202\323\344\223\002\021\022\017/object/{id.id}\022Z\n\017S" + - "treamGetObject\022 .payload.v1.Object.Vecto" + - "rRequest\032\037.payload.v1.Object.StreamVecto" + - "r\"\000(\0010\001\022m\n\020StreamListObject\022\037.payload.v1" + - ".Object.List.Request\032 .payload.v1.Object" + - ".List.Response\"\024\202\323\344\223\002\016\022\014/object/list0\001BS" + - "\n\032org.vdaas.vald.api.v1.valdB\nValdObject" + - "P\001Z\'github.com/vdaas/vald/apis/grpc/v1/v" + - "aldb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/ValdRemove.java b/src/main/java/org/vdaas/vald/api/v1/vald/ValdRemove.java deleted file mode 100644 index c5be335e..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/vald/ValdRemove.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/vald/remove.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.vald; - -public final class ValdRemove { - private ValdRemove() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024v1/vald/remove.proto\022\007vald.v1\032\034google/" + - "api/annotations.proto\032\030v1/payload/payloa" + - "d.proto2\225\003\n\006Remove\022U\n\006Remove\022\032.payload.v" + - "1.Remove.Request\032\033.payload.v1.Object.Loc" + - "ation\"\022\202\323\344\223\002\014\"\007/remove:\001*\022t\n\021RemoveByTim" + - "estamp\022#.payload.v1.Remove.TimestampRequ" + - "est\032\034.payload.v1.Object.Locations\"\034\202\323\344\223\002" + - "\026\"\021/remove/timestamp:\001*\022S\n\014StreamRemove\022" + - "\032.payload.v1.Remove.Request\032!.payload.v1" + - ".Object.StreamLocation\"\000(\0010\001\022i\n\013MultiRem" + - "ove\022\037.payload.v1.Remove.MultiRequest\032\034.p" + - "ayload.v1.Object.Locations\"\033\202\323\344\223\002\025\"\020/rem" + - "ove/multiple:\001*BS\n\032org.vdaas.vald.api.v1" + - ".valdB\nValdRemoveP\001Z\'github.com/vdaas/va" + - "ld/apis/grpc/v1/valdb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/ValdSearch.java b/src/main/java/org/vdaas/vald/api/v1/vald/ValdSearch.java deleted file mode 100644 index 85fbde90..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/vald/ValdSearch.java +++ /dev/null @@ -1,80 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/vald/search.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.vald; - -public final class ValdSearch { - private ValdSearch() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024v1/vald/search.proto\022\007vald.v1\032\034google/" + - "api/annotations.proto\032\030v1/payload/payloa" + - "d.proto2\320\t\n\006Search\022U\n\006Search\022\032.payload.v" + - "1.Search.Request\032\033.payload.v1.Search.Res" + - "ponse\"\022\202\323\344\223\002\014\"\007/search:\001*\022^\n\nSearchByID\022" + - "\034.payload.v1.Search.IDRequest\032\033.payload." + - "v1.Search.Response\"\025\202\323\344\223\002\017\"\n/search/id:\001" + - "*\022S\n\014StreamSearch\022\032.payload.v1.Search.Re" + - "quest\032!.payload.v1.Search.StreamResponse" + - "\"\000(\0010\001\022Y\n\020StreamSearchByID\022\034.payload.v1." + - "Search.IDRequest\032!.payload.v1.Search.Str" + - "eamResponse\"\000(\0010\001\022i\n\013MultiSearch\022\037.paylo" + - "ad.v1.Search.MultiRequest\032\034.payload.v1.S" + - "earch.Responses\"\033\202\323\344\223\002\025\"\020/search/multipl" + - "e:\001*\022r\n\017MultiSearchByID\022!.payload.v1.Sea" + - "rch.MultiIDRequest\032\034.payload.v1.Search.R" + - "esponses\"\036\202\323\344\223\002\030\"\023/search/id/multiple:\001*" + - "\022a\n\014LinearSearch\022\032.payload.v1.Search.Req" + - "uest\032\033.payload.v1.Search.Response\"\030\202\323\344\223\002" + - "\022\"\r/linearsearch:\001*\022j\n\020LinearSearchByID\022" + - "\034.payload.v1.Search.IDRequest\032\033.payload." + - "v1.Search.Response\"\033\202\323\344\223\002\025\"\020/linearsearc" + - "h/id:\001*\022Y\n\022StreamLinearSearch\022\032.payload." + - "v1.Search.Request\032!.payload.v1.Search.St" + - "reamResponse\"\000(\0010\001\022_\n\026StreamLinearSearch" + - "ByID\022\034.payload.v1.Search.IDRequest\032!.pay" + - "load.v1.Search.StreamResponse\"\000(\0010\001\022u\n\021M" + - "ultiLinearSearch\022\037.payload.v1.Search.Mul" + - "tiRequest\032\034.payload.v1.Search.Responses\"" + - "!\202\323\344\223\002\033\"\026/linearsearch/multiple:\001*\022~\n\025Mu" + - "ltiLinearSearchByID\022!.payload.v1.Search." + - "MultiIDRequest\032\034.payload.v1.Search.Respo" + - "nses\"$\202\323\344\223\002\036\"\031/linearsearch/id/multiple:" + - "\001*BS\n\032org.vdaas.vald.api.v1.valdB\nValdSe" + - "archP\001Z\'github.com/vdaas/vald/apis/grpc/" + - "v1/valdb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/ValdUpdate.java b/src/main/java/org/vdaas/vald/api/v1/vald/ValdUpdate.java deleted file mode 100644 index cbaa0805..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/vald/ValdUpdate.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/vald/update.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.vald; - -public final class ValdUpdate { - private ValdUpdate() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024v1/vald/update.proto\022\007vald.v1\032\034google/" + - "api/annotations.proto\032\030v1/payload/payloa" + - "d.proto2\237\002\n\006Update\022U\n\006Update\022\032.payload.v" + - "1.Update.Request\032\033.payload.v1.Object.Loc" + - "ation\"\022\202\323\344\223\002\014\"\007/update:\001*\022S\n\014StreamUpdat" + - "e\022\032.payload.v1.Update.Request\032!.payload." + - "v1.Object.StreamLocation\"\000(\0010\001\022i\n\013MultiU" + - "pdate\022\037.payload.v1.Update.MultiRequest\032\034" + - ".payload.v1.Object.Locations\"\033\202\323\344\223\002\025\"\020/u" + - "pdate/multiple:\001*BS\n\032org.vdaas.vald.api." + - "v1.valdB\nValdUpdateP\001Z\'github.com/vdaas/" + - "vald/apis/grpc/v1/valdb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/ValdUpsert.java b/src/main/java/org/vdaas/vald/api/v1/vald/ValdUpsert.java deleted file mode 100644 index d2281598..00000000 --- a/src/main/java/org/vdaas/vald/api/v1/vald/ValdUpsert.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: v1/vald/upsert.proto - -// Protobuf Java Version: 3.25.3 -package org.vdaas.vald.api.v1.vald; - -public final class ValdUpsert { - private ValdUpsert() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024v1/vald/upsert.proto\022\007vald.v1\032\034google/" + - "api/annotations.proto\032\030v1/payload/payloa" + - "d.proto2\237\002\n\006Upsert\022U\n\006Upsert\022\032.payload.v" + - "1.Upsert.Request\032\033.payload.v1.Object.Loc" + - "ation\"\022\202\323\344\223\002\014\"\007/upsert:\001*\022S\n\014StreamUpser" + - "t\022\032.payload.v1.Upsert.Request\032!.payload." + - "v1.Object.StreamLocation\"\000(\0010\001\022i\n\013MultiU" + - "psert\022\037.payload.v1.Upsert.MultiRequest\032\034" + - ".payload.v1.Object.Locations\"\033\202\323\344\223\002\025\"\020/u" + - "psert/multiple:\001*BS\n\032org.vdaas.vald.api." + - "v1.valdB\nValdUpsertP\001Z\'github.com/vdaas/" + - "vald/apis/grpc/v1/valdb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - org.vdaas.vald.api.v1.payload.ValdPayload.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/test/kotlin/org/vdaas/vald/client/E2ETests.kt b/src/test/kotlin/org/vdaas/vald/client/E2ETests.kt deleted file mode 100644 index 6edd9a8d..00000000 --- a/src/test/kotlin/org/vdaas/vald/client/E2ETests.kt +++ /dev/null @@ -1,872 +0,0 @@ -package org.vdaas.vald.client - -import io.grpc.ManagedChannel -import io.grpc.ManagedChannelBuilder -import io.grpc.stub.StreamObserver -import java.util.concurrent.CountDownLatch -import java.util.concurrent.TimeUnit -import kotlinx.serialization.Serializable -import kotlinx.serialization.builtins.ListSerializer -import kotlinx.serialization.json.Json -import org.junit.jupiter.api.AfterEach -import org.junit.jupiter.api.Assertions.assertEquals -import org.junit.jupiter.api.Assertions.assertNotNull -import org.junit.jupiter.api.BeforeEach -import org.junit.jupiter.api.ClassOrderer -import org.junit.jupiter.api.MethodOrderer -import org.junit.jupiter.api.Nested -import org.junit.jupiter.api.Order -import org.junit.jupiter.api.Test -import org.junit.jupiter.api.TestClassOrder -import org.junit.jupiter.api.TestMethodOrder -import org.vdaas.vald.api.v1.agent.core.AgentGrpc -import org.vdaas.vald.api.v1.payload.Control -import org.vdaas.vald.api.v1.payload.Empty -import org.vdaas.vald.api.v1.payload.Insert -import org.vdaas.vald.api.v1.payload.Object -import org.vdaas.vald.api.v1.payload.Remove -import org.vdaas.vald.api.v1.payload.Search -import org.vdaas.vald.api.v1.payload.Update -import org.vdaas.vald.api.v1.payload.Upsert -import org.vdaas.vald.api.v1.vald.InsertGrpc -import org.vdaas.vald.api.v1.vald.ObjectGrpc -import org.vdaas.vald.api.v1.vald.RemoveGrpc -import org.vdaas.vald.api.v1.vald.SearchGrpc -import org.vdaas.vald.api.v1.vald.UpdateGrpc -import org.vdaas.vald.api.v1.vald.UpsertGrpc - -const val host = "localhost" - -const val port = 8081 - -@Serializable data class Datum(val id: String, val vector: List) - -@TestClassOrder(ClassOrderer.OrderAnnotation::class) -class E2ETests { - - private lateinit var channel: ManagedChannel - private lateinit var data: List - - init { - readJSON() - } - - fun readJSON() { - val text = java.io.File("wordvecs1000.json").readText() - data = - Json { - isLenient = true - ignoreUnknownKeys = true - } - .decodeFromString>(ListSerializer(Datum.serializer()), text) - } - - fun createChannel() { - channel = ManagedChannelBuilder.forAddress(host, port).usePlaintext().build() - } - - fun destroyChannel() { - channel.shutdown() - } - - @Nested - @TestMethodOrder(MethodOrderer.OrderAnnotation::class) - @Order(1) - inner class InsertTests { - - private lateinit var stub: InsertGrpc.InsertBlockingStub - private lateinit var asyncStub: InsertGrpc.InsertStub - - @BeforeEach - fun setUp() { - createChannel() - stub = InsertGrpc.newBlockingStub(channel) - asyncStub = InsertGrpc.newStub(channel) - } - - @AfterEach - fun tearDown() { - destroyChannel() - } - - @Test - @Order(1) - fun `Test for Insert operation`() { - val vec = - Object.Vector.newBuilder() - .setId(data[0].id) - .addAllVector(data[0].vector) - .build() - val cfg = Insert.Config.newBuilder().setSkipStrictExistCheck(true).build() - val req = Insert.Request.newBuilder().setVector(vec).setConfig(cfg).build() - val result = stub.insert(req) - assertEquals(1, result.ipsCount) - } - - @Test - @Order(2) - fun `Test for MultiInsert operation`() { - val insertStartIndex = 1 - val insertCount = 9 - val cfg = Insert.Config.newBuilder().setSkipStrictExistCheck(true).build() - val requests = - data.subList(insertStartIndex, insertStartIndex + insertCount).map { - Insert.Request.newBuilder() - .setVector( - Object.Vector.newBuilder() - .setId(it.id) - .addAllVector(it.vector) - .build() - ) - .setConfig(cfg) - .build() - } - val req = Insert.MultiRequest.newBuilder().addAllRequests(requests).build() - val results = stub.multiInsert(req) - results.locationsList.map { assertEquals(1, it.ipsCount) } - } - - @Test - @Order(3) - fun `Test for StreamInsert operation`() { - val insertStartIndex = 10 - val insertCount = 90 - - val cfg = Insert.Config.newBuilder().setSkipStrictExistCheck(true).build() - val finishLatch = CountDownLatch(1) - val resultList = mutableListOf() - val requestObserver = - asyncStub.streamInsert( - object : StreamObserver { - override fun onNext(sloc: Object.StreamLocation) { - resultList.add(sloc) - } - - override fun onError(t: Throwable) { - finishLatch.countDown() - } - - override fun onCompleted() { - finishLatch.countDown() - } - } - ) - - data.subList(insertStartIndex, insertStartIndex + insertCount).map { - requestObserver.onNext( - Insert.Request.newBuilder() - .setVector( - Object.Vector.newBuilder() - .setId(it.id) - .addAllVector(it.vector) - .build() - ) - .setConfig(cfg) - .build() - ) - } - - requestObserver.onCompleted() - finishLatch.await(1, TimeUnit.MINUTES) - - assertEquals(insertCount, resultList.size) - resultList.forEach {sloc -> - when (sloc.payloadCase) { - Object.StreamLocation.PayloadCase.LOCATION -> { - assertEquals(1, sloc.location.ipsCount) - } - Object.StreamLocation.PayloadCase.STATUS -> { - assertEquals(0, sloc.status.code) - } - else -> throw Exception("unknown payload type") - } - } - } - } - - @Nested - @TestMethodOrder(MethodOrderer.OrderAnnotation::class) - @Order(2) - inner class AgentTests { - - private lateinit var stub: AgentGrpc.AgentBlockingStub - private lateinit var asyncStub: AgentGrpc.AgentStub - - @BeforeEach - fun setUp() { - createChannel() - stub = AgentGrpc.newBlockingStub(channel) - asyncStub = AgentGrpc.newStub(channel) - } - - @AfterEach - fun tearDown() { - destroyChannel() - } - - @Test - @Order(1) - fun `Test for CreateIndex operation`() { - val req = Control.CreateIndexRequest.newBuilder().setPoolSize(10000).build() - assertNotNull(stub.createIndex(req)) - } - - @Test - @Order(2) - fun `Test for SaveIndex operation`() { - assertNotNull(stub.saveIndex(Empty.newBuilder().build())) - } - - @Test - @Order(3) - fun `Test for IndexInfo operation`() { - val result = stub.indexInfo(Empty.newBuilder().build()) - - assertEquals(100, result.stored) - assertEquals(0, result.uncommitted) - } - } - - @Nested - @TestMethodOrder(MethodOrderer.OrderAnnotation::class) - @Order(3) - inner class ObjectTests { - - private lateinit var stub: ObjectGrpc.ObjectBlockingStub - private lateinit var asyncStub: ObjectGrpc.ObjectStub - - @BeforeEach - fun setUp() { - createChannel() - stub = ObjectGrpc.newBlockingStub(channel) - asyncStub = ObjectGrpc.newStub(channel) - } - - @AfterEach - fun tearDown() { - destroyChannel() - } - - @Test - @Order(1) - fun `Test for Exists operation`() { - val req = Object.ID.newBuilder().setId(data[0].id).build() - - stub.exists(req) - } - - @Test - @Order(2) - fun `Test for GetObject operation`() { - val req = - Object.VectorRequest.newBuilder() - .setId(Object.ID.newBuilder().setId(data[0].id).build()) - .build() - - val result = stub.getObject(req) - assertEquals(result.getId(), data[0].id) - } - - @Test - @Order(3) - fun `Test for StreamGetObject operation`() { - val getCount = 10 - - val finishLatch = CountDownLatch(1) - val resultList = mutableListOf() - val requestObserver = - asyncStub.streamGetObject( - object : StreamObserver { - override fun onNext(svec: Object.StreamVector) { - resultList.add(svec) - } - - override fun onError(t: Throwable) { - finishLatch.countDown() - } - - override fun onCompleted() { - finishLatch.countDown() - } - } - ) - - data.subList(0, getCount).map { - requestObserver.onNext( - Object.VectorRequest.newBuilder() - .setId(Object.ID.newBuilder().setId(it.id).build()) - .build() - ) - } - - requestObserver.onCompleted() - finishLatch.await(1, TimeUnit.MINUTES) - - assertEquals(resultList.size, getCount) - resultList.forEach {svec -> - when (svec.payloadCase) { - Object.StreamVector.PayloadCase.VECTOR -> {} - Object.StreamVector.PayloadCase.STATUS -> { - assertEquals(0, svec.status.code) - } - else -> throw Exception("unknown payload type") - } - } - } - } - - @Nested - @TestMethodOrder(MethodOrderer.OrderAnnotation::class) - @Order(4) - inner class SearchTests { - - private lateinit var stub: SearchGrpc.SearchBlockingStub - private lateinit var asyncStub: SearchGrpc.SearchStub - - @BeforeEach - fun setUp() { - createChannel() - stub = SearchGrpc.newBlockingStub(channel) - asyncStub = SearchGrpc.newStub(channel) - } - - @AfterEach - fun tearDown() { - destroyChannel() - } - - @Test - @Order(1) - fun `Test for Search operation`() { - val cfg = - Search.Config.newBuilder() - .setNum(3) - .setRadius(-1.0f) - .setEpsilon(0.1f) - .setTimeout(3000000000L) - .build() - val req = - Search.Request.newBuilder().addAllVector(data[0].vector).setConfig(cfg).build() - val result = stub.search(req) - assertEquals(3, result.resultsCount) - } - - @Test - @Order(2) - fun `Test for MultiSearch operation`() { - val searchStartIndex = 1 - val searchCount = 10 - - val cfg = - Search.Config.newBuilder() - .setNum(3) - .setRadius(-1.0f) - .setEpsilon(0.1f) - .setTimeout(3000000000L) - .build() - val requests = - data.subList(searchStartIndex, searchStartIndex + searchCount).map { - Search.Request.newBuilder().addAllVector(it.vector).setConfig(cfg).build() - } - val req = Search.MultiRequest.newBuilder().addAllRequests(requests).build() - val results = stub.multiSearch(req) - - assertEquals(searchCount, results.responsesList.size) - results.responsesList.map { assertEquals(3, it.resultsCount) } - } - - @Test - @Order(3) - fun `Test for StreamSearch operation`() { - val searchStartIndex = 11 - val searchCount = 10 - - val cfg = - Search.Config.newBuilder() - .setNum(3) - .setRadius(-1.0f) - .setEpsilon(0.1f) - .setTimeout(3000000000L) - .build() - val finishLatch = CountDownLatch(1) - val resultList = mutableListOf() - val requestObserver = - asyncStub.streamSearch( - object : StreamObserver { - override fun onNext(sresp: Search.StreamResponse) { - resultList.add(sresp) - } - - override fun onError(t: Throwable) { - finishLatch.countDown() - } - - override fun onCompleted() { - finishLatch.countDown() - } - } - ) - - data.subList(searchStartIndex, searchStartIndex + searchCount).map { - requestObserver.onNext( - Search.Request.newBuilder() - .addAllVector(it.vector) - .setConfig(cfg) - .build() - ) - } - - requestObserver.onCompleted() - finishLatch.await(1, TimeUnit.MINUTES) - - assertEquals(searchCount, resultList.size) - resultList.forEach {sresp -> - when (sresp.payloadCase) { - Search.StreamResponse.PayloadCase.RESPONSE -> { - assertEquals(3, sresp.response.resultsCount) - } - Search.StreamResponse.PayloadCase.STATUS -> { - assertEquals(0, sresp.status.code) - } - else -> throw Exception("unknown payload type") - } - } - } - - @Test - @Order(4) - fun `Test for SearchByID operation`() { - val cfg = - Search.Config.newBuilder() - .setNum(3) - .setRadius(-1.0f) - .setEpsilon(0.1f) - .setTimeout(3000000000L) - .build() - val req = Search.IDRequest.newBuilder().setId(data[0].id).setConfig(cfg).build() - val result = stub.searchByID(req) - - assertEquals(3, result.resultsCount) - } - - @Test - @Order(5) - fun `Test for MultiSearchByID operation`() { - val searchStartIndex = 1 - val searchCount = 10 - - val cfg = - Search.Config.newBuilder() - .setNum(3) - .setRadius(-1.0f) - .setEpsilon(0.1f) - .setTimeout(3000000000L) - .build() - val requests = - data.subList(searchStartIndex, searchStartIndex + searchCount).map { - Search.IDRequest.newBuilder().setId(it.id).setConfig(cfg).build() - } - val req = Search.MultiIDRequest.newBuilder().addAllRequests(requests).build() - val results = stub.multiSearchByID(req) - - assertEquals(searchCount, results.responsesList.size) - results.responsesList.map { assertEquals(3, it.resultsCount) } - } - - @Test - @Order(6) - fun `Test for StreamSearchByID operation`() { - val searchStartIndex = 11 - val searchCount = 10 - - val cfg = - Search.Config.newBuilder() - .setNum(3) - .setRadius(-1.0f) - .setEpsilon(0.1f) - .setTimeout(3000000000L) - .build() - val finishLatch = CountDownLatch(1) - val resultList = mutableListOf() - val requestObserver = - asyncStub.streamSearchByID( - object : StreamObserver { - override fun onNext(sresp: Search.StreamResponse) { - resultList.add(sresp) - } - - override fun onError(t: Throwable) { - finishLatch.countDown() - } - - override fun onCompleted() { - finishLatch.countDown() - } - } - ) - - data.subList(searchStartIndex, searchStartIndex + searchCount).map { - requestObserver.onNext( - Search.IDRequest.newBuilder().setId(it.id).setConfig(cfg).build() - ) - } - - requestObserver.onCompleted() - finishLatch.await(1, TimeUnit.MINUTES) - - assertEquals(searchCount, resultList.size) - resultList.forEach {sresp -> - when (sresp.payloadCase) { - Search.StreamResponse.PayloadCase.RESPONSE -> { - assertEquals(3, sresp.response.resultsCount) - } - Search.StreamResponse.PayloadCase.STATUS -> { - assertEquals(0, sresp.status.code) - } - else -> throw Exception("unknown payload type") - } - } - } - } - - @Nested - @TestMethodOrder(MethodOrderer.OrderAnnotation::class) - @Order(5) - inner class UpdateTests { - - private lateinit var stub: UpdateGrpc.UpdateBlockingStub - private lateinit var asyncStub: UpdateGrpc.UpdateStub - - @BeforeEach - fun setUp() { - createChannel() - stub = UpdateGrpc.newBlockingStub(channel) - asyncStub = UpdateGrpc.newStub(channel) - } - - @AfterEach - fun tearDown() { - destroyChannel() - } - - @Test - @Order(1) - fun `Test for Update operation`() { - val vec = - Object.Vector.newBuilder() - .setId(data[0].id) - .addAllVector(data[1].vector) - .build() - val cfg = Update.Config.newBuilder().setSkipStrictExistCheck(true).build() - val req = Update.Request.newBuilder().setVector(vec).setConfig(cfg).build() - val result = stub.update(req) - assertEquals(1, result.ipsCount) - } - - @Test - @Order(2) - fun `Test for MultiUpdate operation`() { - val updateStartIndex = 1 - val updateCount = 10 - - val cfg = Update.Config.newBuilder().setSkipStrictExistCheck(true).build() - val requests = - (updateStartIndex..updateCount).toList().map { - Update.Request.newBuilder() - .setVector( - Object.Vector.newBuilder() - .setId(data[it].id) - .addAllVector(data[it + 1].vector) - .build() - ) - .setConfig(cfg) - .build() - } - val req = Update.MultiRequest.newBuilder().addAllRequests(requests).build() - val results = stub.multiUpdate(req) - - assertEquals(updateCount, results.locationsList.size) - results.locationsList.map { assertEquals(1, it.ipsCount) } - } - - @Test - @Order(3) - fun `Test for StreamUpdate operation`() { - val updateStartIndex = 11 - val updateCount = 10 - - val cfg = Update.Config.newBuilder().setSkipStrictExistCheck(true).build() - val resultList = mutableListOf() - val finishLatch = CountDownLatch(1) - val requestObserver = - asyncStub.streamUpdate( - object : StreamObserver { - override fun onNext(sloc: Object.StreamLocation) { - resultList.add(sloc) - } - - override fun onError(t: Throwable) { - finishLatch.countDown() - } - - override fun onCompleted() { - finishLatch.countDown() - } - } - ) - - (updateStartIndex..updateStartIndex + updateCount - 1).toList().map { - requestObserver.onNext( - Update.Request.newBuilder() - .setVector( - Object.Vector.newBuilder() - .setId(data[it].id) - .addAllVector(data[it + 1].vector) - .build() - ) - .setConfig(cfg) - .build() - ) - } - - requestObserver.onCompleted() - finishLatch.await(1, TimeUnit.MINUTES) - - assertEquals(updateCount, resultList.size) - resultList.forEach { sloc -> - when (sloc.payloadCase) { - Object.StreamLocation.PayloadCase.LOCATION -> { - assertEquals(1, sloc.location.ipsCount) - } - Object.StreamLocation.PayloadCase.STATUS -> { - assertEquals(0, sloc.status.code) - } - else -> throw Exception("unknown payload type") - } - } - - } - } - - @Nested - @TestMethodOrder(MethodOrderer.OrderAnnotation::class) - @Order(6) - inner class UpsertTests { - - private lateinit var stub: UpsertGrpc.UpsertBlockingStub - private lateinit var asyncStub: UpsertGrpc.UpsertStub - - @BeforeEach - fun setUp() { - createChannel() - stub = UpsertGrpc.newBlockingStub(channel) - asyncStub = UpsertGrpc.newStub(channel) - } - - @AfterEach - fun tearDown() { - destroyChannel() - } - - @Test - @Order(1) - fun `Test for Upsert operation`() { - val vec = - Object.Vector.newBuilder() - .setId(data[0].id) - .addAllVector(data[0].vector) - .build() - val cfg = Upsert.Config.newBuilder().setSkipStrictExistCheck(true).build() - val req = Upsert.Request.newBuilder().setVector(vec).setConfig(cfg).build() - val result = stub.upsert(req) - assertEquals(1, result.ipsCount) - } - - @Test - @Order(2) - fun `Test for MultiUpsert operation`() { - val upsertStartIndex = 1 - val upsertCount = 10 - - val cfg = Upsert.Config.newBuilder().setSkipStrictExistCheck(true).build() - val requests = - data.subList(upsertStartIndex, upsertStartIndex + upsertCount).map { - Upsert.Request.newBuilder() - .setVector( - Object.Vector.newBuilder() - .setId(it.id) - .addAllVector(it.vector) - .build() - ) - .setConfig(cfg) - .build() - } - val req = Upsert.MultiRequest.newBuilder().addAllRequests(requests).build() - val results = stub.multiUpsert(req) - - assertEquals(upsertCount, results.locationsList.size) - results.locationsList.map { assertEquals(1, it.ipsCount) } - } - - @Test - @Order(3) - fun `Test for StreamUpsert operation`() { - val upsertStartIndex = 11 - val upsertCount = 10 - - val cfg = Upsert.Config.newBuilder().setSkipStrictExistCheck(true).build() - val resultList = mutableListOf() - val finishLatch = CountDownLatch(1) - val requestObserver = - asyncStub.streamUpsert( - object : StreamObserver { - override fun onNext(sloc: Object.StreamLocation) { - resultList.add(sloc) - } - - override fun onError(t: Throwable) { - finishLatch.countDown() - } - - override fun onCompleted() { - finishLatch.countDown() - } - } - ) - - data.subList(upsertStartIndex, upsertStartIndex + upsertCount).map { - requestObserver.onNext( - Upsert.Request.newBuilder() - .setVector( - Object.Vector.newBuilder() - .setId(it.id) - .addAllVector(it.vector) - .build() - ) - .setConfig(cfg) - .build() - ) - } - - requestObserver.onCompleted() - finishLatch.await(1, TimeUnit.MINUTES) - - assertEquals(upsertCount, resultList.size) - resultList.forEach { sloc -> - when (sloc.payloadCase) { - Object.StreamLocation.PayloadCase.LOCATION -> { - assertEquals(1, sloc.location.ipsCount) - } - Object.StreamLocation.PayloadCase.STATUS -> { - assertEquals(0, sloc.status.code) - } - else -> throw Exception("unknown payload type") - } - } - } - } - - @Nested - @TestMethodOrder(MethodOrderer.OrderAnnotation::class) - @Order(7) - inner class RemoveTests { - - private lateinit var stub: RemoveGrpc.RemoveBlockingStub - private lateinit var asyncStub: RemoveGrpc.RemoveStub - - @BeforeEach - fun setUp() { - createChannel() - stub = RemoveGrpc.newBlockingStub(channel) - asyncStub = RemoveGrpc.newStub(channel) - } - - @AfterEach - fun tearDown() { - destroyChannel() - } - - @Test - @Order(1) - fun `Test for Remove operation`() { - val id = Object.ID.newBuilder().setId(data[0].id).build() - val cfg = Remove.Config.newBuilder().setSkipStrictExistCheck(true).build() - val req = Remove.Request.newBuilder().setId(id).setConfig(cfg).build() - val result = stub.remove(req) - assertEquals(1, result.ipsCount) - } - - @Test - @Order(2) - fun `Test for MultiRemove operation`() { - val removeStartIndex = 1 - val removeCount = 10 - - val cfg = Remove.Config.newBuilder().setSkipStrictExistCheck(true).build() - val requests = - data.subList(removeStartIndex, removeStartIndex + removeCount).map { - Remove.Request.newBuilder() - .setId(Object.ID.newBuilder().setId(it.id).build()) - .setConfig(cfg) - .build() - } - val req = Remove.MultiRequest.newBuilder().addAllRequests(requests).build() - val results = stub.multiRemove(req) - - assertEquals(removeCount, results.locationsList.size) - results.locationsList.map { assertEquals(1, it.ipsCount) } - } - - @Test - @Order(3) - fun `Test for StreamRemove operation`() { - val removeStartIndex = 11 - val removeCount = 10 - - val cfg = Remove.Config.newBuilder().setSkipStrictExistCheck(true).build() - val resultList = mutableListOf() - val finishLatch = CountDownLatch(1) - val requestObserver = - asyncStub.streamRemove( - object : StreamObserver { - override fun onNext(sloc: Object.StreamLocation) { - resultList.add(sloc) - } - - override fun onError(t: Throwable) { - finishLatch.countDown() - } - - override fun onCompleted() { - finishLatch.countDown() - } - } - ) - - data.subList(removeStartIndex, removeStartIndex + removeCount).map { - requestObserver.onNext( - Remove.Request.newBuilder() - .setId(Object.ID.newBuilder().setId(it.id).build()) - .setConfig(cfg) - .build() - ) - } - - requestObserver.onCompleted() - finishLatch.await(1, TimeUnit.MINUTES) - - assertEquals(removeCount, resultList.size) - resultList.forEach { sloc -> - when (sloc.payloadCase) { - Object.StreamLocation.PayloadCase.LOCATION -> { - assertEquals(1, sloc.location.ipsCount) - } - Object.StreamLocation.PayloadCase.STATUS -> { - assertEquals(0, sloc.status.code) - } - else -> throw Exception("unknown payload type") - } - } - } - } -} diff --git a/src/vald/v1/agent/core/agent_pb.d.ts b/src/vald/v1/agent/core/agent_pb.d.ts new file mode 100644 index 00000000..680d1f44 --- /dev/null +++ b/src/vald/v1/agent/core/agent_pb.d.ts @@ -0,0 +1,26 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/agent/core/agent.proto" (package "core.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +/** + * @generated ServiceType for protobuf service core.v1.Agent + */ +export declare const Agent: any; diff --git a/src/vald/v1/agent/core/agent_pb.grpc-client.d.ts b/src/vald/v1/agent/core/agent_pb.grpc-client.d.ts new file mode 100644 index 00000000..400a5f4e --- /dev/null +++ b/src/vald/v1/agent/core/agent_pb.grpc-client.d.ts @@ -0,0 +1,121 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/agent/core/agent.proto" (package "core.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { Object_Timestamp } from "../../payload/payload_pb"; +import type { Object_GetTimestampRequest } from "../../payload/payload_pb"; +import type { Info_Index_Count } from "../../payload/payload_pb"; +import type { Empty } from "../../payload/payload_pb"; +import type { Control_CreateIndexRequest } from "../../payload/payload_pb"; +import * as grpc from "@grpc/grpc-js"; +/** + * Represent the agent service. + * + * @generated from protobuf service core.v1.Agent + */ +export interface IAgentClient { + /** + * Represent the creating index RPC. + * + * @generated from protobuf rpc: CreateIndex(payload.v1.Control.CreateIndexRequest) returns (payload.v1.Empty); + */ + createIndex(input: Control_CreateIndexRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; + createIndex(input: Control_CreateIndexRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; + createIndex(input: Control_CreateIndexRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; + createIndex(input: Control_CreateIndexRequest, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; + /** + * Represent the saving index RPC. + * + * @generated from protobuf rpc: SaveIndex(payload.v1.Empty) returns (payload.v1.Empty); + */ + saveIndex(input: Empty, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; + saveIndex(input: Empty, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; + saveIndex(input: Empty, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; + saveIndex(input: Empty, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; + /** + * Represent the creating and saving index RPC. + * + * @generated from protobuf rpc: CreateAndSaveIndex(payload.v1.Control.CreateIndexRequest) returns (payload.v1.Empty); + */ + createAndSaveIndex(input: Control_CreateIndexRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; + createAndSaveIndex(input: Control_CreateIndexRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; + createAndSaveIndex(input: Control_CreateIndexRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; + createAndSaveIndex(input: Control_CreateIndexRequest, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; + /** + * Represent the RPC to get the agent index information. + * + * @generated from protobuf rpc: IndexInfo(payload.v1.Empty) returns (payload.v1.Info.Index.Count); + */ + indexInfo(input: Empty, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Info_Index_Count) => void): grpc.ClientUnaryCall; + indexInfo(input: Empty, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Info_Index_Count) => void): grpc.ClientUnaryCall; + indexInfo(input: Empty, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Info_Index_Count) => void): grpc.ClientUnaryCall; + indexInfo(input: Empty, callback: (err: grpc.ServiceError | null, value?: Info_Index_Count) => void): grpc.ClientUnaryCall; + /** + * Represent the RPC to get the vector metadata. This RPC is mainly used for index correction process + * + * @generated from protobuf rpc: GetTimestamp(payload.v1.Object.GetTimestampRequest) returns (payload.v1.Object.Timestamp); + */ + getTimestamp(input: Object_GetTimestampRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Timestamp) => void): grpc.ClientUnaryCall; + getTimestamp(input: Object_GetTimestampRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Timestamp) => void): grpc.ClientUnaryCall; + getTimestamp(input: Object_GetTimestampRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Timestamp) => void): grpc.ClientUnaryCall; + getTimestamp(input: Object_GetTimestampRequest, callback: (err: grpc.ServiceError | null, value?: Object_Timestamp) => void): grpc.ClientUnaryCall; +} +/** + * Represent the agent service. + * + * @generated from protobuf service core.v1.Agent + */ +export declare class AgentClient extends grpc.Client implements IAgentClient { + private readonly _binaryOptions; + constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial); + /** + * Represent the creating index RPC. + * + * @generated from protobuf rpc: CreateIndex(payload.v1.Control.CreateIndexRequest) returns (payload.v1.Empty); + */ + createIndex(input: Control_CreateIndexRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), callback?: ((err: grpc.ServiceError | null, value?: Empty) => void)): grpc.ClientUnaryCall; + /** + * Represent the saving index RPC. + * + * @generated from protobuf rpc: SaveIndex(payload.v1.Empty) returns (payload.v1.Empty); + */ + saveIndex(input: Empty, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), callback?: ((err: grpc.ServiceError | null, value?: Empty) => void)): grpc.ClientUnaryCall; + /** + * Represent the creating and saving index RPC. + * + * @generated from protobuf rpc: CreateAndSaveIndex(payload.v1.Control.CreateIndexRequest) returns (payload.v1.Empty); + */ + createAndSaveIndex(input: Control_CreateIndexRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), callback?: ((err: grpc.ServiceError | null, value?: Empty) => void)): grpc.ClientUnaryCall; + /** + * Represent the RPC to get the agent index information. + * + * @generated from protobuf rpc: IndexInfo(payload.v1.Empty) returns (payload.v1.Info.Index.Count); + */ + indexInfo(input: Empty, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Info_Index_Count) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Info_Index_Count) => void), callback?: ((err: grpc.ServiceError | null, value?: Info_Index_Count) => void)): grpc.ClientUnaryCall; + /** + * Represent the RPC to get the vector metadata. This RPC is mainly used for index correction process + * + * @generated from protobuf rpc: GetTimestamp(payload.v1.Object.GetTimestampRequest) returns (payload.v1.Object.Timestamp); + */ + getTimestamp(input: Object_GetTimestampRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Timestamp) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Timestamp) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Timestamp) => void)): grpc.ClientUnaryCall; +} diff --git a/src/vald/v1/agent/core/agent_pb.grpc-client.js b/src/vald/v1/agent/core/agent_pb.grpc-client.js new file mode 100644 index 00000000..812fccca --- /dev/null +++ b/src/vald/v1/agent/core/agent_pb.grpc-client.js @@ -0,0 +1,106 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/agent/core/agent.proto" (package "core.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AgentClient = void 0; +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/agent/core/agent.proto" (package "core.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +const agent_pb_1 = require("./agent_pb"); +const grpc = require("@grpc/grpc-js"); +/** + * Represent the agent service. + * + * @generated from protobuf service core.v1.Agent + */ +class AgentClient extends grpc.Client { + constructor(address, credentials, options = {}, binaryOptions = {}) { + super(address, credentials, options); + this._binaryOptions = binaryOptions; + } + /** + * Represent the creating index RPC. + * + * @generated from protobuf rpc: CreateIndex(payload.v1.Control.CreateIndexRequest) returns (payload.v1.Empty); + */ + createIndex(input, metadata, options, callback) { + const method = agent_pb_1.Agent.methods[0]; + return this.makeUnaryRequest(`/${agent_pb_1.Agent.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * Represent the saving index RPC. + * + * @generated from protobuf rpc: SaveIndex(payload.v1.Empty) returns (payload.v1.Empty); + */ + saveIndex(input, metadata, options, callback) { + const method = agent_pb_1.Agent.methods[1]; + return this.makeUnaryRequest(`/${agent_pb_1.Agent.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * Represent the creating and saving index RPC. + * + * @generated from protobuf rpc: CreateAndSaveIndex(payload.v1.Control.CreateIndexRequest) returns (payload.v1.Empty); + */ + createAndSaveIndex(input, metadata, options, callback) { + const method = agent_pb_1.Agent.methods[2]; + return this.makeUnaryRequest(`/${agent_pb_1.Agent.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * Represent the RPC to get the agent index information. + * + * @generated from protobuf rpc: IndexInfo(payload.v1.Empty) returns (payload.v1.Info.Index.Count); + */ + indexInfo(input, metadata, options, callback) { + const method = agent_pb_1.Agent.methods[3]; + return this.makeUnaryRequest(`/${agent_pb_1.Agent.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * Represent the RPC to get the vector metadata. This RPC is mainly used for index correction process + * + * @generated from protobuf rpc: GetTimestamp(payload.v1.Object.GetTimestampRequest) returns (payload.v1.Object.Timestamp); + */ + getTimestamp(input, metadata, options, callback) { + const method = agent_pb_1.Agent.methods[4]; + return this.makeUnaryRequest(`/${agent_pb_1.Agent.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } +} +exports.AgentClient = AgentClient; diff --git a/src/vald/v1/agent/core/agent_pb.js b/src/vald/v1/agent/core/agent_pb.js new file mode 100644 index 00000000..7130f718 --- /dev/null +++ b/src/vald/v1/agent/core/agent_pb.js @@ -0,0 +1,63 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/agent/core/agent.proto" (package "core.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Agent = void 0; +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/agent/core/agent.proto" (package "core.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +const payload_pb_1 = require("../../payload/payload_pb"); +const payload_pb_2 = require("../../payload/payload_pb"); +const payload_pb_3 = require("../../payload/payload_pb"); +const payload_pb_4 = require("../../payload/payload_pb"); +const payload_pb_5 = require("../../payload/payload_pb"); +const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); +/** + * @generated ServiceType for protobuf service core.v1.Agent + */ +exports.Agent = new runtime_rpc_1.ServiceType("core.v1.Agent", [ + { name: "CreateIndex", options: { "google.api.http": { get: "/index/create" } }, I: payload_pb_5.Control_CreateIndexRequest, O: payload_pb_4.Empty }, + { name: "SaveIndex", options: { "google.api.http": { get: "/index/save" } }, I: payload_pb_4.Empty, O: payload_pb_4.Empty }, + { name: "CreateAndSaveIndex", options: { "google.api.http": { get: "/index/createandsave" } }, I: payload_pb_5.Control_CreateIndexRequest, O: payload_pb_4.Empty }, + { name: "IndexInfo", options: { "google.api.http": { get: "/index/info" } }, I: payload_pb_4.Empty, O: payload_pb_3.Info_Index_Count }, + { name: "GetTimestamp", options: { "google.api.http": { get: "/object/meta" } }, I: payload_pb_2.Object_GetTimestampRequest, O: payload_pb_1.Object_Timestamp } +]); diff --git a/src/vald/v1/agent/core/index.d.ts b/src/vald/v1/agent/core/index.d.ts new file mode 100644 index 00000000..61ccccfe --- /dev/null +++ b/src/vald/v1/agent/core/index.d.ts @@ -0,0 +1,7 @@ +import agent = require("./agent_pb"); +import agent_grpc = require("./agent_pb.grpc-client"); +declare const _default: { + agent: typeof agent, + agent_grpc: typeof agent_grpc, +}; +export = _default; diff --git a/src/vald/v1/agent/core/index.js b/src/vald/v1/agent/core/index.js new file mode 100644 index 00000000..b823dcbb --- /dev/null +++ b/src/vald/v1/agent/core/index.js @@ -0,0 +1,2 @@ +module.exports.agent = require("./agent_pb"); +module.exports.agent_grpc = require("./agent_pb.grpc-client"); diff --git a/src/vald/v1/payload/index.d.ts b/src/vald/v1/payload/index.d.ts new file mode 100644 index 00000000..539ef9dc --- /dev/null +++ b/src/vald/v1/payload/index.d.ts @@ -0,0 +1,5 @@ +import payload = require("./payload_pb"); +declare const _default: { + payload: typeof payload, +}; +export = _default; diff --git a/src/vald/v1/payload/index.js b/src/vald/v1/payload/index.js new file mode 100644 index 00000000..409df91f --- /dev/null +++ b/src/vald/v1/payload/index.js @@ -0,0 +1 @@ +module.exports.payload = require("./payload_pb"); diff --git a/src/vald/v1/payload/payload_pb.d.ts b/src/vald/v1/payload/payload_pb.d.ts new file mode 100644 index 00000000..e0892fa5 --- /dev/null +++ b/src/vald/v1/payload/payload_pb.d.ts @@ -0,0 +1,2477 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/payload/payload.proto" (package "payload.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { IBinaryWriter } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { IBinaryReader } from "@protobuf-ts/runtime"; +import type { PartialMessage } from "@protobuf-ts/runtime"; +import { MessageType } from "@protobuf-ts/runtime"; +import { Status } from "../../../google/rpc/status_pb"; +import { FloatValue } from "../../../google/protobuf/wrappers_pb"; +/** + * Search related messages. + * + * @generated from protobuf message payload.v1.Search + */ +export interface Search { +} +/** + * Represent a search request. + * + * @generated from protobuf message payload.v1.Search.Request + */ +export interface Search_Request { + /** + * The vector to be searched. + * + * @generated from protobuf field: repeated float vector = 1; + */ + vector: number[]; + /** + * The configuration of the search request. + * + * @generated from protobuf field: payload.v1.Search.Config config = 2; + */ + config?: Search_Config; +} +/** + * Represent the multiple search request. + * + * @generated from protobuf message payload.v1.Search.MultiRequest + */ +export interface Search_MultiRequest { + /** + * Represent the multiple search request content. + * + * @generated from protobuf field: repeated payload.v1.Search.Request requests = 1; + */ + requests: Search_Request[]; +} +/** + * Represent a search by ID request. + * + * @generated from protobuf message payload.v1.Search.IDRequest + */ +export interface Search_IDRequest { + /** + * The vector ID to be searched. + * + * @generated from protobuf field: string id = 1; + */ + id: string; + /** + * The configuration of the search request. + * + * @generated from protobuf field: payload.v1.Search.Config config = 2; + */ + config?: Search_Config; +} +/** + * Represent the multiple search by ID request. + * + * @generated from protobuf message payload.v1.Search.MultiIDRequest + */ +export interface Search_MultiIDRequest { + /** + * Represent the multiple search by ID request content. + * + * @generated from protobuf field: repeated payload.v1.Search.IDRequest requests = 1; + */ + requests: Search_IDRequest[]; +} +/** + * Represent a search by binary object request. + * + * @generated from protobuf message payload.v1.Search.ObjectRequest + */ +export interface Search_ObjectRequest { + /** + * The binary object to be searched. + * + * @generated from protobuf field: bytes object = 1; + */ + object: Uint8Array; + /** + * The configuration of the search request. + * + * @generated from protobuf field: payload.v1.Search.Config config = 2; + */ + config?: Search_Config; + /** + * Filter configuration. + * + * @generated from protobuf field: payload.v1.Filter.Target vectorizer = 3; + */ + vectorizer?: Filter_Target; +} +/** + * Represent the multiple search by binary object request. + * + * @generated from protobuf message payload.v1.Search.MultiObjectRequest + */ +export interface Search_MultiObjectRequest { + /** + * Represent the multiple search by binary object request content. + * + * @generated from protobuf field: repeated payload.v1.Search.ObjectRequest requests = 1; + */ + requests: Search_ObjectRequest[]; +} +/** + * Represent search configuration. + * + * @generated from protobuf message payload.v1.Search.Config + */ +export interface Search_Config { + /** + * Unique request ID. + * + * @generated from protobuf field: string request_id = 1; + */ + request_id: string; + /** + * Maximum number of result to be returned. + * + * @generated from protobuf field: uint32 num = 2; + */ + num: number; + /** + * Search radius. + * + * @generated from protobuf field: float radius = 3; + */ + radius: number; + /** + * Search coefficient. + * + * @generated from protobuf field: float epsilon = 4; + */ + epsilon: number; + /** + * Search timeout in nanoseconds. + * + * @generated from protobuf field: int64 timeout = 5; + */ + timeout: bigint; + /** + * Ingress filter configurations. + * + * @generated from protobuf field: payload.v1.Filter.Config ingress_filters = 6; + */ + ingress_filters?: Filter_Config; + /** + * Egress filter configurations. + * + * @generated from protobuf field: payload.v1.Filter.Config egress_filters = 7; + */ + egress_filters?: Filter_Config; + /** + * Minimum number of result to be returned. + * + * @generated from protobuf field: uint32 min_num = 8; + */ + min_num: number; + /** + * Aggregation Algorithm + * + * @generated from protobuf field: payload.v1.Search.AggregationAlgorithm aggregation_algorithm = 9; + */ + aggregation_algorithm: Search_AggregationAlgorithm; + /** + * Search ratio for agent return result number. + * + * @generated from protobuf field: google.protobuf.FloatValue ratio = 10; + */ + ratio?: FloatValue; +} +/** + * Represent a search response. + * + * @generated from protobuf message payload.v1.Search.Response + */ +export interface Search_Response { + /** + * The unique request ID. + * + * @generated from protobuf field: string request_id = 1; + */ + request_id: string; + /** + * Search results. + * + * @generated from protobuf field: repeated payload.v1.Object.Distance results = 2; + */ + results: Object_Distance[]; +} +/** + * Represent multiple search responses. + * + * @generated from protobuf message payload.v1.Search.Responses + */ +export interface Search_Responses { + /** + * Represent the multiple search response content. + * + * @generated from protobuf field: repeated payload.v1.Search.Response responses = 1; + */ + responses: Search_Response[]; +} +/** + * Represent stream search response. + * + * @generated from protobuf message payload.v1.Search.StreamResponse + */ +export interface Search_StreamResponse { + /** + * @generated from protobuf oneof: payload + */ + payload: { + oneofKind: "response"; + /** + * Represent the search response. + * + * @generated from protobuf field: payload.v1.Search.Response response = 1; + */ + response: Search_Response; + } | { + oneofKind: "status"; + /** + * The RPC error status. + * + * @generated from protobuf field: google.rpc.Status status = 2; + */ + status: Status; + } | { + oneofKind: undefined; + }; +} +/** + * AggregationAlgorithm is enum of each aggregation algorithms + * + * @generated from protobuf enum payload.v1.Search.AggregationAlgorithm + */ +export declare enum Search_AggregationAlgorithm { + /** + * @generated from protobuf enum value: Unknown = 0; + */ + Unknown = 0, + /** + * @generated from protobuf enum value: ConcurrentQueue = 1; + */ + ConcurrentQueue = 1, + /** + * @generated from protobuf enum value: SortSlice = 2; + */ + SortSlice = 2, + /** + * @generated from protobuf enum value: SortPoolSlice = 3; + */ + SortPoolSlice = 3, + /** + * @generated from protobuf enum value: PairingHeap = 4; + */ + PairingHeap = 4 +} +/** + * Filter related messages. + * + * @generated from protobuf message payload.v1.Filter + */ +export interface Filter { +} +/** + * Represent the target filter server. + * + * @generated from protobuf message payload.v1.Filter.Target + */ +export interface Filter_Target { + /** + * The target hostname. + * + * @generated from protobuf field: string host = 1; + */ + host: string; + /** + * The target port. + * + * @generated from protobuf field: uint32 port = 2; + */ + port: number; +} +/** + * Represent filter configuration. + * + * @generated from protobuf message payload.v1.Filter.Config + */ +export interface Filter_Config { + /** + * Represent the filter target configuration. + * + * @generated from protobuf field: repeated payload.v1.Filter.Target targets = 1; + */ + targets: Filter_Target[]; +} +/** + * Insert related messages. + * + * @generated from protobuf message payload.v1.Insert + */ +export interface Insert { +} +/** + * Represent the insert request. + * + * @generated from protobuf message payload.v1.Insert.Request + */ +export interface Insert_Request { + /** + * The vector to be inserted. + * + * @generated from protobuf field: payload.v1.Object.Vector vector = 1; + */ + vector?: Object_Vector; + /** + * The configuration of the insert request. + * + * @generated from protobuf field: payload.v1.Insert.Config config = 2; + */ + config?: Insert_Config; +} +/** + * Represent the multiple insert request. + * + * @generated from protobuf message payload.v1.Insert.MultiRequest + */ +export interface Insert_MultiRequest { + /** + * Represent multiple insert request content. + * + * @generated from protobuf field: repeated payload.v1.Insert.Request requests = 1; + */ + requests: Insert_Request[]; +} +/** + * Represent the insert by binary object request. + * + * @generated from protobuf message payload.v1.Insert.ObjectRequest + */ +export interface Insert_ObjectRequest { + /** + * The binary object to be inserted. + * + * @generated from protobuf field: payload.v1.Object.Blob object = 1; + */ + object?: Object_Blob; + /** + * The configuration of the insert request. + * + * @generated from protobuf field: payload.v1.Insert.Config config = 2; + */ + config?: Insert_Config; + /** + * Filter configurations. + * + * @generated from protobuf field: payload.v1.Filter.Target vectorizer = 3; + */ + vectorizer?: Filter_Target; +} +/** + * Represent the multiple insert by binary object request. + * + * @generated from protobuf message payload.v1.Insert.MultiObjectRequest + */ +export interface Insert_MultiObjectRequest { + /** + * Represent multiple insert by object content. + * + * @generated from protobuf field: repeated payload.v1.Insert.ObjectRequest requests = 1; + */ + requests: Insert_ObjectRequest[]; +} +/** + * Represent insert configurations. + * + * @generated from protobuf message payload.v1.Insert.Config + */ +export interface Insert_Config { + /** + * A flag to skip exist check during insert operation. + * + * @generated from protobuf field: bool skip_strict_exist_check = 1; + */ + skip_strict_exist_check: boolean; + /** + * Filter configurations. + * + * @generated from protobuf field: payload.v1.Filter.Config filters = 2; + */ + filters?: Filter_Config; + /** + * Insert timestamp. + * + * @generated from protobuf field: int64 timestamp = 3; + */ + timestamp: bigint; +} +/** + * Update related messages + * + * @generated from protobuf message payload.v1.Update + */ +export interface Update { +} +/** + * Represent the update request. + * + * @generated from protobuf message payload.v1.Update.Request + */ +export interface Update_Request { + /** + * The vector to be updated. + * + * @generated from protobuf field: payload.v1.Object.Vector vector = 1; + */ + vector?: Object_Vector; + /** + * The configuration of the update request. + * + * @generated from protobuf field: payload.v1.Update.Config config = 2; + */ + config?: Update_Config; +} +/** + * Represent the multiple update request. + * + * @generated from protobuf message payload.v1.Update.MultiRequest + */ +export interface Update_MultiRequest { + /** + * Represent the multiple update request content. + * + * @generated from protobuf field: repeated payload.v1.Update.Request requests = 1; + */ + requests: Update_Request[]; +} +/** + * Represent the update binary object request. + * + * @generated from protobuf message payload.v1.Update.ObjectRequest + */ +export interface Update_ObjectRequest { + /** + * The binary object to be updated. + * + * @generated from protobuf field: payload.v1.Object.Blob object = 1; + */ + object?: Object_Blob; + /** + * The configuration of the update request. + * + * @generated from protobuf field: payload.v1.Update.Config config = 2; + */ + config?: Update_Config; + /** + * Filter target. + * + * @generated from protobuf field: payload.v1.Filter.Target vectorizer = 3; + */ + vectorizer?: Filter_Target; +} +/** + * Represent the multiple update binary object request. + * + * @generated from protobuf message payload.v1.Update.MultiObjectRequest + */ +export interface Update_MultiObjectRequest { + /** + * Represent the multiple update object request content. + * + * @generated from protobuf field: repeated payload.v1.Update.ObjectRequest requests = 1; + */ + requests: Update_ObjectRequest[]; +} +/** + * Represent the update configuration. + * + * @generated from protobuf message payload.v1.Update.Config + */ +export interface Update_Config { + /** + * A flag to skip exist check during update operation. + * + * @generated from protobuf field: bool skip_strict_exist_check = 1; + */ + skip_strict_exist_check: boolean; + /** + * Filter configuration. + * + * @generated from protobuf field: payload.v1.Filter.Config filters = 2; + */ + filters?: Filter_Config; + /** + * Update timestamp. + * + * @generated from protobuf field: int64 timestamp = 3; + */ + timestamp: bigint; + /** + * A flag to disable balanced update (split remove -> insert operation) + * during update operation. + * + * @generated from protobuf field: bool disable_balanced_update = 4; + */ + disable_balanced_update: boolean; +} +/** + * Upsert related messages. + * + * @generated from protobuf message payload.v1.Upsert + */ +export interface Upsert { +} +/** + * Represent the upsert request. + * + * @generated from protobuf message payload.v1.Upsert.Request + */ +export interface Upsert_Request { + /** + * The vector to be upserted. + * + * @generated from protobuf field: payload.v1.Object.Vector vector = 1; + */ + vector?: Object_Vector; + /** + * The configuration of the upsert request. + * + * @generated from protobuf field: payload.v1.Upsert.Config config = 2; + */ + config?: Upsert_Config; +} +/** + * Represent mthe ultiple upsert request. + * + * @generated from protobuf message payload.v1.Upsert.MultiRequest + */ +export interface Upsert_MultiRequest { + /** + * Represent the multiple upsert request content. + * + * @generated from protobuf field: repeated payload.v1.Upsert.Request requests = 1; + */ + requests: Upsert_Request[]; +} +/** + * Represent the upsert binary object request. + * + * @generated from protobuf message payload.v1.Upsert.ObjectRequest + */ +export interface Upsert_ObjectRequest { + /** + * The binary object to be upserted. + * + * @generated from protobuf field: payload.v1.Object.Blob object = 1; + */ + object?: Object_Blob; + /** + * The configuration of the upsert request. + * + * @generated from protobuf field: payload.v1.Upsert.Config config = 2; + */ + config?: Upsert_Config; + /** + * Filter target. + * + * @generated from protobuf field: payload.v1.Filter.Target vectorizer = 3; + */ + vectorizer?: Filter_Target; +} +/** + * Represent the multiple upsert binary object request. + * + * @generated from protobuf message payload.v1.Upsert.MultiObjectRequest + */ +export interface Upsert_MultiObjectRequest { + /** + * Represent the multiple upsert object request content. + * + * @generated from protobuf field: repeated payload.v1.Upsert.ObjectRequest requests = 1; + */ + requests: Upsert_ObjectRequest[]; +} +/** + * Represent the upsert configuration. + * + * @generated from protobuf message payload.v1.Upsert.Config + */ +export interface Upsert_Config { + /** + * A flag to skip exist check during upsert operation. + * + * @generated from protobuf field: bool skip_strict_exist_check = 1; + */ + skip_strict_exist_check: boolean; + /** + * Filter configuration. + * + * @generated from protobuf field: payload.v1.Filter.Config filters = 2; + */ + filters?: Filter_Config; + /** + * Upsert timestamp. + * + * @generated from protobuf field: int64 timestamp = 3; + */ + timestamp: bigint; + /** + * A flag to disable balanced update (split remove -> insert operation) + * during update operation. + * + * @generated from protobuf field: bool disable_balanced_update = 4; + */ + disable_balanced_update: boolean; +} +/** + * Remove related messages. + * + * @generated from protobuf message payload.v1.Remove + */ +export interface Remove { +} +/** + * Represent the remove request. + * + * @generated from protobuf message payload.v1.Remove.Request + */ +export interface Remove_Request { + /** + * The object ID to be removed. + * + * @generated from protobuf field: payload.v1.Object.ID id = 1; + */ + id?: Object_ID; + /** + * The configuration of the remove request. + * + * @generated from protobuf field: payload.v1.Remove.Config config = 2; + */ + config?: Remove_Config; +} +/** + * Represent the multiple remove request. + * + * @generated from protobuf message payload.v1.Remove.MultiRequest + */ +export interface Remove_MultiRequest { + /** + * Represent the multiple remove request content. + * + * @generated from protobuf field: repeated payload.v1.Remove.Request requests = 1; + */ + requests: Remove_Request[]; +} +/** + * Represent the remove request based on timestamp. + * + * @generated from protobuf message payload.v1.Remove.TimestampRequest + */ +export interface Remove_TimestampRequest { + /** + * The timestamp comparison list. If more than one is specified, the `AND` search is applied. + * + * @generated from protobuf field: repeated payload.v1.Remove.Timestamp timestamps = 1; + */ + timestamps: Remove_Timestamp[]; +} +/** + * Represent the timestamp comparison. + * + * @generated from protobuf message payload.v1.Remove.Timestamp + */ +export interface Remove_Timestamp { + /** + * The timestamp. + * + * @generated from protobuf field: int64 timestamp = 1; + */ + timestamp: bigint; + /** + * The conditional operator. + * + * @generated from protobuf field: payload.v1.Remove.Timestamp.Operator operator = 2; + */ + operator: Remove_Timestamp_Operator; +} +/** + * Operator is enum of each conditional operator. + * + * @generated from protobuf enum payload.v1.Remove.Timestamp.Operator + */ +export declare enum Remove_Timestamp_Operator { + /** + * The timestamp is equal to the specified value in the request. + * + * @generated from protobuf enum value: Eq = 0; + */ + Eq = 0, + /** + * The timestamp is not equal to the specified value in the request. + * + * @generated from protobuf enum value: Ne = 1; + */ + Ne = 1, + /** + * The timestamp is greater than or equal to the specified value in the request. + * + * @generated from protobuf enum value: Ge = 2; + */ + Ge = 2, + /** + * The timestamp is greater than the specified value in the request. + * + * @generated from protobuf enum value: Gt = 3; + */ + Gt = 3, + /** + * The timestamp is less than or equal to the specified value in the request. + * + * @generated from protobuf enum value: Le = 4; + */ + Le = 4, + /** + * The timestamp is less than the specified value in the request. + * + * @generated from protobuf enum value: Lt = 5; + */ + Lt = 5 +} +/** + * Represent the remove configuration. + * + * @generated from protobuf message payload.v1.Remove.Config + */ +export interface Remove_Config { + /** + * A flag to skip exist check during upsert operation. + * + * @generated from protobuf field: bool skip_strict_exist_check = 1; + */ + skip_strict_exist_check: boolean; + /** + * Remove timestamp. + * + * @generated from protobuf field: int64 timestamp = 3; + */ + timestamp: bigint; +} +/** + * Flush related messages. + * + * @generated from protobuf message payload.v1.Flush + */ +export interface Flush { +} +/** + * @generated from protobuf message payload.v1.Flush.Request + */ +export interface Flush_Request { +} +/** + * Common messages. + * + * @generated from protobuf message payload.v1.Object + */ +export interface Object { +} +/** + * Represent a request to fetch raw vector. + * + * @generated from protobuf message payload.v1.Object.VectorRequest + */ +export interface Object_VectorRequest { + /** + * The vector ID to be fetched. + * + * @generated from protobuf field: payload.v1.Object.ID id = 1; + */ + id?: Object_ID; + /** + * Filter configurations. + * + * @generated from protobuf field: payload.v1.Filter.Config filters = 2; + */ + filters?: Filter_Config; +} +/** + * Represent the ID and distance pair. + * + * @generated from protobuf message payload.v1.Object.Distance + */ +export interface Object_Distance { + /** + * The vector ID. + * + * @generated from protobuf field: string id = 1; + */ + id: string; + /** + * The distance. + * + * @generated from protobuf field: float distance = 2; + */ + distance: number; +} +/** + * Represent stream response of distances. + * + * @generated from protobuf message payload.v1.Object.StreamDistance + */ +export interface Object_StreamDistance { + /** + * @generated from protobuf oneof: payload + */ + payload: { + oneofKind: "distance"; + /** + * The distance. + * + * @generated from protobuf field: payload.v1.Object.Distance distance = 1; + */ + distance: Object_Distance; + } | { + oneofKind: "status"; + /** + * The RPC error status. + * + * @generated from protobuf field: google.rpc.Status status = 2; + */ + status: Status; + } | { + oneofKind: undefined; + }; +} +/** + * Represent the vector ID. + * + * @generated from protobuf message payload.v1.Object.ID + */ +export interface Object_ID { + /** + * @generated from protobuf field: string id = 1; + */ + id: string; +} +/** + * Represent multiple vector IDs. + * + * @generated from protobuf message payload.v1.Object.IDs + */ +export interface Object_IDs { + /** + * @generated from protobuf field: repeated string ids = 1; + */ + ids: string[]; +} +/** + * Represent a vector. + * + * @generated from protobuf message payload.v1.Object.Vector + */ +export interface Object_Vector { + /** + * The vector ID. + * + * @generated from protobuf field: string id = 1; + */ + id: string; + /** + * The vector. + * + * @generated from protobuf field: repeated float vector = 2; + */ + vector: number[]; + /** + * timestamp represents when this vector inserted. + * + * @generated from protobuf field: int64 timestamp = 3; + */ + timestamp: bigint; +} +/** + * Represent a request to fetch vector meta data. + * + * @generated from protobuf message payload.v1.Object.GetTimestampRequest + */ +export interface Object_GetTimestampRequest { + /** + * The vector ID to be fetched. + * + * @generated from protobuf field: payload.v1.Object.ID id = 1; + */ + id?: Object_ID; +} +/** + * Represent a vector meta data. + * + * @generated from protobuf message payload.v1.Object.Timestamp + */ +export interface Object_Timestamp { + /** + * The vector ID. + * + * @generated from protobuf field: string id = 1; + */ + id: string; + /** + * timestamp represents when this vector inserted. + * + * @generated from protobuf field: int64 timestamp = 2; + */ + timestamp: bigint; +} +/** + * Represent multiple vectors. + * + * @generated from protobuf message payload.v1.Object.Vectors + */ +export interface Object_Vectors { + /** + * @generated from protobuf field: repeated payload.v1.Object.Vector vectors = 1; + */ + vectors: Object_Vector[]; +} +/** + * Represent stream response of the vector. + * + * @generated from protobuf message payload.v1.Object.StreamVector + */ +export interface Object_StreamVector { + /** + * @generated from protobuf oneof: payload + */ + payload: { + oneofKind: "vector"; + /** + * The vector. + * + * @generated from protobuf field: payload.v1.Object.Vector vector = 1; + */ + vector: Object_Vector; + } | { + oneofKind: "status"; + /** + * The RPC error status. + * + * @generated from protobuf field: google.rpc.Status status = 2; + */ + status: Status; + } | { + oneofKind: undefined; + }; +} +/** + * Represent reshape vector. + * + * @generated from protobuf message payload.v1.Object.ReshapeVector + */ +export interface Object_ReshapeVector { + /** + * The binary object. + * + * @generated from protobuf field: bytes object = 1; + */ + object: Uint8Array; + /** + * The new shape. + * + * @generated from protobuf field: repeated int32 shape = 2; + */ + shape: number[]; +} +/** + * Represent the binary object. + * + * @generated from protobuf message payload.v1.Object.Blob + */ +export interface Object_Blob { + /** + * The object ID. + * + * @generated from protobuf field: string id = 1; + */ + id: string; + /** + * The binary object. + * + * @generated from protobuf field: bytes object = 2; + */ + object: Uint8Array; +} +/** + * Represent stream response of binary objects. + * + * @generated from protobuf message payload.v1.Object.StreamBlob + */ +export interface Object_StreamBlob { + /** + * @generated from protobuf oneof: payload + */ + payload: { + oneofKind: "blob"; + /** + * The binary object. + * + * @generated from protobuf field: payload.v1.Object.Blob blob = 1; + */ + blob: Object_Blob; + } | { + oneofKind: "status"; + /** + * The RPC error status. + * + * @generated from protobuf field: google.rpc.Status status = 2; + */ + status: Status; + } | { + oneofKind: undefined; + }; +} +/** + * Represent the vector location. + * + * @generated from protobuf message payload.v1.Object.Location + */ +export interface Object_Location { + /** + * The name of the location. + * + * @generated from protobuf field: string name = 1; + */ + name: string; + /** + * The UUID of the vector. + * + * @generated from protobuf field: string uuid = 2; + */ + uuid: string; + /** + * The IP list. + * + * @generated from protobuf field: repeated string ips = 3; + */ + ips: string[]; +} +/** + * Represent the stream response of the vector location. + * + * @generated from protobuf message payload.v1.Object.StreamLocation + */ +export interface Object_StreamLocation { + /** + * @generated from protobuf oneof: payload + */ + payload: { + oneofKind: "location"; + /** + * The vector location. + * + * @generated from protobuf field: payload.v1.Object.Location location = 1; + */ + location: Object_Location; + } | { + oneofKind: "status"; + /** + * The RPC error status. + * + * @generated from protobuf field: google.rpc.Status status = 2; + */ + status: Status; + } | { + oneofKind: undefined; + }; +} +/** + * Represent multiple vector locations. + * + * @generated from protobuf message payload.v1.Object.Locations + */ +export interface Object_Locations { + /** + * @generated from protobuf field: repeated payload.v1.Object.Location locations = 1; + */ + locations: Object_Location[]; +} +/** + * Represent the list object vector stream request and response. + * + * @generated from protobuf message payload.v1.Object.List + */ +export interface Object_List { +} +/** + * @generated from protobuf message payload.v1.Object.List.Request + */ +export interface Object_List_Request { +} +/** + * @generated from protobuf message payload.v1.Object.List.Response + */ +export interface Object_List_Response { + /** + * @generated from protobuf oneof: payload + */ + payload: { + oneofKind: "vector"; + /** + * The vector + * + * @generated from protobuf field: payload.v1.Object.Vector vector = 1; + */ + vector: Object_Vector; + } | { + oneofKind: "status"; + /** + * The RPC error status. + * + * @generated from protobuf field: google.rpc.Status status = 2; + */ + status: Status; + } | { + oneofKind: undefined; + }; +} +/** + * Control related messages. + * + * @generated from protobuf message payload.v1.Control + */ +export interface Control { +} +/** + * Represent the create index request. + * + * @generated from protobuf message payload.v1.Control.CreateIndexRequest + */ +export interface Control_CreateIndexRequest { + /** + * The pool size of the create index operation. + * + * @generated from protobuf field: uint32 pool_size = 1; + */ + pool_size: number; +} +/** + * Discoverer related messages. + * + * @generated from protobuf message payload.v1.Discoverer + */ +export interface Discoverer { +} +/** + * Represent the dicoverer request. + * + * @generated from protobuf message payload.v1.Discoverer.Request + */ +export interface Discoverer_Request { + /** + * The agent name to be discovered. + * + * @generated from protobuf field: string name = 1; + */ + name: string; + /** + * The namespace to be discovered. + * + * @generated from protobuf field: string namespace = 2; + */ + namespace: string; + /** + * The node to be discovered. + * + * @generated from protobuf field: string node = 3; + */ + node: string; +} +/** + * Info related messages. + * + * @generated from protobuf message payload.v1.Info + */ +export interface Info { +} +/** + * Represent the index information messages. + * + * @generated from protobuf message payload.v1.Info.Index + */ +export interface Info_Index { +} +/** + * Represent the index count message. + * + * @generated from protobuf message payload.v1.Info.Index.Count + */ +export interface Info_Index_Count { + /** + * The stored index count. + * + * @generated from protobuf field: uint32 stored = 1; + */ + stored: number; + /** + * The uncommitted index count. + * + * @generated from protobuf field: uint32 uncommitted = 2; + */ + uncommitted: number; + /** + * The indexing index count. + * + * @generated from protobuf field: bool indexing = 3; + */ + indexing: boolean; + /** + * The saving index count. + * + * @generated from protobuf field: bool saving = 4; + */ + saving: boolean; +} +/** + * Represent the UUID message. + * + * @generated from protobuf message payload.v1.Info.Index.UUID + */ +export interface Info_Index_UUID { +} +/** + * The committed UUID. + * + * @generated from protobuf message payload.v1.Info.Index.UUID.Committed + */ +export interface Info_Index_UUID_Committed { + /** + * @generated from protobuf field: string uuid = 1; + */ + uuid: string; +} +/** + * The uncommitted UUID. + * + * @generated from protobuf message payload.v1.Info.Index.UUID.Uncommitted + */ +export interface Info_Index_UUID_Uncommitted { + /** + * @generated from protobuf field: string uuid = 1; + */ + uuid: string; +} +/** + * Represent the pod information message. + * + * @generated from protobuf message payload.v1.Info.Pod + */ +export interface Info_Pod { + /** + * The app name of the pod on the label. + * + * @generated from protobuf field: string app_name = 1; + */ + app_name: string; + /** + * The name of the pod. + * + * @generated from protobuf field: string name = 2; + */ + name: string; + /** + * The namespace of the pod. + * + * @generated from protobuf field: string namespace = 3; + */ + namespace: string; + /** + * The IP of the pod. + * + * @generated from protobuf field: string ip = 4; + */ + ip: string; + /** + * The CPU information of the pod. + * + * @generated from protobuf field: payload.v1.Info.CPU cpu = 5; + */ + cpu?: Info_CPU; + /** + * The memory information of the pod. + * + * @generated from protobuf field: payload.v1.Info.Memory memory = 6; + */ + memory?: Info_Memory; + /** + * The node information of the pod. + * + * @generated from protobuf field: payload.v1.Info.Node node = 7; + */ + node?: Info_Node; +} +/** + * Represent the node information message. + * + * @generated from protobuf message payload.v1.Info.Node + */ +export interface Info_Node { + /** + * The name of the node. + * + * @generated from protobuf field: string name = 1; + */ + name: string; + /** + * The internal IP address of the node. + * + * @generated from protobuf field: string internal_addr = 2; + */ + internal_addr: string; + /** + * The external IP address of the node. + * + * @generated from protobuf field: string external_addr = 3; + */ + external_addr: string; + /** + * The CPU information of the node. + * + * @generated from protobuf field: payload.v1.Info.CPU cpu = 4; + */ + cpu?: Info_CPU; + /** + * The memory information of the node. + * + * @generated from protobuf field: payload.v1.Info.Memory memory = 5; + */ + memory?: Info_Memory; + /** + * The pod information of the node. + * + * @generated from protobuf field: payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; + */ + Pods?: Info_Pods; +} +/** + * Represent the service information message. + * + * @generated from protobuf message payload.v1.Info.Service + */ +export interface Info_Service { + /** + * The name of the svc. + * + * @generated from protobuf field: string name = 1; + */ + name: string; + /** + * The cluster ip of the svc. + * + * @generated from protobuf field: string cluster_ip = 2; + */ + cluster_ip: string; + /** + * The cluster ips of the svc. + * + * @generated from protobuf field: repeated string cluster_ips = 3; + */ + cluster_ips: string[]; + /** + * The port of the svc. + * + * @generated from protobuf field: repeated payload.v1.Info.ServicePort ports = 4; + */ + ports: Info_ServicePort[]; + /** + * The labels of the service. + * + * @generated from protobuf field: payload.v1.Info.Labels labels = 5; + */ + labels?: Info_Labels; + /** + * The annotations of the service. + * + * @generated from protobuf field: payload.v1.Info.Annotations annotations = 6; + */ + annotations?: Info_Annotations; +} +/** + * Represets the service port information message. + * + * @generated from protobuf message payload.v1.Info.ServicePort + */ +export interface Info_ServicePort { + /** + * The name of the port. + * + * @generated from protobuf field: string name = 1; + */ + name: string; + /** + * The port number + * + * @generated from protobuf field: int32 port = 2; + */ + port: number; +} +/** + * Represent the kubernetes labels. + * + * @generated from protobuf message payload.v1.Info.Labels + */ +export interface Info_Labels { + /** + * @generated from protobuf field: map labels = 1; + */ + labels: { + [key: string]: string; + }; +} +/** + * Represent the kubernetes annotations. + * + * @generated from protobuf message payload.v1.Info.Annotations + */ +export interface Info_Annotations { + /** + * @generated from protobuf field: map annotations = 1; + */ + annotations: { + [key: string]: string; + }; +} +/** + * Represent the CPU information message. + * + * @generated from protobuf message payload.v1.Info.CPU + */ +export interface Info_CPU { + /** + * The CPU resource limit. + * + * @generated from protobuf field: double limit = 1; + */ + limit: number; + /** + * The CPU resource requested. + * + * @generated from protobuf field: double request = 2; + */ + request: number; + /** + * The CPU usage. + * + * @generated from protobuf field: double usage = 3; + */ + usage: number; +} +/** + * Represent the memory information message. + * + * @generated from protobuf message payload.v1.Info.Memory + */ +export interface Info_Memory { + /** + * The memory limit. + * + * @generated from protobuf field: double limit = 1; + */ + limit: number; + /** + * The memory requested. + * + * @generated from protobuf field: double request = 2; + */ + request: number; + /** + * The memory usage. + * + * @generated from protobuf field: double usage = 3; + */ + usage: number; +} +/** + * Represent the multiple pod information message. + * + * @generated from protobuf message payload.v1.Info.Pods + */ +export interface Info_Pods { + /** + * The multiple pod information. + * + * @generated from protobuf field: repeated payload.v1.Info.Pod pods = 1; + */ + pods: Info_Pod[]; +} +/** + * Represent the multiple node information message. + * + * @generated from protobuf message payload.v1.Info.Nodes + */ +export interface Info_Nodes { + /** + * The multiple node information. + * + * @generated from protobuf field: repeated payload.v1.Info.Node nodes = 1; + */ + nodes: Info_Node[]; +} +/** + * Represent the multiple service information message. + * + * @generated from protobuf message payload.v1.Info.Services + */ +export interface Info_Services { + /** + * The multiple service information. + * + * @generated from protobuf field: repeated payload.v1.Info.Service services = 1; + */ + services: Info_Service[]; +} +/** + * Represent the multiple IP message. + * + * @generated from protobuf message payload.v1.Info.IPs + */ +export interface Info_IPs { + /** + * @generated from protobuf field: repeated string ip = 1; + */ + ip: string[]; +} +/** + * Mirror related messages. + * + * @generated from protobuf message payload.v1.Mirror + */ +export interface Mirror { +} +/** + * Represent server information. + * + * @generated from protobuf message payload.v1.Mirror.Target + */ +export interface Mirror_Target { + /** + * The target hostname. + * + * @generated from protobuf field: string host = 1; + */ + host: string; + /** + * The target port. + * + * @generated from protobuf field: uint32 port = 2; + */ + port: number; +} +/** + * Represent the multiple Target message. + * + * @generated from protobuf message payload.v1.Mirror.Targets + */ +export interface Mirror_Targets { + /** + * The multiple target information. + * + * @generated from protobuf field: repeated payload.v1.Mirror.Target targets = 1; + */ + targets: Mirror_Target[]; +} +/** + * Represent an empty message. + * + * @generated from protobuf message payload.v1.Empty + */ +export interface Empty { +} +declare class Search$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Search; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search): Search; + internalBinaryWrite(message: Search, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Search + */ +export declare const Search: Search$Type; +declare class Search_Request$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Search_Request; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_Request): Search_Request; + internalBinaryWrite(message: Search_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Search.Request + */ +export declare const Search_Request: Search_Request$Type; +declare class Search_MultiRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Search_MultiRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_MultiRequest): Search_MultiRequest; + internalBinaryWrite(message: Search_MultiRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Search.MultiRequest + */ +export declare const Search_MultiRequest: Search_MultiRequest$Type; +declare class Search_IDRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Search_IDRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_IDRequest): Search_IDRequest; + internalBinaryWrite(message: Search_IDRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Search.IDRequest + */ +export declare const Search_IDRequest: Search_IDRequest$Type; +declare class Search_MultiIDRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Search_MultiIDRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_MultiIDRequest): Search_MultiIDRequest; + internalBinaryWrite(message: Search_MultiIDRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Search.MultiIDRequest + */ +export declare const Search_MultiIDRequest: Search_MultiIDRequest$Type; +declare class Search_ObjectRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Search_ObjectRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_ObjectRequest): Search_ObjectRequest; + internalBinaryWrite(message: Search_ObjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Search.ObjectRequest + */ +export declare const Search_ObjectRequest: Search_ObjectRequest$Type; +declare class Search_MultiObjectRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Search_MultiObjectRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_MultiObjectRequest): Search_MultiObjectRequest; + internalBinaryWrite(message: Search_MultiObjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Search.MultiObjectRequest + */ +export declare const Search_MultiObjectRequest: Search_MultiObjectRequest$Type; +declare class Search_Config$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Search_Config; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_Config): Search_Config; + internalBinaryWrite(message: Search_Config, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Search.Config + */ +export declare const Search_Config: Search_Config$Type; +declare class Search_Response$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Search_Response; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_Response): Search_Response; + internalBinaryWrite(message: Search_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Search.Response + */ +export declare const Search_Response: Search_Response$Type; +declare class Search_Responses$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Search_Responses; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_Responses): Search_Responses; + internalBinaryWrite(message: Search_Responses, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Search.Responses + */ +export declare const Search_Responses: Search_Responses$Type; +declare class Search_StreamResponse$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Search_StreamResponse; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_StreamResponse): Search_StreamResponse; + internalBinaryWrite(message: Search_StreamResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Search.StreamResponse + */ +export declare const Search_StreamResponse: Search_StreamResponse$Type; +declare class Filter$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Filter; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Filter): Filter; + internalBinaryWrite(message: Filter, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Filter + */ +export declare const Filter: Filter$Type; +declare class Filter_Target$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Filter_Target; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Filter_Target): Filter_Target; + internalBinaryWrite(message: Filter_Target, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Filter.Target + */ +export declare const Filter_Target: Filter_Target$Type; +declare class Filter_Config$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Filter_Config; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Filter_Config): Filter_Config; + internalBinaryWrite(message: Filter_Config, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Filter.Config + */ +export declare const Filter_Config: Filter_Config$Type; +declare class Insert$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Insert; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Insert): Insert; + internalBinaryWrite(message: Insert, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Insert + */ +export declare const Insert: Insert$Type; +declare class Insert_Request$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Insert_Request; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Insert_Request): Insert_Request; + internalBinaryWrite(message: Insert_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Insert.Request + */ +export declare const Insert_Request: Insert_Request$Type; +declare class Insert_MultiRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Insert_MultiRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Insert_MultiRequest): Insert_MultiRequest; + internalBinaryWrite(message: Insert_MultiRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Insert.MultiRequest + */ +export declare const Insert_MultiRequest: Insert_MultiRequest$Type; +declare class Insert_ObjectRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Insert_ObjectRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Insert_ObjectRequest): Insert_ObjectRequest; + internalBinaryWrite(message: Insert_ObjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Insert.ObjectRequest + */ +export declare const Insert_ObjectRequest: Insert_ObjectRequest$Type; +declare class Insert_MultiObjectRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Insert_MultiObjectRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Insert_MultiObjectRequest): Insert_MultiObjectRequest; + internalBinaryWrite(message: Insert_MultiObjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Insert.MultiObjectRequest + */ +export declare const Insert_MultiObjectRequest: Insert_MultiObjectRequest$Type; +declare class Insert_Config$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Insert_Config; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Insert_Config): Insert_Config; + internalBinaryWrite(message: Insert_Config, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Insert.Config + */ +export declare const Insert_Config: Insert_Config$Type; +declare class Update$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Update; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Update): Update; + internalBinaryWrite(message: Update, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Update + */ +export declare const Update: Update$Type; +declare class Update_Request$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Update_Request; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Update_Request): Update_Request; + internalBinaryWrite(message: Update_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Update.Request + */ +export declare const Update_Request: Update_Request$Type; +declare class Update_MultiRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Update_MultiRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Update_MultiRequest): Update_MultiRequest; + internalBinaryWrite(message: Update_MultiRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Update.MultiRequest + */ +export declare const Update_MultiRequest: Update_MultiRequest$Type; +declare class Update_ObjectRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Update_ObjectRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Update_ObjectRequest): Update_ObjectRequest; + internalBinaryWrite(message: Update_ObjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Update.ObjectRequest + */ +export declare const Update_ObjectRequest: Update_ObjectRequest$Type; +declare class Update_MultiObjectRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Update_MultiObjectRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Update_MultiObjectRequest): Update_MultiObjectRequest; + internalBinaryWrite(message: Update_MultiObjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Update.MultiObjectRequest + */ +export declare const Update_MultiObjectRequest: Update_MultiObjectRequest$Type; +declare class Update_Config$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Update_Config; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Update_Config): Update_Config; + internalBinaryWrite(message: Update_Config, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Update.Config + */ +export declare const Update_Config: Update_Config$Type; +declare class Upsert$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Upsert; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Upsert): Upsert; + internalBinaryWrite(message: Upsert, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Upsert + */ +export declare const Upsert: Upsert$Type; +declare class Upsert_Request$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Upsert_Request; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Upsert_Request): Upsert_Request; + internalBinaryWrite(message: Upsert_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Upsert.Request + */ +export declare const Upsert_Request: Upsert_Request$Type; +declare class Upsert_MultiRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Upsert_MultiRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Upsert_MultiRequest): Upsert_MultiRequest; + internalBinaryWrite(message: Upsert_MultiRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Upsert.MultiRequest + */ +export declare const Upsert_MultiRequest: Upsert_MultiRequest$Type; +declare class Upsert_ObjectRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Upsert_ObjectRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Upsert_ObjectRequest): Upsert_ObjectRequest; + internalBinaryWrite(message: Upsert_ObjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Upsert.ObjectRequest + */ +export declare const Upsert_ObjectRequest: Upsert_ObjectRequest$Type; +declare class Upsert_MultiObjectRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Upsert_MultiObjectRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Upsert_MultiObjectRequest): Upsert_MultiObjectRequest; + internalBinaryWrite(message: Upsert_MultiObjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Upsert.MultiObjectRequest + */ +export declare const Upsert_MultiObjectRequest: Upsert_MultiObjectRequest$Type; +declare class Upsert_Config$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Upsert_Config; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Upsert_Config): Upsert_Config; + internalBinaryWrite(message: Upsert_Config, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Upsert.Config + */ +export declare const Upsert_Config: Upsert_Config$Type; +declare class Remove$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Remove; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Remove): Remove; + internalBinaryWrite(message: Remove, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Remove + */ +export declare const Remove: Remove$Type; +declare class Remove_Request$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Remove_Request; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Remove_Request): Remove_Request; + internalBinaryWrite(message: Remove_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Remove.Request + */ +export declare const Remove_Request: Remove_Request$Type; +declare class Remove_MultiRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Remove_MultiRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Remove_MultiRequest): Remove_MultiRequest; + internalBinaryWrite(message: Remove_MultiRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Remove.MultiRequest + */ +export declare const Remove_MultiRequest: Remove_MultiRequest$Type; +declare class Remove_TimestampRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Remove_TimestampRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Remove_TimestampRequest): Remove_TimestampRequest; + internalBinaryWrite(message: Remove_TimestampRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Remove.TimestampRequest + */ +export declare const Remove_TimestampRequest: Remove_TimestampRequest$Type; +declare class Remove_Timestamp$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Remove_Timestamp; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Remove_Timestamp): Remove_Timestamp; + internalBinaryWrite(message: Remove_Timestamp, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Remove.Timestamp + */ +export declare const Remove_Timestamp: Remove_Timestamp$Type; +declare class Remove_Config$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Remove_Config; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Remove_Config): Remove_Config; + internalBinaryWrite(message: Remove_Config, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Remove.Config + */ +export declare const Remove_Config: Remove_Config$Type; +declare class Flush$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Flush; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Flush): Flush; + internalBinaryWrite(message: Flush, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Flush + */ +export declare const Flush: Flush$Type; +declare class Flush_Request$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Flush_Request; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Flush_Request): Flush_Request; + internalBinaryWrite(message: Flush_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Flush.Request + */ +export declare const Flush_Request: Flush_Request$Type; +declare class Object$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object): Object; + internalBinaryWrite(message: Object, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object + */ +export declare const Object: Object$Type; +declare class Object_VectorRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_VectorRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_VectorRequest): Object_VectorRequest; + internalBinaryWrite(message: Object_VectorRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.VectorRequest + */ +export declare const Object_VectorRequest: Object_VectorRequest$Type; +declare class Object_Distance$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_Distance; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_Distance): Object_Distance; + internalBinaryWrite(message: Object_Distance, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.Distance + */ +export declare const Object_Distance: Object_Distance$Type; +declare class Object_StreamDistance$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_StreamDistance; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_StreamDistance): Object_StreamDistance; + internalBinaryWrite(message: Object_StreamDistance, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.StreamDistance + */ +export declare const Object_StreamDistance: Object_StreamDistance$Type; +declare class Object_ID$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_ID; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_ID): Object_ID; + internalBinaryWrite(message: Object_ID, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.ID + */ +export declare const Object_ID: Object_ID$Type; +declare class Object_IDs$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_IDs; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_IDs): Object_IDs; + internalBinaryWrite(message: Object_IDs, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.IDs + */ +export declare const Object_IDs: Object_IDs$Type; +declare class Object_Vector$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_Vector; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_Vector): Object_Vector; + internalBinaryWrite(message: Object_Vector, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.Vector + */ +export declare const Object_Vector: Object_Vector$Type; +declare class Object_GetTimestampRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_GetTimestampRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_GetTimestampRequest): Object_GetTimestampRequest; + internalBinaryWrite(message: Object_GetTimestampRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.GetTimestampRequest + */ +export declare const Object_GetTimestampRequest: Object_GetTimestampRequest$Type; +declare class Object_Timestamp$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_Timestamp; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_Timestamp): Object_Timestamp; + internalBinaryWrite(message: Object_Timestamp, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.Timestamp + */ +export declare const Object_Timestamp: Object_Timestamp$Type; +declare class Object_Vectors$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_Vectors; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_Vectors): Object_Vectors; + internalBinaryWrite(message: Object_Vectors, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.Vectors + */ +export declare const Object_Vectors: Object_Vectors$Type; +declare class Object_StreamVector$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_StreamVector; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_StreamVector): Object_StreamVector; + internalBinaryWrite(message: Object_StreamVector, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.StreamVector + */ +export declare const Object_StreamVector: Object_StreamVector$Type; +declare class Object_ReshapeVector$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_ReshapeVector; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_ReshapeVector): Object_ReshapeVector; + internalBinaryWrite(message: Object_ReshapeVector, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.ReshapeVector + */ +export declare const Object_ReshapeVector: Object_ReshapeVector$Type; +declare class Object_Blob$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_Blob; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_Blob): Object_Blob; + internalBinaryWrite(message: Object_Blob, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.Blob + */ +export declare const Object_Blob: Object_Blob$Type; +declare class Object_StreamBlob$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_StreamBlob; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_StreamBlob): Object_StreamBlob; + internalBinaryWrite(message: Object_StreamBlob, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.StreamBlob + */ +export declare const Object_StreamBlob: Object_StreamBlob$Type; +declare class Object_Location$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_Location; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_Location): Object_Location; + internalBinaryWrite(message: Object_Location, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.Location + */ +export declare const Object_Location: Object_Location$Type; +declare class Object_StreamLocation$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_StreamLocation; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_StreamLocation): Object_StreamLocation; + internalBinaryWrite(message: Object_StreamLocation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.StreamLocation + */ +export declare const Object_StreamLocation: Object_StreamLocation$Type; +declare class Object_Locations$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_Locations; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_Locations): Object_Locations; + internalBinaryWrite(message: Object_Locations, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.Locations + */ +export declare const Object_Locations: Object_Locations$Type; +declare class Object_List$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_List; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_List): Object_List; + internalBinaryWrite(message: Object_List, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.List + */ +export declare const Object_List: Object_List$Type; +declare class Object_List_Request$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_List_Request; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_List_Request): Object_List_Request; + internalBinaryWrite(message: Object_List_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.List.Request + */ +export declare const Object_List_Request: Object_List_Request$Type; +declare class Object_List_Response$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Object_List_Response; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_List_Response): Object_List_Response; + internalBinaryWrite(message: Object_List_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Object.List.Response + */ +export declare const Object_List_Response: Object_List_Response$Type; +declare class Control$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Control; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Control): Control; + internalBinaryWrite(message: Control, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Control + */ +export declare const Control: Control$Type; +declare class Control_CreateIndexRequest$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Control_CreateIndexRequest; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Control_CreateIndexRequest): Control_CreateIndexRequest; + internalBinaryWrite(message: Control_CreateIndexRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Control.CreateIndexRequest + */ +export declare const Control_CreateIndexRequest: Control_CreateIndexRequest$Type; +declare class Discoverer$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Discoverer; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Discoverer): Discoverer; + internalBinaryWrite(message: Discoverer, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Discoverer + */ +export declare const Discoverer: Discoverer$Type; +declare class Discoverer_Request$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Discoverer_Request; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Discoverer_Request): Discoverer_Request; + internalBinaryWrite(message: Discoverer_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Discoverer.Request + */ +export declare const Discoverer_Request: Discoverer_Request$Type; +declare class Info$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Info; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info): Info; + internalBinaryWrite(message: Info, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Info + */ +export declare const Info: Info$Type; +declare class Info_Index$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Info_Index; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Index): Info_Index; + internalBinaryWrite(message: Info_Index, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Index + */ +export declare const Info_Index: Info_Index$Type; +declare class Info_Index_Count$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Info_Index_Count; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Index_Count): Info_Index_Count; + internalBinaryWrite(message: Info_Index_Count, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Index.Count + */ +export declare const Info_Index_Count: Info_Index_Count$Type; +declare class Info_Index_UUID$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Info_Index_UUID; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Index_UUID): Info_Index_UUID; + internalBinaryWrite(message: Info_Index_UUID, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Index.UUID + */ +export declare const Info_Index_UUID: Info_Index_UUID$Type; +declare class Info_Index_UUID_Committed$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Info_Index_UUID_Committed; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Index_UUID_Committed): Info_Index_UUID_Committed; + internalBinaryWrite(message: Info_Index_UUID_Committed, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Index.UUID.Committed + */ +export declare const Info_Index_UUID_Committed: Info_Index_UUID_Committed$Type; +declare class Info_Index_UUID_Uncommitted$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Info_Index_UUID_Uncommitted; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Index_UUID_Uncommitted): Info_Index_UUID_Uncommitted; + internalBinaryWrite(message: Info_Index_UUID_Uncommitted, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Index.UUID.Uncommitted + */ +export declare const Info_Index_UUID_Uncommitted: Info_Index_UUID_Uncommitted$Type; +declare class Info_Pod$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Info_Pod; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Pod): Info_Pod; + internalBinaryWrite(message: Info_Pod, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Pod + */ +export declare const Info_Pod: Info_Pod$Type; +declare class Info_Node$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Info_Node; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Node): Info_Node; + internalBinaryWrite(message: Info_Node, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Node + */ +export declare const Info_Node: Info_Node$Type; +declare class Info_Service$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Info_Service; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Service): Info_Service; + internalBinaryWrite(message: Info_Service, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Service + */ +export declare const Info_Service: Info_Service$Type; +declare class Info_ServicePort$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Info_ServicePort; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_ServicePort): Info_ServicePort; + internalBinaryWrite(message: Info_ServicePort, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Info.ServicePort + */ +export declare const Info_ServicePort: Info_ServicePort$Type; +declare class Info_Labels$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Info_Labels; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Labels): Info_Labels; + private binaryReadMap1; + internalBinaryWrite(message: Info_Labels, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Labels + */ +export declare const Info_Labels: Info_Labels$Type; +declare class Info_Annotations$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Info_Annotations; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Annotations): Info_Annotations; + private binaryReadMap1; + internalBinaryWrite(message: Info_Annotations, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Annotations + */ +export declare const Info_Annotations: Info_Annotations$Type; +declare class Info_CPU$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Info_CPU; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_CPU): Info_CPU; + internalBinaryWrite(message: Info_CPU, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Info.CPU + */ +export declare const Info_CPU: Info_CPU$Type; +declare class Info_Memory$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Info_Memory; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Memory): Info_Memory; + internalBinaryWrite(message: Info_Memory, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Memory + */ +export declare const Info_Memory: Info_Memory$Type; +declare class Info_Pods$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Info_Pods; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Pods): Info_Pods; + internalBinaryWrite(message: Info_Pods, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Pods + */ +export declare const Info_Pods: Info_Pods$Type; +declare class Info_Nodes$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Info_Nodes; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Nodes): Info_Nodes; + internalBinaryWrite(message: Info_Nodes, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Nodes + */ +export declare const Info_Nodes: Info_Nodes$Type; +declare class Info_Services$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Info_Services; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Services): Info_Services; + internalBinaryWrite(message: Info_Services, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Services + */ +export declare const Info_Services: Info_Services$Type; +declare class Info_IPs$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Info_IPs; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_IPs): Info_IPs; + internalBinaryWrite(message: Info_IPs, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Info.IPs + */ +export declare const Info_IPs: Info_IPs$Type; +declare class Mirror$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Mirror; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Mirror): Mirror; + internalBinaryWrite(message: Mirror, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Mirror + */ +export declare const Mirror: Mirror$Type; +declare class Mirror_Target$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Mirror_Target; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Mirror_Target): Mirror_Target; + internalBinaryWrite(message: Mirror_Target, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Mirror.Target + */ +export declare const Mirror_Target: Mirror_Target$Type; +declare class Mirror_Targets$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Mirror_Targets; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Mirror_Targets): Mirror_Targets; + internalBinaryWrite(message: Mirror_Targets, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Mirror.Targets + */ +export declare const Mirror_Targets: Mirror_Targets$Type; +declare class Empty$Type extends MessageType { + constructor(); + create(value?: PartialMessage): Empty; + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Empty): Empty; + internalBinaryWrite(message: Empty, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; +} +/** + * @generated MessageType for protobuf message payload.v1.Empty + */ +export declare const Empty: Empty$Type; +export {}; diff --git a/src/vald/v1/payload/payload_pb.js b/src/vald/v1/payload/payload_pb.js new file mode 100644 index 00000000..c0685471 --- /dev/null +++ b/src/vald/v1/payload/payload_pb.js @@ -0,0 +1,4435 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/payload/payload.proto" (package "payload.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Empty = exports.Mirror_Targets = exports.Mirror_Target = exports.Mirror = exports.Info_IPs = exports.Info_Services = exports.Info_Nodes = exports.Info_Pods = exports.Info_Memory = exports.Info_CPU = exports.Info_Annotations = exports.Info_Labels = exports.Info_ServicePort = exports.Info_Service = exports.Info_Node = exports.Info_Pod = exports.Info_Index_UUID_Uncommitted = exports.Info_Index_UUID_Committed = exports.Info_Index_UUID = exports.Info_Index_Count = exports.Info_Index = exports.Info = exports.Discoverer_Request = exports.Discoverer = exports.Control_CreateIndexRequest = exports.Control = exports.Object_List_Response = exports.Object_List_Request = exports.Object_List = exports.Object_Locations = exports.Object_StreamLocation = exports.Object_Location = exports.Object_StreamBlob = exports.Object_Blob = exports.Object_ReshapeVector = exports.Object_StreamVector = exports.Object_Vectors = exports.Object_Timestamp = exports.Object_GetTimestampRequest = exports.Object_Vector = exports.Object_IDs = exports.Object_ID = exports.Object_StreamDistance = exports.Object_Distance = exports.Object_VectorRequest = exports.Object = exports.Flush_Request = exports.Flush = exports.Remove_Config = exports.Remove_Timestamp = exports.Remove_TimestampRequest = exports.Remove_MultiRequest = exports.Remove_Request = exports.Remove = exports.Upsert_Config = exports.Upsert_MultiObjectRequest = exports.Upsert_ObjectRequest = exports.Upsert_MultiRequest = exports.Upsert_Request = exports.Upsert = exports.Update_Config = exports.Update_MultiObjectRequest = exports.Update_ObjectRequest = exports.Update_MultiRequest = exports.Update_Request = exports.Update = exports.Insert_Config = exports.Insert_MultiObjectRequest = exports.Insert_ObjectRequest = exports.Insert_MultiRequest = exports.Insert_Request = exports.Insert = exports.Filter_Config = exports.Filter_Target = exports.Filter = exports.Search_StreamResponse = exports.Search_Responses = exports.Search_Response = exports.Search_Config = exports.Search_MultiObjectRequest = exports.Search_ObjectRequest = exports.Search_MultiIDRequest = exports.Search_IDRequest = exports.Search_MultiRequest = exports.Search_Request = exports.Search = exports.Remove_Timestamp_Operator = exports.Search_AggregationAlgorithm = void 0; +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/payload/payload.proto" (package "payload.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +const runtime_1 = require("@protobuf-ts/runtime"); +const runtime_2 = require("@protobuf-ts/runtime"); +const runtime_3 = require("@protobuf-ts/runtime"); +const runtime_4 = require("@protobuf-ts/runtime"); +const status_pb_1 = require("../../../google/rpc/status_pb"); +const wrappers_pb_1 = require("../../../google/protobuf/wrappers_pb"); +/** + * AggregationAlgorithm is enum of each aggregation algorithms + * + * @generated from protobuf enum payload.v1.Search.AggregationAlgorithm + */ +var Search_AggregationAlgorithm; +(function (Search_AggregationAlgorithm) { + /** + * @generated from protobuf enum value: Unknown = 0; + */ + Search_AggregationAlgorithm[Search_AggregationAlgorithm["Unknown"] = 0] = "Unknown"; + /** + * @generated from protobuf enum value: ConcurrentQueue = 1; + */ + Search_AggregationAlgorithm[Search_AggregationAlgorithm["ConcurrentQueue"] = 1] = "ConcurrentQueue"; + /** + * @generated from protobuf enum value: SortSlice = 2; + */ + Search_AggregationAlgorithm[Search_AggregationAlgorithm["SortSlice"] = 2] = "SortSlice"; + /** + * @generated from protobuf enum value: SortPoolSlice = 3; + */ + Search_AggregationAlgorithm[Search_AggregationAlgorithm["SortPoolSlice"] = 3] = "SortPoolSlice"; + /** + * @generated from protobuf enum value: PairingHeap = 4; + */ + Search_AggregationAlgorithm[Search_AggregationAlgorithm["PairingHeap"] = 4] = "PairingHeap"; +})(Search_AggregationAlgorithm = exports.Search_AggregationAlgorithm || (exports.Search_AggregationAlgorithm = {})); +/** + * Operator is enum of each conditional operator. + * + * @generated from protobuf enum payload.v1.Remove.Timestamp.Operator + */ +var Remove_Timestamp_Operator; +(function (Remove_Timestamp_Operator) { + /** + * The timestamp is equal to the specified value in the request. + * + * @generated from protobuf enum value: Eq = 0; + */ + Remove_Timestamp_Operator[Remove_Timestamp_Operator["Eq"] = 0] = "Eq"; + /** + * The timestamp is not equal to the specified value in the request. + * + * @generated from protobuf enum value: Ne = 1; + */ + Remove_Timestamp_Operator[Remove_Timestamp_Operator["Ne"] = 1] = "Ne"; + /** + * The timestamp is greater than or equal to the specified value in the request. + * + * @generated from protobuf enum value: Ge = 2; + */ + Remove_Timestamp_Operator[Remove_Timestamp_Operator["Ge"] = 2] = "Ge"; + /** + * The timestamp is greater than the specified value in the request. + * + * @generated from protobuf enum value: Gt = 3; + */ + Remove_Timestamp_Operator[Remove_Timestamp_Operator["Gt"] = 3] = "Gt"; + /** + * The timestamp is less than or equal to the specified value in the request. + * + * @generated from protobuf enum value: Le = 4; + */ + Remove_Timestamp_Operator[Remove_Timestamp_Operator["Le"] = 4] = "Le"; + /** + * The timestamp is less than the specified value in the request. + * + * @generated from protobuf enum value: Lt = 5; + */ + Remove_Timestamp_Operator[Remove_Timestamp_Operator["Lt"] = 5] = "Lt"; +})(Remove_Timestamp_Operator = exports.Remove_Timestamp_Operator || (exports.Remove_Timestamp_Operator = {})); +// @generated message type with reflection information, may provide speed optimized methods +class Search$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Search", []); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + return target ?? this.create(); + } + internalBinaryWrite(message, writer, options) { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Search + */ +exports.Search = new Search$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Search_Request$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Search.Request", [ + { no: 1, name: "vector", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.field": { repeated: { minItems: "2" } } } }, + { no: 2, name: "config", kind: "message", T: () => exports.Search_Config } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.vector = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated float vector */ 1: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.vector.push(reader.float()); + else + message.vector.push(reader.float()); + break; + case /* payload.v1.Search.Config config */ 2: + message.config = exports.Search_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated float vector = 1; */ + if (message.vector.length) { + writer.tag(1, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.vector.length; i++) + writer.float(message.vector[i]); + writer.join(); + } + /* payload.v1.Search.Config config = 2; */ + if (message.config) + exports.Search_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Search.Request + */ +exports.Search_Request = new Search_Request$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Search_MultiRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Search.MultiRequest", [ + { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Search_Request } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.requests = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Search.Request requests */ 1: + message.requests.push(exports.Search_Request.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Search.Request requests = 1; */ + for (let i = 0; i < message.requests.length; i++) + exports.Search_Request.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Search.MultiRequest + */ +exports.Search_MultiRequest = new Search_MultiRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Search_IDRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Search.IDRequest", [ + { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "config", kind: "message", T: () => exports.Search_Config } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.id = ""; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string id */ 1: + message.id = reader.string(); + break; + case /* payload.v1.Search.Config config */ 2: + message.config = exports.Search_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string id = 1; */ + if (message.id !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.id); + /* payload.v1.Search.Config config = 2; */ + if (message.config) + exports.Search_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Search.IDRequest + */ +exports.Search_IDRequest = new Search_IDRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Search_MultiIDRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Search.MultiIDRequest", [ + { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Search_IDRequest } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.requests = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Search.IDRequest requests */ 1: + message.requests.push(exports.Search_IDRequest.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Search.IDRequest requests = 1; */ + for (let i = 0; i < message.requests.length; i++) + exports.Search_IDRequest.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Search.MultiIDRequest + */ +exports.Search_MultiIDRequest = new Search_MultiIDRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Search_ObjectRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Search.ObjectRequest", [ + { no: 1, name: "object", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }, + { no: 2, name: "config", kind: "message", T: () => exports.Search_Config }, + { no: 3, name: "vectorizer", kind: "message", T: () => exports.Filter_Target } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.object = new Uint8Array(0); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* bytes object */ 1: + message.object = reader.bytes(); + break; + case /* payload.v1.Search.Config config */ 2: + message.config = exports.Search_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); + break; + case /* payload.v1.Filter.Target vectorizer */ 3: + message.vectorizer = exports.Filter_Target.internalBinaryRead(reader, reader.uint32(), options, message.vectorizer); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* bytes object = 1; */ + if (message.object.length) + writer.tag(1, runtime_1.WireType.LengthDelimited).bytes(message.object); + /* payload.v1.Search.Config config = 2; */ + if (message.config) + exports.Search_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Filter.Target vectorizer = 3; */ + if (message.vectorizer) + exports.Filter_Target.internalBinaryWrite(message.vectorizer, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Search.ObjectRequest + */ +exports.Search_ObjectRequest = new Search_ObjectRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Search_MultiObjectRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Search.MultiObjectRequest", [ + { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Search_ObjectRequest } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.requests = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Search.ObjectRequest requests */ 1: + message.requests.push(exports.Search_ObjectRequest.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Search.ObjectRequest requests = 1; */ + for (let i = 0; i < message.requests.length; i++) + exports.Search_ObjectRequest.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Search.MultiObjectRequest + */ +exports.Search_MultiObjectRequest = new Search_MultiObjectRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Search_Config$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Search.Config", [ + { no: 1, name: "request_id", kind: "scalar", localName: "request_id", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "num", kind: "scalar", T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.field": { uint32: { gte: 1 } } } }, + { no: 3, name: "radius", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ }, + { no: 4, name: "epsilon", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ }, + { no: 5, name: "timeout", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, + { no: 6, name: "ingress_filters", kind: "message", localName: "ingress_filters", T: () => exports.Filter_Config }, + { no: 7, name: "egress_filters", kind: "message", localName: "egress_filters", T: () => exports.Filter_Config }, + { no: 8, name: "min_num", kind: "scalar", localName: "min_num", T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.field": { uint32: { gte: 0 } } } }, + { no: 9, name: "aggregation_algorithm", kind: "enum", localName: "aggregation_algorithm", T: () => ["payload.v1.Search.AggregationAlgorithm", Search_AggregationAlgorithm] }, + { no: 10, name: "ratio", kind: "message", T: () => wrappers_pb_1.FloatValue } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.request_id = ""; + message.num = 0; + message.radius = 0; + message.epsilon = 0; + message.timeout = 0n; + message.min_num = 0; + message.aggregation_algorithm = 0; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string request_id */ 1: + message.request_id = reader.string(); + break; + case /* uint32 num */ 2: + message.num = reader.uint32(); + break; + case /* float radius */ 3: + message.radius = reader.float(); + break; + case /* float epsilon */ 4: + message.epsilon = reader.float(); + break; + case /* int64 timeout */ 5: + message.timeout = reader.int64().toBigInt(); + break; + case /* payload.v1.Filter.Config ingress_filters */ 6: + message.ingress_filters = exports.Filter_Config.internalBinaryRead(reader, reader.uint32(), options, message.ingress_filters); + break; + case /* payload.v1.Filter.Config egress_filters */ 7: + message.egress_filters = exports.Filter_Config.internalBinaryRead(reader, reader.uint32(), options, message.egress_filters); + break; + case /* uint32 min_num */ 8: + message.min_num = reader.uint32(); + break; + case /* payload.v1.Search.AggregationAlgorithm aggregation_algorithm */ 9: + message.aggregation_algorithm = reader.int32(); + break; + case /* google.protobuf.FloatValue ratio */ 10: + message.ratio = wrappers_pb_1.FloatValue.internalBinaryRead(reader, reader.uint32(), options, message.ratio); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string request_id = 1; */ + if (message.request_id !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.request_id); + /* uint32 num = 2; */ + if (message.num !== 0) + writer.tag(2, runtime_1.WireType.Varint).uint32(message.num); + /* float radius = 3; */ + if (message.radius !== 0) + writer.tag(3, runtime_1.WireType.Bit32).float(message.radius); + /* float epsilon = 4; */ + if (message.epsilon !== 0) + writer.tag(4, runtime_1.WireType.Bit32).float(message.epsilon); + /* int64 timeout = 5; */ + if (message.timeout !== 0n) + writer.tag(5, runtime_1.WireType.Varint).int64(message.timeout); + /* payload.v1.Filter.Config ingress_filters = 6; */ + if (message.ingress_filters) + exports.Filter_Config.internalBinaryWrite(message.ingress_filters, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Filter.Config egress_filters = 7; */ + if (message.egress_filters) + exports.Filter_Config.internalBinaryWrite(message.egress_filters, writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* uint32 min_num = 8; */ + if (message.min_num !== 0) + writer.tag(8, runtime_1.WireType.Varint).uint32(message.min_num); + /* payload.v1.Search.AggregationAlgorithm aggregation_algorithm = 9; */ + if (message.aggregation_algorithm !== 0) + writer.tag(9, runtime_1.WireType.Varint).int32(message.aggregation_algorithm); + /* google.protobuf.FloatValue ratio = 10; */ + if (message.ratio) + wrappers_pb_1.FloatValue.internalBinaryWrite(message.ratio, writer.tag(10, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Search.Config + */ +exports.Search_Config = new Search_Config$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Search_Response$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Search.Response", [ + { no: 1, name: "request_id", kind: "scalar", localName: "request_id", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "results", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Object_Distance } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.request_id = ""; + message.results = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string request_id */ 1: + message.request_id = reader.string(); + break; + case /* repeated payload.v1.Object.Distance results */ 2: + message.results.push(exports.Object_Distance.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string request_id = 1; */ + if (message.request_id !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.request_id); + /* repeated payload.v1.Object.Distance results = 2; */ + for (let i = 0; i < message.results.length; i++) + exports.Object_Distance.internalBinaryWrite(message.results[i], writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Search.Response + */ +exports.Search_Response = new Search_Response$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Search_Responses$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Search.Responses", [ + { no: 1, name: "responses", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Search_Response } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.responses = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Search.Response responses */ 1: + message.responses.push(exports.Search_Response.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Search.Response responses = 1; */ + for (let i = 0; i < message.responses.length; i++) + exports.Search_Response.internalBinaryWrite(message.responses[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Search.Responses + */ +exports.Search_Responses = new Search_Responses$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Search_StreamResponse$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Search.StreamResponse", [ + { no: 1, name: "response", kind: "message", oneof: "payload", T: () => exports.Search_Response }, + { no: 2, name: "status", kind: "message", oneof: "payload", T: () => status_pb_1.Status } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.payload = { oneofKind: undefined }; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* payload.v1.Search.Response response */ 1: + message.payload = { + oneofKind: "response", + response: exports.Search_Response.internalBinaryRead(reader, reader.uint32(), options, message.payload.response) + }; + break; + case /* google.rpc.Status status */ 2: + message.payload = { + oneofKind: "status", + status: status_pb_1.Status.internalBinaryRead(reader, reader.uint32(), options, message.payload.status) + }; + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* payload.v1.Search.Response response = 1; */ + if (message.payload.oneofKind === "response") + exports.Search_Response.internalBinaryWrite(message.payload.response, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* google.rpc.Status status = 2; */ + if (message.payload.oneofKind === "status") + status_pb_1.Status.internalBinaryWrite(message.payload.status, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Search.StreamResponse + */ +exports.Search_StreamResponse = new Search_StreamResponse$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Filter$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Filter", []); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + return target ?? this.create(); + } + internalBinaryWrite(message, writer, options) { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Filter + */ +exports.Filter = new Filter$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Filter_Target$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Filter.Target", [ + { no: 1, name: "host", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "port", kind: "scalar", T: 13 /*ScalarType.UINT32*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.host = ""; + message.port = 0; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string host */ 1: + message.host = reader.string(); + break; + case /* uint32 port */ 2: + message.port = reader.uint32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string host = 1; */ + if (message.host !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.host); + /* uint32 port = 2; */ + if (message.port !== 0) + writer.tag(2, runtime_1.WireType.Varint).uint32(message.port); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Filter.Target + */ +exports.Filter_Target = new Filter_Target$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Filter_Config$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Filter.Config", [ + { no: 1, name: "targets", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Filter_Target } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.targets = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Filter.Target targets */ 1: + message.targets.push(exports.Filter_Target.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Filter.Target targets = 1; */ + for (let i = 0; i < message.targets.length; i++) + exports.Filter_Target.internalBinaryWrite(message.targets[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Filter.Config + */ +exports.Filter_Config = new Filter_Config$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Insert$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Insert", []); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + return target ?? this.create(); + } + internalBinaryWrite(message, writer, options) { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Insert + */ +exports.Insert = new Insert$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Insert_Request$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Insert.Request", [ + { no: 1, name: "vector", kind: "message", T: () => exports.Object_Vector, options: { "buf.validate.field": { repeated: { minItems: "2" } } } }, + { no: 2, name: "config", kind: "message", T: () => exports.Insert_Config } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* payload.v1.Object.Vector vector */ 1: + message.vector = exports.Object_Vector.internalBinaryRead(reader, reader.uint32(), options, message.vector); + break; + case /* payload.v1.Insert.Config config */ 2: + message.config = exports.Insert_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* payload.v1.Object.Vector vector = 1; */ + if (message.vector) + exports.Object_Vector.internalBinaryWrite(message.vector, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Insert.Config config = 2; */ + if (message.config) + exports.Insert_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Insert.Request + */ +exports.Insert_Request = new Insert_Request$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Insert_MultiRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Insert.MultiRequest", [ + { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Insert_Request } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.requests = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Insert.Request requests */ 1: + message.requests.push(exports.Insert_Request.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Insert.Request requests = 1; */ + for (let i = 0; i < message.requests.length; i++) + exports.Insert_Request.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Insert.MultiRequest + */ +exports.Insert_MultiRequest = new Insert_MultiRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Insert_ObjectRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Insert.ObjectRequest", [ + { no: 1, name: "object", kind: "message", T: () => exports.Object_Blob }, + { no: 2, name: "config", kind: "message", T: () => exports.Insert_Config }, + { no: 3, name: "vectorizer", kind: "message", T: () => exports.Filter_Target } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* payload.v1.Object.Blob object */ 1: + message.object = exports.Object_Blob.internalBinaryRead(reader, reader.uint32(), options, message.object); + break; + case /* payload.v1.Insert.Config config */ 2: + message.config = exports.Insert_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); + break; + case /* payload.v1.Filter.Target vectorizer */ 3: + message.vectorizer = exports.Filter_Target.internalBinaryRead(reader, reader.uint32(), options, message.vectorizer); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* payload.v1.Object.Blob object = 1; */ + if (message.object) + exports.Object_Blob.internalBinaryWrite(message.object, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Insert.Config config = 2; */ + if (message.config) + exports.Insert_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Filter.Target vectorizer = 3; */ + if (message.vectorizer) + exports.Filter_Target.internalBinaryWrite(message.vectorizer, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Insert.ObjectRequest + */ +exports.Insert_ObjectRequest = new Insert_ObjectRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Insert_MultiObjectRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Insert.MultiObjectRequest", [ + { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Insert_ObjectRequest } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.requests = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Insert.ObjectRequest requests */ 1: + message.requests.push(exports.Insert_ObjectRequest.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Insert.ObjectRequest requests = 1; */ + for (let i = 0; i < message.requests.length; i++) + exports.Insert_ObjectRequest.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Insert.MultiObjectRequest + */ +exports.Insert_MultiObjectRequest = new Insert_MultiObjectRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Insert_Config$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Insert.Config", [ + { no: 1, name: "skip_strict_exist_check", kind: "scalar", localName: "skip_strict_exist_check", T: 8 /*ScalarType.BOOL*/ }, + { no: 2, name: "filters", kind: "message", T: () => exports.Filter_Config }, + { no: 3, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.skip_strict_exist_check = false; + message.timestamp = 0n; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* bool skip_strict_exist_check */ 1: + message.skip_strict_exist_check = reader.bool(); + break; + case /* payload.v1.Filter.Config filters */ 2: + message.filters = exports.Filter_Config.internalBinaryRead(reader, reader.uint32(), options, message.filters); + break; + case /* int64 timestamp */ 3: + message.timestamp = reader.int64().toBigInt(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* bool skip_strict_exist_check = 1; */ + if (message.skip_strict_exist_check !== false) + writer.tag(1, runtime_1.WireType.Varint).bool(message.skip_strict_exist_check); + /* payload.v1.Filter.Config filters = 2; */ + if (message.filters) + exports.Filter_Config.internalBinaryWrite(message.filters, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* int64 timestamp = 3; */ + if (message.timestamp !== 0n) + writer.tag(3, runtime_1.WireType.Varint).int64(message.timestamp); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Insert.Config + */ +exports.Insert_Config = new Insert_Config$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Update$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Update", []); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + return target ?? this.create(); + } + internalBinaryWrite(message, writer, options) { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Update + */ +exports.Update = new Update$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Update_Request$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Update.Request", [ + { no: 1, name: "vector", kind: "message", T: () => exports.Object_Vector, options: { "buf.validate.field": { repeated: { minItems: "2" } } } }, + { no: 2, name: "config", kind: "message", T: () => exports.Update_Config } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* payload.v1.Object.Vector vector */ 1: + message.vector = exports.Object_Vector.internalBinaryRead(reader, reader.uint32(), options, message.vector); + break; + case /* payload.v1.Update.Config config */ 2: + message.config = exports.Update_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* payload.v1.Object.Vector vector = 1; */ + if (message.vector) + exports.Object_Vector.internalBinaryWrite(message.vector, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Update.Config config = 2; */ + if (message.config) + exports.Update_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Update.Request + */ +exports.Update_Request = new Update_Request$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Update_MultiRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Update.MultiRequest", [ + { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Update_Request } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.requests = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Update.Request requests */ 1: + message.requests.push(exports.Update_Request.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Update.Request requests = 1; */ + for (let i = 0; i < message.requests.length; i++) + exports.Update_Request.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Update.MultiRequest + */ +exports.Update_MultiRequest = new Update_MultiRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Update_ObjectRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Update.ObjectRequest", [ + { no: 1, name: "object", kind: "message", T: () => exports.Object_Blob }, + { no: 2, name: "config", kind: "message", T: () => exports.Update_Config }, + { no: 3, name: "vectorizer", kind: "message", T: () => exports.Filter_Target } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* payload.v1.Object.Blob object */ 1: + message.object = exports.Object_Blob.internalBinaryRead(reader, reader.uint32(), options, message.object); + break; + case /* payload.v1.Update.Config config */ 2: + message.config = exports.Update_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); + break; + case /* payload.v1.Filter.Target vectorizer */ 3: + message.vectorizer = exports.Filter_Target.internalBinaryRead(reader, reader.uint32(), options, message.vectorizer); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* payload.v1.Object.Blob object = 1; */ + if (message.object) + exports.Object_Blob.internalBinaryWrite(message.object, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Update.Config config = 2; */ + if (message.config) + exports.Update_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Filter.Target vectorizer = 3; */ + if (message.vectorizer) + exports.Filter_Target.internalBinaryWrite(message.vectorizer, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Update.ObjectRequest + */ +exports.Update_ObjectRequest = new Update_ObjectRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Update_MultiObjectRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Update.MultiObjectRequest", [ + { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Update_ObjectRequest } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.requests = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Update.ObjectRequest requests */ 1: + message.requests.push(exports.Update_ObjectRequest.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Update.ObjectRequest requests = 1; */ + for (let i = 0; i < message.requests.length; i++) + exports.Update_ObjectRequest.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Update.MultiObjectRequest + */ +exports.Update_MultiObjectRequest = new Update_MultiObjectRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Update_Config$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Update.Config", [ + { no: 1, name: "skip_strict_exist_check", kind: "scalar", localName: "skip_strict_exist_check", T: 8 /*ScalarType.BOOL*/ }, + { no: 2, name: "filters", kind: "message", T: () => exports.Filter_Config }, + { no: 3, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, + { no: 4, name: "disable_balanced_update", kind: "scalar", localName: "disable_balanced_update", T: 8 /*ScalarType.BOOL*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.skip_strict_exist_check = false; + message.timestamp = 0n; + message.disable_balanced_update = false; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* bool skip_strict_exist_check */ 1: + message.skip_strict_exist_check = reader.bool(); + break; + case /* payload.v1.Filter.Config filters */ 2: + message.filters = exports.Filter_Config.internalBinaryRead(reader, reader.uint32(), options, message.filters); + break; + case /* int64 timestamp */ 3: + message.timestamp = reader.int64().toBigInt(); + break; + case /* bool disable_balanced_update */ 4: + message.disable_balanced_update = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* bool skip_strict_exist_check = 1; */ + if (message.skip_strict_exist_check !== false) + writer.tag(1, runtime_1.WireType.Varint).bool(message.skip_strict_exist_check); + /* payload.v1.Filter.Config filters = 2; */ + if (message.filters) + exports.Filter_Config.internalBinaryWrite(message.filters, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* int64 timestamp = 3; */ + if (message.timestamp !== 0n) + writer.tag(3, runtime_1.WireType.Varint).int64(message.timestamp); + /* bool disable_balanced_update = 4; */ + if (message.disable_balanced_update !== false) + writer.tag(4, runtime_1.WireType.Varint).bool(message.disable_balanced_update); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Update.Config + */ +exports.Update_Config = new Update_Config$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Upsert$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Upsert", []); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + return target ?? this.create(); + } + internalBinaryWrite(message, writer, options) { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Upsert + */ +exports.Upsert = new Upsert$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Upsert_Request$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Upsert.Request", [ + { no: 1, name: "vector", kind: "message", T: () => exports.Object_Vector, options: { "buf.validate.field": { repeated: { minItems: "2" } } } }, + { no: 2, name: "config", kind: "message", T: () => exports.Upsert_Config } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* payload.v1.Object.Vector vector */ 1: + message.vector = exports.Object_Vector.internalBinaryRead(reader, reader.uint32(), options, message.vector); + break; + case /* payload.v1.Upsert.Config config */ 2: + message.config = exports.Upsert_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* payload.v1.Object.Vector vector = 1; */ + if (message.vector) + exports.Object_Vector.internalBinaryWrite(message.vector, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Upsert.Config config = 2; */ + if (message.config) + exports.Upsert_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Upsert.Request + */ +exports.Upsert_Request = new Upsert_Request$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Upsert_MultiRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Upsert.MultiRequest", [ + { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Upsert_Request } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.requests = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Upsert.Request requests */ 1: + message.requests.push(exports.Upsert_Request.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Upsert.Request requests = 1; */ + for (let i = 0; i < message.requests.length; i++) + exports.Upsert_Request.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Upsert.MultiRequest + */ +exports.Upsert_MultiRequest = new Upsert_MultiRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Upsert_ObjectRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Upsert.ObjectRequest", [ + { no: 1, name: "object", kind: "message", T: () => exports.Object_Blob }, + { no: 2, name: "config", kind: "message", T: () => exports.Upsert_Config }, + { no: 3, name: "vectorizer", kind: "message", T: () => exports.Filter_Target } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* payload.v1.Object.Blob object */ 1: + message.object = exports.Object_Blob.internalBinaryRead(reader, reader.uint32(), options, message.object); + break; + case /* payload.v1.Upsert.Config config */ 2: + message.config = exports.Upsert_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); + break; + case /* payload.v1.Filter.Target vectorizer */ 3: + message.vectorizer = exports.Filter_Target.internalBinaryRead(reader, reader.uint32(), options, message.vectorizer); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* payload.v1.Object.Blob object = 1; */ + if (message.object) + exports.Object_Blob.internalBinaryWrite(message.object, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Upsert.Config config = 2; */ + if (message.config) + exports.Upsert_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Filter.Target vectorizer = 3; */ + if (message.vectorizer) + exports.Filter_Target.internalBinaryWrite(message.vectorizer, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Upsert.ObjectRequest + */ +exports.Upsert_ObjectRequest = new Upsert_ObjectRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Upsert_MultiObjectRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Upsert.MultiObjectRequest", [ + { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Upsert_ObjectRequest } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.requests = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Upsert.ObjectRequest requests */ 1: + message.requests.push(exports.Upsert_ObjectRequest.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Upsert.ObjectRequest requests = 1; */ + for (let i = 0; i < message.requests.length; i++) + exports.Upsert_ObjectRequest.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Upsert.MultiObjectRequest + */ +exports.Upsert_MultiObjectRequest = new Upsert_MultiObjectRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Upsert_Config$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Upsert.Config", [ + { no: 1, name: "skip_strict_exist_check", kind: "scalar", localName: "skip_strict_exist_check", T: 8 /*ScalarType.BOOL*/ }, + { no: 2, name: "filters", kind: "message", T: () => exports.Filter_Config }, + { no: 3, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, + { no: 4, name: "disable_balanced_update", kind: "scalar", localName: "disable_balanced_update", T: 8 /*ScalarType.BOOL*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.skip_strict_exist_check = false; + message.timestamp = 0n; + message.disable_balanced_update = false; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* bool skip_strict_exist_check */ 1: + message.skip_strict_exist_check = reader.bool(); + break; + case /* payload.v1.Filter.Config filters */ 2: + message.filters = exports.Filter_Config.internalBinaryRead(reader, reader.uint32(), options, message.filters); + break; + case /* int64 timestamp */ 3: + message.timestamp = reader.int64().toBigInt(); + break; + case /* bool disable_balanced_update */ 4: + message.disable_balanced_update = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* bool skip_strict_exist_check = 1; */ + if (message.skip_strict_exist_check !== false) + writer.tag(1, runtime_1.WireType.Varint).bool(message.skip_strict_exist_check); + /* payload.v1.Filter.Config filters = 2; */ + if (message.filters) + exports.Filter_Config.internalBinaryWrite(message.filters, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* int64 timestamp = 3; */ + if (message.timestamp !== 0n) + writer.tag(3, runtime_1.WireType.Varint).int64(message.timestamp); + /* bool disable_balanced_update = 4; */ + if (message.disable_balanced_update !== false) + writer.tag(4, runtime_1.WireType.Varint).bool(message.disable_balanced_update); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Upsert.Config + */ +exports.Upsert_Config = new Upsert_Config$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Remove$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Remove", []); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + return target ?? this.create(); + } + internalBinaryWrite(message, writer, options) { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Remove + */ +exports.Remove = new Remove$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Remove_Request$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Remove.Request", [ + { no: 1, name: "id", kind: "message", T: () => exports.Object_ID }, + { no: 2, name: "config", kind: "message", T: () => exports.Remove_Config } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* payload.v1.Object.ID id */ 1: + message.id = exports.Object_ID.internalBinaryRead(reader, reader.uint32(), options, message.id); + break; + case /* payload.v1.Remove.Config config */ 2: + message.config = exports.Remove_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* payload.v1.Object.ID id = 1; */ + if (message.id) + exports.Object_ID.internalBinaryWrite(message.id, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Remove.Config config = 2; */ + if (message.config) + exports.Remove_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Remove.Request + */ +exports.Remove_Request = new Remove_Request$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Remove_MultiRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Remove.MultiRequest", [ + { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Remove_Request } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.requests = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Remove.Request requests */ 1: + message.requests.push(exports.Remove_Request.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Remove.Request requests = 1; */ + for (let i = 0; i < message.requests.length; i++) + exports.Remove_Request.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Remove.MultiRequest + */ +exports.Remove_MultiRequest = new Remove_MultiRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Remove_TimestampRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Remove.TimestampRequest", [ + { no: 1, name: "timestamps", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Remove_Timestamp } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.timestamps = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Remove.Timestamp timestamps */ 1: + message.timestamps.push(exports.Remove_Timestamp.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Remove.Timestamp timestamps = 1; */ + for (let i = 0; i < message.timestamps.length; i++) + exports.Remove_Timestamp.internalBinaryWrite(message.timestamps[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Remove.TimestampRequest + */ +exports.Remove_TimestampRequest = new Remove_TimestampRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Remove_Timestamp$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Remove.Timestamp", [ + { no: 1, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, + { no: 2, name: "operator", kind: "enum", T: () => ["payload.v1.Remove.Timestamp.Operator", Remove_Timestamp_Operator] } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.timestamp = 0n; + message.operator = 0; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* int64 timestamp */ 1: + message.timestamp = reader.int64().toBigInt(); + break; + case /* payload.v1.Remove.Timestamp.Operator operator */ 2: + message.operator = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* int64 timestamp = 1; */ + if (message.timestamp !== 0n) + writer.tag(1, runtime_1.WireType.Varint).int64(message.timestamp); + /* payload.v1.Remove.Timestamp.Operator operator = 2; */ + if (message.operator !== 0) + writer.tag(2, runtime_1.WireType.Varint).int32(message.operator); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Remove.Timestamp + */ +exports.Remove_Timestamp = new Remove_Timestamp$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Remove_Config$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Remove.Config", [ + { no: 1, name: "skip_strict_exist_check", kind: "scalar", localName: "skip_strict_exist_check", T: 8 /*ScalarType.BOOL*/ }, + { no: 3, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.skip_strict_exist_check = false; + message.timestamp = 0n; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* bool skip_strict_exist_check */ 1: + message.skip_strict_exist_check = reader.bool(); + break; + case /* int64 timestamp */ 3: + message.timestamp = reader.int64().toBigInt(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* bool skip_strict_exist_check = 1; */ + if (message.skip_strict_exist_check !== false) + writer.tag(1, runtime_1.WireType.Varint).bool(message.skip_strict_exist_check); + /* int64 timestamp = 3; */ + if (message.timestamp !== 0n) + writer.tag(3, runtime_1.WireType.Varint).int64(message.timestamp); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Remove.Config + */ +exports.Remove_Config = new Remove_Config$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Flush$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Flush", []); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + return target ?? this.create(); + } + internalBinaryWrite(message, writer, options) { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Flush + */ +exports.Flush = new Flush$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Flush_Request$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Flush.Request", []); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + return target ?? this.create(); + } + internalBinaryWrite(message, writer, options) { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Flush.Request + */ +exports.Flush_Request = new Flush_Request$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object", []); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + return target ?? this.create(); + } + internalBinaryWrite(message, writer, options) { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object + */ +exports.Object = new Object$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_VectorRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.VectorRequest", [ + { no: 1, name: "id", kind: "message", T: () => exports.Object_ID, options: { "buf.validate.field": { repeated: { minItems: "2" } } } }, + { no: 2, name: "filters", kind: "message", T: () => exports.Filter_Config } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* payload.v1.Object.ID id */ 1: + message.id = exports.Object_ID.internalBinaryRead(reader, reader.uint32(), options, message.id); + break; + case /* payload.v1.Filter.Config filters */ 2: + message.filters = exports.Filter_Config.internalBinaryRead(reader, reader.uint32(), options, message.filters); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* payload.v1.Object.ID id = 1; */ + if (message.id) + exports.Object_ID.internalBinaryWrite(message.id, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Filter.Config filters = 2; */ + if (message.filters) + exports.Filter_Config.internalBinaryWrite(message.filters, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.VectorRequest + */ +exports.Object_VectorRequest = new Object_VectorRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_Distance$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.Distance", [ + { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "distance", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.id = ""; + message.distance = 0; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string id */ 1: + message.id = reader.string(); + break; + case /* float distance */ 2: + message.distance = reader.float(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string id = 1; */ + if (message.id !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.id); + /* float distance = 2; */ + if (message.distance !== 0) + writer.tag(2, runtime_1.WireType.Bit32).float(message.distance); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.Distance + */ +exports.Object_Distance = new Object_Distance$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_StreamDistance$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.StreamDistance", [ + { no: 1, name: "distance", kind: "message", oneof: "payload", T: () => exports.Object_Distance }, + { no: 2, name: "status", kind: "message", oneof: "payload", T: () => status_pb_1.Status } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.payload = { oneofKind: undefined }; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* payload.v1.Object.Distance distance */ 1: + message.payload = { + oneofKind: "distance", + distance: exports.Object_Distance.internalBinaryRead(reader, reader.uint32(), options, message.payload.distance) + }; + break; + case /* google.rpc.Status status */ 2: + message.payload = { + oneofKind: "status", + status: status_pb_1.Status.internalBinaryRead(reader, reader.uint32(), options, message.payload.status) + }; + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* payload.v1.Object.Distance distance = 1; */ + if (message.payload.oneofKind === "distance") + exports.Object_Distance.internalBinaryWrite(message.payload.distance, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* google.rpc.Status status = 2; */ + if (message.payload.oneofKind === "status") + status_pb_1.Status.internalBinaryWrite(message.payload.status, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.StreamDistance + */ +exports.Object_StreamDistance = new Object_StreamDistance$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_ID$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.ID", [ + { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1" } } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.id = ""; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string id */ 1: + message.id = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string id = 1; */ + if (message.id !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.id); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.ID + */ +exports.Object_ID = new Object_ID$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_IDs$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.IDs", [ + { no: 1, name: "ids", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.ids = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated string ids */ 1: + message.ids.push(reader.string()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated string ids = 1; */ + for (let i = 0; i < message.ids.length; i++) + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.ids[i]); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.IDs + */ +exports.Object_IDs = new Object_IDs$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_Vector$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.Vector", [ + { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1" } } } }, + { no: 2, name: "vector", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.field": { repeated: { minItems: "2" } } } }, + { no: 3, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.id = ""; + message.vector = []; + message.timestamp = 0n; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string id */ 1: + message.id = reader.string(); + break; + case /* repeated float vector */ 2: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.vector.push(reader.float()); + else + message.vector.push(reader.float()); + break; + case /* int64 timestamp */ 3: + message.timestamp = reader.int64().toBigInt(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string id = 1; */ + if (message.id !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.id); + /* repeated float vector = 2; */ + if (message.vector.length) { + writer.tag(2, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.vector.length; i++) + writer.float(message.vector[i]); + writer.join(); + } + /* int64 timestamp = 3; */ + if (message.timestamp !== 0n) + writer.tag(3, runtime_1.WireType.Varint).int64(message.timestamp); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.Vector + */ +exports.Object_Vector = new Object_Vector$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_GetTimestampRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.GetTimestampRequest", [ + { no: 1, name: "id", kind: "message", T: () => exports.Object_ID, options: { "buf.validate.field": { repeated: { minItems: "2" } } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* payload.v1.Object.ID id */ 1: + message.id = exports.Object_ID.internalBinaryRead(reader, reader.uint32(), options, message.id); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* payload.v1.Object.ID id = 1; */ + if (message.id) + exports.Object_ID.internalBinaryWrite(message.id, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.GetTimestampRequest + */ +exports.Object_GetTimestampRequest = new Object_GetTimestampRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_Timestamp$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.Timestamp", [ + { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1" } } } }, + { no: 2, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.id = ""; + message.timestamp = 0n; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string id */ 1: + message.id = reader.string(); + break; + case /* int64 timestamp */ 2: + message.timestamp = reader.int64().toBigInt(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string id = 1; */ + if (message.id !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.id); + /* int64 timestamp = 2; */ + if (message.timestamp !== 0n) + writer.tag(2, runtime_1.WireType.Varint).int64(message.timestamp); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.Timestamp + */ +exports.Object_Timestamp = new Object_Timestamp$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_Vectors$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.Vectors", [ + { no: 1, name: "vectors", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Object_Vector } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.vectors = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Object.Vector vectors */ 1: + message.vectors.push(exports.Object_Vector.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Object.Vector vectors = 1; */ + for (let i = 0; i < message.vectors.length; i++) + exports.Object_Vector.internalBinaryWrite(message.vectors[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.Vectors + */ +exports.Object_Vectors = new Object_Vectors$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_StreamVector$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.StreamVector", [ + { no: 1, name: "vector", kind: "message", oneof: "payload", T: () => exports.Object_Vector }, + { no: 2, name: "status", kind: "message", oneof: "payload", T: () => status_pb_1.Status } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.payload = { oneofKind: undefined }; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* payload.v1.Object.Vector vector */ 1: + message.payload = { + oneofKind: "vector", + vector: exports.Object_Vector.internalBinaryRead(reader, reader.uint32(), options, message.payload.vector) + }; + break; + case /* google.rpc.Status status */ 2: + message.payload = { + oneofKind: "status", + status: status_pb_1.Status.internalBinaryRead(reader, reader.uint32(), options, message.payload.status) + }; + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* payload.v1.Object.Vector vector = 1; */ + if (message.payload.oneofKind === "vector") + exports.Object_Vector.internalBinaryWrite(message.payload.vector, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* google.rpc.Status status = 2; */ + if (message.payload.oneofKind === "status") + status_pb_1.Status.internalBinaryWrite(message.payload.status, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.StreamVector + */ +exports.Object_StreamVector = new Object_StreamVector$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_ReshapeVector$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.ReshapeVector", [ + { no: 1, name: "object", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }, + { no: 2, name: "shape", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.object = new Uint8Array(0); + message.shape = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* bytes object */ 1: + message.object = reader.bytes(); + break; + case /* repeated int32 shape */ 2: + if (wireType === runtime_1.WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.shape.push(reader.int32()); + else + message.shape.push(reader.int32()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* bytes object = 1; */ + if (message.object.length) + writer.tag(1, runtime_1.WireType.LengthDelimited).bytes(message.object); + /* repeated int32 shape = 2; */ + if (message.shape.length) { + writer.tag(2, runtime_1.WireType.LengthDelimited).fork(); + for (let i = 0; i < message.shape.length; i++) + writer.int32(message.shape[i]); + writer.join(); + } + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.ReshapeVector + */ +exports.Object_ReshapeVector = new Object_ReshapeVector$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_Blob$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.Blob", [ + { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1" } } } }, + { no: 2, name: "object", kind: "scalar", T: 12 /*ScalarType.BYTES*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.id = ""; + message.object = new Uint8Array(0); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string id */ 1: + message.id = reader.string(); + break; + case /* bytes object */ 2: + message.object = reader.bytes(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string id = 1; */ + if (message.id !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.id); + /* bytes object = 2; */ + if (message.object.length) + writer.tag(2, runtime_1.WireType.LengthDelimited).bytes(message.object); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.Blob + */ +exports.Object_Blob = new Object_Blob$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_StreamBlob$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.StreamBlob", [ + { no: 1, name: "blob", kind: "message", oneof: "payload", T: () => exports.Object_Blob }, + { no: 2, name: "status", kind: "message", oneof: "payload", T: () => status_pb_1.Status } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.payload = { oneofKind: undefined }; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* payload.v1.Object.Blob blob */ 1: + message.payload = { + oneofKind: "blob", + blob: exports.Object_Blob.internalBinaryRead(reader, reader.uint32(), options, message.payload.blob) + }; + break; + case /* google.rpc.Status status */ 2: + message.payload = { + oneofKind: "status", + status: status_pb_1.Status.internalBinaryRead(reader, reader.uint32(), options, message.payload.status) + }; + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* payload.v1.Object.Blob blob = 1; */ + if (message.payload.oneofKind === "blob") + exports.Object_Blob.internalBinaryWrite(message.payload.blob, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* google.rpc.Status status = 2; */ + if (message.payload.oneofKind === "status") + status_pb_1.Status.internalBinaryWrite(message.payload.status, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.StreamBlob + */ +exports.Object_StreamBlob = new Object_StreamBlob$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_Location$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.Location", [ + { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "uuid", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "ips", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.name = ""; + message.uuid = ""; + message.ips = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string name */ 1: + message.name = reader.string(); + break; + case /* string uuid */ 2: + message.uuid = reader.string(); + break; + case /* repeated string ips */ 3: + message.ips.push(reader.string()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string name = 1; */ + if (message.name !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); + /* string uuid = 2; */ + if (message.uuid !== "") + writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.uuid); + /* repeated string ips = 3; */ + for (let i = 0; i < message.ips.length; i++) + writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.ips[i]); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.Location + */ +exports.Object_Location = new Object_Location$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_StreamLocation$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.StreamLocation", [ + { no: 1, name: "location", kind: "message", oneof: "payload", T: () => exports.Object_Location }, + { no: 2, name: "status", kind: "message", oneof: "payload", T: () => status_pb_1.Status } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.payload = { oneofKind: undefined }; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* payload.v1.Object.Location location */ 1: + message.payload = { + oneofKind: "location", + location: exports.Object_Location.internalBinaryRead(reader, reader.uint32(), options, message.payload.location) + }; + break; + case /* google.rpc.Status status */ 2: + message.payload = { + oneofKind: "status", + status: status_pb_1.Status.internalBinaryRead(reader, reader.uint32(), options, message.payload.status) + }; + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* payload.v1.Object.Location location = 1; */ + if (message.payload.oneofKind === "location") + exports.Object_Location.internalBinaryWrite(message.payload.location, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* google.rpc.Status status = 2; */ + if (message.payload.oneofKind === "status") + status_pb_1.Status.internalBinaryWrite(message.payload.status, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.StreamLocation + */ +exports.Object_StreamLocation = new Object_StreamLocation$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_Locations$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.Locations", [ + { no: 1, name: "locations", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Object_Location } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.locations = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Object.Location locations */ 1: + message.locations.push(exports.Object_Location.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Object.Location locations = 1; */ + for (let i = 0; i < message.locations.length; i++) + exports.Object_Location.internalBinaryWrite(message.locations[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.Locations + */ +exports.Object_Locations = new Object_Locations$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_List$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.List", []); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + return target ?? this.create(); + } + internalBinaryWrite(message, writer, options) { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.List + */ +exports.Object_List = new Object_List$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_List_Request$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.List.Request", []); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + return target ?? this.create(); + } + internalBinaryWrite(message, writer, options) { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.List.Request + */ +exports.Object_List_Request = new Object_List_Request$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Object_List_Response$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Object.List.Response", [ + { no: 1, name: "vector", kind: "message", oneof: "payload", T: () => exports.Object_Vector }, + { no: 2, name: "status", kind: "message", oneof: "payload", T: () => status_pb_1.Status } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.payload = { oneofKind: undefined }; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* payload.v1.Object.Vector vector */ 1: + message.payload = { + oneofKind: "vector", + vector: exports.Object_Vector.internalBinaryRead(reader, reader.uint32(), options, message.payload.vector) + }; + break; + case /* google.rpc.Status status */ 2: + message.payload = { + oneofKind: "status", + status: status_pb_1.Status.internalBinaryRead(reader, reader.uint32(), options, message.payload.status) + }; + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* payload.v1.Object.Vector vector = 1; */ + if (message.payload.oneofKind === "vector") + exports.Object_Vector.internalBinaryWrite(message.payload.vector, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* google.rpc.Status status = 2; */ + if (message.payload.oneofKind === "status") + status_pb_1.Status.internalBinaryWrite(message.payload.status, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Object.List.Response + */ +exports.Object_List_Response = new Object_List_Response$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Control$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Control", []); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + return target ?? this.create(); + } + internalBinaryWrite(message, writer, options) { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Control + */ +exports.Control = new Control$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Control_CreateIndexRequest$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Control.CreateIndexRequest", [ + { no: 1, name: "pool_size", kind: "scalar", localName: "pool_size", T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.field": { uint32: { gte: 0 } } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.pool_size = 0; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* uint32 pool_size */ 1: + message.pool_size = reader.uint32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* uint32 pool_size = 1; */ + if (message.pool_size !== 0) + writer.tag(1, runtime_1.WireType.Varint).uint32(message.pool_size); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Control.CreateIndexRequest + */ +exports.Control_CreateIndexRequest = new Control_CreateIndexRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Discoverer$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Discoverer", []); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + return target ?? this.create(); + } + internalBinaryWrite(message, writer, options) { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Discoverer + */ +exports.Discoverer = new Discoverer$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Discoverer_Request$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Discoverer.Request", [ + { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1" } } } }, + { no: 2, name: "namespace", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "node", kind: "scalar", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.name = ""; + message.namespace = ""; + message.node = ""; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string name */ 1: + message.name = reader.string(); + break; + case /* string namespace */ 2: + message.namespace = reader.string(); + break; + case /* string node */ 3: + message.node = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string name = 1; */ + if (message.name !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); + /* string namespace = 2; */ + if (message.namespace !== "") + writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.namespace); + /* string node = 3; */ + if (message.node !== "") + writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.node); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Discoverer.Request + */ +exports.Discoverer_Request = new Discoverer_Request$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Info$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Info", []); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + return target ?? this.create(); + } + internalBinaryWrite(message, writer, options) { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Info + */ +exports.Info = new Info$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Info_Index$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Info.Index", []); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + return target ?? this.create(); + } + internalBinaryWrite(message, writer, options) { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Index + */ +exports.Info_Index = new Info_Index$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Info_Index_Count$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Info.Index.Count", [ + { no: 1, name: "stored", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }, + { no: 2, name: "uncommitted", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }, + { no: 3, name: "indexing", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, + { no: 4, name: "saving", kind: "scalar", T: 8 /*ScalarType.BOOL*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.stored = 0; + message.uncommitted = 0; + message.indexing = false; + message.saving = false; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* uint32 stored */ 1: + message.stored = reader.uint32(); + break; + case /* uint32 uncommitted */ 2: + message.uncommitted = reader.uint32(); + break; + case /* bool indexing */ 3: + message.indexing = reader.bool(); + break; + case /* bool saving */ 4: + message.saving = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* uint32 stored = 1; */ + if (message.stored !== 0) + writer.tag(1, runtime_1.WireType.Varint).uint32(message.stored); + /* uint32 uncommitted = 2; */ + if (message.uncommitted !== 0) + writer.tag(2, runtime_1.WireType.Varint).uint32(message.uncommitted); + /* bool indexing = 3; */ + if (message.indexing !== false) + writer.tag(3, runtime_1.WireType.Varint).bool(message.indexing); + /* bool saving = 4; */ + if (message.saving !== false) + writer.tag(4, runtime_1.WireType.Varint).bool(message.saving); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Index.Count + */ +exports.Info_Index_Count = new Info_Index_Count$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Info_Index_UUID$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Info.Index.UUID", []); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + return target ?? this.create(); + } + internalBinaryWrite(message, writer, options) { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Index.UUID + */ +exports.Info_Index_UUID = new Info_Index_UUID$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Info_Index_UUID_Committed$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Info.Index.UUID.Committed", [ + { no: 1, name: "uuid", kind: "scalar", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.uuid = ""; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string uuid */ 1: + message.uuid = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string uuid = 1; */ + if (message.uuid !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.uuid); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Index.UUID.Committed + */ +exports.Info_Index_UUID_Committed = new Info_Index_UUID_Committed$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Info_Index_UUID_Uncommitted$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Info.Index.UUID.Uncommitted", [ + { no: 1, name: "uuid", kind: "scalar", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.uuid = ""; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string uuid */ 1: + message.uuid = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string uuid = 1; */ + if (message.uuid !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.uuid); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Index.UUID.Uncommitted + */ +exports.Info_Index_UUID_Uncommitted = new Info_Index_UUID_Uncommitted$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Info_Pod$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Info.Pod", [ + { no: 1, name: "app_name", kind: "scalar", localName: "app_name", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "namespace", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 4, name: "ip", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { ipv4: true } } } }, + { no: 5, name: "cpu", kind: "message", T: () => exports.Info_CPU }, + { no: 6, name: "memory", kind: "message", T: () => exports.Info_Memory }, + { no: 7, name: "node", kind: "message", T: () => exports.Info_Node } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.app_name = ""; + message.name = ""; + message.namespace = ""; + message.ip = ""; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string app_name */ 1: + message.app_name = reader.string(); + break; + case /* string name */ 2: + message.name = reader.string(); + break; + case /* string namespace */ 3: + message.namespace = reader.string(); + break; + case /* string ip */ 4: + message.ip = reader.string(); + break; + case /* payload.v1.Info.CPU cpu */ 5: + message.cpu = exports.Info_CPU.internalBinaryRead(reader, reader.uint32(), options, message.cpu); + break; + case /* payload.v1.Info.Memory memory */ 6: + message.memory = exports.Info_Memory.internalBinaryRead(reader, reader.uint32(), options, message.memory); + break; + case /* payload.v1.Info.Node node */ 7: + message.node = exports.Info_Node.internalBinaryRead(reader, reader.uint32(), options, message.node); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string app_name = 1; */ + if (message.app_name !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.app_name); + /* string name = 2; */ + if (message.name !== "") + writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.name); + /* string namespace = 3; */ + if (message.namespace !== "") + writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.namespace); + /* string ip = 4; */ + if (message.ip !== "") + writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.ip); + /* payload.v1.Info.CPU cpu = 5; */ + if (message.cpu) + exports.Info_CPU.internalBinaryWrite(message.cpu, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Info.Memory memory = 6; */ + if (message.memory) + exports.Info_Memory.internalBinaryWrite(message.memory, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Info.Node node = 7; */ + if (message.node) + exports.Info_Node.internalBinaryWrite(message.node, writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Pod + */ +exports.Info_Pod = new Info_Pod$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Info_Node$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Info.Node", [ + { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "internal_addr", kind: "scalar", localName: "internal_addr", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "external_addr", kind: "scalar", localName: "external_addr", T: 9 /*ScalarType.STRING*/ }, + { no: 4, name: "cpu", kind: "message", T: () => exports.Info_CPU }, + { no: 5, name: "memory", kind: "message", T: () => exports.Info_Memory }, + { no: 6, name: "Pods", kind: "message", localName: "Pods", jsonName: "Pods", T: () => exports.Info_Pods } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.name = ""; + message.internal_addr = ""; + message.external_addr = ""; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string name */ 1: + message.name = reader.string(); + break; + case /* string internal_addr */ 2: + message.internal_addr = reader.string(); + break; + case /* string external_addr */ 3: + message.external_addr = reader.string(); + break; + case /* payload.v1.Info.CPU cpu */ 4: + message.cpu = exports.Info_CPU.internalBinaryRead(reader, reader.uint32(), options, message.cpu); + break; + case /* payload.v1.Info.Memory memory */ 5: + message.memory = exports.Info_Memory.internalBinaryRead(reader, reader.uint32(), options, message.memory); + break; + case /* payload.v1.Info.Pods Pods = 6 [json_name = "Pods"];*/ 6: + message.Pods = exports.Info_Pods.internalBinaryRead(reader, reader.uint32(), options, message.Pods); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string name = 1; */ + if (message.name !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); + /* string internal_addr = 2; */ + if (message.internal_addr !== "") + writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.internal_addr); + /* string external_addr = 3; */ + if (message.external_addr !== "") + writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.external_addr); + /* payload.v1.Info.CPU cpu = 4; */ + if (message.cpu) + exports.Info_CPU.internalBinaryWrite(message.cpu, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Info.Memory memory = 5; */ + if (message.memory) + exports.Info_Memory.internalBinaryWrite(message.memory, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; */ + if (message.Pods) + exports.Info_Pods.internalBinaryWrite(message.Pods, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Node + */ +exports.Info_Node = new Info_Node$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Info_Service$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Info.Service", [ + { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "cluster_ip", kind: "scalar", localName: "cluster_ip", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "cluster_ips", kind: "scalar", localName: "cluster_ips", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 4, name: "ports", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Info_ServicePort }, + { no: 5, name: "labels", kind: "message", T: () => exports.Info_Labels }, + { no: 6, name: "annotations", kind: "message", T: () => exports.Info_Annotations } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.name = ""; + message.cluster_ip = ""; + message.cluster_ips = []; + message.ports = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string name */ 1: + message.name = reader.string(); + break; + case /* string cluster_ip */ 2: + message.cluster_ip = reader.string(); + break; + case /* repeated string cluster_ips */ 3: + message.cluster_ips.push(reader.string()); + break; + case /* repeated payload.v1.Info.ServicePort ports */ 4: + message.ports.push(exports.Info_ServicePort.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* payload.v1.Info.Labels labels */ 5: + message.labels = exports.Info_Labels.internalBinaryRead(reader, reader.uint32(), options, message.labels); + break; + case /* payload.v1.Info.Annotations annotations */ 6: + message.annotations = exports.Info_Annotations.internalBinaryRead(reader, reader.uint32(), options, message.annotations); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string name = 1; */ + if (message.name !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); + /* string cluster_ip = 2; */ + if (message.cluster_ip !== "") + writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.cluster_ip); + /* repeated string cluster_ips = 3; */ + for (let i = 0; i < message.cluster_ips.length; i++) + writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.cluster_ips[i]); + /* repeated payload.v1.Info.ServicePort ports = 4; */ + for (let i = 0; i < message.ports.length; i++) + exports.Info_ServicePort.internalBinaryWrite(message.ports[i], writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Info.Labels labels = 5; */ + if (message.labels) + exports.Info_Labels.internalBinaryWrite(message.labels, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); + /* payload.v1.Info.Annotations annotations = 6; */ + if (message.annotations) + exports.Info_Annotations.internalBinaryWrite(message.annotations, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Service + */ +exports.Info_Service = new Info_Service$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Info_ServicePort$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Info.ServicePort", [ + { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "port", kind: "scalar", T: 5 /*ScalarType.INT32*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.name = ""; + message.port = 0; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string name */ 1: + message.name = reader.string(); + break; + case /* int32 port */ 2: + message.port = reader.int32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string name = 1; */ + if (message.name !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); + /* int32 port = 2; */ + if (message.port !== 0) + writer.tag(2, runtime_1.WireType.Varint).int32(message.port); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Info.ServicePort + */ +exports.Info_ServicePort = new Info_ServicePort$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Info_Labels$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Info.Labels", [ + { no: 1, name: "labels", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.labels = {}; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* map labels */ 1: + this.binaryReadMap1(message.labels, reader, options); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + binaryReadMap1(map, reader, options) { + let len = reader.uint32(), end = reader.pos + len, key, val; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case 1: + key = reader.string(); + break; + case 2: + val = reader.string(); + break; + default: throw new globalThis.Error("unknown map entry field for field payload.v1.Info.Labels.labels"); + } + } + map[key ?? ""] = val ?? ""; + } + internalBinaryWrite(message, writer, options) { + /* map labels = 1; */ + for (let k of globalThis.Object.keys(message.labels)) + writer.tag(1, runtime_1.WireType.LengthDelimited).fork().tag(1, runtime_1.WireType.LengthDelimited).string(k).tag(2, runtime_1.WireType.LengthDelimited).string(message.labels[k]).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Labels + */ +exports.Info_Labels = new Info_Labels$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Info_Annotations$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Info.Annotations", [ + { no: 1, name: "annotations", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.annotations = {}; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* map annotations */ 1: + this.binaryReadMap1(message.annotations, reader, options); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + binaryReadMap1(map, reader, options) { + let len = reader.uint32(), end = reader.pos + len, key, val; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case 1: + key = reader.string(); + break; + case 2: + val = reader.string(); + break; + default: throw new globalThis.Error("unknown map entry field for field payload.v1.Info.Annotations.annotations"); + } + } + map[key ?? ""] = val ?? ""; + } + internalBinaryWrite(message, writer, options) { + /* map annotations = 1; */ + for (let k of globalThis.Object.keys(message.annotations)) + writer.tag(1, runtime_1.WireType.LengthDelimited).fork().tag(1, runtime_1.WireType.LengthDelimited).string(k).tag(2, runtime_1.WireType.LengthDelimited).string(message.annotations[k]).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Annotations + */ +exports.Info_Annotations = new Info_Annotations$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Info_CPU$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Info.CPU", [ + { no: 1, name: "limit", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }, + { no: 2, name: "request", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }, + { no: 3, name: "usage", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.limit = 0; + message.request = 0; + message.usage = 0; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* double limit */ 1: + message.limit = reader.double(); + break; + case /* double request */ 2: + message.request = reader.double(); + break; + case /* double usage */ 3: + message.usage = reader.double(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* double limit = 1; */ + if (message.limit !== 0) + writer.tag(1, runtime_1.WireType.Bit64).double(message.limit); + /* double request = 2; */ + if (message.request !== 0) + writer.tag(2, runtime_1.WireType.Bit64).double(message.request); + /* double usage = 3; */ + if (message.usage !== 0) + writer.tag(3, runtime_1.WireType.Bit64).double(message.usage); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Info.CPU + */ +exports.Info_CPU = new Info_CPU$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Info_Memory$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Info.Memory", [ + { no: 1, name: "limit", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }, + { no: 2, name: "request", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }, + { no: 3, name: "usage", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.limit = 0; + message.request = 0; + message.usage = 0; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* double limit */ 1: + message.limit = reader.double(); + break; + case /* double request */ 2: + message.request = reader.double(); + break; + case /* double usage */ 3: + message.usage = reader.double(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* double limit = 1; */ + if (message.limit !== 0) + writer.tag(1, runtime_1.WireType.Bit64).double(message.limit); + /* double request = 2; */ + if (message.request !== 0) + writer.tag(2, runtime_1.WireType.Bit64).double(message.request); + /* double usage = 3; */ + if (message.usage !== 0) + writer.tag(3, runtime_1.WireType.Bit64).double(message.usage); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Memory + */ +exports.Info_Memory = new Info_Memory$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Info_Pods$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Info.Pods", [ + { no: 1, name: "pods", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Info_Pod, options: { "buf.validate.field": { repeated: { minItems: "1" } } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.pods = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Info.Pod pods */ 1: + message.pods.push(exports.Info_Pod.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Info.Pod pods = 1; */ + for (let i = 0; i < message.pods.length; i++) + exports.Info_Pod.internalBinaryWrite(message.pods[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Pods + */ +exports.Info_Pods = new Info_Pods$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Info_Nodes$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Info.Nodes", [ + { no: 1, name: "nodes", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Info_Node, options: { "buf.validate.field": { repeated: { minItems: "1" } } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.nodes = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Info.Node nodes */ 1: + message.nodes.push(exports.Info_Node.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Info.Node nodes = 1; */ + for (let i = 0; i < message.nodes.length; i++) + exports.Info_Node.internalBinaryWrite(message.nodes[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Nodes + */ +exports.Info_Nodes = new Info_Nodes$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Info_Services$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Info.Services", [ + { no: 1, name: "services", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Info_Service, options: { "buf.validate.field": { repeated: { minItems: "1" } } } } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.services = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Info.Service services */ 1: + message.services.push(exports.Info_Service.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Info.Service services = 1; */ + for (let i = 0; i < message.services.length; i++) + exports.Info_Service.internalBinaryWrite(message.services[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Info.Services + */ +exports.Info_Services = new Info_Services$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Info_IPs$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Info.IPs", [ + { no: 1, name: "ip", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.ip = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated string ip */ 1: + message.ip.push(reader.string()); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated string ip = 1; */ + for (let i = 0; i < message.ip.length; i++) + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.ip[i]); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Info.IPs + */ +exports.Info_IPs = new Info_IPs$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Mirror$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Mirror", []); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + return target ?? this.create(); + } + internalBinaryWrite(message, writer, options) { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Mirror + */ +exports.Mirror = new Mirror$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Mirror_Target$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Mirror.Target", [ + { no: 1, name: "host", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "port", kind: "scalar", T: 13 /*ScalarType.UINT32*/ } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.host = ""; + message.port = 0; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string host */ 1: + message.host = reader.string(); + break; + case /* uint32 port */ 2: + message.port = reader.uint32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* string host = 1; */ + if (message.host !== "") + writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.host); + /* uint32 port = 2; */ + if (message.port !== 0) + writer.tag(2, runtime_1.WireType.Varint).uint32(message.port); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Mirror.Target + */ +exports.Mirror_Target = new Mirror_Target$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Mirror_Targets$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Mirror.Targets", [ + { no: 1, name: "targets", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Mirror_Target } + ]); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + message.targets = []; + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated payload.v1.Mirror.Target targets */ 1: + message.targets.push(exports.Mirror_Target.internalBinaryRead(reader, reader.uint32(), options)); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message, writer, options) { + /* repeated payload.v1.Mirror.Target targets = 1; */ + for (let i = 0; i < message.targets.length; i++) + exports.Mirror_Target.internalBinaryWrite(message.targets[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Mirror.Targets + */ +exports.Mirror_Targets = new Mirror_Targets$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class Empty$Type extends runtime_4.MessageType { + constructor() { + super("payload.v1.Empty", []); + } + create(value) { + const message = globalThis.Object.create((this.messagePrototype)); + if (value !== undefined) + runtime_3.reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader, length, options, target) { + return target ?? this.create(); + } + internalBinaryWrite(message, writer, options) { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message payload.v1.Empty + */ +exports.Empty = new Empty$Type(); diff --git a/src/vald/v1/vald/filter_pb.d.ts b/src/vald/v1/vald/filter_pb.d.ts new file mode 100644 index 00000000..a0479a2b --- /dev/null +++ b/src/vald/v1/vald/filter_pb.d.ts @@ -0,0 +1,26 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/filter.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +/** + * @generated ServiceType for protobuf service vald.v1.Filter + */ +export declare const Filter: any; diff --git a/src/vald/v1/vald/filter_pb.grpc-client.d.ts b/src/vald/v1/vald/filter_pb.grpc-client.d.ts new file mode 100644 index 00000000..8f13279d --- /dev/null +++ b/src/vald/v1/vald/filter_pb.grpc-client.d.ts @@ -0,0 +1,227 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/filter.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { Upsert_MultiObjectRequest } from "../payload/payload_pb"; +import type { Upsert_ObjectRequest } from "../payload/payload_pb"; +import type { Update_MultiObjectRequest } from "../payload/payload_pb"; +import type { Update_ObjectRequest } from "../payload/payload_pb"; +import type { Object_Locations } from "../payload/payload_pb"; +import type { Insert_MultiObjectRequest } from "../payload/payload_pb"; +import type { Object_StreamLocation } from "../payload/payload_pb"; +import type { Object_Location } from "../payload/payload_pb"; +import type { Insert_ObjectRequest } from "../payload/payload_pb"; +import type { Search_StreamResponse } from "../payload/payload_pb"; +import type { Search_Responses } from "../payload/payload_pb"; +import type { Search_MultiObjectRequest } from "../payload/payload_pb"; +import type { Search_Response } from "../payload/payload_pb"; +import type { Search_ObjectRequest } from "../payload/payload_pb"; +import * as grpc from "@grpc/grpc-js"; +/** + * Filter service provides ways to connect to Vald through filter. + * + * @generated from protobuf service vald.v1.Filter + */ +export interface IFilterClient { + /** + * A method to search object. + * + * @generated from protobuf rpc: SearchObject(payload.v1.Search.ObjectRequest) returns (payload.v1.Search.Response); + */ + searchObject(input: Search_ObjectRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + searchObject(input: Search_ObjectRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + searchObject(input: Search_ObjectRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + searchObject(input: Search_ObjectRequest, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + /** + * A method to search multiple objects. + * + * @generated from protobuf rpc: MultiSearchObject(payload.v1.Search.MultiObjectRequest) returns (payload.v1.Search.Responses); + */ + multiSearchObject(input: Search_MultiObjectRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + multiSearchObject(input: Search_MultiObjectRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + multiSearchObject(input: Search_MultiObjectRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + multiSearchObject(input: Search_MultiObjectRequest, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + /** + * A method to search object by bidirectional streaming. + * + * @generated from protobuf rpc: StreamSearchObject(stream payload.v1.Search.ObjectRequest) returns (stream payload.v1.Search.StreamResponse); + */ + streamSearchObject(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; + streamSearchObject(options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method insert object. + * + * @generated from protobuf rpc: InsertObject(payload.v1.Insert.ObjectRequest) returns (payload.v1.Object.Location); + */ + insertObject(input: Insert_ObjectRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + insertObject(input: Insert_ObjectRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + insertObject(input: Insert_ObjectRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + insertObject(input: Insert_ObjectRequest, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + /** + * Represent the streaming RPC to insert object by bidirectional streaming. + * + * @generated from protobuf rpc: StreamInsertObject(stream payload.v1.Insert.ObjectRequest) returns (stream payload.v1.Object.StreamLocation); + */ + streamInsertObject(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; + streamInsertObject(options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to insert multiple objects. + * + * @generated from protobuf rpc: MultiInsertObject(payload.v1.Insert.MultiObjectRequest) returns (payload.v1.Object.Locations); + */ + multiInsertObject(input: Insert_MultiObjectRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiInsertObject(input: Insert_MultiObjectRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiInsertObject(input: Insert_MultiObjectRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiInsertObject(input: Insert_MultiObjectRequest, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + /** + * A method to update object. + * + * @generated from protobuf rpc: UpdateObject(payload.v1.Update.ObjectRequest) returns (payload.v1.Object.Location); + */ + updateObject(input: Update_ObjectRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + updateObject(input: Update_ObjectRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + updateObject(input: Update_ObjectRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + updateObject(input: Update_ObjectRequest, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + /** + * A method to update object by bidirectional streaming. + * + * @generated from protobuf rpc: StreamUpdateObject(stream payload.v1.Update.ObjectRequest) returns (stream payload.v1.Object.StreamLocation); + */ + streamUpdateObject(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; + streamUpdateObject(options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to update multiple objects. + * + * @generated from protobuf rpc: MultiUpdateObject(payload.v1.Update.MultiObjectRequest) returns (payload.v1.Object.Locations); + */ + multiUpdateObject(input: Update_MultiObjectRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiUpdateObject(input: Update_MultiObjectRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiUpdateObject(input: Update_MultiObjectRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiUpdateObject(input: Update_MultiObjectRequest, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + /** + * A method to upsert object. + * + * @generated from protobuf rpc: UpsertObject(payload.v1.Upsert.ObjectRequest) returns (payload.v1.Object.Location); + */ + upsertObject(input: Upsert_ObjectRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + upsertObject(input: Upsert_ObjectRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + upsertObject(input: Upsert_ObjectRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + upsertObject(input: Upsert_ObjectRequest, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + /** + * A method to upsert object by bidirectional streaming. + * + * @generated from protobuf rpc: StreamUpsertObject(stream payload.v1.Upsert.ObjectRequest) returns (stream payload.v1.Object.StreamLocation); + */ + streamUpsertObject(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; + streamUpsertObject(options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to upsert multiple objects. + * + * @generated from protobuf rpc: MultiUpsertObject(payload.v1.Upsert.MultiObjectRequest) returns (payload.v1.Object.Locations); + */ + multiUpsertObject(input: Upsert_MultiObjectRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiUpsertObject(input: Upsert_MultiObjectRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiUpsertObject(input: Upsert_MultiObjectRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiUpsertObject(input: Upsert_MultiObjectRequest, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; +} +/** + * Filter service provides ways to connect to Vald through filter. + * + * @generated from protobuf service vald.v1.Filter + */ +export declare class FilterClient extends grpc.Client implements IFilterClient { + private readonly _binaryOptions; + constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial); + /** + * A method to search object. + * + * @generated from protobuf rpc: SearchObject(payload.v1.Search.ObjectRequest) returns (payload.v1.Search.Response); + */ + searchObject(input: Search_ObjectRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Response) => void)): grpc.ClientUnaryCall; + /** + * A method to search multiple objects. + * + * @generated from protobuf rpc: MultiSearchObject(payload.v1.Search.MultiObjectRequest) returns (payload.v1.Search.Responses); + */ + multiSearchObject(input: Search_MultiObjectRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Responses) => void)): grpc.ClientUnaryCall; + /** + * A method to search object by bidirectional streaming. + * + * @generated from protobuf rpc: StreamSearchObject(stream payload.v1.Search.ObjectRequest) returns (stream payload.v1.Search.StreamResponse); + */ + streamSearchObject(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method insert object. + * + * @generated from protobuf rpc: InsertObject(payload.v1.Insert.ObjectRequest) returns (payload.v1.Object.Location); + */ + insertObject(input: Insert_ObjectRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Location) => void)): grpc.ClientUnaryCall; + /** + * Represent the streaming RPC to insert object by bidirectional streaming. + * + * @generated from protobuf rpc: StreamInsertObject(stream payload.v1.Insert.ObjectRequest) returns (stream payload.v1.Object.StreamLocation); + */ + streamInsertObject(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to insert multiple objects. + * + * @generated from protobuf rpc: MultiInsertObject(payload.v1.Insert.MultiObjectRequest) returns (payload.v1.Object.Locations); + */ + multiInsertObject(input: Insert_MultiObjectRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Locations) => void)): grpc.ClientUnaryCall; + /** + * A method to update object. + * + * @generated from protobuf rpc: UpdateObject(payload.v1.Update.ObjectRequest) returns (payload.v1.Object.Location); + */ + updateObject(input: Update_ObjectRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Location) => void)): grpc.ClientUnaryCall; + /** + * A method to update object by bidirectional streaming. + * + * @generated from protobuf rpc: StreamUpdateObject(stream payload.v1.Update.ObjectRequest) returns (stream payload.v1.Object.StreamLocation); + */ + streamUpdateObject(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to update multiple objects. + * + * @generated from protobuf rpc: MultiUpdateObject(payload.v1.Update.MultiObjectRequest) returns (payload.v1.Object.Locations); + */ + multiUpdateObject(input: Update_MultiObjectRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Locations) => void)): grpc.ClientUnaryCall; + /** + * A method to upsert object. + * + * @generated from protobuf rpc: UpsertObject(payload.v1.Upsert.ObjectRequest) returns (payload.v1.Object.Location); + */ + upsertObject(input: Upsert_ObjectRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Location) => void)): grpc.ClientUnaryCall; + /** + * A method to upsert object by bidirectional streaming. + * + * @generated from protobuf rpc: StreamUpsertObject(stream payload.v1.Upsert.ObjectRequest) returns (stream payload.v1.Object.StreamLocation); + */ + streamUpsertObject(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to upsert multiple objects. + * + * @generated from protobuf rpc: MultiUpsertObject(payload.v1.Upsert.MultiObjectRequest) returns (payload.v1.Object.Locations); + */ + multiUpsertObject(input: Upsert_MultiObjectRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Locations) => void)): grpc.ClientUnaryCall; +} diff --git a/src/vald/v1/vald/filter_pb.grpc-client.js b/src/vald/v1/vald/filter_pb.grpc-client.js new file mode 100644 index 00000000..8c6e23fe --- /dev/null +++ b/src/vald/v1/vald/filter_pb.grpc-client.js @@ -0,0 +1,169 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/filter.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FilterClient = void 0; +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/filter.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +const filter_pb_1 = require("./filter_pb"); +const grpc = require("@grpc/grpc-js"); +/** + * Filter service provides ways to connect to Vald through filter. + * + * @generated from protobuf service vald.v1.Filter + */ +class FilterClient extends grpc.Client { + constructor(address, credentials, options = {}, binaryOptions = {}) { + super(address, credentials, options); + this._binaryOptions = binaryOptions; + } + /** + * A method to search object. + * + * @generated from protobuf rpc: SearchObject(payload.v1.Search.ObjectRequest) returns (payload.v1.Search.Response); + */ + searchObject(input, metadata, options, callback) { + const method = filter_pb_1.Filter.methods[0]; + return this.makeUnaryRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to search multiple objects. + * + * @generated from protobuf rpc: MultiSearchObject(payload.v1.Search.MultiObjectRequest) returns (payload.v1.Search.Responses); + */ + multiSearchObject(input, metadata, options, callback) { + const method = filter_pb_1.Filter.methods[1]; + return this.makeUnaryRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to search object by bidirectional streaming. + * + * @generated from protobuf rpc: StreamSearchObject(stream payload.v1.Search.ObjectRequest) returns (stream payload.v1.Search.StreamResponse); + */ + streamSearchObject(metadata, options) { + const method = filter_pb_1.Filter.methods[2]; + return this.makeBidiStreamRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); + } + /** + * A method insert object. + * + * @generated from protobuf rpc: InsertObject(payload.v1.Insert.ObjectRequest) returns (payload.v1.Object.Location); + */ + insertObject(input, metadata, options, callback) { + const method = filter_pb_1.Filter.methods[3]; + return this.makeUnaryRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * Represent the streaming RPC to insert object by bidirectional streaming. + * + * @generated from protobuf rpc: StreamInsertObject(stream payload.v1.Insert.ObjectRequest) returns (stream payload.v1.Object.StreamLocation); + */ + streamInsertObject(metadata, options) { + const method = filter_pb_1.Filter.methods[4]; + return this.makeBidiStreamRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); + } + /** + * A method to insert multiple objects. + * + * @generated from protobuf rpc: MultiInsertObject(payload.v1.Insert.MultiObjectRequest) returns (payload.v1.Object.Locations); + */ + multiInsertObject(input, metadata, options, callback) { + const method = filter_pb_1.Filter.methods[5]; + return this.makeUnaryRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to update object. + * + * @generated from protobuf rpc: UpdateObject(payload.v1.Update.ObjectRequest) returns (payload.v1.Object.Location); + */ + updateObject(input, metadata, options, callback) { + const method = filter_pb_1.Filter.methods[6]; + return this.makeUnaryRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to update object by bidirectional streaming. + * + * @generated from protobuf rpc: StreamUpdateObject(stream payload.v1.Update.ObjectRequest) returns (stream payload.v1.Object.StreamLocation); + */ + streamUpdateObject(metadata, options) { + const method = filter_pb_1.Filter.methods[7]; + return this.makeBidiStreamRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); + } + /** + * A method to update multiple objects. + * + * @generated from protobuf rpc: MultiUpdateObject(payload.v1.Update.MultiObjectRequest) returns (payload.v1.Object.Locations); + */ + multiUpdateObject(input, metadata, options, callback) { + const method = filter_pb_1.Filter.methods[8]; + return this.makeUnaryRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to upsert object. + * + * @generated from protobuf rpc: UpsertObject(payload.v1.Upsert.ObjectRequest) returns (payload.v1.Object.Location); + */ + upsertObject(input, metadata, options, callback) { + const method = filter_pb_1.Filter.methods[9]; + return this.makeUnaryRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to upsert object by bidirectional streaming. + * + * @generated from protobuf rpc: StreamUpsertObject(stream payload.v1.Upsert.ObjectRequest) returns (stream payload.v1.Object.StreamLocation); + */ + streamUpsertObject(metadata, options) { + const method = filter_pb_1.Filter.methods[10]; + return this.makeBidiStreamRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); + } + /** + * A method to upsert multiple objects. + * + * @generated from protobuf rpc: MultiUpsertObject(payload.v1.Upsert.MultiObjectRequest) returns (payload.v1.Object.Locations); + */ + multiUpsertObject(input, metadata, options, callback) { + const method = filter_pb_1.Filter.methods[11]; + return this.makeUnaryRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } +} +exports.FilterClient = FilterClient; diff --git a/src/vald/v1/vald/filter_pb.js b/src/vald/v1/vald/filter_pb.js new file mode 100644 index 00000000..ba4039f0 --- /dev/null +++ b/src/vald/v1/vald/filter_pb.js @@ -0,0 +1,79 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/filter.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Filter = void 0; +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/filter.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +const payload_pb_1 = require("../payload/payload_pb"); +const payload_pb_2 = require("../payload/payload_pb"); +const payload_pb_3 = require("../payload/payload_pb"); +const payload_pb_4 = require("../payload/payload_pb"); +const payload_pb_5 = require("../payload/payload_pb"); +const payload_pb_6 = require("../payload/payload_pb"); +const payload_pb_7 = require("../payload/payload_pb"); +const payload_pb_8 = require("../payload/payload_pb"); +const payload_pb_9 = require("../payload/payload_pb"); +const payload_pb_10 = require("../payload/payload_pb"); +const payload_pb_11 = require("../payload/payload_pb"); +const payload_pb_12 = require("../payload/payload_pb"); +const payload_pb_13 = require("../payload/payload_pb"); +const payload_pb_14 = require("../payload/payload_pb"); +const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); +/** + * @generated ServiceType for protobuf service vald.v1.Filter + */ +exports.Filter = new runtime_rpc_1.ServiceType("vald.v1.Filter", [ + { name: "SearchObject", options: { "google.api.http": { post: "/search/object", body: "*" } }, I: payload_pb_14.Search_ObjectRequest, O: payload_pb_13.Search_Response }, + { name: "MultiSearchObject", options: { "google.api.http": { post: "/search/object/multiple", body: "*" } }, I: payload_pb_12.Search_MultiObjectRequest, O: payload_pb_11.Search_Responses }, + { name: "StreamSearchObject", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_14.Search_ObjectRequest, O: payload_pb_10.Search_StreamResponse }, + { name: "InsertObject", options: { "google.api.http": { post: "/insert/object", body: "*" } }, I: payload_pb_9.Insert_ObjectRequest, O: payload_pb_8.Object_Location }, + { name: "StreamInsertObject", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_9.Insert_ObjectRequest, O: payload_pb_7.Object_StreamLocation }, + { name: "MultiInsertObject", options: { "google.api.http": { post: "/insert/object/multiple", body: "*" } }, I: payload_pb_6.Insert_MultiObjectRequest, O: payload_pb_5.Object_Locations }, + { name: "UpdateObject", options: { "google.api.http": { post: "/update/object", body: "*" } }, I: payload_pb_4.Update_ObjectRequest, O: payload_pb_8.Object_Location }, + { name: "StreamUpdateObject", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_4.Update_ObjectRequest, O: payload_pb_7.Object_StreamLocation }, + { name: "MultiUpdateObject", options: { "google.api.http": { post: "/update/object/multiple", body: "*" } }, I: payload_pb_3.Update_MultiObjectRequest, O: payload_pb_5.Object_Locations }, + { name: "UpsertObject", options: { "google.api.http": { post: "/upsert/object", body: "*" } }, I: payload_pb_2.Upsert_ObjectRequest, O: payload_pb_8.Object_Location }, + { name: "StreamUpsertObject", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_2.Upsert_ObjectRequest, O: payload_pb_7.Object_StreamLocation }, + { name: "MultiUpsertObject", options: { "google.api.http": { post: "/upsert/object/multiple", body: "*" } }, I: payload_pb_1.Upsert_MultiObjectRequest, O: payload_pb_5.Object_Locations } +]); diff --git a/src/vald/v1/vald/index.d.ts b/src/vald/v1/vald/index.d.ts new file mode 100644 index 00000000..20ed65f3 --- /dev/null +++ b/src/vald/v1/vald/index.d.ts @@ -0,0 +1,31 @@ +import filter = require("./filter_pb"); +import filter_grpc = require("./filter_pb.grpc-client"); +import insert = require("./insert_pb"); +import insert_grpc = require("./insert_pb.grpc-client"); +import object = require("./object_pb"); +import object_grpc = require("./object_pb.grpc-client"); +import remove = require("./remove_pb"); +import remove_grpc = require("./remove_pb.grpc-client"); +import search = require("./search_pb"); +import search_grpc = require("./search_pb.grpc-client"); +import update = require("./update_pb"); +import update_grpc = require("./update_pb.grpc-client"); +import upsert = require("./upsert_pb"); +import upsert_grpc = require("./upsert_pb.grpc-client"); +declare const _default: { + filter: typeof filter, + filter_grpc: typeof filter_grpc, + insert: typeof insert, + insert_grpc: typeof insert_grpc, + object: typeof object, + object_grpc: typeof object_grpc, + remove: typeof remove, + remove_grpc: typeof remove_grpc, + search: typeof search, + search_grpc: typeof search_grpc, + update: typeof update, + update_grpc: typeof update_grpc, + upsert: typeof upsert, + upsert_grpc: typeof upsert_grpc, +}; +export = _default; diff --git a/src/vald/v1/vald/index.js b/src/vald/v1/vald/index.js new file mode 100644 index 00000000..30533d5a --- /dev/null +++ b/src/vald/v1/vald/index.js @@ -0,0 +1,14 @@ +module.exports.filter = require("./filter_pb"); +module.exports.filter_grpc = require("./filter_pb.grpc-client"); +module.exports.insert = require("./insert_pb"); +module.exports.insert_grpc = require("./insert_pb.grpc-client"); +module.exports.object = require("./object_pb"); +module.exports.object_grpc = require("./object_pb.grpc-client"); +module.exports.remove = require("./remove_pb"); +module.exports.remove_grpc = require("./remove_pb.grpc-client"); +module.exports.search = require("./search_pb"); +module.exports.search_grpc = require("./search_pb.grpc-client"); +module.exports.update = require("./update_pb"); +module.exports.update_grpc = require("./update_pb.grpc-client"); +module.exports.upsert = require("./upsert_pb"); +module.exports.upsert_grpc = require("./upsert_pb.grpc-client"); diff --git a/src/vald/v1/vald/insert_pb.d.ts b/src/vald/v1/vald/insert_pb.d.ts new file mode 100644 index 00000000..0d72c0e9 --- /dev/null +++ b/src/vald/v1/vald/insert_pb.d.ts @@ -0,0 +1,26 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/insert.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +/** + * @generated ServiceType for protobuf service vald.v1.Insert + */ +export declare const Insert: any; diff --git a/src/vald/v1/vald/insert_pb.grpc-client.d.ts b/src/vald/v1/vald/insert_pb.grpc-client.d.ts new file mode 100644 index 00000000..e9572cd9 --- /dev/null +++ b/src/vald/v1/vald/insert_pb.grpc-client.d.ts @@ -0,0 +1,89 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/insert.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { Object_Locations } from "../payload/payload_pb"; +import type { Insert_MultiRequest } from "../payload/payload_pb"; +import type { Object_StreamLocation } from "../payload/payload_pb"; +import type { Object_Location } from "../payload/payload_pb"; +import type { Insert_Request } from "../payload/payload_pb"; +import * as grpc from "@grpc/grpc-js"; +/** + * Insert service provides ways to add new vectors. + * + * @generated from protobuf service vald.v1.Insert + */ +export interface IInsertClient { + /** + * A method to add a new single vector. + * + * @generated from protobuf rpc: Insert(payload.v1.Insert.Request) returns (payload.v1.Object.Location); + */ + insert(input: Insert_Request, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + insert(input: Insert_Request, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + insert(input: Insert_Request, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + insert(input: Insert_Request, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + /** + * A method to add new multiple vectors by bidirectional streaming. + * + * @generated from protobuf rpc: StreamInsert(stream payload.v1.Insert.Request) returns (stream payload.v1.Object.StreamLocation); + */ + streamInsert(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; + streamInsert(options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to add new multiple vectors in a single request. + * + * @generated from protobuf rpc: MultiInsert(payload.v1.Insert.MultiRequest) returns (payload.v1.Object.Locations); + */ + multiInsert(input: Insert_MultiRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiInsert(input: Insert_MultiRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiInsert(input: Insert_MultiRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiInsert(input: Insert_MultiRequest, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; +} +/** + * Insert service provides ways to add new vectors. + * + * @generated from protobuf service vald.v1.Insert + */ +export declare class InsertClient extends grpc.Client implements IInsertClient { + private readonly _binaryOptions; + constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial); + /** + * A method to add a new single vector. + * + * @generated from protobuf rpc: Insert(payload.v1.Insert.Request) returns (payload.v1.Object.Location); + */ + insert(input: Insert_Request, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Location) => void)): grpc.ClientUnaryCall; + /** + * A method to add new multiple vectors by bidirectional streaming. + * + * @generated from protobuf rpc: StreamInsert(stream payload.v1.Insert.Request) returns (stream payload.v1.Object.StreamLocation); + */ + streamInsert(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to add new multiple vectors in a single request. + * + * @generated from protobuf rpc: MultiInsert(payload.v1.Insert.MultiRequest) returns (payload.v1.Object.Locations); + */ + multiInsert(input: Insert_MultiRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Locations) => void)): grpc.ClientUnaryCall; +} diff --git a/src/vald/v1/vald/insert_pb.grpc-client.js b/src/vald/v1/vald/insert_pb.grpc-client.js new file mode 100644 index 00000000..a408f121 --- /dev/null +++ b/src/vald/v1/vald/insert_pb.grpc-client.js @@ -0,0 +1,88 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/insert.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.InsertClient = void 0; +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/insert.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +const insert_pb_1 = require("./insert_pb"); +const grpc = require("@grpc/grpc-js"); +/** + * Insert service provides ways to add new vectors. + * + * @generated from protobuf service vald.v1.Insert + */ +class InsertClient extends grpc.Client { + constructor(address, credentials, options = {}, binaryOptions = {}) { + super(address, credentials, options); + this._binaryOptions = binaryOptions; + } + /** + * A method to add a new single vector. + * + * @generated from protobuf rpc: Insert(payload.v1.Insert.Request) returns (payload.v1.Object.Location); + */ + insert(input, metadata, options, callback) { + const method = insert_pb_1.Insert.methods[0]; + return this.makeUnaryRequest(`/${insert_pb_1.Insert.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to add new multiple vectors by bidirectional streaming. + * + * @generated from protobuf rpc: StreamInsert(stream payload.v1.Insert.Request) returns (stream payload.v1.Object.StreamLocation); + */ + streamInsert(metadata, options) { + const method = insert_pb_1.Insert.methods[1]; + return this.makeBidiStreamRequest(`/${insert_pb_1.Insert.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); + } + /** + * A method to add new multiple vectors in a single request. + * + * @generated from protobuf rpc: MultiInsert(payload.v1.Insert.MultiRequest) returns (payload.v1.Object.Locations); + */ + multiInsert(input, metadata, options, callback) { + const method = insert_pb_1.Insert.methods[2]; + return this.makeUnaryRequest(`/${insert_pb_1.Insert.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } +} +exports.InsertClient = InsertClient; diff --git a/src/vald/v1/vald/insert_pb.js b/src/vald/v1/vald/insert_pb.js new file mode 100644 index 00000000..787de87f --- /dev/null +++ b/src/vald/v1/vald/insert_pb.js @@ -0,0 +1,61 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/insert.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Insert = void 0; +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/insert.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +const payload_pb_1 = require("../payload/payload_pb"); +const payload_pb_2 = require("../payload/payload_pb"); +const payload_pb_3 = require("../payload/payload_pb"); +const payload_pb_4 = require("../payload/payload_pb"); +const payload_pb_5 = require("../payload/payload_pb"); +const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); +/** + * @generated ServiceType for protobuf service vald.v1.Insert + */ +exports.Insert = new runtime_rpc_1.ServiceType("vald.v1.Insert", [ + { name: "Insert", options: { "google.api.http": { post: "/insert", body: "*" } }, I: payload_pb_5.Insert_Request, O: payload_pb_4.Object_Location }, + { name: "StreamInsert", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_5.Insert_Request, O: payload_pb_3.Object_StreamLocation }, + { name: "MultiInsert", options: { "google.api.http": { post: "/insert/multiple", body: "*" } }, I: payload_pb_2.Insert_MultiRequest, O: payload_pb_1.Object_Locations } +]); diff --git a/src/vald/v1/vald/object_pb.d.ts b/src/vald/v1/vald/object_pb.d.ts new file mode 100644 index 00000000..3e7f7c71 --- /dev/null +++ b/src/vald/v1/vald/object_pb.d.ts @@ -0,0 +1,26 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/object.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +/** + * @generated ServiceType for protobuf service vald.v1.Object + */ +export declare const Object: any; diff --git a/src/vald/v1/vald/object_pb.grpc-client.d.ts b/src/vald/v1/vald/object_pb.grpc-client.d.ts new file mode 100644 index 00000000..b85500ef --- /dev/null +++ b/src/vald/v1/vald/object_pb.grpc-client.d.ts @@ -0,0 +1,103 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/object.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { Object_List_Response } from "../payload/payload_pb"; +import type { Object_List_Request } from "../payload/payload_pb"; +import type { Object_StreamVector } from "../payload/payload_pb"; +import type { Object_Vector } from "../payload/payload_pb"; +import type { Object_VectorRequest } from "../payload/payload_pb"; +import type { Object_ID } from "../payload/payload_pb"; +import * as grpc from "@grpc/grpc-js"; +/** + * Object service provides ways to fetch indexed vectors. + * + * @generated from protobuf service vald.v1.Object + */ +export interface IObjectClient { + /** + * A method to check whether a specified ID is indexed or not. + * + * @generated from protobuf rpc: Exists(payload.v1.Object.ID) returns (payload.v1.Object.ID); + */ + exists(input: Object_ID, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_ID) => void): grpc.ClientUnaryCall; + exists(input: Object_ID, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_ID) => void): grpc.ClientUnaryCall; + exists(input: Object_ID, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_ID) => void): grpc.ClientUnaryCall; + exists(input: Object_ID, callback: (err: grpc.ServiceError | null, value?: Object_ID) => void): grpc.ClientUnaryCall; + /** + * A method to fetch a vector. + * + * @generated from protobuf rpc: GetObject(payload.v1.Object.VectorRequest) returns (payload.v1.Object.Vector); + */ + getObject(input: Object_VectorRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Vector) => void): grpc.ClientUnaryCall; + getObject(input: Object_VectorRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Vector) => void): grpc.ClientUnaryCall; + getObject(input: Object_VectorRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Vector) => void): grpc.ClientUnaryCall; + getObject(input: Object_VectorRequest, callback: (err: grpc.ServiceError | null, value?: Object_Vector) => void): grpc.ClientUnaryCall; + /** + * A method to fetch vectors by bidirectional streaming. + * + * @generated from protobuf rpc: StreamGetObject(stream payload.v1.Object.VectorRequest) returns (stream payload.v1.Object.StreamVector); + */ + streamGetObject(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; + streamGetObject(options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to get all the vectors with server streaming + * + * @generated from protobuf rpc: StreamListObject(payload.v1.Object.List.Request) returns (stream payload.v1.Object.List.Response); + */ + streamListObject(input: Object_List_Request, metadata?: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream; + streamListObject(input: Object_List_Request, options?: grpc.CallOptions): grpc.ClientReadableStream; +} +/** + * Object service provides ways to fetch indexed vectors. + * + * @generated from protobuf service vald.v1.Object + */ +export declare class ObjectClient extends grpc.Client implements IObjectClient { + private readonly _binaryOptions; + constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial); + /** + * A method to check whether a specified ID is indexed or not. + * + * @generated from protobuf rpc: Exists(payload.v1.Object.ID) returns (payload.v1.Object.ID); + */ + exists(input: Object_ID, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_ID) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_ID) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_ID) => void)): grpc.ClientUnaryCall; + /** + * A method to fetch a vector. + * + * @generated from protobuf rpc: GetObject(payload.v1.Object.VectorRequest) returns (payload.v1.Object.Vector); + */ + getObject(input: Object_VectorRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Vector) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Vector) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Vector) => void)): grpc.ClientUnaryCall; + /** + * A method to fetch vectors by bidirectional streaming. + * + * @generated from protobuf rpc: StreamGetObject(stream payload.v1.Object.VectorRequest) returns (stream payload.v1.Object.StreamVector); + */ + streamGetObject(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to get all the vectors with server streaming + * + * @generated from protobuf rpc: StreamListObject(payload.v1.Object.List.Request) returns (stream payload.v1.Object.List.Response); + */ + streamListObject(input: Object_List_Request, metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientReadableStream; +} diff --git a/src/vald/v1/vald/object_pb.grpc-client.js b/src/vald/v1/vald/object_pb.grpc-client.js new file mode 100644 index 00000000..e66c6da1 --- /dev/null +++ b/src/vald/v1/vald/object_pb.grpc-client.js @@ -0,0 +1,97 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/object.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ObjectClient = void 0; +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/object.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +const object_pb_1 = require("./object_pb"); +const grpc = require("@grpc/grpc-js"); +/** + * Object service provides ways to fetch indexed vectors. + * + * @generated from protobuf service vald.v1.Object + */ +class ObjectClient extends grpc.Client { + constructor(address, credentials, options = {}, binaryOptions = {}) { + super(address, credentials, options); + this._binaryOptions = binaryOptions; + } + /** + * A method to check whether a specified ID is indexed or not. + * + * @generated from protobuf rpc: Exists(payload.v1.Object.ID) returns (payload.v1.Object.ID); + */ + exists(input, metadata, options, callback) { + const method = object_pb_1.Object.methods[0]; + return this.makeUnaryRequest(`/${object_pb_1.Object.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to fetch a vector. + * + * @generated from protobuf rpc: GetObject(payload.v1.Object.VectorRequest) returns (payload.v1.Object.Vector); + */ + getObject(input, metadata, options, callback) { + const method = object_pb_1.Object.methods[1]; + return this.makeUnaryRequest(`/${object_pb_1.Object.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to fetch vectors by bidirectional streaming. + * + * @generated from protobuf rpc: StreamGetObject(stream payload.v1.Object.VectorRequest) returns (stream payload.v1.Object.StreamVector); + */ + streamGetObject(metadata, options) { + const method = object_pb_1.Object.methods[2]; + return this.makeBidiStreamRequest(`/${object_pb_1.Object.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); + } + /** + * A method to get all the vectors with server streaming + * + * @generated from protobuf rpc: StreamListObject(payload.v1.Object.List.Request) returns (stream payload.v1.Object.List.Response); + */ + streamListObject(input, metadata, options) { + const method = object_pb_1.Object.methods[3]; + return this.makeServerStreamRequest(`/${object_pb_1.Object.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options); + } +} +exports.ObjectClient = ObjectClient; diff --git a/src/vald/v1/vald/object_pb.js b/src/vald/v1/vald/object_pb.js new file mode 100644 index 00000000..05d7cd13 --- /dev/null +++ b/src/vald/v1/vald/object_pb.js @@ -0,0 +1,63 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/object.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Object = void 0; +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/object.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +const payload_pb_1 = require("../payload/payload_pb"); +const payload_pb_2 = require("../payload/payload_pb"); +const payload_pb_3 = require("../payload/payload_pb"); +const payload_pb_4 = require("../payload/payload_pb"); +const payload_pb_5 = require("../payload/payload_pb"); +const payload_pb_6 = require("../payload/payload_pb"); +const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); +/** + * @generated ServiceType for protobuf service vald.v1.Object + */ +exports.Object = new runtime_rpc_1.ServiceType("vald.v1.Object", [ + { name: "Exists", options: { "google.api.http": { get: "/exists/{id}" } }, I: payload_pb_6.Object_ID, O: payload_pb_6.Object_ID }, + { name: "GetObject", options: { "google.api.http": { get: "/object/{id.id}" } }, I: payload_pb_5.Object_VectorRequest, O: payload_pb_4.Object_Vector }, + { name: "StreamGetObject", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_5.Object_VectorRequest, O: payload_pb_3.Object_StreamVector }, + { name: "StreamListObject", serverStreaming: true, options: { "google.api.http": { get: "/object/list" } }, I: payload_pb_2.Object_List_Request, O: payload_pb_1.Object_List_Response } +]); diff --git a/src/vald/v1/vald/remove_pb.d.ts b/src/vald/v1/vald/remove_pb.d.ts new file mode 100644 index 00000000..0b2c9a7d --- /dev/null +++ b/src/vald/v1/vald/remove_pb.d.ts @@ -0,0 +1,26 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/remove.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +/** + * @generated ServiceType for protobuf service vald.v1.Remove + */ +export declare const Remove: any; diff --git a/src/vald/v1/vald/remove_pb.grpc-client.d.ts b/src/vald/v1/vald/remove_pb.grpc-client.d.ts new file mode 100644 index 00000000..60bc9394 --- /dev/null +++ b/src/vald/v1/vald/remove_pb.grpc-client.d.ts @@ -0,0 +1,105 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/remove.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { Remove_MultiRequest } from "../payload/payload_pb"; +import type { Object_StreamLocation } from "../payload/payload_pb"; +import type { Object_Locations } from "../payload/payload_pb"; +import type { Remove_TimestampRequest } from "../payload/payload_pb"; +import type { Object_Location } from "../payload/payload_pb"; +import type { Remove_Request } from "../payload/payload_pb"; +import * as grpc from "@grpc/grpc-js"; +/** + * Remove service provides ways to remove indexed vectors. + * + * @generated from protobuf service vald.v1.Remove + */ +export interface IRemoveClient { + /** + * A method to remove an indexed vector. + * + * @generated from protobuf rpc: Remove(payload.v1.Remove.Request) returns (payload.v1.Object.Location); + */ + remove(input: Remove_Request, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + remove(input: Remove_Request, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + remove(input: Remove_Request, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + remove(input: Remove_Request, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + /** + * A method to remove an indexed vector based on timestamp. + * + * @generated from protobuf rpc: RemoveByTimestamp(payload.v1.Remove.TimestampRequest) returns (payload.v1.Object.Locations); + */ + removeByTimestamp(input: Remove_TimestampRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + removeByTimestamp(input: Remove_TimestampRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + removeByTimestamp(input: Remove_TimestampRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + removeByTimestamp(input: Remove_TimestampRequest, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + /** + * A method to remove multiple indexed vectors by bidirectional streaming. + * + * @generated from protobuf rpc: StreamRemove(stream payload.v1.Remove.Request) returns (stream payload.v1.Object.StreamLocation); + */ + streamRemove(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; + streamRemove(options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to remove multiple indexed vectors in a single request. + * + * @generated from protobuf rpc: MultiRemove(payload.v1.Remove.MultiRequest) returns (payload.v1.Object.Locations); + */ + multiRemove(input: Remove_MultiRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiRemove(input: Remove_MultiRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiRemove(input: Remove_MultiRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiRemove(input: Remove_MultiRequest, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; +} +/** + * Remove service provides ways to remove indexed vectors. + * + * @generated from protobuf service vald.v1.Remove + */ +export declare class RemoveClient extends grpc.Client implements IRemoveClient { + private readonly _binaryOptions; + constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial); + /** + * A method to remove an indexed vector. + * + * @generated from protobuf rpc: Remove(payload.v1.Remove.Request) returns (payload.v1.Object.Location); + */ + remove(input: Remove_Request, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Location) => void)): grpc.ClientUnaryCall; + /** + * A method to remove an indexed vector based on timestamp. + * + * @generated from protobuf rpc: RemoveByTimestamp(payload.v1.Remove.TimestampRequest) returns (payload.v1.Object.Locations); + */ + removeByTimestamp(input: Remove_TimestampRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Locations) => void)): grpc.ClientUnaryCall; + /** + * A method to remove multiple indexed vectors by bidirectional streaming. + * + * @generated from protobuf rpc: StreamRemove(stream payload.v1.Remove.Request) returns (stream payload.v1.Object.StreamLocation); + */ + streamRemove(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to remove multiple indexed vectors in a single request. + * + * @generated from protobuf rpc: MultiRemove(payload.v1.Remove.MultiRequest) returns (payload.v1.Object.Locations); + */ + multiRemove(input: Remove_MultiRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Locations) => void)): grpc.ClientUnaryCall; +} diff --git a/src/vald/v1/vald/remove_pb.grpc-client.js b/src/vald/v1/vald/remove_pb.grpc-client.js new file mode 100644 index 00000000..11780a22 --- /dev/null +++ b/src/vald/v1/vald/remove_pb.grpc-client.js @@ -0,0 +1,97 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/remove.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RemoveClient = void 0; +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/remove.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +const remove_pb_1 = require("./remove_pb"); +const grpc = require("@grpc/grpc-js"); +/** + * Remove service provides ways to remove indexed vectors. + * + * @generated from protobuf service vald.v1.Remove + */ +class RemoveClient extends grpc.Client { + constructor(address, credentials, options = {}, binaryOptions = {}) { + super(address, credentials, options); + this._binaryOptions = binaryOptions; + } + /** + * A method to remove an indexed vector. + * + * @generated from protobuf rpc: Remove(payload.v1.Remove.Request) returns (payload.v1.Object.Location); + */ + remove(input, metadata, options, callback) { + const method = remove_pb_1.Remove.methods[0]; + return this.makeUnaryRequest(`/${remove_pb_1.Remove.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to remove an indexed vector based on timestamp. + * + * @generated from protobuf rpc: RemoveByTimestamp(payload.v1.Remove.TimestampRequest) returns (payload.v1.Object.Locations); + */ + removeByTimestamp(input, metadata, options, callback) { + const method = remove_pb_1.Remove.methods[1]; + return this.makeUnaryRequest(`/${remove_pb_1.Remove.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to remove multiple indexed vectors by bidirectional streaming. + * + * @generated from protobuf rpc: StreamRemove(stream payload.v1.Remove.Request) returns (stream payload.v1.Object.StreamLocation); + */ + streamRemove(metadata, options) { + const method = remove_pb_1.Remove.methods[2]; + return this.makeBidiStreamRequest(`/${remove_pb_1.Remove.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); + } + /** + * A method to remove multiple indexed vectors in a single request. + * + * @generated from protobuf rpc: MultiRemove(payload.v1.Remove.MultiRequest) returns (payload.v1.Object.Locations); + */ + multiRemove(input, metadata, options, callback) { + const method = remove_pb_1.Remove.methods[3]; + return this.makeUnaryRequest(`/${remove_pb_1.Remove.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } +} +exports.RemoveClient = RemoveClient; diff --git a/src/vald/v1/vald/remove_pb.js b/src/vald/v1/vald/remove_pb.js new file mode 100644 index 00000000..ae2a9284 --- /dev/null +++ b/src/vald/v1/vald/remove_pb.js @@ -0,0 +1,63 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/remove.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Remove = void 0; +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/remove.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +const payload_pb_1 = require("../payload/payload_pb"); +const payload_pb_2 = require("../payload/payload_pb"); +const payload_pb_3 = require("../payload/payload_pb"); +const payload_pb_4 = require("../payload/payload_pb"); +const payload_pb_5 = require("../payload/payload_pb"); +const payload_pb_6 = require("../payload/payload_pb"); +const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); +/** + * @generated ServiceType for protobuf service vald.v1.Remove + */ +exports.Remove = new runtime_rpc_1.ServiceType("vald.v1.Remove", [ + { name: "Remove", options: { "google.api.http": { post: "/remove", body: "*" } }, I: payload_pb_6.Remove_Request, O: payload_pb_5.Object_Location }, + { name: "RemoveByTimestamp", options: { "google.api.http": { post: "/remove/timestamp", body: "*" } }, I: payload_pb_4.Remove_TimestampRequest, O: payload_pb_3.Object_Locations }, + { name: "StreamRemove", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_6.Remove_Request, O: payload_pb_2.Object_StreamLocation }, + { name: "MultiRemove", options: { "google.api.http": { post: "/remove/multiple", body: "*" } }, I: payload_pb_1.Remove_MultiRequest, O: payload_pb_3.Object_Locations } +]); diff --git a/src/vald/v1/vald/search_pb.d.ts b/src/vald/v1/vald/search_pb.d.ts new file mode 100644 index 00000000..02c0225b --- /dev/null +++ b/src/vald/v1/vald/search_pb.d.ts @@ -0,0 +1,26 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/search.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +/** + * @generated ServiceType for protobuf service vald.v1.Search + */ +export declare const Search: any; diff --git a/src/vald/v1/vald/search_pb.grpc-client.d.ts b/src/vald/v1/vald/search_pb.grpc-client.d.ts new file mode 100644 index 00000000..e0f2eef7 --- /dev/null +++ b/src/vald/v1/vald/search_pb.grpc-client.d.ts @@ -0,0 +1,224 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/search.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { Search_MultiIDRequest } from "../payload/payload_pb"; +import type { Search_Responses } from "../payload/payload_pb"; +import type { Search_MultiRequest } from "../payload/payload_pb"; +import type { Search_StreamResponse } from "../payload/payload_pb"; +import type { Search_IDRequest } from "../payload/payload_pb"; +import type { Search_Response } from "../payload/payload_pb"; +import type { Search_Request } from "../payload/payload_pb"; +import * as grpc from "@grpc/grpc-js"; +/** + * Search service provides ways to search indexed vectors. + * + * @generated from protobuf service vald.v1.Search + */ +export interface ISearchClient { + /** + * A method to search indexed vectors by a raw vector. + * + * @generated from protobuf rpc: Search(payload.v1.Search.Request) returns (payload.v1.Search.Response); + */ + search(input: Search_Request, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + search(input: Search_Request, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + search(input: Search_Request, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + search(input: Search_Request, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + /** + * A method to search indexed vectors by ID. + * + * @generated from protobuf rpc: SearchByID(payload.v1.Search.IDRequest) returns (payload.v1.Search.Response); + */ + searchByID(input: Search_IDRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + searchByID(input: Search_IDRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + searchByID(input: Search_IDRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + searchByID(input: Search_IDRequest, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + /** + * A method to search indexed vectors by multiple vectors. + * + * @generated from protobuf rpc: StreamSearch(stream payload.v1.Search.Request) returns (stream payload.v1.Search.StreamResponse); + */ + streamSearch(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; + streamSearch(options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to search indexed vectors by multiple IDs. + * + * @generated from protobuf rpc: StreamSearchByID(stream payload.v1.Search.IDRequest) returns (stream payload.v1.Search.StreamResponse); + */ + streamSearchByID(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; + streamSearchByID(options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to search indexed vectors by multiple vectors in a single request. + * + * @generated from protobuf rpc: MultiSearch(payload.v1.Search.MultiRequest) returns (payload.v1.Search.Responses); + */ + multiSearch(input: Search_MultiRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + multiSearch(input: Search_MultiRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + multiSearch(input: Search_MultiRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + multiSearch(input: Search_MultiRequest, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + /** + * A method to search indexed vectors by multiple IDs in a single request. + * + * @generated from protobuf rpc: MultiSearchByID(payload.v1.Search.MultiIDRequest) returns (payload.v1.Search.Responses); + */ + multiSearchByID(input: Search_MultiIDRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + multiSearchByID(input: Search_MultiIDRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + multiSearchByID(input: Search_MultiIDRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + multiSearchByID(input: Search_MultiIDRequest, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + /** + * A method to linear search indexed vectors by a raw vector. + * + * @generated from protobuf rpc: LinearSearch(payload.v1.Search.Request) returns (payload.v1.Search.Response); + */ + linearSearch(input: Search_Request, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + linearSearch(input: Search_Request, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + linearSearch(input: Search_Request, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + linearSearch(input: Search_Request, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + /** + * A method to linear search indexed vectors by ID. + * + * @generated from protobuf rpc: LinearSearchByID(payload.v1.Search.IDRequest) returns (payload.v1.Search.Response); + */ + linearSearchByID(input: Search_IDRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + linearSearchByID(input: Search_IDRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + linearSearchByID(input: Search_IDRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + linearSearchByID(input: Search_IDRequest, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; + /** + * A method to linear search indexed vectors by multiple vectors. + * + * @generated from protobuf rpc: StreamLinearSearch(stream payload.v1.Search.Request) returns (stream payload.v1.Search.StreamResponse); + */ + streamLinearSearch(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; + streamLinearSearch(options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to linear search indexed vectors by multiple IDs. + * + * @generated from protobuf rpc: StreamLinearSearchByID(stream payload.v1.Search.IDRequest) returns (stream payload.v1.Search.StreamResponse); + */ + streamLinearSearchByID(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; + streamLinearSearchByID(options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to linear search indexed vectors by multiple vectors in a single + * request. + * + * @generated from protobuf rpc: MultiLinearSearch(payload.v1.Search.MultiRequest) returns (payload.v1.Search.Responses); + */ + multiLinearSearch(input: Search_MultiRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + multiLinearSearch(input: Search_MultiRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + multiLinearSearch(input: Search_MultiRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + multiLinearSearch(input: Search_MultiRequest, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + /** + * A method to linear search indexed vectors by multiple IDs in a single + * request. + * + * @generated from protobuf rpc: MultiLinearSearchByID(payload.v1.Search.MultiIDRequest) returns (payload.v1.Search.Responses); + */ + multiLinearSearchByID(input: Search_MultiIDRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + multiLinearSearchByID(input: Search_MultiIDRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + multiLinearSearchByID(input: Search_MultiIDRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; + multiLinearSearchByID(input: Search_MultiIDRequest, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; +} +/** + * Search service provides ways to search indexed vectors. + * + * @generated from protobuf service vald.v1.Search + */ +export declare class SearchClient extends grpc.Client implements ISearchClient { + private readonly _binaryOptions; + constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial); + /** + * A method to search indexed vectors by a raw vector. + * + * @generated from protobuf rpc: Search(payload.v1.Search.Request) returns (payload.v1.Search.Response); + */ + search(input: Search_Request, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Response) => void)): grpc.ClientUnaryCall; + /** + * A method to search indexed vectors by ID. + * + * @generated from protobuf rpc: SearchByID(payload.v1.Search.IDRequest) returns (payload.v1.Search.Response); + */ + searchByID(input: Search_IDRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Response) => void)): grpc.ClientUnaryCall; + /** + * A method to search indexed vectors by multiple vectors. + * + * @generated from protobuf rpc: StreamSearch(stream payload.v1.Search.Request) returns (stream payload.v1.Search.StreamResponse); + */ + streamSearch(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to search indexed vectors by multiple IDs. + * + * @generated from protobuf rpc: StreamSearchByID(stream payload.v1.Search.IDRequest) returns (stream payload.v1.Search.StreamResponse); + */ + streamSearchByID(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to search indexed vectors by multiple vectors in a single request. + * + * @generated from protobuf rpc: MultiSearch(payload.v1.Search.MultiRequest) returns (payload.v1.Search.Responses); + */ + multiSearch(input: Search_MultiRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Responses) => void)): grpc.ClientUnaryCall; + /** + * A method to search indexed vectors by multiple IDs in a single request. + * + * @generated from protobuf rpc: MultiSearchByID(payload.v1.Search.MultiIDRequest) returns (payload.v1.Search.Responses); + */ + multiSearchByID(input: Search_MultiIDRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Responses) => void)): grpc.ClientUnaryCall; + /** + * A method to linear search indexed vectors by a raw vector. + * + * @generated from protobuf rpc: LinearSearch(payload.v1.Search.Request) returns (payload.v1.Search.Response); + */ + linearSearch(input: Search_Request, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Response) => void)): grpc.ClientUnaryCall; + /** + * A method to linear search indexed vectors by ID. + * + * @generated from protobuf rpc: LinearSearchByID(payload.v1.Search.IDRequest) returns (payload.v1.Search.Response); + */ + linearSearchByID(input: Search_IDRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Response) => void)): grpc.ClientUnaryCall; + /** + * A method to linear search indexed vectors by multiple vectors. + * + * @generated from protobuf rpc: StreamLinearSearch(stream payload.v1.Search.Request) returns (stream payload.v1.Search.StreamResponse); + */ + streamLinearSearch(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to linear search indexed vectors by multiple IDs. + * + * @generated from protobuf rpc: StreamLinearSearchByID(stream payload.v1.Search.IDRequest) returns (stream payload.v1.Search.StreamResponse); + */ + streamLinearSearchByID(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to linear search indexed vectors by multiple vectors in a single + * request. + * + * @generated from protobuf rpc: MultiLinearSearch(payload.v1.Search.MultiRequest) returns (payload.v1.Search.Responses); + */ + multiLinearSearch(input: Search_MultiRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Responses) => void)): grpc.ClientUnaryCall; + /** + * A method to linear search indexed vectors by multiple IDs in a single + * request. + * + * @generated from protobuf rpc: MultiLinearSearchByID(payload.v1.Search.MultiIDRequest) returns (payload.v1.Search.Responses); + */ + multiLinearSearchByID(input: Search_MultiIDRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Responses) => void)): grpc.ClientUnaryCall; +} diff --git a/src/vald/v1/vald/search_pb.grpc-client.js b/src/vald/v1/vald/search_pb.grpc-client.js new file mode 100644 index 00000000..56197c44 --- /dev/null +++ b/src/vald/v1/vald/search_pb.grpc-client.js @@ -0,0 +1,171 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/search.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SearchClient = void 0; +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/search.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +const search_pb_1 = require("./search_pb"); +const grpc = require("@grpc/grpc-js"); +/** + * Search service provides ways to search indexed vectors. + * + * @generated from protobuf service vald.v1.Search + */ +class SearchClient extends grpc.Client { + constructor(address, credentials, options = {}, binaryOptions = {}) { + super(address, credentials, options); + this._binaryOptions = binaryOptions; + } + /** + * A method to search indexed vectors by a raw vector. + * + * @generated from protobuf rpc: Search(payload.v1.Search.Request) returns (payload.v1.Search.Response); + */ + search(input, metadata, options, callback) { + const method = search_pb_1.Search.methods[0]; + return this.makeUnaryRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to search indexed vectors by ID. + * + * @generated from protobuf rpc: SearchByID(payload.v1.Search.IDRequest) returns (payload.v1.Search.Response); + */ + searchByID(input, metadata, options, callback) { + const method = search_pb_1.Search.methods[1]; + return this.makeUnaryRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to search indexed vectors by multiple vectors. + * + * @generated from protobuf rpc: StreamSearch(stream payload.v1.Search.Request) returns (stream payload.v1.Search.StreamResponse); + */ + streamSearch(metadata, options) { + const method = search_pb_1.Search.methods[2]; + return this.makeBidiStreamRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); + } + /** + * A method to search indexed vectors by multiple IDs. + * + * @generated from protobuf rpc: StreamSearchByID(stream payload.v1.Search.IDRequest) returns (stream payload.v1.Search.StreamResponse); + */ + streamSearchByID(metadata, options) { + const method = search_pb_1.Search.methods[3]; + return this.makeBidiStreamRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); + } + /** + * A method to search indexed vectors by multiple vectors in a single request. + * + * @generated from protobuf rpc: MultiSearch(payload.v1.Search.MultiRequest) returns (payload.v1.Search.Responses); + */ + multiSearch(input, metadata, options, callback) { + const method = search_pb_1.Search.methods[4]; + return this.makeUnaryRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to search indexed vectors by multiple IDs in a single request. + * + * @generated from protobuf rpc: MultiSearchByID(payload.v1.Search.MultiIDRequest) returns (payload.v1.Search.Responses); + */ + multiSearchByID(input, metadata, options, callback) { + const method = search_pb_1.Search.methods[5]; + return this.makeUnaryRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to linear search indexed vectors by a raw vector. + * + * @generated from protobuf rpc: LinearSearch(payload.v1.Search.Request) returns (payload.v1.Search.Response); + */ + linearSearch(input, metadata, options, callback) { + const method = search_pb_1.Search.methods[6]; + return this.makeUnaryRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to linear search indexed vectors by ID. + * + * @generated from protobuf rpc: LinearSearchByID(payload.v1.Search.IDRequest) returns (payload.v1.Search.Response); + */ + linearSearchByID(input, metadata, options, callback) { + const method = search_pb_1.Search.methods[7]; + return this.makeUnaryRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to linear search indexed vectors by multiple vectors. + * + * @generated from protobuf rpc: StreamLinearSearch(stream payload.v1.Search.Request) returns (stream payload.v1.Search.StreamResponse); + */ + streamLinearSearch(metadata, options) { + const method = search_pb_1.Search.methods[8]; + return this.makeBidiStreamRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); + } + /** + * A method to linear search indexed vectors by multiple IDs. + * + * @generated from protobuf rpc: StreamLinearSearchByID(stream payload.v1.Search.IDRequest) returns (stream payload.v1.Search.StreamResponse); + */ + streamLinearSearchByID(metadata, options) { + const method = search_pb_1.Search.methods[9]; + return this.makeBidiStreamRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); + } + /** + * A method to linear search indexed vectors by multiple vectors in a single + * request. + * + * @generated from protobuf rpc: MultiLinearSearch(payload.v1.Search.MultiRequest) returns (payload.v1.Search.Responses); + */ + multiLinearSearch(input, metadata, options, callback) { + const method = search_pb_1.Search.methods[10]; + return this.makeUnaryRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to linear search indexed vectors by multiple IDs in a single + * request. + * + * @generated from protobuf rpc: MultiLinearSearchByID(payload.v1.Search.MultiIDRequest) returns (payload.v1.Search.Responses); + */ + multiLinearSearchByID(input, metadata, options, callback) { + const method = search_pb_1.Search.methods[11]; + return this.makeUnaryRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } +} +exports.SearchClient = SearchClient; diff --git a/src/vald/v1/vald/search_pb.js b/src/vald/v1/vald/search_pb.js new file mode 100644 index 00000000..ed3bcb48 --- /dev/null +++ b/src/vald/v1/vald/search_pb.js @@ -0,0 +1,72 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/search.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Search = void 0; +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/search.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +const payload_pb_1 = require("../payload/payload_pb"); +const payload_pb_2 = require("../payload/payload_pb"); +const payload_pb_3 = require("../payload/payload_pb"); +const payload_pb_4 = require("../payload/payload_pb"); +const payload_pb_5 = require("../payload/payload_pb"); +const payload_pb_6 = require("../payload/payload_pb"); +const payload_pb_7 = require("../payload/payload_pb"); +const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); +/** + * @generated ServiceType for protobuf service vald.v1.Search + */ +exports.Search = new runtime_rpc_1.ServiceType("vald.v1.Search", [ + { name: "Search", options: { "google.api.http": { post: "/search", body: "*" } }, I: payload_pb_7.Search_Request, O: payload_pb_6.Search_Response }, + { name: "SearchByID", options: { "google.api.http": { post: "/search/id", body: "*" } }, I: payload_pb_5.Search_IDRequest, O: payload_pb_6.Search_Response }, + { name: "StreamSearch", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_7.Search_Request, O: payload_pb_4.Search_StreamResponse }, + { name: "StreamSearchByID", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_5.Search_IDRequest, O: payload_pb_4.Search_StreamResponse }, + { name: "MultiSearch", options: { "google.api.http": { post: "/search/multiple", body: "*" } }, I: payload_pb_3.Search_MultiRequest, O: payload_pb_2.Search_Responses }, + { name: "MultiSearchByID", options: { "google.api.http": { post: "/search/id/multiple", body: "*" } }, I: payload_pb_1.Search_MultiIDRequest, O: payload_pb_2.Search_Responses }, + { name: "LinearSearch", options: { "google.api.http": { post: "/linearsearch", body: "*" } }, I: payload_pb_7.Search_Request, O: payload_pb_6.Search_Response }, + { name: "LinearSearchByID", options: { "google.api.http": { post: "/linearsearch/id", body: "*" } }, I: payload_pb_5.Search_IDRequest, O: payload_pb_6.Search_Response }, + { name: "StreamLinearSearch", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_7.Search_Request, O: payload_pb_4.Search_StreamResponse }, + { name: "StreamLinearSearchByID", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_5.Search_IDRequest, O: payload_pb_4.Search_StreamResponse }, + { name: "MultiLinearSearch", options: { "google.api.http": { post: "/linearsearch/multiple", body: "*" } }, I: payload_pb_3.Search_MultiRequest, O: payload_pb_2.Search_Responses }, + { name: "MultiLinearSearchByID", options: { "google.api.http": { post: "/linearsearch/id/multiple", body: "*" } }, I: payload_pb_1.Search_MultiIDRequest, O: payload_pb_2.Search_Responses } +]); diff --git a/src/vald/v1/vald/update_pb.d.ts b/src/vald/v1/vald/update_pb.d.ts new file mode 100644 index 00000000..aaf76ae3 --- /dev/null +++ b/src/vald/v1/vald/update_pb.d.ts @@ -0,0 +1,26 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/update.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +/** + * @generated ServiceType for protobuf service vald.v1.Update + */ +export declare const Update: any; diff --git a/src/vald/v1/vald/update_pb.grpc-client.d.ts b/src/vald/v1/vald/update_pb.grpc-client.d.ts new file mode 100644 index 00000000..80958e63 --- /dev/null +++ b/src/vald/v1/vald/update_pb.grpc-client.d.ts @@ -0,0 +1,89 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/update.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { Object_Locations } from "../payload/payload_pb"; +import type { Update_MultiRequest } from "../payload/payload_pb"; +import type { Object_StreamLocation } from "../payload/payload_pb"; +import type { Object_Location } from "../payload/payload_pb"; +import type { Update_Request } from "../payload/payload_pb"; +import * as grpc from "@grpc/grpc-js"; +/** + * Update service provides ways to update indexed vectors. + * + * @generated from protobuf service vald.v1.Update + */ +export interface IUpdateClient { + /** + * A method to update an indexed vector. + * + * @generated from protobuf rpc: Update(payload.v1.Update.Request) returns (payload.v1.Object.Location); + */ + update(input: Update_Request, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + update(input: Update_Request, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + update(input: Update_Request, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + update(input: Update_Request, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + /** + * A method to update multiple indexed vectors by bidirectional streaming. + * + * @generated from protobuf rpc: StreamUpdate(stream payload.v1.Update.Request) returns (stream payload.v1.Object.StreamLocation); + */ + streamUpdate(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; + streamUpdate(options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to update multiple indexed vectors in a single request. + * + * @generated from protobuf rpc: MultiUpdate(payload.v1.Update.MultiRequest) returns (payload.v1.Object.Locations); + */ + multiUpdate(input: Update_MultiRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiUpdate(input: Update_MultiRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiUpdate(input: Update_MultiRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiUpdate(input: Update_MultiRequest, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; +} +/** + * Update service provides ways to update indexed vectors. + * + * @generated from protobuf service vald.v1.Update + */ +export declare class UpdateClient extends grpc.Client implements IUpdateClient { + private readonly _binaryOptions; + constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial); + /** + * A method to update an indexed vector. + * + * @generated from protobuf rpc: Update(payload.v1.Update.Request) returns (payload.v1.Object.Location); + */ + update(input: Update_Request, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Location) => void)): grpc.ClientUnaryCall; + /** + * A method to update multiple indexed vectors by bidirectional streaming. + * + * @generated from protobuf rpc: StreamUpdate(stream payload.v1.Update.Request) returns (stream payload.v1.Object.StreamLocation); + */ + streamUpdate(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to update multiple indexed vectors in a single request. + * + * @generated from protobuf rpc: MultiUpdate(payload.v1.Update.MultiRequest) returns (payload.v1.Object.Locations); + */ + multiUpdate(input: Update_MultiRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Locations) => void)): grpc.ClientUnaryCall; +} diff --git a/src/vald/v1/vald/update_pb.grpc-client.js b/src/vald/v1/vald/update_pb.grpc-client.js new file mode 100644 index 00000000..e1096909 --- /dev/null +++ b/src/vald/v1/vald/update_pb.grpc-client.js @@ -0,0 +1,88 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/update.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateClient = void 0; +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/update.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +const update_pb_1 = require("./update_pb"); +const grpc = require("@grpc/grpc-js"); +/** + * Update service provides ways to update indexed vectors. + * + * @generated from protobuf service vald.v1.Update + */ +class UpdateClient extends grpc.Client { + constructor(address, credentials, options = {}, binaryOptions = {}) { + super(address, credentials, options); + this._binaryOptions = binaryOptions; + } + /** + * A method to update an indexed vector. + * + * @generated from protobuf rpc: Update(payload.v1.Update.Request) returns (payload.v1.Object.Location); + */ + update(input, metadata, options, callback) { + const method = update_pb_1.Update.methods[0]; + return this.makeUnaryRequest(`/${update_pb_1.Update.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to update multiple indexed vectors by bidirectional streaming. + * + * @generated from protobuf rpc: StreamUpdate(stream payload.v1.Update.Request) returns (stream payload.v1.Object.StreamLocation); + */ + streamUpdate(metadata, options) { + const method = update_pb_1.Update.methods[1]; + return this.makeBidiStreamRequest(`/${update_pb_1.Update.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); + } + /** + * A method to update multiple indexed vectors in a single request. + * + * @generated from protobuf rpc: MultiUpdate(payload.v1.Update.MultiRequest) returns (payload.v1.Object.Locations); + */ + multiUpdate(input, metadata, options, callback) { + const method = update_pb_1.Update.methods[2]; + return this.makeUnaryRequest(`/${update_pb_1.Update.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } +} +exports.UpdateClient = UpdateClient; diff --git a/src/vald/v1/vald/update_pb.js b/src/vald/v1/vald/update_pb.js new file mode 100644 index 00000000..1041915b --- /dev/null +++ b/src/vald/v1/vald/update_pb.js @@ -0,0 +1,61 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/update.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Update = void 0; +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/update.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +const payload_pb_1 = require("../payload/payload_pb"); +const payload_pb_2 = require("../payload/payload_pb"); +const payload_pb_3 = require("../payload/payload_pb"); +const payload_pb_4 = require("../payload/payload_pb"); +const payload_pb_5 = require("../payload/payload_pb"); +const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); +/** + * @generated ServiceType for protobuf service vald.v1.Update + */ +exports.Update = new runtime_rpc_1.ServiceType("vald.v1.Update", [ + { name: "Update", options: { "google.api.http": { post: "/update", body: "*" } }, I: payload_pb_5.Update_Request, O: payload_pb_4.Object_Location }, + { name: "StreamUpdate", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_5.Update_Request, O: payload_pb_3.Object_StreamLocation }, + { name: "MultiUpdate", options: { "google.api.http": { post: "/update/multiple", body: "*" } }, I: payload_pb_2.Update_MultiRequest, O: payload_pb_1.Object_Locations } +]); diff --git a/src/vald/v1/vald/upsert_pb.d.ts b/src/vald/v1/vald/upsert_pb.d.ts new file mode 100644 index 00000000..eba0330c --- /dev/null +++ b/src/vald/v1/vald/upsert_pb.d.ts @@ -0,0 +1,26 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/upsert.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +/** + * @generated ServiceType for protobuf service vald.v1.Upsert + */ +export declare const Upsert: any; diff --git a/src/vald/v1/vald/upsert_pb.grpc-client.d.ts b/src/vald/v1/vald/upsert_pb.grpc-client.d.ts new file mode 100644 index 00000000..75fa756e --- /dev/null +++ b/src/vald/v1/vald/upsert_pb.grpc-client.d.ts @@ -0,0 +1,89 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/upsert.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { Object_Locations } from "../payload/payload_pb"; +import type { Upsert_MultiRequest } from "../payload/payload_pb"; +import type { Object_StreamLocation } from "../payload/payload_pb"; +import type { Object_Location } from "../payload/payload_pb"; +import type { Upsert_Request } from "../payload/payload_pb"; +import * as grpc from "@grpc/grpc-js"; +/** + * Upsert service provides ways to insert/update vectors. + * + * @generated from protobuf service vald.v1.Upsert + */ +export interface IUpsertClient { + /** + * A method to insert/update a vector. + * + * @generated from protobuf rpc: Upsert(payload.v1.Upsert.Request) returns (payload.v1.Object.Location); + */ + upsert(input: Upsert_Request, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + upsert(input: Upsert_Request, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + upsert(input: Upsert_Request, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + upsert(input: Upsert_Request, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; + /** + * A method to insert/update multiple vectors by bidirectional streaming. + * + * @generated from protobuf rpc: StreamUpsert(stream payload.v1.Upsert.Request) returns (stream payload.v1.Object.StreamLocation); + */ + streamUpsert(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; + streamUpsert(options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to insert/update multiple vectors in a single request. + * + * @generated from protobuf rpc: MultiUpsert(payload.v1.Upsert.MultiRequest) returns (payload.v1.Object.Locations); + */ + multiUpsert(input: Upsert_MultiRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiUpsert(input: Upsert_MultiRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiUpsert(input: Upsert_MultiRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; + multiUpsert(input: Upsert_MultiRequest, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; +} +/** + * Upsert service provides ways to insert/update vectors. + * + * @generated from protobuf service vald.v1.Upsert + */ +export declare class UpsertClient extends grpc.Client implements IUpsertClient { + private readonly _binaryOptions; + constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial); + /** + * A method to insert/update a vector. + * + * @generated from protobuf rpc: Upsert(payload.v1.Upsert.Request) returns (payload.v1.Object.Location); + */ + upsert(input: Upsert_Request, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Location) => void)): grpc.ClientUnaryCall; + /** + * A method to insert/update multiple vectors by bidirectional streaming. + * + * @generated from protobuf rpc: StreamUpsert(stream payload.v1.Upsert.Request) returns (stream payload.v1.Object.StreamLocation); + */ + streamUpsert(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; + /** + * A method to insert/update multiple vectors in a single request. + * + * @generated from protobuf rpc: MultiUpsert(payload.v1.Upsert.MultiRequest) returns (payload.v1.Object.Locations); + */ + multiUpsert(input: Upsert_MultiRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Locations) => void)): grpc.ClientUnaryCall; +} diff --git a/src/vald/v1/vald/upsert_pb.grpc-client.js b/src/vald/v1/vald/upsert_pb.grpc-client.js new file mode 100644 index 00000000..c86b22b3 --- /dev/null +++ b/src/vald/v1/vald/upsert_pb.grpc-client.js @@ -0,0 +1,88 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/upsert.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpsertClient = void 0; +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/upsert.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +const upsert_pb_1 = require("./upsert_pb"); +const grpc = require("@grpc/grpc-js"); +/** + * Upsert service provides ways to insert/update vectors. + * + * @generated from protobuf service vald.v1.Upsert + */ +class UpsertClient extends grpc.Client { + constructor(address, credentials, options = {}, binaryOptions = {}) { + super(address, credentials, options); + this._binaryOptions = binaryOptions; + } + /** + * A method to insert/update a vector. + * + * @generated from protobuf rpc: Upsert(payload.v1.Upsert.Request) returns (payload.v1.Object.Location); + */ + upsert(input, metadata, options, callback) { + const method = upsert_pb_1.Upsert.methods[0]; + return this.makeUnaryRequest(`/${upsert_pb_1.Upsert.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } + /** + * A method to insert/update multiple vectors by bidirectional streaming. + * + * @generated from protobuf rpc: StreamUpsert(stream payload.v1.Upsert.Request) returns (stream payload.v1.Object.StreamLocation); + */ + streamUpsert(metadata, options) { + const method = upsert_pb_1.Upsert.methods[1]; + return this.makeBidiStreamRequest(`/${upsert_pb_1.Upsert.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); + } + /** + * A method to insert/update multiple vectors in a single request. + * + * @generated from protobuf rpc: MultiUpsert(payload.v1.Upsert.MultiRequest) returns (payload.v1.Object.Locations); + */ + multiUpsert(input, metadata, options, callback) { + const method = upsert_pb_1.Upsert.methods[2]; + return this.makeUnaryRequest(`/${upsert_pb_1.Upsert.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); + } +} +exports.UpsertClient = UpsertClient; diff --git a/src/vald/v1/vald/upsert_pb.js b/src/vald/v1/vald/upsert_pb.js new file mode 100644 index 00000000..ff3b813d --- /dev/null +++ b/src/vald/v1/vald/upsert_pb.js @@ -0,0 +1,61 @@ +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/upsert.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Upsert = void 0; +/* eslint-disable */ +// @generated by protobuf-ts 2.9.4 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable +// @generated from protobuf file "vald/v1/vald/upsert.proto" (package "vald.v1", syntax proto3) +// tslint:disable +// @ts-nocheck +// +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +const payload_pb_1 = require("../payload/payload_pb"); +const payload_pb_2 = require("../payload/payload_pb"); +const payload_pb_3 = require("../payload/payload_pb"); +const payload_pb_4 = require("../payload/payload_pb"); +const payload_pb_5 = require("../payload/payload_pb"); +const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); +/** + * @generated ServiceType for protobuf service vald.v1.Upsert + */ +exports.Upsert = new runtime_rpc_1.ServiceType("vald.v1.Upsert", [ + { name: "Upsert", options: { "google.api.http": { post: "/upsert", body: "*" } }, I: payload_pb_5.Upsert_Request, O: payload_pb_4.Object_Location }, + { name: "StreamUpsert", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_5.Upsert_Request, O: payload_pb_3.Object_StreamLocation }, + { name: "MultiUpsert", options: { "google.api.http": { post: "/upsert/multiple", body: "*" } }, I: payload_pb_2.Upsert_MultiRequest, O: payload_pb_1.Object_Locations } +]); diff --git a/tests/e2e.test.ts b/tests/e2e.test.ts new file mode 100644 index 00000000..2bfdb222 --- /dev/null +++ b/tests/e2e.test.ts @@ -0,0 +1,901 @@ +import grpc = require("@grpc/grpc-js"); +import { + insert_grpc, + search_grpc, + update_grpc, + upsert_grpc, + remove_grpc, + object_grpc, +} from "../src/vald/v1/vald"; +import { agent_grpc } from "../src/vald/v1/agent/core"; +import { payload } from "../src/vald/v1/payload"; +import { InsertClient } from "../src/vald/v1/vald/insert_pb.grpc-client"; +import { RemoveClient } from "../src/vald/v1/vald/remove_pb.grpc-client"; +import { SearchClient } from "../src/vald/v1/vald/search_pb.grpc-client"; +import { UpdateClient } from "../src/vald/v1/vald/update_pb.grpc-client"; +import { UpsertClient } from "../src/vald/v1/vald/upsert_pb.grpc-client"; +import { ObjectClient } from "../src/vald/v1/vald/object_pb.grpc-client"; +import { AgentClient } from "../src/vald/v1/agent/core/agent_pb.grpc-client"; +import data = require("./wordvecs1000.json"); + +const address = "localhost:8081"; +const connectDeadlineMs = 10000; + +jest.setTimeout(120000); + +describe("Tests for node client", () => { + describe("Tests for insert operations", () => { + let client: InsertClient; + + beforeAll((done) => { + client = new insert_grpc.InsertClient( + address, + grpc.credentials?.createInsecure(), + ); + client.waitForReady(Date.now() + connectDeadlineMs, (e) => { + if (e) { + done(e); + } else { + done(); + } + }); + }); + + afterAll(() => { + client.close(); + }); + + console.log(data); + + test("Insert", (done) => { + const vec = payload.Object_Vector.create({ + id: data[0].id, + vector: data[0].vector, + }); + + const cfg = payload.Insert_Config?.create({ + skip_strict_exist_check: true, + }); + + const req = payload.Insert_Request?.create({ + vector: vec, + config: cfg, + }); + + client.insert(req, (err, resp) => { + try { + expect(err).toBeFalsy(); + expect(payload.Object_Location.is(resp)).toBe(true); + + done(); + } catch (e) { + done(e); + } + }); + }); + + test("MultiInsert", (done) => { + const requests: Array = []; + const cfg = payload.Insert_Config?.create({ + skip_strict_exist_check: true, + }); + + for (let i = 1; i < 11; i++) { + const vec = payload.Object_Vector?.create({ + id: data[i].id, + vector: data[i].vector, + }); + + const r = payload.Insert_Request?.create({ + vector: vec, + config: cfg, + }); + + requests.push(r); + } + + const req = payload.Insert_MultiRequest?.create({ + requests: requests, + }); + + client.multiInsert(req, (err, resp) => { + try { + expect(err).toBeFalsy(); + expect(payload.Object_Locations.is(resp)).toBe(true); + done(); + } catch (e) { + done(e); + } + }); + }); + + test("StreamInsert", (done) => { + const cfg = payload.Insert_Config?.create({ + skip_strict_exist_check: true, + }); + + const channel = client.streamInsert(); + channel.on("data", (message) => { + try { + expect(payload.Object_StreamLocation.is(message)).toBe(true); + const cloneRes = payload.Object_StreamLocation.clone(message); + if (cloneRes.payload.oneofKind === "status") { + expect(cloneRes.payload.status.code).toEqual(0); + } + } catch (e) { + done(e); + } + }); + channel.on("end", () => { + done(); + }); + channel.on("error", (e) => { + done(e); + }); + + for (let i = 11; i < 101; i++) { + const vec = payload.Object_Vector?.create({ + id: data[i].id, + vector: data[i].vector, + }); + + const r = payload.Insert_Request?.create({ + vector: vec, + config: cfg, + }); + channel.write(r); + } + + channel.end(); + }); + }); + + describe("Tests for creating indices operations", () => { + let client: AgentClient; + + beforeAll((done) => { + client = new agent_grpc.AgentClient( + address, + grpc.credentials?.createInsecure(), + ); + client.waitForReady(Date.now() + connectDeadlineMs, (e) => { + if (e) { + done(e); + } else { + done(); + } + }); + }); + + afterAll(() => { + client.close(); + }); + + test("CreateIndex", (done) => { + const req = payload.Control_CreateIndexRequest?.create({ + pool_size: 10000, + }); + + client?.createIndex(req, (err, resp) => { + try { + expect(err).toBeFalsy(); + expect(payload.Empty.is(resp)).toBe(true) + done(); + } catch (e) { + done(e); + } + }); + }); + + test("SaveIndex", (done) => { + const req = payload.Empty?.create(); + + client.saveIndex(req, (err, resp) => { + try { + expect(err).toBeFalsy(); + expect(payload.Empty.is(resp)).toBe(true); + done(); + } catch (e) { + done(e); + } + }); + }); + + test("IndexInfo", (done) => { + const req = payload.Empty?.create(); + + client.indexInfo(req, (err, resp) => { + try { + expect(err).toBeFalsy(); + expect(payload.Info_Index_Count.is(resp)).toBe(true); + expect(resp?.stored).toEqual(101); + expect(resp?.uncommitted).toEqual(0); + done(); + } catch (e) { + done(e); + } + }); + }); + }); + + describe("Test for object operations", () => { + let client: ObjectClient; + + beforeAll((done) => { + client = new object_grpc.ObjectClient( + address, + grpc.credentials?.createInsecure(), + ); + client.waitForReady(Date.now() + connectDeadlineMs, (e) => { + if (e) { + done(e); + } else { + done(); + } + }); + }); + + afterAll(() => { + client.close(); + }); + + test("Exists", (done) => { + const req = payload.Object_ID?.create({ + id: data[0].id, + }); + + client.exists(req, (err, resp) => { + try { + expect(err).toBeFalsy(); + expect(payload.Object_ID.is(resp)).toBe(true); + done(); + } catch (e) { + done(e); + } + }); + }); + + test("GetObject", (done) => { + const id = payload.Object_ID?.create({ + id: data[0].id, + }); + + const req = payload.Object_VectorRequest?.create({ + id: id, + }); + + client.getObject(req, (err, resp) => { + try { + expect(err).toBeFalsy(); + expect(payload.Object_Vector.is(resp)).toBe(true); + done(); + } catch (e) { + done(e); + } + }); + }); + + test("StreamGetObject", (done) => { + const channel = client.streamGetObject(); + channel.on("data", (message) => { + try { + expect(payload.Object_StreamVector.is(message)).toBe(true); + const cloneRes = payload.Object_StreamVector.clone(message); + if (cloneRes.payload.oneofKind === "status") { + expect(cloneRes.payload.status.code).toEqual(0); + } + } catch (e) { + done(e); + } + }); + channel.on("end", () => { + done(); + }); + channel.on("error", (e) => { + done(e); + }); + + for (let i = 0; i < 11; i++) { + const id = payload.Object_ID?.create({ + id: data[i].id, + }); + + const req = payload.Object_VectorRequest?.create({ + id: id, + }); + + channel.write(req); + } + + channel.end(); + }); + }); + + describe("Tests for search operations", () => { + let client: SearchClient; + + beforeAll((done) => { + client = new search_grpc.SearchClient( + address, + grpc.credentials?.createInsecure(), + ); + client.waitForReady(Date.now() + connectDeadlineMs, (e) => { + if (e) { + done(e); + } else { + done(); + } + }); + }); + + afterAll(() => { + client.close(); + }); + + test("Search", (done) => { + const cfg = payload.Search_Config?.create({ + num: 3, + radius: -1.0, + epsilon: 0.1, + timeout: BigInt(3000000000), + }); + + const req = payload.Search_Request?.create({ + vector: data[0].vector, + config: cfg, + }); + + client.search(req, (err, resp) => { + try { + expect(err).toBeFalsy(); + expect(payload.Search_Response.is(resp)).toBe(true); + expect(resp?.results.length).toEqual(3); + done(); + } catch (e) { + done(e); + } + }); + }); + + test("MultiSearch", (done) => { + const requests: Array = []; + const cfg = payload.Search_Config?.create({ + num: 3, + radius: -1.0, + epsilon: 0.1, + timeout: BigInt(3000000000), + }); + + for (let i = 1; i < 11; i++) { + const r = payload.Search_Request?.create({ + vector: data[i].vector, + config: cfg, + }); + requests.push(r); + } + + const req = payload.Search_MultiRequest?.create({ + requests: requests, + }); + + client.multiSearch(req, (err, resp) => { + try { + expect(err).toBeFalsy(); + expect(payload.Search_Responses.is(resp)).toBe(true); + for (const response of resp?.responses ?? []) { + expect(payload.Search_Response.is(response)).toBe(true); + expect(response.results.length).toEqual(3); + } + done(); + } catch (e) { + done(e); + } + }); + }); + + test("StreamSearch", (done) => { + const cfg = payload.Search_Config?.create({ + num: 3, + radius: -1.0, + epsilon: 0.1, + timeout: BigInt(3000000000), + }); + + const channel = client.streamSearch(); + channel.on("data", (message) => { + try { + expect(payload.Search_StreamResponse.is(message)).toBe(true); + const cloneRes = payload.Search_StreamResponse.clone(message); + if (cloneRes.payload.oneofKind === "status") { + expect(cloneRes.payload.status.code).toEqual(0); + } + } catch (e) { + done(e); + } + }); + channel.on("end", () => { + done(); + }); + channel.on("error", (e) => { + done(e); + }); + + for (let i = 11; i < 21; i++) { + const r = payload.Search_Request?.create({ + vector: data[i].vector, + config: cfg, + }); + + channel.write(r); + } + + channel.end(); + }); + + test("SearchByID", (done) => { + const cfg = payload.Search_Config?.create({ + num: 3, + radius: -1.0, + epsilon: 0.1, + timeout: BigInt(3000000000), + }); + + const req = payload.Search_IDRequest?.create({ + id: data[0].id, + config: cfg, + }); + + client.searchByID(req, (err, resp) => { + try { + expect(err).toBeFalsy(); + expect(payload.Search_Response.is(resp)).toBe(true); + expect(resp?.results.length).toEqual(3); + done(); + } catch (e) { + done(e); + } + }); + }); + + test("MultiSearchByID", (done) => { + const requests: Array = []; + const cfg = payload.Search_Config?.create({ + num: 3, + radius: -1.0, + epsilon: 0.1, + timeout: BigInt(3000000000), + }); + + for (let i = 1; i < 11; i++) { + const r = payload.Search_IDRequest?.create({ + id: data[i].id, + config: cfg, + }); + + requests.push(r); + } + + const req = payload.Search_MultiIDRequest?.create({ + requests: requests, + }); + + client.multiSearchByID(req, (err, resp) => { + try { + expect(err).toBeFalsy(); + expect(payload.Search_Responses.is(resp)).toBe(true); + for (const response of resp?.responses ?? []) { + expect(payload.Search_Response.is(response)).toBe(true); + expect(response.results.length).toEqual(3); + } + done(); + } catch (e) { + done(e); + } + }); + }); + + test("StreamSearchByID", (done) => { + const cfg = payload.Search_Config?.create({ + num: 3, + radius: -1.0, + epsilon: 0.1, + timeout: BigInt(3000000000), + }); + + const channel = client.streamSearchByID(); + channel.on("data", (message) => { + try { + expect(payload.Search_StreamResponse.is(message)).toBe(true); + const cloneRes = payload.Search_StreamResponse.clone(message); + if (cloneRes.payload.oneofKind === "status") { + expect(cloneRes.payload.status.code).toEqual(0); + } + } catch (e) { + done(e); + } + }); + channel.on("end", () => { + done(); + }); + channel.on("error", (e) => { + done(e); + }); + + for (let i = 11; i < 21; i++) { + const r = payload.Search_IDRequest?.create({ + id: data[i].id, + config: cfg, + }); + channel.write(r); + } + + channel.end(); + }); + }); + + describe("Tests for update operations", () => { + let client: UpdateClient; + + beforeAll((done) => { + client = new update_grpc.UpdateClient( + address, + grpc.credentials?.createInsecure(), + ); + client.waitForReady(Date.now() + connectDeadlineMs, (e) => { + if (e) { + done(e); + } else { + done(); + } + }); + }); + + afterAll(() => { + client.close(); + }); + + test("Update", (done) => { + const vec = payload.Object_Vector?.create({ + id: data[0].id, + vector: data[1].vector, + }); + const cfg = payload.Update_Config?.create({ + skip_strict_exist_check: true, + }); + + const req = payload.Update_Request?.create({ + vector: vec, + config: cfg, + }); + + client.update(req, (err, resp) => { + try { + expect(err).toBeFalsy(); + expect(payload.Object_Location.is(resp)).toBe(true); + done(); + } catch (e) { + done(e); + } + }); + }); + + test("MultiUpdate", (done) => { + const requests: Array = []; + const cfg = payload.Update_Config?.create({ + skip_strict_exist_check: true, + }); + + for (let i = 1; i < 11; i++) { + const vec = payload.Object_Vector?.create({ + id: data[i].id, + vector: data[i + 1].vector, + }); + + const r = payload.Update_Request?.create({ + vector: vec, + config: cfg, + }); + + requests.push(r); + } + + const req = payload.Update_MultiRequest?.create({ + requests: requests, + }); + + client.multiUpdate(req, (err, resp) => { + try { + expect(err).toBeFalsy(); + expect(payload.Object_Locations.is(resp)).toBe(true); + done(); + } catch (e) { + done(e); + } + }); + }); + + test("StreamUpdate", (done) => { + const cfg = payload.Update_Config?.create({ + skip_strict_exist_check: true, + }); + + const channel = client.streamUpdate(); + channel.on("data", (message) => { + try { + expect(payload.Object_StreamLocation.is(message)).toBe(true); + const cloneRes = payload.Object_StreamLocation.clone(message); + if (cloneRes.payload.oneofKind === "status") { + expect(cloneRes.payload.status.code).toEqual(0); + } + } catch (e) { + done(e); + } + }); + channel.on("end", () => { + done(); + }); + channel.on("error", (e) => { + done(e); + }); + + for (let i = 11; i < 21; i++) { + const vec = payload.Object_Vector?.create({ + id: data[i].id, + vector: data[i + 1].vector, + }); + + const r = payload.Update_Request?.create({ + vector: vec, + config: cfg, + }); + channel.write(r); + } + + channel.end(); + }); + }); + + describe("Tests for upsert operations", () => { + let client: UpsertClient; + + beforeAll((done) => { + client = new upsert_grpc.UpsertClient( + address, + grpc.credentials?.createInsecure(), + ); + client.waitForReady(Date.now() + connectDeadlineMs, (e) => { + if (e) { + done(e); + } else { + done(); + } + }); + }); + + afterAll(() => { + client.close(); + }); + + test("Upsert", (done) => { + const vec = payload.Object_Vector?.create({ + id: data[0].id, + vector: data[0].vector, + }); + + const cfg = payload.Upsert_Config?.create({ + skip_strict_exist_check: true, + }); + + const req = payload.Upsert_Request?.create({ + vector: vec, + config: cfg + }); + + client.upsert(req, (err, resp) => { + try { + expect(err).toBeFalsy(); + expect(payload.Object_Location.is(resp)).toBe(true); + done(); + } catch (e) { + done(e); + } + }); + }); + + test("MultiUpsert", (done) => { + const requests: Array = []; + const cfg = payload.Upsert_Config?.create({ + skip_strict_exist_check: true, + }); + + for (let i = 1; i < 11; i++) { + const vec = payload.Object_Vector?.create({ + id: data[i].id, + vector: data[i].vector, + }); + + const r = payload.Upsert_Request?.create({ + vector: vec, + config: cfg, + }); + + requests.push(r); + } + + const req = payload.Upsert_MultiRequest?.create({ + requests: requests, + }); + + client.multiUpsert(req, (err, resp) => { + try { + expect(err).toBeFalsy(); + expect(payload.Object_Locations.is(resp)).toBe(true); + done(); + } catch (e) { + done(e); + } + }); + }); + + test("StreamUpsert", (done) => { + const cfg = payload.Upsert_Config?.create({ + skip_strict_exist_check: true, + }); + + const channel = client.streamUpsert(); + channel.on("data", (message) => { + try { + expect(payload.Object_StreamLocation.is(message)).toBe(true); + const cloneRes = payload.Object_StreamLocation.clone(message); + if (cloneRes.payload.oneofKind === "status") { + expect(cloneRes.payload.status.code).toEqual(0); + } + } catch (e) { + done(e); + } + }); + channel.on("end", () => { + done(); + }); + channel.on("error", (e) => { + done(e); + }); + + for (let i = 11; i < 21; i++) { + const vec = payload.Object_Vector?.create({ + id: data[i].id, + vector: data[i].vector, + }); + const r = payload.Upsert_Request?.create({ + vector: vec, + config: cfg, + }); + + channel.write(r); + } + + channel.end(); + }); + }); + + describe("Tests for remove operations", () => { + let client: RemoveClient; + + beforeAll((done) => { + client = new remove_grpc.RemoveClient( + address, + grpc.credentials?.createInsecure(), + ); + client.waitForReady(Date.now() + connectDeadlineMs, (e) => { + if (e) { + done(e); + } else { + done(); + } + }); + }); + + afterAll(() => { + client.close(); + }); + + test("Remove", (done) => { + const id = payload.Object_ID?.create({ + id: data[0].id, + }); + + const cfg = payload.Remove_Config?.create({ + skip_strict_exist_check: true, + }); + + const req = payload.Remove_Request?.create({ + id: id, + config: cfg, + }); + + client.remove(req, (err, resp) => { + try { + expect(err).toBeFalsy(); + expect(payload.Object_Location.is(resp)).toBe(true); + done(); + } catch (e) { + done(e); + } + }); + }); + + test("MultiRemove", (done) => { + const requests: Array = []; + const cfg = payload.Insert_Config?.create({ + skip_strict_exist_check: true, + }); + + for (let i = 1; i < 11; i++) { + const id = payload.Object_ID?.create({ + id: data[i].id, + }); + + const r = payload.Remove_Request?.create({ + id: id, + config: cfg, + }); + + requests.push(r); + } + + const req = payload.Remove_MultiRequest?.create({ + requests: requests, + }); + + client.multiRemove(req, (err, resp) => { + try { + expect(err).toBeFalsy(); + expect(payload.Object_Locations.is(resp)).toBe(true); + done(); + } catch (e) { + done(e); + } + }); + }); + + test("StreamRemove", (done) => { + const cfg = payload.Remove_Config?.create({ + skip_strict_exist_check: true, + }); + + const channel = client.streamRemove(); + channel.on("data", (message) => { + try { + expect(payload.Object_StreamLocation.is(message)).toBe(true); + const cloneRes = payload.Object_StreamLocation.clone(message); + if (cloneRes.payload.oneofKind === "status") { + expect(cloneRes.payload.status.code).toEqual(0); + } + } catch (e) { + done(e); + } + }); + channel.on("end", () => { + done(); + }); + channel.on("error", (e) => { + done(e); + }); + + for (let i = 11; i < 21; i++) { + const id = payload.Object_ID?.create({ + id: data[i].id, + }); + + const r = payload.Remove_Request?.create({ + id: id, + config: cfg, + }); + + channel.write(r); + } + + channel.end(); + }); + }); +}); diff --git a/tests/wordvecs1000.d.ts b/tests/wordvecs1000.d.ts new file mode 100644 index 00000000..71f3e7ef --- /dev/null +++ b/tests/wordvecs1000.d.ts @@ -0,0 +1,9 @@ +declare module '*/wordvecs1000.json' { + interface VectorDatum { + id: string; + vector: number[]; + } + + const data: VectorDatum[]; + export default data; +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..574e785c --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "target": "es2020", + "module": "commonjs", + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + "skipLibCheck": true, + "resolveJsonModule": true + } +} diff --git a/version/GRADLE_VERSION b/version/GRADLE_VERSION deleted file mode 100644 index 0ff41bfa..00000000 --- a/version/GRADLE_VERSION +++ /dev/null @@ -1 +0,0 @@ -8.7 diff --git a/version/GRPC_JAVA_VERSION b/version/GRPC_JAVA_VERSION deleted file mode 100644 index c37e3b95..00000000 --- a/version/GRPC_JAVA_VERSION +++ /dev/null @@ -1 +0,0 @@ -v1.61.1 diff --git a/version/JAVA_VERSION b/version/JAVA_VERSION deleted file mode 100644 index 9d607966..00000000 --- a/version/JAVA_VERSION +++ /dev/null @@ -1 +0,0 @@ -11 \ No newline at end of file diff --git a/version/JAVA_VERSION_LTS_LATEST b/version/JAVA_VERSION_LTS_LATEST deleted file mode 100644 index 8e2afd34..00000000 --- a/version/JAVA_VERSION_LTS_LATEST +++ /dev/null @@ -1 +0,0 @@ -17 \ No newline at end of file diff --git a/version/PROTOBUF_VERSION b/version/PROTOBUF_VERSION deleted file mode 100644 index 92f5bad1..00000000 --- a/version/PROTOBUF_VERSION +++ /dev/null @@ -1 +0,0 @@ -v25.3 From 51ac11580eaeeb456d5087d00a41b01b8410961e Mon Sep 17 00:00:00 2001 From: hlts2 Date: Fri, 24 May 2024 16:52:53 +0900 Subject: [PATCH 2/5] fix: update settings Signed-off-by: hlts2 --- .github/dependabot-cli.yaml | 54 ++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/dependabot-cli.yaml b/.github/dependabot-cli.yaml index 73ca6e9b..59d39dd9 100644 --- a/.github/dependabot-cli.yaml +++ b/.github/dependabot-cli.yaml @@ -1,27 +1,27 @@ -job: - package-manager: npm_and_yarn - allowed-updates: - - update-type: all - dependency-groups: - - name: npm - rules: - patterns: - - "*" - source: - directory: "/" - provider: github - repo: vdaas/vald-client-node -# input: -# job: -# package-manager: npm_and_yarn -# allowed-updates: -# - update-type: all -# dependency-groups: -# - name: npm -# rules: -# patterns: -# - "*" -# source: -# directory: "*" -# provider: github -# repo: vdaas/vald-client-node +# job: +# package-manager: npm_and_yarn +# allowed-updates: +# - update-type: all +# dependency-groups: +# - name: npm +# rules: +# patterns: +# - "*" +# source: +# directory: "/" +# provider: github +# repo: vdaas/vald-client-node +input: + job: + package-manager: npm_and_yarn + allowed-updates: + - update-type: all + dependency-groups: + - name: npm + rules: + patterns: + - "*" + source: + directory: "*" + provider: github + repo: vdaas/vald-ci-labs From fa6e6245e7aa38e3d8a4c14af7f743253b1516e2 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Fri, 24 May 2024 16:56:02 +0900 Subject: [PATCH 3/5] fix: settings Signed-off-by: hlts2 --- .github/dependabot-cli.yaml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/dependabot-cli.yaml b/.github/dependabot-cli.yaml index 59d39dd9..dc6aa9cf 100644 --- a/.github/dependabot-cli.yaml +++ b/.github/dependabot-cli.yaml @@ -1,16 +1,3 @@ -# job: -# package-manager: npm_and_yarn -# allowed-updates: -# - update-type: all -# dependency-groups: -# - name: npm -# rules: -# patterns: -# - "*" -# source: -# directory: "/" -# provider: github -# repo: vdaas/vald-client-node input: job: package-manager: npm_and_yarn @@ -25,3 +12,16 @@ input: directory: "*" provider: github repo: vdaas/vald-ci-labs +# job: +# package-manager: npm_and_yarn +# allowed-updates: +# - update-type: all +# dependency-groups: +# - name: npm +# rules: +# patterns: +# - "*" +# source: +# directory: "/" +# provider: github +# repo: vdaas/vald-client-node From 099040eb28e8536efec4581064fc705161436008 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Fri, 24 May 2024 16:56:48 +0900 Subject: [PATCH 4/5] fix: update settings Signed-off-by: hlts2 --- .github/dependabot-cli.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot-cli.yaml b/.github/dependabot-cli.yaml index dc6aa9cf..3acc5515 100644 --- a/.github/dependabot-cli.yaml +++ b/.github/dependabot-cli.yaml @@ -9,7 +9,7 @@ input: patterns: - "*" source: - directory: "*" + directory: "/" provider: github repo: vdaas/vald-ci-labs # job: From f36512538256a52435a0a925c1c2310169c6c9ca Mon Sep 17 00:00:00 2001 From: hlts2 Date: Fri, 24 May 2024 17:09:14 +0900 Subject: [PATCH 5/5] fix: setting for actions update Signed-off-by: hlts2 --- .github/dependabot-cli.yaml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/dependabot-cli.yaml b/.github/dependabot-cli.yaml index 3acc5515..c311a178 100644 --- a/.github/dependabot-cli.yaml +++ b/.github/dependabot-cli.yaml @@ -1,10 +1,10 @@ input: job: - package-manager: npm_and_yarn + package-manager: github_actions allowed-updates: - update-type: all dependency-groups: - - name: npm + - name: actions rules: patterns: - "*" @@ -12,6 +12,22 @@ input: directory: "/" provider: github repo: vdaas/vald-ci-labs + +# input: +# job: +# package-manager: npm_and_yarn +# allowed-updates: +# - update-type: all +# dependency-groups: +# - name: npm +# rules: +# patterns: +# - "*" +# source: +# directory: "/" +# provider: github +# repo: vdaas/vald-ci-labs + # job: # package-manager: npm_and_yarn # allowed-updates: