From 3fa9276a3f5fa5fb58a28a46f2d23259aba77d1a Mon Sep 17 00:00:00 2001 From: Elad Gildnur <6321801+shleikes@users.noreply.github.com> Date: Thu, 16 Nov 2023 15:55:14 +0200 Subject: [PATCH] PRT-987 SDK - Implement batch requests (#948) * Add a package.json command for jsonRPC badge test * Move JsonrpcVersion to consts * Add JsonRPCBatchMessage * Add some helper methods * Add support for batches for tendermint * Remove protos and compiled protos * Make the protoc generation script work * Update the github job to generate protos * added batches to test * stringify * add better error handling in batches when timing out * Add batch support for jsonrpc * Fix SDK tests github action * Fix package.json commands * Fix URL parsing * Improve the SDK examples * Fix SDK setup scripts * Update gitignore * Fix spec * Small fix to the lava SDK tests GH action * Fix attempt to the e2e gh action + some logs * Forgotten merge conflict * Clean up E2E gh action * Small fix to the jsonrpc.ts file * Add tests to jsonrpc and tendermintrpc * Fix e2e job * CR Fix: Update the gelocation in the scripts * Create a new script "init_sdk.sh" add updated the README * CR Fix: Remove debug log * CR Fix: Add tests to common's compareRequestedBlockInBatch function * Update the SDK e2e job * Fix lint --------- Co-authored-by: omerlavanet --- .github/workflows/e2e.yml | 365 +- .github/workflows/lava_sdk_tests.yml | 69 +- .gitignore | 21 +- cookbook/specs/spec_add_cosmossdk.json | 3 +- ecosystem/lava-sdk/README.md | 136 +- ecosystem/lava-sdk/examples/jsonRPC.ts | 60 +- ecosystem/lava-sdk/examples/jsonRPC_badge.ts | 64 +- ecosystem/lava-sdk/examples/restAPI.ts | 20 +- ecosystem/lava-sdk/examples/restAPI_badge.ts | 56 + ecosystem/lava-sdk/examples/tendermintRPC.ts | 84 +- .../lava-sdk/examples/tendermintRPC_badge.ts | 86 + ecosystem/lava-sdk/package.json | 10 +- .../baseapp/testutil/messages.proto | 39 - .../client/v2/internal/testpb/query.proto | 55 - .../core/internal/testpb/test.proto | 36 - .../cosmos-sdk/cosmos_proto/cosmos.proto | 108 - .../cosmos-sdk/orm/internal/testpb/bank.proto | 42 - .../orm/internal/testpb/bank_query.proto | 150 - .../orm/internal/testpb/test_schema.proto | 130 - .../internal/testpb/test_schema_query.proto | 442 - .../cosmos-sdk/testutil/testdata/query.proto | 39 - .../testutil/testdata/testdata.proto | 49 - .../cosmos-sdk/testutil/testdata/tx.proto | 28 - .../testutil/testdata/unknonwnproto.proto | 308 - .../tx/textual/internal/testpb/1.proto | 41 - ecosystem/lava-sdk/scripts/init_sdk.sh | 87 + .../lava-sdk/scripts/prepare_protobufs.sh | 19 +- .../lava-sdk/scripts/protoc_grpc_relay.sh | 37 +- .../lava-sdk/scripts/setup_sdk_with_local.sh | 19 +- .../scripts/setup_sdk_with_local_badge.sh | 37 +- .../src/chainlib/base_chain_parser.ts | 19 +- .../src/chainlib/chainproxy/consts.ts | 1 + .../json_rpc_message.test.ts | 47 +- .../rpcInterfaceMessages/json_rpc_message.ts | 50 +- .../rpcInterfaceMessages/rest_message.ts | 31 +- .../lava-sdk/src/chainlib/common.test.ts | 44 + ecosystem/lava-sdk/src/chainlib/common.ts | 44 + .../lava-sdk/src/chainlib/jsonrpc.test.ts | 143 + ecosystem/lava-sdk/src/chainlib/jsonrpc.ts | 151 +- ecosystem/lava-sdk/src/chainlib/rest.ts | 7 +- .../lava-sdk/src/chainlib/tendermint.test.ts | 153 + ecosystem/lava-sdk/src/chainlib/tendermint.ts | 143 +- ecosystem/lava-sdk/src/common/common.ts | 2 + .../src/grpc_web_services/amino/amino_pb.d.ts | 16 - .../src/grpc_web_services/amino/amino_pb.js | 147 - .../amino/amino_pb_service.d.ts | 3 - .../amino/amino_pb_service.js | 3 - .../base/query/v1beta1/pagination_pb.d.ts | 69 - .../base/query/v1beta1/pagination_pb.js | 517 - .../query/v1beta1/pagination_pb_service.d.ts | 3 - .../query/v1beta1/pagination_pb_service.js | 3 - .../cosmos/base/v1beta1/coin_pb.d.ts | 96 - .../cosmos/base/v1beta1/coin_pb.js | 689 -- .../cosmos/base/v1beta1/coin_pb_service.d.ts | 3 - .../cosmos/base/v1beta1/coin_pb_service.js | 3 - .../cosmos_proto/cosmos_pb.d.ts | 82 - .../cosmos_proto/cosmos_pb.js | 607 - .../cosmos_proto/cosmos_pb_service.d.ts | 3 - .../cosmos_proto/cosmos_pb_service.js | 3 - .../grpc_web_services/gogoproto/gogo_pb.d.ts | 160 - .../grpc_web_services/gogoproto/gogo_pb.js | 2019 ---- .../gogoproto/gogo_pb_service.d.ts | 3 - .../gogoproto/gogo_pb_service.js | 3 - .../google/api/annotations_pb.d.ts | 9 - .../google/api/annotations_pb.js | 45 - .../google/api/annotations_pb_service.d.ts | 3 - .../google/api/annotations_pb_service.js | 3 - .../grpc_web_services/google/api/http_pb.d.ts | 136 - .../grpc_web_services/google/api/http_pb.js | 1003 -- .../google/api/http_pb_service.d.ts | 3 - .../google/api/http_pb_service.js | 3 - .../google/protobuf/descriptor_pb.d.ts | 1252 -- .../google/protobuf/descriptor_pb.js | 10057 ---------------- .../protobuf/descriptor_pb_service.d.ts | 3 - .../google/protobuf/descriptor_pb_service.js | 3 - .../google/protobuf/wrappers_pb.d.ts | 187 - .../google/protobuf/wrappers_pb.js | 1407 --- .../google/protobuf/wrappers_pb_service.d.ts | 3 - .../google/protobuf/wrappers_pb_service.js | 3 - .../lava/conflict/conflict_data_pb.d.ts | 135 - .../lavanet/lava/conflict/conflict_data_pb.js | 1059 -- .../conflict/conflict_data_pb_service.d.ts | 3 - .../lava/conflict/conflict_data_pb_service.js | 3 - .../lava/epochstorage/endpoint_pb.d.ts | 47 - .../lavanet/lava/epochstorage/endpoint_pb.js | 351 - .../epochstorage/endpoint_pb_service.d.ts | 3 - .../lava/epochstorage/endpoint_pb_service.js | 3 - .../lava/epochstorage/stake_entry_pb.d.ts | 72 - .../lava/epochstorage/stake_entry_pb.js | 536 - .../epochstorage/stake_entry_pb_service.d.ts | 3 - .../epochstorage/stake_entry_pb_service.js | 3 - .../lavanet/lava/pairing/badges_pb.d.ts | 77 - .../lavanet/lava/pairing/badges_pb.js | 544 - .../lava/pairing/badges_pb_service.d.ts | 63 - .../lavanet/lava/pairing/badges_pb_service.js | 61 - .../lava/pairing/epoch_payments_pb.d.ts | 31 - .../lavanet/lava/pairing/epoch_payments_pb.js | 223 - .../pairing/epoch_payments_pb_service.d.ts | 3 - .../lava/pairing/epoch_payments_pb_service.js | 3 - .../lavanet/lava/pairing/params_pb.d.ts | 58 - .../lavanet/lava/pairing/params_pb.js | 409 - .../lava/pairing/params_pb_service.d.ts | 3 - .../lavanet/lava/pairing/params_pb_service.js | 3 - .../pairing/provider_payment_storage_pb.d.ts | 40 - .../pairing/provider_payment_storage_pb.js | 285 - .../provider_payment_storage_pb_service.d.ts | 3 - .../provider_payment_storage_pb_service.js | 3 - .../lavanet/lava/pairing/query_pb.d.ts | 733 -- .../lavanet/lava/pairing/query_pb.js | 5691 --------- .../lava/pairing/query_pb_service.d.ts | 310 - .../lavanet/lava/pairing/query_pb_service.js | 581 - .../lavanet/lava/pairing/relay_pb.d.ts | 418 - .../lavanet/lava/pairing/relay_pb.js | 3285 ----- .../lava/pairing/relay_pb_service.d.ts | 93 - .../lavanet/lava/pairing/relay_pb_service.js | 149 - ...ue_payment_storage_client_provider_pb.d.ts | 33 - ...ique_payment_storage_client_provider_pb.js | 227 - ...nt_storage_client_provider_pb_service.d.ts | 3 - ...ment_storage_client_provider_pb_service.js | 3 - .../lavanet/lava/plans/policy_pb.d.ts | 129 - .../lavanet/lava/plans/policy_pb.js | 933 -- .../lavanet/lava/plans/policy_pb_service.d.ts | 3 - .../lavanet/lava/plans/policy_pb_service.js | 3 - .../lavanet/lava/projects/project_pb.d.ts | 149 - .../lavanet/lava/projects/project_pb.js | 1090 -- .../lava/projects/project_pb_service.d.ts | 3 - .../lava/projects/project_pb_service.js | 3 - .../lavanet/lava/spec/api_collection_pb.d.ts | 424 - .../lavanet/lava/spec/api_collection_pb.js | 3052 ----- .../lava/spec/api_collection_pb_service.d.ts | 3 - .../lava/spec/api_collection_pb_service.js | 3 - .../lavanet/lava/spec/spec_pb.d.ts | 99 - .../lavanet/lava/spec/spec_pb.js | 693 -- .../lavanet/lava/spec/spec_pb_service.d.ts | 3 - .../lavanet/lava/spec/spec_pb_service.js | 3 - .../lava/subscription/subscription_pb.d.ts | 69 - .../lava/subscription/subscription_pb.js | 497 - .../subscription/subscription_pb_service.d.ts | 3 - .../subscription/subscription_pb_service.js | 3 - .../src/rpcconsumer/rpcconsumer_server.ts | 5 +- ecosystem/lava-sdk/src/sdk/sdk.ts | 9 +- ecosystem/lava-sdk/src/util/apiCollection.ts | 20 + ecosystem/lava-sdk/src/util/common.ts | 11 +- .../chainlib/chainproxy/rpcclient/client.go | 28 +- .../chainlib/chainproxy/rpcclient/handler.go | 2 +- scripts/init_e2e.sh | 3 + scripts/pre_setups/init_lava_only_test_5.sh | 8 +- scripts/setup_providers.sh | 9 +- 148 files changed, 1580 insertions(+), 43260 deletions(-) create mode 100644 ecosystem/lava-sdk/examples/restAPI_badge.ts create mode 100644 ecosystem/lava-sdk/examples/tendermintRPC_badge.ts delete mode 100644 ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/baseapp/testutil/messages.proto delete mode 100644 ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/client/v2/internal/testpb/query.proto delete mode 100644 ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/core/internal/testpb/test.proto delete mode 100644 ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/cosmos_proto/cosmos.proto delete mode 100644 ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/bank.proto delete mode 100644 ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/bank_query.proto delete mode 100644 ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/test_schema.proto delete mode 100644 ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/test_schema_query.proto delete mode 100644 ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/query.proto delete mode 100644 ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/testdata.proto delete mode 100644 ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/tx.proto delete mode 100644 ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/unknonwnproto.proto delete mode 100644 ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/tx/textual/internal/testpb/1.proto create mode 100755 ecosystem/lava-sdk/scripts/init_sdk.sh create mode 100644 ecosystem/lava-sdk/src/chainlib/chainproxy/consts.ts create mode 100644 ecosystem/lava-sdk/src/chainlib/common.test.ts create mode 100644 ecosystem/lava-sdk/src/chainlib/jsonrpc.test.ts create mode 100644 ecosystem/lava-sdk/src/chainlib/tendermint.test.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/descriptor_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/descriptor_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/descriptor_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/descriptor_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/wrappers_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/wrappers_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/wrappers_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/wrappers_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/conflict/conflict_data_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/conflict/conflict_data_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/conflict/conflict_data_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/conflict/conflict_data_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/endpoint_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/endpoint_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/endpoint_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/endpoint_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/stake_entry_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/stake_entry_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/stake_entry_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/stake_entry_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/badges_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/badges_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/badges_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/badges_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/epoch_payments_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/epoch_payments_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/epoch_payments_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/epoch_payments_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/params_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/params_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/params_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/params_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/provider_payment_storage_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/provider_payment_storage_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/provider_payment_storage_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/provider_payment_storage_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/query_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/query_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/query_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/query_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/relay_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/relay_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/relay_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/relay_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/unique_payment_storage_client_provider_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/unique_payment_storage_client_provider_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/unique_payment_storage_client_provider_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/unique_payment_storage_client_provider_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/plans/policy_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/plans/policy_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/plans/policy_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/plans/policy_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/projects/project_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/projects/project_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/projects/project_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/projects/project_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/api_collection_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/api_collection_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/api_collection_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/api_collection_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/spec_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/spec_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/spec_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/spec_pb_service.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/subscription/subscription_pb.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/subscription/subscription_pb.js delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/subscription/subscription_pb_service.d.ts delete mode 100644 ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/subscription/subscription_pb_service.js create mode 100644 ecosystem/lava-sdk/src/util/apiCollection.ts diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 3568f22ad0..81d93d1d9a 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -6,178 +6,127 @@ jobs: test-protocol-e2e: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - with: - fetch-depth: '0' - - uses: actions/setup-go@v3 - with: - go-version: 1.20.5 - - # Setup Paths - - name: home - run: pwd && ls -l - - name: ls usr - run: ls -l /home/runner/work/lava/lava - - name: cp lava - run: cp -r ~/work/lava/lava ~/go/lava - - name: export PATH - run: export PATH=$PATH:/go:/go/bin:$(go env GOPATH)/bin:/usr/local:`pwd`:/home/runner/work/lava/lava/ - # - name: export - # run: export PATH=$PATH:/go/lava - - name: export GOPATH - run: export GOPATH=$GOPATH:$(go env GOPATH):/go:/go/lava:/usr/local:`pwd` - - name: export LAVA - run: export LAVA=/home/runner/work/lava/lava - - name: go env - run: go env - - name: pwd - run: pwd - - name: tree - run: tree - - name: ls -l - run: ls -l - - ###################################################### - ### Run Lava E2E Tests - ###################################################### - - name: Run Lava E2E Tests -timeout 1200s - run: go test ./testutil/e2e/ -run ^TestLavaProtocol$ -v -timeout 1200s # 20mins - - - name: tail -n 300 Lavad Logs - if: always() - run: tail -n 300 testutil/e2e/protocolLogs/00_StartLava.log - - - name: Stake Lava All Logs - if: always() - run: cat testutil/e2e/protocolLogs/01_stakeLava.log - - - name: Stake Lava Error Only Logs - if: always() - continue-on-error: true - run: cat testutil/e2e/protocolLogs/01_stakeLava_errors.log - - - name: head -n 300 JSON Proxy Logs - if: always() - run: head -n 300 testutil/e2e/protocolLogs/02_jsonProxy.log - - - name: tail -n 300 JSON Proxy Logs - if: always() - run: tail -n 300 testutil/e2e/protocolLogs/02_jsonProxy.log - - - name: JSON Proxy Error Only Logs - if: always() - continue-on-error: true - run: cat testutil/e2e/protocolLogs/02_jsonProxy_errors.log - - - name: JSON Provider All Logs - if: always() - run: grep "" testutil/e2e/protocolLogs/03_EthProvider* --exclude="*errors*" - - - name: JSON Provider Error Only Logs - if: always() - continue-on-error: true - run: grep "" testutil/e2e/protocolLogs/03_EthProvider* --include="*errors*" - - - name: JSON Consumer All Logs - if: always() - run: grep "" testutil/e2e/protocolLogs/04_jsonConsumer* --exclude="*errors*" - - - name: JSON Consumer Error Only Logs - if: always() - continue-on-error: true - run: grep "" testutil/e2e/protocolLogs/04_jsonConsumer* --include="*errors*" - - - name: Lava Provider All Logs - if: always() - run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --exclude="*errors*" - - - name: Lava Provider Error Only Logs - if: always() - continue-on-error: true - run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --include="*errors*" - - - name: Lava over Lava All Logs - if: always() - run: cat testutil/e2e/protocolLogs/07_lavaOverLava.log - - - name: Lava over Lava Error Only Logs - if: always() - continue-on-error: true - run: cat testutil/e2e/protocolLogs/07_lavaOverLava_errors.log - - - name: RPCConsumer Consumer All Logs - if: always() - run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --exclude="*errors*" - - - name: RPCConsumer Consumer Error Only Logs - if: always() - continue-on-error: true - run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --include="*errors*" + - uses: actions/checkout@v3 + with: + fetch-depth: "0" + + - uses: actions/setup-go@v3 + with: + go-version: 1.20.5 + + ###################################################### + ### Run Lava Protocol E2E Tests + ###################################################### + - name: Run Lava E2E Tests -timeout 1200s + run: go test ./testutil/e2e/ -run ^TestLavaProtocol$ -v -timeout 1200s # 20mins + + - name: tail -n 300 Lavad Logs + if: always() + run: tail -n 300 testutil/e2e/protocolLogs/00_StartLava.log + + - name: Stake Lava All Logs + if: always() + run: cat testutil/e2e/protocolLogs/01_stakeLava.log + + - name: Stake Lava Error Only Logs + if: always() + continue-on-error: true + run: cat testutil/e2e/protocolLogs/01_stakeLava_errors.log + + - name: head -n 300 JSON Proxy Logs + if: always() + run: head -n 300 testutil/e2e/protocolLogs/02_jsonProxy.log + + - name: tail -n 300 JSON Proxy Logs + if: always() + run: tail -n 300 testutil/e2e/protocolLogs/02_jsonProxy.log + + - name: JSON Proxy Error Only Logs + if: always() + continue-on-error: true + run: cat testutil/e2e/protocolLogs/02_jsonProxy_errors.log + + - name: JSON Provider All Logs + if: always() + run: grep "" testutil/e2e/protocolLogs/03_EthProvider* --exclude="*errors*" + + - name: JSON Provider Error Only Logs + if: always() + continue-on-error: true + run: grep "" testutil/e2e/protocolLogs/03_EthProvider* --include="*errors*" + + - name: JSON Consumer All Logs + if: always() + run: grep "" testutil/e2e/protocolLogs/04_jsonConsumer* --exclude="*errors*" + + - name: JSON Consumer Error Only Logs + if: always() + continue-on-error: true + run: grep "" testutil/e2e/protocolLogs/04_jsonConsumer* --include="*errors*" + + - name: Lava Provider All Logs + if: always() + run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --exclude="*errors*" + + - name: Lava Provider Error Only Logs + if: always() + continue-on-error: true + run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --include="*errors*" + + - name: Lava over Lava All Logs + if: always() + run: cat testutil/e2e/protocolLogs/07_lavaOverLava.log + + - name: Lava over Lava Error Only Logs + if: always() + continue-on-error: true + run: cat testutil/e2e/protocolLogs/07_lavaOverLava_errors.log + + - name: RPCConsumer Consumer All Logs + if: always() + run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --exclude="*errors*" + + - name: RPCConsumer Consumer Error Only Logs + if: always() + continue-on-error: true + run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --include="*errors*" test-sdk-e2e: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: - fetch-depth: '0' + fetch-depth: "0" + - uses: actions/setup-go@v3 with: - go-version: 1.20.5 - - # Setup Paths - - name: home - run: pwd && ls -l - - name: ls usr - run: ls -l /home/runner/work/lava/lava - - name: cp lava - run: cp -r ~/work/lava/lava ~/go/lava - - name: export PATH - run: export PATH=$PATH:/go:/go/bin:$(go env GOPATH)/bin:/usr/local:`pwd`:/home/runner/work/lava/lava/ - # - name: export - # run: export PATH=$PATH:/go/lava - - name: export GOPATH - run: export GOPATH=$GOPATH:$(go env GOPATH):/go:/go/lava:/usr/local:`pwd` - - name: export LAVA - run: export LAVA=/home/runner/work/lava/lava - - name: go env - run: go env - - name: pwd - run: pwd - - name: tree - run: tree - - name: ls -l - run: ls -l + go-version: "1.20.5" # Install Node.js - name: Setup Node.js environment uses: actions/setup-node@v3 with: - node-version: 20 - - # install ts-node + node-version: "21" + + - name: Init the SDK + run: GOPATH=~/go ./scripts/init_sdk.sh + working-directory: ./ecosystem/lava-sdk + + - name: Build + run: yarn build + working-directory: ./ecosystem/lava-sdk + - name: Install ts-node run: npm install -g ts-node - # Install dependencies and build - - name: Install dependencies and build - run: | - cd ecosystem/lava-sdk - npm install - npm run build - - name: Install telescope dependencies - run: | - go mod tidy - cd ecosystem/lavajs - npm install - npm run e2e-setup + run: yarn; yarn e2e-setup + working-directory: ./ecosystem/lavajs - - name: setup test environment - run: | - cd testutil/e2e/sdk/tests - npm install --save-dev @types/node + - name: Setup test environment + run: npm init --yes; npm install --save-dev @types/node ###################################################### - ### Run Lava E2E Tests + ### Run Lava SDK E2E Tests ###################################################### - name: Run Lava E2E Tests -timeout 1200s run: go test ./testutil/e2e/ -run ^TestLavaSDK -v -timeout 1200s # 20mins @@ -246,70 +195,46 @@ jobs: test-payment-e2e: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - with: - fetch-depth: '0' - - uses: actions/setup-go@v3 - with: - go-version: 1.20.5 - - # Setup Paths - - name: home - run: pwd && ls -l - - name: ls usr - run: ls -l /home/runner/work/lava/lava - - name: cp lava - run: cp -r ~/work/lava/lava ~/go/lava - - name: export PATH - run: export PATH=$PATH:/go:/go/bin:$(go env GOPATH)/bin:/usr/local:`pwd`:/home/runner/work/lava/lava/ - # - name: export - # run: export PATH=$PATH:/go/lava - - name: export GOPATH - run: export GOPATH=$GOPATH:$(go env GOPATH):/go:/go/lava:/usr/local:`pwd` - - name: export LAVA - run: export LAVA=/home/runner/work/lava/lava - - name: go env - run: go env - - name: pwd - run: pwd - - name: tree - run: tree - - name: ls -l - run: ls -l - - ###################################################### - ### Run Lava E2E Tests - ###################################################### - - name: Run Lava Payment E2E Tests -timeout 1200s - run: go test ./testutil/e2e/ -run ^TestLavaProtocolPayment$ -v -timeout 1200s # 20mins - - - name: tail -n 300 Lavad Logs - if: always() - run: tail -n 300 testutil/e2e/protocolLogs/00_StartLava.log - - - name: Stake Lava All Logs - if: always() - run: cat testutil/e2e/protocolLogs/01_stakeLavaForPayment.log - - - name: Stake Lava Error Only Logs - if: always() - continue-on-error: true - run: cat testutil/e2e/protocolLogs/01_stakeLava_errors.log - - - name: Lava Provider All Logs - if: always() - run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --exclude="*errors*" - - - name: Lava Provider Error Only Logs - if: always() - continue-on-error: true - run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --include="*errors*" - - - name: RPCConsumer Consumer All Logs - if: always() - run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --exclude="*errors*" - - - name: RPCConsumer Consumer Error Only Logs - if: always() - continue-on-error: true - run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --include="*errors*" \ No newline at end of file + - uses: actions/checkout@v3 + with: + fetch-depth: "0" + - uses: actions/setup-go@v3 + with: + go-version: 1.20.5 + + ###################################################### + ### Run Lava Protocol Payment E2E Tests + ###################################################### + - name: Run Lava Payment E2E Tests -timeout 1200s + run: go test ./testutil/e2e/ -run ^TestLavaProtocolPayment$ -v -timeout 1200s # 20mins + + - name: tail -n 300 Lavad Logs + if: always() + run: tail -n 300 testutil/e2e/protocolLogs/00_StartLava.log + + - name: Stake Lava All Logs + if: always() + run: cat testutil/e2e/protocolLogs/01_stakeLavaForPayment.log + + - name: Stake Lava Error Only Logs + if: always() + continue-on-error: true + run: cat testutil/e2e/protocolLogs/01_stakeLava_errors.log + + - name: Lava Provider All Logs + if: always() + run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --exclude="*errors*" + + - name: Lava Provider Error Only Logs + if: always() + continue-on-error: true + run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --include="*errors*" + + - name: RPCConsumer Consumer All Logs + if: always() + run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --exclude="*errors*" + + - name: RPCConsumer Consumer Error Only Logs + if: always() + continue-on-error: true + run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --include="*errors*" diff --git a/.github/workflows/lava_sdk_tests.yml b/.github/workflows/lava_sdk_tests.yml index 6edac0c55f..e359506d3a 100644 --- a/.github/workflows/lava_sdk_tests.yml +++ b/.github/workflows/lava_sdk_tests.yml @@ -3,27 +3,48 @@ name: Lava SDK Tests on: [pull_request] jobs: - main: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: ~/.yarn - key: yarn-${{ hashFiles('yarn.lock') }} - restore-keys: yarn- - - - name: Install modules - run: yarn install - working-directory: ./ecosystem/lava-sdk - - - name: ESLint - run: ./node_modules/.bin/eslint '**/*.ts' - working-directory: ./ecosystem/lava-sdk - - - name: Test - run: ./node_modules/.bin/jest ./src - working-directory: ./ecosystem/lava-sdk + main: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Cache dependencies + uses: actions/cache@v3 + with: + path: ~/.yarn + key: yarn-${{ hashFiles('yarn.lock') }} + restore-keys: yarn- + + - uses: actions/setup-go@v3 + with: + go-version: "1.20.5" + + - uses: actions/setup-node@v3 + with: + node-version: "21" + + - name: Install protoc executable + run: sudo apt update && sudo apt install -y protobuf-compiler + + - name: Install yarn and protoc-gen-ts + run: npm install -g yarn protoc-gen-ts + + - name: Run go mod tidy + run: go mod tidy + + - name: Install modules + run: yarn + working-directory: ./ecosystem/lava-sdk + + - name: Prepare proto files + run: GOPATH=~/go ./scripts/protoc_grpc_relay.sh + working-directory: ./ecosystem/lava-sdk + + - name: ESLint + run: ./node_modules/.bin/eslint '**/*.ts' + working-directory: ./ecosystem/lava-sdk + + - name: Test + run: ./node_modules/.bin/jest ./src + working-directory: ./ecosystem/lava-sdk diff --git a/.gitignore b/.gitignore index d4ac7cfc1b..09aeb9d948 100644 --- a/.gitignore +++ b/.gitignore @@ -48,25 +48,14 @@ ecosystem/lava-sdk/.vscode ecosystem/lava-sdk/.npmrc ecosystem/lava-sdk/package-lock.json ecosystem/lava-sdk/examples/jsonRPC_test.ts +ecosystem/lava-sdk/examples/jsonRPC_badge_test.ts ecosystem/lava-sdk/examples/restAPI_test.ts +ecosystem/lava-sdk/examples/restAPI_badge_test.ts ecosystem/lava-sdk/examples/tendermintRPC_test.ts -ecosystem/lava-sdk/examples/tendermintRPC_test2.ts -ecosystem/lava-sdk/examples/jsonRPC_badge_test.ts -ecosystem/lava-sdk/examples/consumerSessionManager_test.ts +ecosystem/lava-sdk/examples/tendermintRPC_badge_test.ts ecosystem/lava-sdk/pairingList.json -# ecosystem/lava-sdk/proto/**/*[!.proto] #tried but didnt work -ecosystem/lava-sdk/proto/**/*.yaml -ecosystem/lava-sdk/proto/**/*.bazel -ecosystem/lava-sdk/proto/**/*.bzl -ecosystem/lava-sdk/proto/**/*.md -ecosystem/lava-sdk/proto/**/*.sh -ecosystem/lava-sdk/proto/**/*.json -ecosystem/lava-sdk/proto/**/*.go -ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/amino -ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/cosmos -ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/gogoproto -ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/google -ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/tendermint +ecosystem/lava-sdk/proto +ecosystem/lava-sdk/src/grpc_web_services ecosystem/lava-sdk/src/codec ecosystem/lava-sdk/proto/lavanet diff --git a/cookbook/specs/spec_add_cosmossdk.json b/cookbook/specs/spec_add_cosmossdk.json index 7e1f8c83be..3371ced72b 100644 --- a/cookbook/specs/spec_add_cosmossdk.json +++ b/cookbook/specs/spec_add_cosmossdk.json @@ -830,7 +830,8 @@ "name": "/cosmos/base/tendermint/v1beta1/validatorsets/{height}", "block_parsing": { "parser_arg": [ - "height" + "height", + "=" ], "parser_func": "PARSE_DICTIONARY" }, diff --git a/ecosystem/lava-sdk/README.md b/ecosystem/lava-sdk/README.md index c1e3d3aa7e..be75040e2b 100644 --- a/ecosystem/lava-sdk/README.md +++ b/ecosystem/lava-sdk/README.md @@ -9,14 +9,17 @@ Access Web3 APIs, the Lava way 🌋 - + JavaScript/TypeScript SDK reference implementation designed for developers looking for access through the Lava Network. It can be added to your app/dapp and run in browsers to provide multi-chain peer-to-peer access to blockchain APIs. # Official Documentation + https://docs.lavanet.xyz/access-sdk + # Roadmap + Roadmap highlights: 1. ~Send Relays per Lava Pairing~ ✅ @@ -42,23 +45,26 @@ could be found here: https://github.com/lavanet/lava-sdk-providers # Installation ### Important Version Control - * Please check the current Lava node version before installing the lava-sdk. - - * Make sure you are using the `"Latest"` tag. You can check the latest releases here: https://github.com/lavanet/lava/releases - * lava-sdk releases can be found here: https://github.com/lavanet/lava-sdk/releases or in the npm official site: https://www.npmjs.com/package/@lavanet/lava-sdk +- Please check the current Lava node version before installing the lava-sdk. + +- Make sure you are using the `"Latest"` tag. You can check the latest releases here: https://github.com/lavanet/lava/releases + +- lava-sdk releases can be found here: https://github.com/lavanet/lava-sdk/releases or in the npm official site: https://www.npmjs.com/package/@lavanet/lava-sdk ### For Example + If lava latest release version is `v0.8.0` or any minor version such as v0.8.1 ➡️ sdk version will be `v0.8.0` --- ### Prerequisites (Beta version) + _SDK setup requires additional steps at the moment, but we're working on minimizing prerequisites as we progress through the roadmap._ 1. Create a wallet on the Lava Testnet, have LAVA tokens 1. Stake in the chain you want to access -2. Stake in Lava chain +1. Stake in Lava chain Need help? We've got you covered 😻 Head over to our [Discord](https://discord.gg/5VcqgwMmkA) channel `#developers` and we'll provide testnet tokens and further support @@ -71,9 +77,10 @@ yarn add @lavanet/lava-sdk

(back to top)

+ # Usage -A single instance of the SDK establishes a connection with a specific blockchain network using a single RPC interface. _Need multiple chains or use multiple RPC interfaces? Create multiple instances._ +A single instance of the SDK establishes a connection with a specific blockchain network using a single RPC interface. _Need multiple chains or use multiple RPC interfaces? Create multiple instances._ To use the SDK, you will first need to initialize it. @@ -98,7 +105,8 @@ const badgeOptions: BadgeOptions = { authentication: authValue, // string (Optional) }; ``` -Lava SDK options: + +Lava SDK options: - `badge` parameter specifies the public URL of the badge server and the ID of the project you want to connect to. If you enable the badge, you should remove the `privateKey` @@ -130,7 +138,6 @@ Badge options: - `authentication` is an optional parameter that specifies any additional authentication requirements - ### Private keys vs Badge server In the LavaSDK, users have the option to authenticate using either a private key or a badge server. Both methods have their advantages and specific use cases. Let's dive into the details of each: @@ -145,7 +152,7 @@ However, it's crucial to note that using a private key directly, especially in a The Badge server is a dedicated Go service that clients can initiate. It acts as an intermediary between the LavaSDK and the Lava Network, ensuring that no secrets or private keys are stored directly within the SDK. Instead, all sensitive information is securely held on the Badge server, with the LavaSDK only communicating with this server. -The primary advantage of using the Badge server is the enhanced security it offers. Additionally, the Badge server pre-updates some information like pairing list for current epoch, allowing the LavaSDK to fetch data more rapidly by merely pinging the server. This results in faster and more efficient operations. +The primary advantage of using the Badge server is the enhanced security it offers. Additionally, the Badge server pre-updates some information like pairing list for current epoch, allowing the LavaSDK to fetch data more rapidly by merely pinging the server. This results in faster and more efficient operations. However, there are some challenges to consider. Users need to bootstrap and maintain the Badge server, which might require additional resources and expertise. For those interested in exploring the Badge server without setting up their own, we have deployed a Lava Test Badge server. You can access and experiment with it through our gateway application at [Lava Gateway](https://accounts.lavanet.xyz/) @@ -156,7 +163,8 @@ For detailed instructions on how to start the Badge server, refer to our [docume ### Examples: # Badge full flow example: -```typescript + +```typescript async function getLatestBlock(): Promise { // Create dAccess for Ethereum Mainnet // Default rpcInterface for Ethereum Mainnet is jsonRPC @@ -183,56 +191,60 @@ async function getLatestBlock(): Promise { ``` # Private Key flow example: -```typescript + +```typescript const cosmosHub = await LavaSDK.create({ - // private key with an active subscription - privateKey: "", + // private key with an active subscription + privateKey: "", - // chainID for Cosmos Hub - chainIds: "COS5", + // chainID for Cosmos Hub + chainIds: "COS5", - // geolocation 1 for North america - geolocation 2 for Europe providers - // default value is 1 - geolocation: "2", + // geolocation 1 for North america - geolocation 2 for Europe providers + // default value is 1 + geolocation: "2", +}); + +// Get abci_info + +const results = []; + +for (let i = 0; i < 10; i++) { + const info = await cosmosHub.sendRelay({ + method: "abci_info", + params: [], }); - // Get abci_info - - const results = []; - - for (let i = 0; i < 10; i++) { - const info = await cosmosHub.sendRelay({ - method: "abci_info", - params: [], - }); - - // Parse and extract response - const parsedInfo = info.result.response; - - // Extract latest block number - const latestBlockNumber = parsedInfo.last_block_height; - // Fetch latest block - const latestBlock = await cosmosHub.sendRelay({ - method: "block", - params: [latestBlockNumber], - }); - results.push(latestBlock); - console.log("Latest block:", latestBlock); - } + // Parse and extract response + const parsedInfo = info.result.response; + + // Extract latest block number + const latestBlockNumber = parsedInfo.last_block_height; + // Fetch latest block + const latestBlock = await cosmosHub.sendRelay({ + method: "block", + params: [latestBlockNumber], + }); + results.push(latestBlock); + console.log("Latest block:", latestBlock); +} ``` ### TendermintRPC / JSON-RPC interface: + ```typescript - const blockResponse = await lavaSDK.sendRelay({ - method: "block", - params: ["5"], - }); +const blockResponse = await lavaSDK.sendRelay({ + method: "block", + params: ["5"], +}); ``` + Here, `method` is the RPC method and `params` is an array of strings representing parameters for the method. You can find more examples for tendermintRPC sendRelay calls [TendermintRPC examples](https://github.com/lavanet/lava-sdk/blob/main/examples/tendermintRPC.ts) ### Rest API interface: + ```typescript const data = await lavaSDK.sendRelay({ method: "GET", @@ -243,6 +255,7 @@ const data = await lavaSDK.sendRelay({ }, }); ``` + In this case, `method` is the HTTP method (either GET or POST), `url` is the REST endpoint, and `data` is the query data. You can find more examples for rest sendRelay calls [Rest examples](https://github.com/lavanet/lava-sdk/blob/main/examples/restAPI.ts) @@ -250,18 +263,23 @@ You can find more examples for rest sendRelay calls [Rest examples](https://gith

(back to top)

+ # Troubleshooting ### Webpack >= 5 + If you are using `create-react-app` version 5 or higher, or `Angular` version 11 or higher, you may encounter build issues. This is because these versions use `webpack version 5`, which does not include Node.js polyfills. #### Create-react-app solution 1. Install react-app-rewired and the missing modules: + ```bash yarn add --dev react-app-rewired crypto-browserify stream-browserify browserify-zlib assert stream-http https-browserify os-browserify url buffer process net tls bufferutil utf-8-validate path-browserify ``` + 2. Create `config-overrides.js` in the root of your project folder, and append the following lines: + ```javascript const webpack = require("webpack"); @@ -302,6 +320,7 @@ module.exports = function override(config) { ``` 3. In the `package.json` change the script for start, test, build and eject: + ```JSON "scripts": { "start": "react-app-rewired start", @@ -310,11 +329,11 @@ module.exports = function override(config) { "eject": "react-scripts eject" }, ``` + #### Angular solution (TBD)

(back to top)

- [![Contributors][contributors-shield]][contributors-url] [![Forks][forks-shield]][forks-url] [![Stargazers][stars-shield]][stars-url] @@ -322,9 +341,9 @@ module.exports = function override(config) { [![Apache 2 License][license-shield]]([license-url]) [![LinkedIn][linkedin-shield]][linkedin-url] - + [contributors-shield]: https://img.shields.io/github/contributors/lavanet/lava-sdk.svg?style=for-the-badge [contributors-url]: https://github.com/lavanet/lava-sdk/graphs/contributors [forks-shield]: https://img.shields.io/github/forks/lavanet/lava-sdk.svg?style=for-the-badge @@ -338,21 +357,20 @@ module.exports = function override(config) { [linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555 [linkedin-url]: https://www.linkedin.com/company/lava-network/ +# Contribution -# Contribution FAQ +To get started, all you need to do is run -Q: how to compile the protobufs? -A: ```bash -sudo apt install -y protobuf-compiler +GOPATH= ./scripts/init_sdk.sh ``` -cd go/.../lava/ecosystem/lava-sdk -If you've made changes to the protobufs directory run: +\* Replace the with the Go path on your machine + +And to build, run + ```bash -./scripts/protoc.sh +yarn build ``` -If you've made changes to relay.proto specifically run: -```bash -./scripts/protoc_grpc_relay.sh -``` \ No newline at end of file + +And that's it! diff --git a/ecosystem/lava-sdk/examples/jsonRPC.ts b/ecosystem/lava-sdk/examples/jsonRPC.ts index fc87fc6c44..cfed881131 100644 --- a/ecosystem/lava-sdk/examples/jsonRPC.ts +++ b/ecosystem/lava-sdk/examples/jsonRPC.ts @@ -11,23 +11,12 @@ import { LavaSDK } from "../src/sdk/sdk"; But not rpc calls with named parameters {"jsonrpc": "2.0", "method": "subtract", "params": {"subtrahend": 23, "minuend": 42}, "id": 3} */ -async function getLatestBlock(): Promise { - // Create dAccess for Ethereum Mainnet - // Default rpcInterface for Ethereum Mainnet is jsonRPC - const ethereum = await LavaSDK.create({ - // private key with an active subscription - privateKey: "", - - // chainID for Ethereum mainnet - chainIds: "ETH1", - - // geolocation 1 for North america - geolocation 2 for Europe providers - // default value is 1 - geolocation: "2", - }); +let lavaSDKInstance: LavaSDK; + +async function getLatestBlock(): Promise { // Get latest block number - const blockNumberResponse = await ethereum.sendRelay({ + const blockNumberResponse = await lavaSDKInstance.sendRelay({ method: "eth_blockNumber", params: [], }); @@ -39,7 +28,7 @@ async function getLatestBlock(): Promise { const latestBlockNumber = parsedResponse.result; // Get latest block - const latestBlock = await ethereum.sendRelay({ + const latestBlock = await lavaSDKInstance.sendRelay({ method: "eth_getBlockByNumber", params: [latestBlockNumber, true], }); @@ -47,10 +36,49 @@ async function getLatestBlock(): Promise { return latestBlock; } +async function getBatch(): Promise { + // Get latest block number + const batchResponse = await lavaSDKInstance.sendRelay({ + relays: [ + { + method: "eth_blockNumber", + params: [], + }, + { + method: "eth_chainId", + params: [], + }, + ], + }); + + return batchResponse; +} + (async function () { try { + // Create dAccess for Ethereum Mainnet + // Default rpcInterface for Ethereum Mainnet is jsonRPC + lavaSDKInstance = await LavaSDK.create({ + // private key with an active subscription + privateKey: "", + + // chainID for Ethereum mainnet + chainIds: "ETH1", + + // geolocation 1 for North america - geolocation 2 for Europe providers + // default value is 1 + geolocation: "", + }); + + console.log("Sending single request:"); const latestBlock = await getLatestBlock(); console.log("Latest block:", latestBlock); + + console.log("\n"); + + console.log("Sending batch request:"); + const batchResponse = await getBatch(); + console.log("Batch response:", JSON.stringify(batchResponse, null, 2)); process.exit(0); } catch (error) { console.error("Error getting latest block:", error); diff --git a/ecosystem/lava-sdk/examples/jsonRPC_badge.ts b/ecosystem/lava-sdk/examples/jsonRPC_badge.ts index 9ad3e2599f..44536de750 100644 --- a/ecosystem/lava-sdk/examples/jsonRPC_badge.ts +++ b/ecosystem/lava-sdk/examples/jsonRPC_badge.ts @@ -11,26 +11,12 @@ import { LavaSDK } from "../src/sdk/sdk"; But not rpc calls with named parameters {"jsonrpc": "2.0", "method": "subtract", "params": {"subtrahend": 23, "minuend": 42}, "id": 3} */ -async function getLatestBlock(): Promise { - // Create dAccess for Ethereum Mainnet - // Default rpcInterface for Ethereum Mainnet is jsonRPC - const ethereum = await LavaSDK.create({ - // badge data of an active badge server - badge: { - badgeServerAddress: "", - projectId: "", - }, - - // chainID for Ethereum mainnet - chainIds: "ETH1", - - // geolocation 1 for North america - geolocation 2 for Europe providers - // default value is 1 - geolocation: "2", - }); +let lavaSDKInstance: LavaSDK; + +async function getLatestBlock(): Promise { // Get latest block number - const blockNumberResponse = await ethereum.sendRelay({ + const blockNumberResponse = await lavaSDKInstance.sendRelay({ method: "eth_blockNumber", params: [], }); @@ -42,7 +28,7 @@ async function getLatestBlock(): Promise { const latestBlockNumber = parsedResponse.result; // Get latest block - const latestBlock = await ethereum.sendRelay({ + const latestBlock = await lavaSDKInstance.sendRelay({ method: "eth_getBlockByNumber", params: [latestBlockNumber, true], }); @@ -50,10 +36,50 @@ async function getLatestBlock(): Promise { return latestBlock; } +async function getBatch(): Promise> { + // Get abci_info and status + return await lavaSDKInstance.sendRelay({ + relays: [ + { + method: "abci_info", + params: [], + }, + { + method: "status", + params: [], + }, + ], + }); +} + (async function () { try { + // Create dAccess for Ethereum Mainnet + // Default rpcInterface for Ethereum Mainnet is jsonRPC + lavaSDKInstance = await LavaSDK.create({ + // badge data of an active badge server + badge: { + badgeServerAddress: "", + projectId: "", + }, + + // chainID for Ethereum mainnet + chainIds: "ETH1", + + // geolocation 1 for North america - geolocation 2 for Europe providers + // default value is 1 + geolocation: "", + }); + + console.log("Sending single request:"); const latestBlock = await getLatestBlock(); console.log("Latest block:", latestBlock); + + console.log("\n"); + + console.log("Sending batch request:"); + const batchResponse = await getBatch(); + console.log("Batch response:", JSON.stringify(batchResponse, null, 2)); process.exit(0); } catch (error) { console.error("Error getting latest block:", error); diff --git a/ecosystem/lava-sdk/examples/restAPI.ts b/ecosystem/lava-sdk/examples/restAPI.ts index 2d5b524ef0..80a3da96c1 100644 --- a/ecosystem/lava-sdk/examples/restAPI.ts +++ b/ecosystem/lava-sdk/examples/restAPI.ts @@ -2,15 +2,15 @@ import { LavaSDK } from "../src/sdk/sdk"; /* - Demonstrates how to use LavaSDK to send rest API calls to the Juno Mainnet. + Demonstrates how to use LavaSDK to send rest API calls to the Lava Network. You can find a list with all supported chains (https://github.com/lavanet/lava-sdk/blob/main/supportedChains.json) */ async function getLatestBlockAndValidators(): Promise<[string, string]> { - // Create dAccess for Juno Mainnet - // Default rpcInterface for Juno Mainnet is tendermintRPC + // Create dAccess for Lava Network + // Default rpcInterface for Lava Network is tendermintRPC // If you want to use rest it needs to be explicitly defined - const lavaSDK = await LavaSDK.create({ + const lavaSDKInstance = await LavaSDK.create({ // private key with an active subscription privateKey: "", @@ -19,26 +19,22 @@ async function getLatestBlockAndValidators(): Promise<[string, string]> { // geolocation 1 for North america - geolocation 2 for Europe providers // default value is 1 - geolocation: "2", + geolocation: "", // rpcInterface default is tendermintrpc / jsonrpc for respective chains. // in this example we want to test rest so we need to specify it }); // Get latest block - const latestBlock = await lavaSDK.sendRelay({ + const latestBlock = await lavaSDKInstance.sendRelay({ connectionType: "GET", url: "/cosmos/base/tendermint/v1beta1/node_info", }); // Get latest validator-set - const validators = await lavaSDK.sendRelay({ + const validators = await lavaSDKInstance.sendRelay({ connectionType: "GET", - url: "/cosmos/base/tendermint/v1beta1/validatorsets/latest", - data: { - "pagination.count_total": true, - "pagination.reverse": "true", - }, + url: "/cosmos/base/tendermint/v1beta1/validatorsets/latest?pagination.count_total=true&pagination.reverse=true", }); return [latestBlock, validators]; diff --git a/ecosystem/lava-sdk/examples/restAPI_badge.ts b/ecosystem/lava-sdk/examples/restAPI_badge.ts new file mode 100644 index 0000000000..9cbbc56493 --- /dev/null +++ b/ecosystem/lava-sdk/examples/restAPI_badge.ts @@ -0,0 +1,56 @@ +// TODO when we publish package we will import latest stable version and not using relative path +import { LavaSDK } from "../src/sdk/sdk"; + +/* + Demonstrates how to use LavaSDK to send rest API calls to the Lava Network. + + You can find a list with all supported chains (https://github.com/lavanet/lava-sdk/blob/main/supportedChains.json) +*/ +async function getLatestBlockAndValidators(): Promise<[string, string]> { + // Create dAccess for Lava Network + // Default rpcInterface for Lava Network is tendermintRPC + // If you want to use rest it needs to be explicitly defined + const lavaSDKInstance = await LavaSDK.create({ + // badge data of an active badge server + badge: { + badgeServerAddress: "", + projectId: "", + }, + + // chainID for Cosmos Hub + chainIds: "LAV1", + + // geolocation 1 for North america - geolocation 2 for Europe providers + // default value is 1 + geolocation: "", + + // rpcInterface default is tendermintrpc / jsonrpc for respective chains. + // in this example we want to test rest so we need to specify it + }); + + // Get latest block + const latestBlock = await lavaSDKInstance.sendRelay({ + connectionType: "GET", + url: "/cosmos/base/tendermint/v1beta1/node_info", + }); + + // Get latest validator-set + const validators = await lavaSDKInstance.sendRelay({ + connectionType: "GET", + url: "/cosmos/base/tendermint/v1beta1/validatorsets/latest?pagination.count_total=true&pagination.reverse=true", + }); + + return [latestBlock, validators]; +} + +(async function () { + try { + const [latestBlock, validators] = await getLatestBlockAndValidators(); + console.log("Latest block:", latestBlock); + console.log("Latest validators:", validators); + process.exit(0); + } catch (error) { + console.error("Error getting latest block:", error); + process.exit(1); + } +})(); diff --git a/ecosystem/lava-sdk/examples/tendermintRPC.ts b/ecosystem/lava-sdk/examples/tendermintRPC.ts index a5349544c4..29c34a023f 100644 --- a/ecosystem/lava-sdk/examples/tendermintRPC.ts +++ b/ecosystem/lava-sdk/examples/tendermintRPC.ts @@ -11,51 +11,69 @@ import { LavaSDK } from "../src/sdk/sdk"; But not rpc calls with named parameters {"jsonrpc": "2.0", "method": "subtract", "params": {"subtrahend": 23, "minuend": 42}, "id": 3} */ + +let lavaSDKInstance: LavaSDK; + async function getLatestBlock(): Promise> { - // Create dAccess for Cosmos Hub - // Default rpcInterface for Cosmos Hub is tendermintRPC - const cosmosHub = await LavaSDK.create({ - // private key with an active subscription - privateKey: "", + // Get abci_info + const info = await lavaSDKInstance.sendRelay({ + method: "abci_info", + params: [], + }); - // chainID for Cosmos Hub - chainIds: "LAV1", + // Parse and extract response + const parsedInfo = info.result.response; - // geolocation 1 for North america - geolocation 2 for Europe providers - // default value is 1 - geolocation: "2", + // Extract latest block number + const latestBlockNumber = parsedInfo.last_block_height; + // Fetch latest block + return await lavaSDKInstance.sendRelay({ + method: "block", + params: [latestBlockNumber], }); +} +async function getBatch(): Promise> { // Get abci_info + return await lavaSDKInstance.sendRelay({ + relays: [ + { + method: "abci_info", + params: [], + }, + { + method: "status", + params: [], + }, + ], + }); +} - const results = []; - - for (let i = 0; i < 10; i++) { - const info = await cosmosHub.sendRelay({ - method: "abci_info", - params: [], - }); +(async function () { + try { + // Create dAccess for Cosmos Hub + // Default rpcInterface for Cosmos Hub is tendermintRPC + lavaSDKInstance = await LavaSDK.create({ + // private key with an active subscription + privateKey: "", - // Parse and extract response - const parsedInfo = info.result.response; + // chainID for Cosmos Hub + chainIds: "LAV1", - // Extract latest block number - const latestBlockNumber = parsedInfo.last_block_height; - // Fetch latest block - const latestBlock = await cosmosHub.sendRelay({ - method: "block", - params: [latestBlockNumber], + // geolocation 1 for North america - geolocation 2 for Europe providers + // default value is 1 + geolocation: "", }); - results.push(latestBlock); + + console.log("Sending single request:"); + const latestBlock = await getLatestBlock(); console.log("Latest block:", latestBlock); - } - return results; -} -(async function () { - try { - const results = await getLatestBlock(); - console.log("results:", results); + console.log("\n"); + + console.log("Sending batch request:"); + const batchResponse = await getBatch(); + console.log("Batch response:", JSON.stringify(batchResponse, null, 2)); process.exit(0); } catch (error) { console.error("Error getting latest block:", error); diff --git a/ecosystem/lava-sdk/examples/tendermintRPC_badge.ts b/ecosystem/lava-sdk/examples/tendermintRPC_badge.ts new file mode 100644 index 0000000000..f13b06ae82 --- /dev/null +++ b/ecosystem/lava-sdk/examples/tendermintRPC_badge.ts @@ -0,0 +1,86 @@ +// TODO when we publish package we will import latest stable version and not using relative path +import { LavaSDK } from "../src/sdk/sdk"; + +/* + Demonstrates how to use LavaSDK to send tendermintRPC calls to the Lava Network. + + You can find a list with all supported chains (https://github.com/lavanet/lava-sdk/blob/main/supportedChains.json) + + Lava SDK supports only rpc calls with positional parameters + {"jsonrpc": "2.0", "method": "block", "params": ["23"], "id": 1} + But not rpc calls with named parameters + {"jsonrpc": "2.0", "method": "subtract", "params": {"subtrahend": 23, "minuend": 42}, "id": 3} +*/ + +let lavaSDKInstance: LavaSDK; + +async function getLatestBlock(): Promise> { + // Get abci_info + const info = await lavaSDKInstance.sendRelay({ + method: "abci_info", + params: [], + }); + + // Parse and extract response + const parsedInfo = info.result.response; + + // Extract latest block number + const latestBlockNumber = parsedInfo.last_block_height; + + // Fetch latest block + return await lavaSDKInstance.sendRelay({ + method: "block", + params: [latestBlockNumber], + }); +} + +async function getBatch(): Promise> { + // Get abci_info and status + return await lavaSDKInstance.sendRelay({ + relays: [ + { + method: "abci_info", + params: [], + }, + { + method: "status", + params: [], + }, + ], + }); +} + +(async function () { + try { + // Create dAccess for Lava Network + // Default rpcInterface for Lava Network is tendermintRPC + lavaSDKInstance = await LavaSDK.create({ + // badge data of an active badge server + badge: { + badgeServerAddress: "", + projectId: "", + }, + + // chainID for Lava Network + chainIds: "LAV1", + + // geolocation 1 for North america - geolocation 2 for Europe providers + // default value is 1 + geolocation: "", + }); + + console.log("Sending single request:"); + const latestBlock = await getLatestBlock(); + console.log("Latest block:", latestBlock); + + console.log("\n"); + + console.log("Sending batch request:"); + const batchResponse = await getBatch(); + console.log("Batch response:", JSON.stringify(batchResponse, null, 2)); + process.exit(0); + } catch (error) { + console.error("Error getting latest block:", error); + process.exit(1); + } +})(); diff --git a/ecosystem/lava-sdk/package.json b/ecosystem/lava-sdk/package.json index 04a9839d1d..c84fd1325e 100644 --- a/ecosystem/lava-sdk/package.json +++ b/ecosystem/lava-sdk/package.json @@ -9,7 +9,6 @@ "tsc": "tsc", "copy-proto": "cp -r ./src/grpc_web_services bin/src/", "build": "rm -rf bin && rm -rf dist && yarn tsc && yarn copy-proto && webpack --config webpack.config.js", - "protoc": "./scripts/protoc.sh", "server": "http-server dist/ -c-1", "test": "jest --clearCache && jest ./src", "jestClear": "jest --clearCache", @@ -17,14 +16,13 @@ "run_tendermint_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/tendermintRPC.js", "run_rest_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/restAPI.js", "run_jsonrpc_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/jsonRPC.js", - "run_jsonrpc_badge_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/jsonRPC_badge_test.js", "run_test_tendermint_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/tendermintRPC_test.js", - "node_test_tendermint_example": "node ./bin/examples/tendermintRPC_test.js", + "run_test_tendermint_badge_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/tendermintRPC_badge_test.js", "run_test_rest_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/restAPI_test.js", + "run_test_rest_badge_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/restAPI_badge_test.js", "run_test_jsonrpc_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/jsonRPC_test.js", + "run_test_jsonrpc_badge_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/jsonRPC_badge_test.js", "node_test_jsonrpc_example": "node ./bin/examples/jsonRPC_test.js", - "jsonRPC": "node ./bin/examples/jsonRPC.js", - "restAPI": "node ./bin/examples/restAPI.js", "prettier": "prettier --check .", "publish_version": "yarn build; npm publish --access public", "lint": "eslint '**/*.ts' --fix" @@ -98,4 +96,4 @@ "node": ">=18", "npm": ">=6.12.0" } -} +} \ No newline at end of file diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/baseapp/testutil/messages.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/baseapp/testutil/messages.proto deleted file mode 100644 index 866e336669..0000000000 --- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/baseapp/testutil/messages.proto +++ /dev/null @@ -1,39 +0,0 @@ -syntax = "proto3"; -package testdata; - -import "gogoproto/gogo.proto"; -import "google/protobuf/any.proto"; - -option go_package = "github.com/cosmos/cosmos-sdk/baseapp/testutil"; - -message MsgCounter { - int64 counter = 1; - bool fail_on_handler = 2; -} - -message MsgCounter2 { - int64 counter = 1; - bool fail_on_handler = 2; -} - -message MsgCreateCounterResponse {} - -message MsgKeyValue { - bytes key = 1; - bytes value = 2; - string signer = 3; -} - -message MsgCreateKeyValueResponse {} - -service Counter { - rpc IncrementCounter(MsgCounter) returns (MsgCreateCounterResponse); -} - -service Counter2 { - rpc IncrementCounter(MsgCounter2) returns (MsgCreateCounterResponse); -} - -service KeyValue { - rpc Set(MsgKeyValue) returns (MsgCreateKeyValueResponse); -} \ No newline at end of file diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/client/v2/internal/testpb/query.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/client/v2/internal/testpb/query.proto deleted file mode 100644 index 5bb49a0b2a..0000000000 --- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/client/v2/internal/testpb/query.proto +++ /dev/null @@ -1,55 +0,0 @@ -syntax = "proto3"; - -package testpb; - -import "google/protobuf/timestamp.proto"; -import "google/protobuf/duration.proto"; -import "cosmos_proto/cosmos.proto"; -import "cosmos/base/query/v1beta1/pagination.proto"; -import "cosmos/base/v1beta1/coin.proto"; - -service Query { - // Echo returns the request in the response - rpc Echo(EchoRequest) returns (EchoResponse); -} - -message EchoRequest { - // u32 is an uint32 - uint32 u32 = 1; - uint64 u64 = 2; - string str = 3; - bytes bz = 4; - google.protobuf.Timestamp timestamp = 5; - google.protobuf.Duration duration = 6; - int32 i32 = 7; - int64 i64 = 10; - bool a_bool = 15; - Enum an_enum = 16; - AMessage a_message = 17; - cosmos.base.v1beta1.Coin a_coin = 18; - string an_address = 19 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - cosmos.base.query.v1beta1.PageRequest page = 20; - repeated bool bools = 21; - repeated uint32 uints = 22; - repeated string strings = 23; - repeated Enum enums = 24; - repeated google.protobuf.Duration durations = 25; - repeated AMessage some_messages = 26; -} - -enum Enum { - ENUM_UNSPECIFIED = 0; - ENUM_ONE = 1; - ENUM_TWO = 2; - ENUM_FIVE = 5; - ENUM_NEG_THREE = -3; -} - -message AMessage { - string bar = 1; - int32 baz = 2; -} - -message EchoResponse { - EchoRequest request = 1; -} \ No newline at end of file diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/core/internal/testpb/test.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/core/internal/testpb/test.proto deleted file mode 100644 index fe6535a2d4..0000000000 --- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/core/internal/testpb/test.proto +++ /dev/null @@ -1,36 +0,0 @@ -syntax = "proto3"; - -package testpb; - -import "cosmos/app/v1alpha1/module.proto"; - -message TestRuntimeModule { - option (cosmos.app.v1alpha1.module) = { - go_import: "cosmossdk.io/core/internal/testpb" - }; -} - -message TestModuleA { - option (cosmos.app.v1alpha1.module) = { - go_import: "cosmossdk.io/core/internal/testpb" - }; -} - -message TestModuleB { - option (cosmos.app.v1alpha1.module) = { - go_import: "cosmossdk.io/core/internal/testpb" - }; -} - -message TestUnregisteredModule { - option (cosmos.app.v1alpha1.module) = { - go_import: "cosmossdk.io/core/internal/testpb" - }; -} - -message TestNoModuleOptionModule {} - -message TestNoGoImportModule { - option (cosmos.app.v1alpha1.module) = { - }; -} diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/cosmos_proto/cosmos.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/cosmos_proto/cosmos.proto deleted file mode 100644 index 0a073fc3dd..0000000000 --- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/cosmos_proto/cosmos.proto +++ /dev/null @@ -1,108 +0,0 @@ -syntax = "proto3"; -package cosmos_proto; - -import "google/protobuf/descriptor.proto"; - -option go_package = "github.com/cosmos/cosmos-proto;cosmos_proto"; - -extend google.protobuf.MessageOptions { - - // implements_interface is used to indicate the type name of the interface - // that a message implements so that it can be used in google.protobuf.Any - // fields that accept that interface. A message can implement multiple - // interfaces. Interfaces should be declared using a declare_interface - // file option. - repeated string implements_interface = 93001; -} - -extend google.protobuf.FieldOptions { - - // accepts_interface is used to annotate that a google.protobuf.Any - // field accepts messages that implement the specified interface. - // Interfaces should be declared using a declare_interface file option. - string accepts_interface = 93001; - - // scalar is used to indicate that this field follows the formatting defined - // by the named scalar which should be declared with declare_scalar. Code - // generators may choose to use this information to map this field to a - // language-specific type representing the scalar. - string scalar = 93002; -} - -extend google.protobuf.FileOptions { - - // declare_interface declares an interface type to be used with - // accepts_interface and implements_interface. Interface names are - // expected to follow the following convention such that their declaration - // can be discovered by tools: for a given interface type a.b.C, it is - // expected that the declaration will be found in a protobuf file named - // a/b/interfaces.proto in the file descriptor set. - repeated InterfaceDescriptor declare_interface = 793021; - - // declare_scalar declares a scalar type to be used with - // the scalar field option. Scalar names are - // expected to follow the following convention such that their declaration - // can be discovered by tools: for a given scalar type a.b.C, it is - // expected that the declaration will be found in a protobuf file named - // a/b/scalars.proto in the file descriptor set. - repeated ScalarDescriptor declare_scalar = 793022; -} - -// InterfaceDescriptor describes an interface type to be used with -// accepts_interface and implements_interface and declared by declare_interface. -message InterfaceDescriptor { - - // name is the name of the interface. It should be a short-name (without - // a period) such that the fully qualified name of the interface will be - // package.name, ex. for the package a.b and interface named C, the - // fully-qualified name will be a.b.C. - string name = 1; - - // description is a human-readable description of the interface and its - // purpose. - string description = 2; -} - -// ScalarDescriptor describes an scalar type to be used with -// the scalar field option and declared by declare_scalar. -// Scalars extend simple protobuf built-in types with additional -// syntax and semantics, for instance to represent big integers. -// Scalars should ideally define an encoding such that there is only one -// valid syntactical representation for a given semantic meaning, -// i.e. the encoding should be deterministic. -message ScalarDescriptor { - - // name is the name of the scalar. It should be a short-name (without - // a period) such that the fully qualified name of the scalar will be - // package.name, ex. for the package a.b and scalar named C, the - // fully-qualified name will be a.b.C. - string name = 1; - - // description is a human-readable description of the scalar and its - // encoding format. For instance a big integer or decimal scalar should - // specify precisely the expected encoding format. - string description = 2; - - // field_type is the type of field with which this scalar can be used. - // Scalars can be used with one and only one type of field so that - // encoding standards and simple and clear. Currently only string and - // bytes fields are supported for scalars. - repeated ScalarType field_type = 3; - - // legacy_amino_encoding is an optional string to describe the encoding - // format used by Amino. The field type is chosen to be a string so that - // the value can either be: - // - a machine-readable string, such as "base64", "bech32" or "utf8", - // - or a human-readable string, for instance a short specification of how - // a big integer would be encoded using Amino. - // - // If left empty, then the Amino encoding is expected to be the same as the - // Protobuf one. - string legacy_amino_encoding = 4; -} - -enum ScalarType { - SCALAR_TYPE_UNSPECIFIED = 0; - SCALAR_TYPE_STRING = 1; - SCALAR_TYPE_BYTES = 2; -} diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/bank.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/bank.proto deleted file mode 100644 index e6b4e7f262..0000000000 --- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/bank.proto +++ /dev/null @@ -1,42 +0,0 @@ -syntax = "proto3"; - -package testpb; - -import "cosmos/orm/v1/orm.proto"; - -// This is a simulated bank schema used for testing. - -message Balance { - // clang-format off - option (cosmos.orm.v1.table) = { - id: 1; - primary_key: { - fields: - "address,denom" - } - index: { - id: - 1 fields: "denom" - } - }; -// clang-format on - -string address = 1; -string denom = 2; -uint64 amount = 3; -} - -message Supply { - // clang-format off - option (cosmos.orm.v1.table) = { - id: 2; - primary_key: { - fields: - "denom" - } - }; -// clang-format on - -string denom = 1; -uint64 amount = 2; -} diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/bank_query.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/bank_query.proto deleted file mode 100644 index a5beea2240..0000000000 --- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/bank_query.proto +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by protoc-gen-go-cosmos-orm-proto. DO NOT EDIT. -syntax = "proto3"; -package testpb; - -import "cosmos/base/query/v1beta1/pagination.proto"; -import "testpb/bank.proto"; - -// BankQuery queries the state of the tables specified by testpb/bank.proto. -service BankQuery { - // Get queries the Balance table by its primary key. - rpc GetBalance (GetBalanceRequest) returns (GetBalanceResponse) {} - // ListBalance queries the Balance table using prefix and range queries against defined indexes. - rpc ListBalance (ListBalanceRequest) returns (ListBalanceResponse) {} - // Get queries the Supply table by its primary key. - rpc GetSupply (GetSupplyRequest) returns (GetSupplyResponse) {} - // ListSupply queries the Supply table using prefix and range queries against defined indexes. - rpc ListSupply (ListSupplyRequest) returns (ListSupplyResponse) {} -} - -// GetBalanceRequest is the BankQuery/GetBalanceRequest request type. -message GetBalanceRequest { - // address specifies the value of the address field in the primary key. - string address = 1; - // denom specifies the value of the denom field in the primary key. - string denom = 2; -} - -// GetBalanceResponse is the BankQuery/GetBalanceResponse response type. -message GetBalanceResponse { - // value is the response value. - Balance value = 1; -} - -// ListBalanceRequest is the BankQuery/ListBalanceRequest request type. -message ListBalanceRequest { - // IndexKey specifies the value of an index key to use in prefix and range queries. - message IndexKey { - // key specifies the index key value. - oneof key { - // address_denom specifies the value of the AddressDenom index key to use in the query. - AddressDenom address_denom = 1; - // denom specifies the value of the Denom index key to use in the query. - Denom denom = 2; - } - - message AddressDenom { - // address is the value of the address field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional string address = 1; - // denom is the value of the denom field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional string denom = 2; - } - - message Denom { - // denom is the value of the denom field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional string denom = 1; - } - } - - // query specifies the type of query - either a prefix or range query. - oneof query { - // prefix_query specifies the index key value to use for the prefix query. - IndexKey prefix_query = 1; - // range_query specifies the index key from/to values to use for the range query. - RangeQuery range_query = 2; - } - // pagination specifies optional pagination parameters. - cosmos.base.query.v1beta1.PageRequest pagination = 3; - - // RangeQuery specifies the from/to index keys for a range query. - message RangeQuery { - // from is the index key to use for the start of the range query. - // To query from the start of an index, specify an index key for that index with empty values. - IndexKey from = 1; - // to is the index key to use for the end of the range query. - // The index key type MUST be the same as the index key type used for from. - // To query from to the end of an index it can be omitted. - IndexKey to = 2; - } -} - -// ListBalanceResponse is the BankQuery/ListBalanceResponse response type. -message ListBalanceResponse { - // values are the results of the query. - repeated Balance values = 1; - // pagination is the pagination response. - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} - -// GetSupplyRequest is the BankQuery/GetSupplyRequest request type. -message GetSupplyRequest { - // denom specifies the value of the denom field in the primary key. - string denom = 1; -} - -// GetSupplyResponse is the BankQuery/GetSupplyResponse response type. -message GetSupplyResponse { - // value is the response value. - Supply value = 1; -} - -// ListSupplyRequest is the BankQuery/ListSupplyRequest request type. -message ListSupplyRequest { - // IndexKey specifies the value of an index key to use in prefix and range queries. - message IndexKey { - // key specifies the index key value. - oneof key { - // denom specifies the value of the Denom index key to use in the query. - Denom denom = 1; - } - - message Denom { - // denom is the value of the denom field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional string denom = 1; - } - } - - // query specifies the type of query - either a prefix or range query. - oneof query { - // prefix_query specifies the index key value to use for the prefix query. - IndexKey prefix_query = 1; - // range_query specifies the index key from/to values to use for the range query. - RangeQuery range_query = 2; - } - // pagination specifies optional pagination parameters. - cosmos.base.query.v1beta1.PageRequest pagination = 3; - - // RangeQuery specifies the from/to index keys for a range query. - message RangeQuery { - // from is the index key to use for the start of the range query. - // To query from the start of an index, specify an index key for that index with empty values. - IndexKey from = 1; - // to is the index key to use for the end of the range query. - // The index key type MUST be the same as the index key type used for from. - // To query from to the end of an index it can be omitted. - IndexKey to = 2; - } -} - -// ListSupplyResponse is the BankQuery/ListSupplyResponse response type. -message ListSupplyResponse { - // values are the results of the query. - repeated Supply values = 1; - // pagination is the pagination response. - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} - diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/test_schema.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/test_schema.proto deleted file mode 100644 index 2a27f8f737..0000000000 --- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/test_schema.proto +++ /dev/null @@ -1,130 +0,0 @@ -syntax = "proto3"; - -package testpb; - -import "google/protobuf/timestamp.proto"; -import "google/protobuf/duration.proto"; -import "cosmos/orm/v1/orm.proto"; - -message ExampleTable { - // clang-format off - option (cosmos.orm.v1.table) = { - id: 1; - primary_key: { - fields: - "u32,i64,str" - } - index: { - id: - 1; - fields: - "u64,str" unique: true - } - index: { - id: - 2; - fields: - "str,u32" - } - index: { - id: - 3; - fields: - "bz,str" - } - }; -// clang-format on - -// Valid key fields: -uint32 u32 = 1; -uint64 u64 = 2; -string str = 3; -bytes bz = 4; -google.protobuf.Timestamp ts = 5; -google.protobuf.Duration dur = 6; -int32 i32 = 7; -sint32 s32 = 8; -sfixed32 sf32 = 9; -int64 i64 = 10; -sint64 s64 = 11; -sfixed64 sf64 = 12; -fixed32 f32 = 13; -fixed64 f64 = 14; -bool b = 15; -Enum e = 16; - -// Invalid key fields: -repeated uint32 repeated = 17; -map map = 18; -ExampleMessage msg = 19; -oneof sum { - uint32 oneof = 20; -} - -message ExampleMessage { - string foo = 1; - int32 bar = 2; -} -} - -enum Enum { - ENUM_UNSPECIFIED = 0; - ENUM_ONE = 1; - ENUM_TWO = 2; - ENUM_FIVE = 5; - ENUM_NEG_THREE = -3; -} - -message ExampleAutoIncrementTable { - option (cosmos.orm.v1.table) = { - id: 3 - primary_key: {fields: "id" auto_increment: true} - index: {id: 1 fields: "x" unique: true} - }; - - uint64 id = 1; - string x = 2; - int32 y = 3; -} - -message ExampleSingleton { - option (cosmos.orm.v1.singleton) = { - id: 2 - }; - string foo = 1; - int32 bar = 2; -} - -message ExampleTimestamp { - option (cosmos.orm.v1.table) = { - id: 4 - primary_key: {fields: "id" auto_increment: true} - index: {id: 1 fields: "ts"} - }; - - uint64 id = 1; - string name = 2; - google.protobuf.Timestamp ts = 3; -} - -message SimpleExample { - option (cosmos.orm.v1.table) = { - id: 5 - primary_key: {fields: "name"} - index: {id: 1, fields: "unique", unique: true} - }; - - string name = 1; - string unique = 2; - string not_unique = 3; -} - -// ExampleAutoIncFieldName is a table for testing InsertReturning. -message ExampleAutoIncFieldName { - option (cosmos.orm.v1.table) = { - id: 6 - primary_key: {fields: "foo" auto_increment: true} - }; - uint64 foo = 1; - uint64 bar = 2; -} \ No newline at end of file diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/test_schema_query.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/test_schema_query.proto deleted file mode 100644 index 14f8667979..0000000000 --- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/test_schema_query.proto +++ /dev/null @@ -1,442 +0,0 @@ -// Code generated by protoc-gen-go-cosmos-orm-proto. DO NOT EDIT. -syntax = "proto3"; -package testpb; - -import "cosmos/base/query/v1beta1/pagination.proto"; -import "google/protobuf/timestamp.proto"; -import "testpb/test_schema.proto"; - -// TestSchemaQuery queries the state of the tables specified by testpb/test_schema.proto. -service TestSchemaQuery { - // Get queries the ExampleTable table by its primary key. - rpc GetExampleTable (GetExampleTableRequest) returns (GetExampleTableResponse) {} - // GetExampleTableByU64Str queries the ExampleTable table by its U64Str index - rpc GetExampleTableByU64Str (GetExampleTableByU64StrRequest) returns (GetExampleTableByU64StrResponse) {} - // ListExampleTable queries the ExampleTable table using prefix and range queries against defined indexes. - rpc ListExampleTable (ListExampleTableRequest) returns (ListExampleTableResponse) {} - // Get queries the ExampleAutoIncrementTable table by its primary key. - rpc GetExampleAutoIncrementTable (GetExampleAutoIncrementTableRequest) returns (GetExampleAutoIncrementTableResponse) {} - // GetExampleAutoIncrementTableByX queries the ExampleAutoIncrementTable table by its X index - rpc GetExampleAutoIncrementTableByX (GetExampleAutoIncrementTableByXRequest) returns (GetExampleAutoIncrementTableByXResponse) {} - // ListExampleAutoIncrementTable queries the ExampleAutoIncrementTable table using prefix and range queries against defined indexes. - rpc ListExampleAutoIncrementTable (ListExampleAutoIncrementTableRequest) returns (ListExampleAutoIncrementTableResponse) {} - // GetExampleSingleton queries the ExampleSingleton singleton. - rpc GetExampleSingleton (GetExampleSingletonRequest) returns (GetExampleSingletonResponse) {} - // Get queries the ExampleTimestamp table by its primary key. - rpc GetExampleTimestamp (GetExampleTimestampRequest) returns (GetExampleTimestampResponse) {} - // ListExampleTimestamp queries the ExampleTimestamp table using prefix and range queries against defined indexes. - rpc ListExampleTimestamp (ListExampleTimestampRequest) returns (ListExampleTimestampResponse) {} - // Get queries the SimpleExample table by its primary key. - rpc GetSimpleExample (GetSimpleExampleRequest) returns (GetSimpleExampleResponse) {} - // GetSimpleExampleByUnique queries the SimpleExample table by its Unique index - rpc GetSimpleExampleByUnique (GetSimpleExampleByUniqueRequest) returns (GetSimpleExampleByUniqueResponse) {} - // ListSimpleExample queries the SimpleExample table using prefix and range queries against defined indexes. - rpc ListSimpleExample (ListSimpleExampleRequest) returns (ListSimpleExampleResponse) {} - // Get queries the ExampleAutoIncFieldName table by its primary key. - rpc GetExampleAutoIncFieldName (GetExampleAutoIncFieldNameRequest) returns (GetExampleAutoIncFieldNameResponse) {} - // ListExampleAutoIncFieldName queries the ExampleAutoIncFieldName table using prefix and range queries against defined indexes. - rpc ListExampleAutoIncFieldName (ListExampleAutoIncFieldNameRequest) returns (ListExampleAutoIncFieldNameResponse) {} -} - -// GetExampleTableRequest is the TestSchemaQuery/GetExampleTableRequest request type. -message GetExampleTableRequest { - // u32 specifies the value of the u32 field in the primary key. - uint32 u32 = 1; - // i64 specifies the value of the i64 field in the primary key. - int64 i64 = 2; - // str specifies the value of the str field in the primary key. - string str = 3; -} - -// GetExampleTableResponse is the TestSchemaQuery/GetExampleTableResponse response type. -message GetExampleTableResponse { - // value is the response value. - ExampleTable value = 1; -} - -// GetExampleTableByU64StrRequest is the TestSchemaQuery/GetExampleTableByU64StrRequest request type. -message GetExampleTableByU64StrRequest { - uint64 u64 = 1; - string str = 2; -} - -// GetExampleTableByU64StrResponse is the TestSchemaQuery/GetExampleTableByU64StrResponse response type. -message GetExampleTableByU64StrResponse { - ExampleTable value = 1; -} - -// ListExampleTableRequest is the TestSchemaQuery/ListExampleTableRequest request type. -message ListExampleTableRequest { - // IndexKey specifies the value of an index key to use in prefix and range queries. - message IndexKey { - // key specifies the index key value. - oneof key { - // u_32_i_64_str specifies the value of the U32I64Str index key to use in the query. - U32I64Str u_32_i_64_str = 1; - // u_64_str specifies the value of the U64Str index key to use in the query. - U64Str u_64_str = 2; - // str_u_32 specifies the value of the StrU32 index key to use in the query. - StrU32 str_u_32 = 3; - // bz_str specifies the value of the BzStr index key to use in the query. - BzStr bz_str = 4; - } - - message U32I64Str { - // u32 is the value of the u32 field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional uint32 u32 = 1; - // i64 is the value of the i64 field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional int64 i64 = 2; - // str is the value of the str field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional string str = 3; - } - - message U64Str { - // u64 is the value of the u64 field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional uint64 u64 = 1; - // str is the value of the str field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional string str = 2; - } - - message StrU32 { - // str is the value of the str field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional string str = 1; - // u32 is the value of the u32 field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional uint32 u32 = 2; - } - - message BzStr { - // bz is the value of the bz field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional bytes bz = 1; - // str is the value of the str field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional string str = 2; - } - } - - // query specifies the type of query - either a prefix or range query. - oneof query { - // prefix_query specifies the index key value to use for the prefix query. - IndexKey prefix_query = 1; - // range_query specifies the index key from/to values to use for the range query. - RangeQuery range_query = 2; - } - // pagination specifies optional pagination parameters. - cosmos.base.query.v1beta1.PageRequest pagination = 3; - - // RangeQuery specifies the from/to index keys for a range query. - message RangeQuery { - // from is the index key to use for the start of the range query. - // To query from the start of an index, specify an index key for that index with empty values. - IndexKey from = 1; - // to is the index key to use for the end of the range query. - // The index key type MUST be the same as the index key type used for from. - // To query from to the end of an index it can be omitted. - IndexKey to = 2; - } -} - -// ListExampleTableResponse is the TestSchemaQuery/ListExampleTableResponse response type. -message ListExampleTableResponse { - // values are the results of the query. - repeated ExampleTable values = 1; - // pagination is the pagination response. - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} - -// GetExampleAutoIncrementTableRequest is the TestSchemaQuery/GetExampleAutoIncrementTableRequest request type. -message GetExampleAutoIncrementTableRequest { - // id specifies the value of the id field in the primary key. - uint64 id = 1; -} - -// GetExampleAutoIncrementTableResponse is the TestSchemaQuery/GetExampleAutoIncrementTableResponse response type. -message GetExampleAutoIncrementTableResponse { - // value is the response value. - ExampleAutoIncrementTable value = 1; -} - -// GetExampleAutoIncrementTableByXRequest is the TestSchemaQuery/GetExampleAutoIncrementTableByXRequest request type. -message GetExampleAutoIncrementTableByXRequest { - string x = 1; -} - -// GetExampleAutoIncrementTableByXResponse is the TestSchemaQuery/GetExampleAutoIncrementTableByXResponse response type. -message GetExampleAutoIncrementTableByXResponse { - ExampleAutoIncrementTable value = 1; -} - -// ListExampleAutoIncrementTableRequest is the TestSchemaQuery/ListExampleAutoIncrementTableRequest request type. -message ListExampleAutoIncrementTableRequest { - // IndexKey specifies the value of an index key to use in prefix and range queries. - message IndexKey { - // key specifies the index key value. - oneof key { - // id specifies the value of the Id index key to use in the query. - Id id = 1; - // x specifies the value of the X index key to use in the query. - X x = 2; - } - - message Id { - // id is the value of the id field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional uint64 id = 1; - } - - message X { - // x is the value of the x field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional string x = 1; - } - } - - // query specifies the type of query - either a prefix or range query. - oneof query { - // prefix_query specifies the index key value to use for the prefix query. - IndexKey prefix_query = 1; - // range_query specifies the index key from/to values to use for the range query. - RangeQuery range_query = 2; - } - // pagination specifies optional pagination parameters. - cosmos.base.query.v1beta1.PageRequest pagination = 3; - - // RangeQuery specifies the from/to index keys for a range query. - message RangeQuery { - // from is the index key to use for the start of the range query. - // To query from the start of an index, specify an index key for that index with empty values. - IndexKey from = 1; - // to is the index key to use for the end of the range query. - // The index key type MUST be the same as the index key type used for from. - // To query from to the end of an index it can be omitted. - IndexKey to = 2; - } -} - -// ListExampleAutoIncrementTableResponse is the TestSchemaQuery/ListExampleAutoIncrementTableResponse response type. -message ListExampleAutoIncrementTableResponse { - // values are the results of the query. - repeated ExampleAutoIncrementTable values = 1; - // pagination is the pagination response. - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} - -// GetExampleSingletonRequest is the TestSchemaQuery/GetExampleSingletonRequest request type. -message GetExampleSingletonRequest { -} - -// GetExampleSingletonResponse is the TestSchemaQuery/GetExampleSingletonResponse request type. -message GetExampleSingletonResponse { - ExampleSingleton value = 1; -} - -// GetExampleTimestampRequest is the TestSchemaQuery/GetExampleTimestampRequest request type. -message GetExampleTimestampRequest { - // id specifies the value of the id field in the primary key. - uint64 id = 1; -} - -// GetExampleTimestampResponse is the TestSchemaQuery/GetExampleTimestampResponse response type. -message GetExampleTimestampResponse { - // value is the response value. - ExampleTimestamp value = 1; -} - -// ListExampleTimestampRequest is the TestSchemaQuery/ListExampleTimestampRequest request type. -message ListExampleTimestampRequest { - // IndexKey specifies the value of an index key to use in prefix and range queries. - message IndexKey { - // key specifies the index key value. - oneof key { - // id specifies the value of the Id index key to use in the query. - Id id = 1; - // ts specifies the value of the Ts index key to use in the query. - Ts ts = 2; - } - - message Id { - // id is the value of the id field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional uint64 id = 1; - } - - message Ts { - // ts is the value of the ts field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional google.protobuf.Timestamp ts = 1; - } - } - - // query specifies the type of query - either a prefix or range query. - oneof query { - // prefix_query specifies the index key value to use for the prefix query. - IndexKey prefix_query = 1; - // range_query specifies the index key from/to values to use for the range query. - RangeQuery range_query = 2; - } - // pagination specifies optional pagination parameters. - cosmos.base.query.v1beta1.PageRequest pagination = 3; - - // RangeQuery specifies the from/to index keys for a range query. - message RangeQuery { - // from is the index key to use for the start of the range query. - // To query from the start of an index, specify an index key for that index with empty values. - IndexKey from = 1; - // to is the index key to use for the end of the range query. - // The index key type MUST be the same as the index key type used for from. - // To query from to the end of an index it can be omitted. - IndexKey to = 2; - } -} - -// ListExampleTimestampResponse is the TestSchemaQuery/ListExampleTimestampResponse response type. -message ListExampleTimestampResponse { - // values are the results of the query. - repeated ExampleTimestamp values = 1; - // pagination is the pagination response. - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} - -// GetSimpleExampleRequest is the TestSchemaQuery/GetSimpleExampleRequest request type. -message GetSimpleExampleRequest { - // name specifies the value of the name field in the primary key. - string name = 1; -} - -// GetSimpleExampleResponse is the TestSchemaQuery/GetSimpleExampleResponse response type. -message GetSimpleExampleResponse { - // value is the response value. - SimpleExample value = 1; -} - -// GetSimpleExampleByUniqueRequest is the TestSchemaQuery/GetSimpleExampleByUniqueRequest request type. -message GetSimpleExampleByUniqueRequest { - string unique = 1; -} - -// GetSimpleExampleByUniqueResponse is the TestSchemaQuery/GetSimpleExampleByUniqueResponse response type. -message GetSimpleExampleByUniqueResponse { - SimpleExample value = 1; -} - -// ListSimpleExampleRequest is the TestSchemaQuery/ListSimpleExampleRequest request type. -message ListSimpleExampleRequest { - // IndexKey specifies the value of an index key to use in prefix and range queries. - message IndexKey { - // key specifies the index key value. - oneof key { - // name specifies the value of the Name index key to use in the query. - Name name = 1; - // unique specifies the value of the Unique index key to use in the query. - Unique unique = 2; - } - - message Name { - // name is the value of the name field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional string name = 1; - } - - message Unique { - // unique is the value of the unique field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional string unique = 1; - } - } - - // query specifies the type of query - either a prefix or range query. - oneof query { - // prefix_query specifies the index key value to use for the prefix query. - IndexKey prefix_query = 1; - // range_query specifies the index key from/to values to use for the range query. - RangeQuery range_query = 2; - } - // pagination specifies optional pagination parameters. - cosmos.base.query.v1beta1.PageRequest pagination = 3; - - // RangeQuery specifies the from/to index keys for a range query. - message RangeQuery { - // from is the index key to use for the start of the range query. - // To query from the start of an index, specify an index key for that index with empty values. - IndexKey from = 1; - // to is the index key to use for the end of the range query. - // The index key type MUST be the same as the index key type used for from. - // To query from to the end of an index it can be omitted. - IndexKey to = 2; - } -} - -// ListSimpleExampleResponse is the TestSchemaQuery/ListSimpleExampleResponse response type. -message ListSimpleExampleResponse { - // values are the results of the query. - repeated SimpleExample values = 1; - // pagination is the pagination response. - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} - -// GetExampleAutoIncFieldNameRequest is the TestSchemaQuery/GetExampleAutoIncFieldNameRequest request type. -message GetExampleAutoIncFieldNameRequest { - // foo specifies the value of the foo field in the primary key. - uint64 foo = 1; -} - -// GetExampleAutoIncFieldNameResponse is the TestSchemaQuery/GetExampleAutoIncFieldNameResponse response type. -message GetExampleAutoIncFieldNameResponse { - // value is the response value. - ExampleAutoIncFieldName value = 1; -} - -// ListExampleAutoIncFieldNameRequest is the TestSchemaQuery/ListExampleAutoIncFieldNameRequest request type. -message ListExampleAutoIncFieldNameRequest { - // IndexKey specifies the value of an index key to use in prefix and range queries. - message IndexKey { - // key specifies the index key value. - oneof key { - // foo specifies the value of the Foo index key to use in the query. - Foo foo = 1; - } - - message Foo { - // foo is the value of the foo field in the index. - // It can be omitted to query for all valid values of that field in this segment of the index. - optional uint64 foo = 1; - } - } - - // query specifies the type of query - either a prefix or range query. - oneof query { - // prefix_query specifies the index key value to use for the prefix query. - IndexKey prefix_query = 1; - // range_query specifies the index key from/to values to use for the range query. - RangeQuery range_query = 2; - } - // pagination specifies optional pagination parameters. - cosmos.base.query.v1beta1.PageRequest pagination = 3; - - // RangeQuery specifies the from/to index keys for a range query. - message RangeQuery { - // from is the index key to use for the start of the range query. - // To query from the start of an index, specify an index key for that index with empty values. - IndexKey from = 1; - // to is the index key to use for the end of the range query. - // The index key type MUST be the same as the index key type used for from. - // To query from to the end of an index it can be omitted. - IndexKey to = 2; - } -} - -// ListExampleAutoIncFieldNameResponse is the TestSchemaQuery/ListExampleAutoIncFieldNameResponse response type. -message ListExampleAutoIncFieldNameResponse { - // values are the results of the query. - repeated ExampleAutoIncFieldName values = 1; - // pagination is the pagination response. - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} - diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/query.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/query.proto deleted file mode 100644 index 3a60acaad1..0000000000 --- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/query.proto +++ /dev/null @@ -1,39 +0,0 @@ -syntax = "proto3"; -package testdata; - -import "google/protobuf/any.proto"; -import "testdata.proto"; - -option go_package = "github.com/cosmos/cosmos-sdk/testutil/testdata"; - -// Query tests the protobuf Query service as defined in -// https://github.com/cosmos/cosmos-sdk/issues/5921. -service Query { - rpc Echo(EchoRequest) returns (EchoResponse); - rpc SayHello(SayHelloRequest) returns (SayHelloResponse); - rpc TestAny(TestAnyRequest) returns (TestAnyResponse); -} - -message EchoRequest { - string message = 1; -} - -message EchoResponse { - string message = 1; -} - -message SayHelloRequest { - string name = 1; -} - -message SayHelloResponse { - string greeting = 1; -} - -message TestAnyRequest { - google.protobuf.Any any_animal = 1; -} - -message TestAnyResponse { - testdata.HasAnimal has_animal = 1; -} diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/testdata.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/testdata.proto deleted file mode 100644 index 22503ef61d..0000000000 --- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/testdata.proto +++ /dev/null @@ -1,49 +0,0 @@ -syntax = "proto3"; -package testdata; - -import "gogoproto/gogo.proto"; -import "google/protobuf/any.proto"; - -option go_package = "github.com/cosmos/cosmos-sdk/testutil/testdata"; - -message Dog { - string size = 1; - string name = 2; -} - -message Cat { - string moniker = 1; - int32 lives = 2; -} - -message Bird { - string species = 1; - int32 color = 2; -} - -message HasAnimal { - google.protobuf.Any animal = 1; - int64 x = 2; -} - -message HasHasAnimal { - google.protobuf.Any has_animal = 1; -} - -message HasHasHasAnimal { - google.protobuf.Any has_has_animal = 1; -} - -// bad MultiSignature with extra fields -message BadMultiSignature { - option (gogoproto.goproto_unrecognized) = true; - repeated bytes signatures = 1; - bytes malicious_field = 5; -} - -message TableModel { - uint64 id = 1; - string name = 2; - uint64 number = 3; - bytes metadata = 4; -} diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/tx.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/tx.proto deleted file mode 100644 index eaeb9580e5..0000000000 --- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/tx.proto +++ /dev/null @@ -1,28 +0,0 @@ -syntax = "proto3"; -package testdata; - -import "gogoproto/gogo.proto"; -import "testdata.proto"; - -option go_package = "github.com/cosmos/cosmos-sdk/testutil/testdata"; - -// Msg tests the Protobuf message service as defined in -// https://github.com/cosmos/cosmos-sdk/issues/7500. -service Msg { - rpc CreateDog(MsgCreateDog) returns (MsgCreateDogResponse); -} - -message MsgCreateDog { - testdata.Dog dog = 1; -} - -message MsgCreateDogResponse { - string name = 1; -} - -// TestMsg is msg type for testing protobuf message using any, as defined in -// https://github.com/cosmos/cosmos-sdk/issues/6213. -message TestMsg { - option (gogoproto.goproto_getters) = false; - repeated string signers = 1; -} diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/unknonwnproto.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/unknonwnproto.proto deleted file mode 100644 index 7bf1ce6bba..0000000000 --- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/unknonwnproto.proto +++ /dev/null @@ -1,308 +0,0 @@ -syntax = "proto3"; -package testdata; - -import "gogoproto/gogo.proto"; -import "google/protobuf/any.proto"; -import "cosmos/tx/v1beta1/tx.proto"; - -option go_package = "github.com/cosmos/cosmos-sdk/testutil/testdata"; - -message Customer1 { - int32 id = 1; - string name = 2; - float subscription_fee = 3; - - string payment = 7; -} - -message Customer2 { - int32 id = 1; - int32 industry = 2; - string name = 3; - float fewer = 4; - - int64 reserved = 1047; - - enum City { - Laos = 0; - LosAngeles = 1; - PaloAlto = 2; - Moscow = 3; - Nairobi = 4; - } - - City city = 6; - - google.protobuf.Any miscellaneous = 10; -} - -message Nested4A { - int32 id = 1; - string name = 2; -} - -message Nested3A { - int32 id = 1; - string name = 2; - repeated Nested4A a4 = 4; - map index = 5; -} - -message Nested2A { - int32 id = 1; - string name = 2; - Nested3A nested = 3; -} - -message Nested1A { - int32 id = 1; - Nested2A nested = 2; -} - -message Nested4B { - int32 id = 1; - int32 age = 2; - string name = 3; -} - -message Nested3B { - int32 id = 1; - int32 age = 2; - string name = 3; - repeated Nested4B b4 = 4; -} - -message Nested2B { - int32 id = 1; - double fee = 2; - Nested3B nested = 3; - string route = 4; -} - -message Nested1B { - int32 id = 1; - Nested2B nested = 2; - int32 age = 3; -} - -message Customer3 { - int32 id = 1; - string name = 2; - float sf = 3; - float surcharge = 4; - string destination = 5; - - oneof payment { - string credit_card_no = 7; - string cheque_no = 8; - } - - Customer1 original = 9; -} - -message TestVersion1 { - int64 x = 1; - TestVersion1 a = 2; - TestVersion1 b = 3; // [(gogoproto.nullable) = false] generates invalid recursive structs; - repeated TestVersion1 c = 4; - repeated TestVersion1 d = 5 [(gogoproto.nullable) = false]; - oneof sum { - int32 e = 6; - TestVersion1 f = 7; - } - google.protobuf.Any g = 8; - repeated TestVersion1 h = 9; // [(gogoproto.castrepeated) = "TestVersion1"]; - // google.protobuf.Timestamp i = 10; - // google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true]; - Customer1 k = 12 [(gogoproto.embed) = true]; -} -message TestVersion2 { - int64 x = 1; - TestVersion2 a = 2; - TestVersion2 b = 3; // [(gogoproto.nullable) = false]; - repeated TestVersion2 c = 4; - repeated TestVersion2 d = 5; // [(gogoproto.nullable) = false]; - oneof sum { - int32 e = 6; - TestVersion2 f = 7; - } - google.protobuf.Any g = 8; - repeated TestVersion1 h = 9; // [(gogoproto.castrepeated) = "TestVersion1"]; - // google.protobuf.Timestamp i = 10; - // google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true]; - Customer1 k = 12 [(gogoproto.embed) = true]; - uint64 new_field = 25; -} -message TestVersion3 { - int64 x = 1; - TestVersion3 a = 2; - TestVersion3 b = 3; // [(gogoproto.nullable) = false]; - repeated TestVersion3 c = 4; - repeated TestVersion3 d = 5; // [(gogoproto.nullable) = false]; - oneof sum { - int32 e = 6; - TestVersion3 f = 7; - } - google.protobuf.Any g = 8; - repeated TestVersion1 h = 9; //[(gogoproto.castrepeated) = "TestVersion1"]; - // google.protobuf.Timestamp i = 10; - // google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true]; - Customer1 k = 12 [(gogoproto.embed) = true]; - string non_critical_field = 1031; -} - -message TestVersion3LoneOneOfValue { - int64 x = 1; - TestVersion3 a = 2; - TestVersion3 b = 3; // [(gogoproto.nullable) = false]; - repeated TestVersion3 c = 4; - repeated TestVersion3 d = 5; // [(gogoproto.nullable) = false]; - oneof sum { - int32 e = 6; - } - google.protobuf.Any g = 8; - repeated TestVersion1 h = 9; //[(gogoproto.castrepeated) = "TestVersion1"]; - // google.protobuf.Timestamp i = 10; - // google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true]; - Customer1 k = 12 [(gogoproto.embed) = true]; - string non_critical_field = 1031; -} - -message TestVersion3LoneNesting { - int64 x = 1; - TestVersion3 a = 2; - TestVersion3 b = 3; // [(gogoproto.nullable) = false]; - repeated TestVersion3 c = 4; - repeated TestVersion3 d = 5; // [(gogoproto.nullable) = false]; - oneof sum { - TestVersion3LoneNesting f = 7; - } - google.protobuf.Any g = 8; - repeated TestVersion1 h = 9; //[(gogoproto.castrepeated) = "TestVersion1"]; - // google.protobuf.Timestamp i = 10; - // google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true]; - Customer1 k = 12 [(gogoproto.embed) = true]; - string non_critical_field = 1031; - - message Inner1 { - int64 id = 1; - string name = 2; - message InnerInner { - string id = 1; - string city = 2; - } - InnerInner inner = 3; - } - - Inner1 inner1 = 14; - - message Inner2 { - string id = 1; - string country = 2; - message InnerInner { - string id = 1; - string city = 2; - } - InnerInner inner = 3; - } - - Inner2 inner2 = 15; -} - -message TestVersion4LoneNesting { - int64 x = 1; - TestVersion3 a = 2; - TestVersion3 b = 3; // [(gogoproto.nullable) = false]; - repeated TestVersion3 c = 4; - repeated TestVersion3 d = 5; // [(gogoproto.nullable) = false]; - oneof sum { - TestVersion3LoneNesting f = 7; - } - google.protobuf.Any g = 8; - repeated TestVersion1 h = 9; //[(gogoproto.castrepeated) = "TestVersion1"]; - // google.protobuf.Timestamp i = 10; - // google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true]; - Customer1 k = 12 [(gogoproto.embed) = true]; - string non_critical_field = 1031; - - message Inner1 { - int64 id = 1; - string name = 2; - message InnerInner { - int64 id = 1; - string city = 2; - } - InnerInner inner = 3; - } - - Inner1 inner1 = 14; - - message Inner2 { - string id = 1; - string country = 2; - message InnerInner { - string id = 1; - int64 value = 2; - } - InnerInner inner = 3; - } - - Inner2 inner2 = 15; -} - -message TestVersionFD1 { - int64 x = 1; - TestVersion1 a = 2; - oneof sum { - int32 e = 6; - TestVersion1 f = 7; - } - google.protobuf.Any g = 8; - repeated TestVersion1 h = 9; // [(gogoproto.castrepeated) = "TestVersion1"]; -} - -message TestVersionFD1WithExtraAny { - int64 x = 1; - TestVersion1 a = 2; - oneof sum { - int32 e = 6; - TestVersion1 f = 7; - } - AnyWithExtra g = 8; - repeated TestVersion1 h = 9; // [(gogoproto.castrepeated) = "TestVersion1"]; -} - -message AnyWithExtra { - google.protobuf.Any a = 1 [(gogoproto.embed) = true]; - int64 b = 3; - int64 c = 4; -} - -message TestUpdatedTxRaw { - bytes body_bytes = 1; - bytes auth_info_bytes = 2; - repeated bytes signatures = 3; - bytes new_field_5 = 5; - bytes new_field_1024 = 1024; -} - -message TestUpdatedTxBody { - repeated google.protobuf.Any messages = 1; - string memo = 2; - int64 timeout_height = 3; - uint64 some_new_field = 4; - string some_new_field_non_critical_field = 1050; - repeated google.protobuf.Any extension_options = 1023; - repeated google.protobuf.Any non_critical_extension_options = 2047; -} - -message TestUpdatedAuthInfo { - repeated cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - cosmos.tx.v1beta1.Fee fee = 2; - bytes new_field_3 = 3; - bytes new_field_1024 = 1024; -} - -message TestRepeatedUints { - repeated uint64 nums = 1; -} diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/tx/textual/internal/testpb/1.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/tx/textual/internal/testpb/1.proto deleted file mode 100644 index 6bf8012e66..0000000000 --- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/tx/textual/internal/testpb/1.proto +++ /dev/null @@ -1,41 +0,0 @@ -syntax = "proto3"; - -option go_package = "cosmossdk.io/tx/textual/internal/testpb"; - -import "google/protobuf/descriptor.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; -import "cosmos_proto/cosmos.proto"; -import "cosmos/base/v1beta1/coin.proto"; - -enum Enumeration { - One = 0; - Two = 1; -} - -// A is used for testing value renderers. -message A { - // Fields that are parseable by SIGN_MODE_TEXTUAL. - uint32 UINT32 = 1; - uint64 UINT64 = 2; - int32 INT32 = 3; - int64 INT64 = 4; - string SDKINT = 5 [(cosmos_proto.scalar) = "cosmos.Int"]; - string SDKDEC = 6 [(cosmos_proto.scalar) = "cosmos.Dec"]; - cosmos.base.v1beta1.Coin COIN = 7; - repeated cosmos.base.v1beta1.Coin COINS = 8; - bytes BYTES = 9; - google.protobuf.Timestamp TIMESTAMP = 10; - google.protobuf.Duration DURATION = 11; - - // Fields that are not handled by SIGN_MODE_TEXTUAL. - sint32 SINT32 = 101; - sint64 SINT64 = 102; - sfixed32 SFIXED32 = 105; - fixed32 FIXED32 = 106; - float FLOAT = 107; - sfixed64 SFIXED64 = 108; - fixed64 FIXED64 = 109; - double DOUBLE = 110; - map MAP = 111; -} diff --git a/ecosystem/lava-sdk/scripts/init_sdk.sh b/ecosystem/lava-sdk/scripts/init_sdk.sh new file mode 100755 index 0000000000..e5d02c68f9 --- /dev/null +++ b/ecosystem/lava-sdk/scripts/init_sdk.sh @@ -0,0 +1,87 @@ +#!/bin/bash + +__lava_root_dir=$(realpath $( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )/../../..) +__scripts_dir=$__lava_root_dir/scripts +source $__scripts_dir/useful_commands.sh + +# Check for GOTPATH +if [[ -z "$GOPATH" ]]; then + echo ">>> GOPATH is not set. Exiting..." + exit 1 +fi + +# Check for Python 3 +if ! command_exists python3; then + echo ">>> python3 is not installed. Exiting..." + exit 1 +fi + +# Install npm if needed +if ! command_exists npm; then + # Try to install npm using apt + echo ">>> Installing npm using apt..." + sudo apt update + sudo apt install -y npm + if ! command_exists npm; then + echo ">>> Failed to install npm. Exiting..." + exit 1 + fi +else + echo ">>> npm is installed" +fi + +# Install yarn if needed +if ! command_exists yarn; then + # Try to install yarn using npm + echo ">>> Installing yarn using npm..." + npm install -g yarn + if ! command_exists yarn; then + echo ">>> Failed to install yarn. Exiting..." + exit 1 + fi +else + echo ">>> yarn is installed" +fi + +echo ">>> Running yarn to install packages..." +yarn +if command_exists yarn; then + echo ">>> All packages have been successfully installed." +fi + +# Run go mod tidy in lava root dir +cd __lava_root_dir +go mod tidy +cd - + +# Install the protobuf compiler if needed +if ! command_exists protoc; then + # Try to install protoc using apt + echo ">>> Installing protoc using apt..." + sudo apt update + sudo apt install -y protobuf-compiler + if ! command_exists protoc; then + echo ">>> Failed to install protobuf-compiler. Exiting..." + exit 1 + fi +else + echo ">>> protoc is installed" +fi + +# Install the ts-protoc-gen plugin if needed +if ! command_exists ts-protoc-gen; then + # Try to install ts-protoc-gen using npm + echo ">>> Installing ts-protoc-gen using npm..." + npm install ts-protoc-gen + if npm list ts-protoc-gen | grep -q "ts-protoc-gen"; then + echo ">>> ts-protoc-gen is installed" + else + echo ">>> ts-protoc-gen is not installed" + exit 1 + fi +else + echo ">>> ts-protoc-gen is installed" +fi + +# Run the gRPC generation script +./scripts/protoc_grpc_relay.sh diff --git a/ecosystem/lava-sdk/scripts/prepare_protobufs.sh b/ecosystem/lava-sdk/scripts/prepare_protobufs.sh index 23e6022d4b..10aa3c0ee7 100755 --- a/ecosystem/lava-sdk/scripts/prepare_protobufs.sh +++ b/ecosystem/lava-sdk/scripts/prepare_protobufs.sh @@ -8,6 +8,7 @@ function prepare() { "github.com/gogo/googleapis v1.4.1 // indirect" "github.com/cosmos/cosmos-sdk v0.47.3" "github.com/cosmos/gogoproto v1.4.10" + "github.com/cosmos/cosmos-proto v1.0.0-beta.2" ) missing_lines=() @@ -64,12 +65,28 @@ function prepare() { exit 1 fi + cosmosprotosdir="$GOPATH/pkg/mod/github.com/cosmos/cosmos-proto@v1.0.0-beta.2" + + if [[ ! -d "$cosmosprotosdir" ]]; then + echo "Error: The cosmosprotosdir directory ('$cosmosprotosdir') does not exist under '$GOPATH/pkg/mod'." >&2 + echo "make sure you ran 'go mod tidy' in the lava main repo" + exit 1 + fi + + sudo rm -rf ./proto + + mkdir -p proto/cosmos/cosmos-sdk/google/api + sudo rm -rf ./proto/cosmos/cosmos-sdk/cosmos; cp -r $specific_dir/proto/cosmos ./proto/cosmos/cosmos-sdk sudo rm -rf ./proto/cosmos/cosmos-sdk/amino; cp -r $specific_dir/proto/amino ./proto/cosmos/cosmos-sdk sudo rm -rf ./proto/cosmos/cosmos-sdk/tendermint; cp -r $specific_dir/proto/tendermint ./proto/cosmos/cosmos-sdk sudo rm -rf ./proto/cosmos/cosmos-sdk/gogoproto; cp -r $gogodir/gogoproto ./proto/cosmos/cosmos-sdk sudo rm -rf ./proto/cosmos/cosmos-sdk/google; cp -r $gogodir/protobuf/google ./proto/cosmos/cosmos-sdk + sudo rm -rf ./proto/cosmos/cosmos-sdk/cosmos_proto; cp -r $cosmosprotosdir/proto/cosmos_proto ./proto/cosmos/cosmos-sdk sudo cp -r $googledir/google/api ./proto/cosmos/cosmos-sdk/google - sudo chown -R $(whoami):$(whoami) ./proto + cp -r ../../proto/lavanet ./proto + + group=$(groups $(whoami) | cut -d' ' -f1) + sudo chown -R $(whoami):$group ./proto } \ No newline at end of file diff --git a/ecosystem/lava-sdk/scripts/protoc_grpc_relay.sh b/ecosystem/lava-sdk/scripts/protoc_grpc_relay.sh index ec5a4b7f11..d0ce6ba826 100755 --- a/ecosystem/lava-sdk/scripts/protoc_grpc_relay.sh +++ b/ecosystem/lava-sdk/scripts/protoc_grpc_relay.sh @@ -5,7 +5,7 @@ prepare ROOT_PROTO_DIR="./proto/cosmos/cosmos-sdk" COSMOS_PROTO_DIR="$ROOT_PROTO_DIR" -THIRD_PARTY_PROTO_DIR="../../proto" +LAVA_PROTO_DIR="../../proto" OUT_DIR="./src/grpc_web_services" mkdir -p "$OUT_DIR" @@ -14,29 +14,29 @@ protoc --plugin="protoc-gen-ts=./node_modules/.bin/protoc-gen-ts" \ --js_out="import_style=commonjs,binary:$OUT_DIR" \ --ts_out="service=grpc-web:$OUT_DIR" \ --proto_path="$COSMOS_PROTO_DIR" \ - --proto_path="$THIRD_PARTY_PROTO_DIR" \ - "$THIRD_PARTY_PROTO_DIR/lavanet/lava/pairing/relay.proto" \ - "$THIRD_PARTY_PROTO_DIR/lavanet/lava/pairing/badges.proto" \ - "$THIRD_PARTY_PROTO_DIR/lavanet/lava/pairing/params.proto" \ - "$THIRD_PARTY_PROTO_DIR/lavanet/lava/pairing/query.proto" \ - "$THIRD_PARTY_PROTO_DIR/lavanet/lava/pairing/provider_payment_storage.proto" \ - "$THIRD_PARTY_PROTO_DIR/lavanet/lava/pairing/unique_payment_storage_client_provider.proto" \ - "$THIRD_PARTY_PROTO_DIR/lavanet/lava/subscription/subscription.proto" \ - "$THIRD_PARTY_PROTO_DIR/lavanet/lava/projects/project.proto" \ - "$THIRD_PARTY_PROTO_DIR/lavanet/lava/plans/policy.proto" \ - "$THIRD_PARTY_PROTO_DIR/lavanet/lava/pairing/epoch_payments.proto" \ - "$THIRD_PARTY_PROTO_DIR/lavanet/lava/spec/spec.proto" \ - "$THIRD_PARTY_PROTO_DIR/lavanet/lava/spec/api_collection.proto" \ - "$THIRD_PARTY_PROTO_DIR/lavanet/lava/epochstorage/stake_entry.proto" \ - "$THIRD_PARTY_PROTO_DIR/lavanet/lava/epochstorage/endpoint.proto" \ - "$THIRD_PARTY_PROTO_DIR/lavanet/lava/conflict/conflict_data.proto" \ + --proto_path="$LAVA_PROTO_DIR" \ + "$LAVA_PROTO_DIR/lavanet/lava/pairing/relay.proto" \ + "$LAVA_PROTO_DIR/lavanet/lava/pairing/badges.proto" \ + "$LAVA_PROTO_DIR/lavanet/lava/pairing/params.proto" \ + "$LAVA_PROTO_DIR/lavanet/lava/pairing/query.proto" \ + "$LAVA_PROTO_DIR/lavanet/lava/pairing/provider_payment_storage.proto" \ + "$LAVA_PROTO_DIR/lavanet/lava/pairing/unique_payment_storage_client_provider.proto" \ + "$LAVA_PROTO_DIR/lavanet/lava/subscription/subscription.proto" \ + "$LAVA_PROTO_DIR/lavanet/lava/projects/project.proto" \ + "$LAVA_PROTO_DIR/lavanet/lava/plans/policy.proto" \ + "$LAVA_PROTO_DIR/lavanet/lava/pairing/epoch_payments.proto" \ + "$LAVA_PROTO_DIR/lavanet/lava/spec/spec.proto" \ + "$LAVA_PROTO_DIR/lavanet/lava/spec/api_collection.proto" \ + "$LAVA_PROTO_DIR/lavanet/lava/epochstorage/stake_entry.proto" \ + "$LAVA_PROTO_DIR/lavanet/lava/epochstorage/endpoint.proto" \ + "$LAVA_PROTO_DIR/lavanet/lava/conflict/conflict_data.proto" \ "$COSMOS_PROTO_DIR/gogoproto/gogo.proto" \ "$COSMOS_PROTO_DIR/google/protobuf/descriptor.proto" \ "$COSMOS_PROTO_DIR/google/protobuf/wrappers.proto" \ "$COSMOS_PROTO_DIR/google/api/annotations.proto" \ "$COSMOS_PROTO_DIR/google/api/http.proto" \ "$COSMOS_PROTO_DIR/cosmos/base/query/v1beta1/pagination.proto" \ - "$COSMOS_PROTO_DIR/cosmos/base/v1beta1/coin.proto" \ + "$COSMOS_PROTO_DIR/cosmos/base/v1beta1/coin.proto" \ "$COSMOS_PROTO_DIR/cosmos_proto/cosmos.proto" \ "$COSMOS_PROTO_DIR/amino/amino.proto" \ @@ -48,4 +48,5 @@ protoc --plugin="protoc-gen-ts=./node_modules/.bin/protoc-gen-ts" \ echo "running fix_grpc_web_camel_case.py" python3 ./scripts/fix_grpc_web_camel_case.py +mkdir -p ./bin/src cp -r $OUT_DIR ./bin/src/. diff --git a/ecosystem/lava-sdk/scripts/setup_sdk_with_local.sh b/ecosystem/lava-sdk/scripts/setup_sdk_with_local.sh index b4d09ba3a8..c915fe1d7e 100755 --- a/ecosystem/lava-sdk/scripts/setup_sdk_with_local.sh +++ b/ecosystem/lava-sdk/scripts/setup_sdk_with_local.sh @@ -69,16 +69,19 @@ json_content+=' ] # Write the JSON content to a file named "output.json" echo "$json_content" > pairingList.json -echo "Done." + +GEOLOCATION=2 cp examples/jsonRPC.ts examples/jsonRPC_test.ts -cp examples/restAPI.ts examples/restAPI_test.ts +cp examples/restAPI.ts examples/restAPI_test.tsZ cp examples/tendermintRPC.ts examples/tendermintRPC_test.ts -sed -i 's/geolocation: "2",/geolocation: "1",\n\n pairingListConfig: "pairingList.json",\n\n lavaChainId: "lava",\n\n logLevel: "debug",\n\n allowInsecureTransport: true,/g' examples/jsonRPC_test.ts -sed -i 's/geolocation: "2",/geolocation: "1",\n\n pairingListConfig: "pairingList.json",\n\n lavaChainId: "lava",\n\n logLevel: "debug",\n\n allowInsecureTransport: true,/g' examples/restAPI_test.ts -sed -i 's/geolocation: "2",/geolocation: "1",\n\n pairingListConfig: "pairingList.json",\n\n lavaChainId: "lava",\n\n logLevel: "debug",\n\n allowInsecureTransport: true,/g' examples/tendermintRPC_test.ts +sed -i "s|geolocation:.*|geolocation: \"$GEOLOCATION\",\n\n pairingListConfig: \"pairingList.json\",\n\n lavaChainId: \"lava\",\n\n logLevel: \"debug\",\n\n allowInsecureTransport: true,|g" examples/jsonRPC_test.ts +sed -i "s|geolocation:.*|geolocation: \"$GEOLOCATION\",\n\n pairingListConfig: \"pairingList.json\",\n\n lavaChainId: \"lava\",\n\n logLevel: \"debug\",\n\n allowInsecureTransport: true,|g" examples/restAPI_test.ts +sed -i "s|geolocation:.*|geolocation: \"$GEOLOCATION\",\n\n pairingListConfig: \"pairingList.json\",\n\n lavaChainId: \"lava\",\n\n logLevel: \"debug\",\n\n allowInsecureTransport: true,|g" examples/tendermintRPC_test.ts + +sed -i "s|privateKey:.*|privateKey:\n \"$privateKey\",|g" examples/jsonRPC_test.ts +sed -i "s|privateKey:.*|privateKey:\n \"$privateKey\",|g" examples/restAPI_test.ts +sed -i "s|privateKey:.*|privateKey:\n \"$privateKey\",|g" examples/tendermintRPC_test.ts -sed -i 's/privateKey: "",/privateKey:\n "'"$privateKey"'",/g' examples/jsonRPC_test.ts -sed -i 's/privateKey: "",/privateKey:\n "'"$privateKey"'",/g' examples/restAPI_test.ts -sed -i 's/privateKey: "",/privateKey:\n "'"$privateKey"'",/g' examples/tendermintRPC_test.ts +echo "Done." diff --git a/ecosystem/lava-sdk/scripts/setup_sdk_with_local_badge.sh b/ecosystem/lava-sdk/scripts/setup_sdk_with_local_badge.sh index 153366c7fc..74e34d447a 100755 --- a/ecosystem/lava-sdk/scripts/setup_sdk_with_local_badge.sh +++ b/ecosystem/lava-sdk/scripts/setup_sdk_with_local_badge.sh @@ -18,6 +18,8 @@ pairing=$(lavad q pairing providers LAV1) addresses=$(echo "$pairing" | grep 'iPPORT:' | awk '{print $2}' | sort -u) public_addresses=$(echo "$pairing" | grep 'address:' | awk '{print $3}') +GEOLOCATION=2 + # Associative array to store the JSON structure declare -A json_data index=0; @@ -38,22 +40,22 @@ for rpc_address in $addresses; do break fi echo "Adding Provider: $rpc_address, $public_address" - json_data["1"]+="{ + json_data["$GEOLOCATION"]+="{ \"rpcAddress\": \"$rpc_address\", \"publicAddress\": \"$public_address\" }" if ((index < addresses_length-1)); then - json_data["1"]+="," + json_data["$GEOLOCATION"]+="," fi done ((index++)) done # Construct the final JSON content -json_content='{ - "testnet": { - "1": [ -' +json_content="{ + \"testnet\": { + \"$GEOLOCATION\": [ +" for index in "${!json_data[@]}"; do json_content+=" ${json_data["$index"]}" @@ -71,21 +73,30 @@ echo "$json_content" > pairingList.json # Run the badge server signer=$(lavad keys show user1 -a) -echo "signer address: $signer" +echo "Signer address: $signer" PROJECT_ID="sampleProjectId" -GEOLOCATION="1" +BADGE_PORT=8080 +BADGE_URL=http://localhost:$BADGE_PORT cp examples/jsonRPC_badge.ts examples/jsonRPC_badge_test.ts +cp examples/restAPI_badge.ts examples/restAPI_badge_test.ts +cp examples/tendermintRPC_badge.ts examples/tendermintRPC_badge_test.ts -sed -i 's/geolocation: "2",/geolocation: "1",\n\n pairingListConfig: "pairingList.json",\n\n lavaChainId: "lava",/g' examples/jsonRPC_badge_test.ts +sed -i "s|geolocation:.*,|geolocation: \"$GEOLOCATION\",\n\n pairingListConfig: \"pairingList.json\",\n\n lavaChainId: \"lava\",\n\n logLevel: \"debug\",\n\n allowInsecureTransport: true|g" examples/jsonRPC_badge_test.ts +sed -i "s|geolocation:.*,|geolocation: \"$GEOLOCATION\",\n\n pairingListConfig: \"pairingList.json\",\n\n lavaChainId: \"lava\",\n\n logLevel: \"debug\",\n\n allowInsecureTransport: true|g" examples/restAPI_badge_test.ts +sed -i "s|geolocation:.*,|geolocation: \"$GEOLOCATION\",\n\n pairingListConfig: \"pairingList.json\",\n\n lavaChainId: \"lava\",\n\n logLevel: \"debug\",\n\n allowInsecureTransport: true|g" examples/tendermintRPC_badge_test.ts -sed -i 's|badgeServerAddress:.*|badgeServerAddress: "http://localhost:8080",|g' examples/jsonRPC_badge_test.ts -sed -i "s|projectId:.*|projectId: \"$PROJECT_ID\",|g" examples/jsonRPC_badge_test.ts +sed -i "s|badgeServerAddress:.*|badgeServerAddress: \"$BADGE_URL\",|g" examples/jsonRPC_badge_test.ts +sed -i "s|badgeServerAddress:.*|badgeServerAddress: \"$BADGE_URL\",|g" examples/restAPI_badge_test.ts +sed -i "s|badgeServerAddress:.*|badgeServerAddress: \"$BADGE_URL\",|g" examples/tendermintRPC_badge_test.ts +sed -i "s|projectId:.*|projectId: \"$PROJECT_ID\",|g" examples/jsonRPC_badge_test.ts +sed -i "s|projectId:.*|projectId: \"$PROJECT_ID\",|g" examples/restAPI_badge_test.ts +sed -i "s|projectId:.*|projectId: \"$PROJECT_ID\",|g" examples/tendermintRPC_badge_test.ts -BADGE_USER_DATA="{\"$GEOLOCATION\":{\"$PROJECT_ID\":{\"project_public_key\":\"$signer\",\"private_key\":\"$privateKey\",\"epochs_max_cu\":2233333333}}}" lavad badgegenerator --grpc-url=127.0.0.1:9090 --log_level=debug --chain-id lava +BADGE_DEFAULT_GEOLOCATION="$GEOLOCATION" BADGE_USER_DATA="{\"$GEOLOCATION\":{\"$PROJECT_ID\":{\"project_public_key\":\"$signer\",\"private_key\":\"$privateKey\",\"epochs_max_cu\":2233333333}}}" lavad badgegenerator --grpc-url=127.0.0.1:9090 --log_level=debug --chain-id lava --port $BADGE_PORT -badgeResponse=$(curl -s -X POST -H "Content-Type: application/json" -d "{\"badge_address\": \"user1\", \"project_id\": \"$PROJECT_ID\"}" http://localhost:8080/lavanet.lava.pairing.BadgeGenerator/GenerateBadge) +badgeResponse=$(curl -s -X POST -H "Content-Type: application/json" -d "{\"badge_address\": \"user1\", \"project_id\": \"$PROJECT_ID\"}" $BADGE_URL/lavanet.lava.pairing.BadgeGenerator/GenerateBadge) if [[ -z "$badgeResponse" ]]; then echo "Failed to generate the badge. Please check if the badge server is running and accessible." diff --git a/ecosystem/lava-sdk/src/chainlib/base_chain_parser.ts b/ecosystem/lava-sdk/src/chainlib/base_chain_parser.ts index b4ab57b659..d8336f77a0 100644 --- a/ecosystem/lava-sdk/src/chainlib/base_chain_parser.ts +++ b/ecosystem/lava-sdk/src/chainlib/base_chain_parser.ts @@ -30,6 +30,19 @@ export interface SendRelayOptions { apiInterface?: string; // Optional: Specify only if both tendermintrpc and jsonrpc are both supported, and you want to access tendermintrpc } +export interface SingleRelayOptions { + method: string; // Required: The RPC method to be called + params: Array | Record; // Required: An array of parameters to be passed to the RPC method + id?: number | string; // Optional: The ID of the relay. If not specified, it is set to a random number. + metadata?: Metadata[]; // Optional: Headers to be sent with the request. +} + +export interface SendRelaysBatchOptions { + relays: Array; // Required: The relays to send + chainId?: string; // Optional: The chain id to send the request to, if only one chain is initialized it will be chosen by default + apiInterface?: string; // Optional: Specify only if both tendermintrpc and jsonrpc are both supported, and you want to access tendermintrpc +} + /** * Options for sending Rest relay. */ @@ -70,7 +83,7 @@ export function CollectionKeyToString(key: CollectionKey): CollectionKeyString { return `'{"addon":"${key.addon}","internalPath":"${key.internalPath}","connectionType":"${key.connectionType}"}'`; } -interface ApiContainer { +export interface ApiContainer { api: Api; collectionKey: CollectionKey; apiKey: ApiKey; @@ -341,7 +354,7 @@ export abstract class BaseChainParser { } protected isRest( - options: SendRelayOptions | SendRestRelayOptions + options: SendRelayOptions | SendRelaysBatchOptions | SendRestRelayOptions ): options is SendRestRelayOptions { return "connectionType" in options; // how to check which options were given } @@ -440,7 +453,7 @@ export abstract class BaseChainParser { } abstract parseMsg( - options: SendRelayOptions | SendRestRelayOptions + options: SendRelayOptions | SendRelaysBatchOptions | SendRestRelayOptions ): BaseChainMessageContainer; public chainBlockStats(): ChainBlockStats { diff --git a/ecosystem/lava-sdk/src/chainlib/chainproxy/consts.ts b/ecosystem/lava-sdk/src/chainlib/chainproxy/consts.ts new file mode 100644 index 0000000000..5463a3586e --- /dev/null +++ b/ecosystem/lava-sdk/src/chainlib/chainproxy/consts.ts @@ -0,0 +1 @@ +export const JsonRPCVersion = "2.0"; diff --git a/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/json_rpc_message.test.ts b/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/json_rpc_message.test.ts index 8c78d57363..e793b4bd8e 100644 --- a/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/json_rpc_message.test.ts +++ b/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/json_rpc_message.test.ts @@ -1,5 +1,10 @@ import { encodeUtf8 } from "../../../util/common"; -import { JsonrpcMessage, parseJsonRPCMsg } from "./json_rpc_message"; +import { + JsonrpcBatchMessage, + JsonrpcMessage, + newBatchMessage, + parseJsonRPCMsg, +} from "./json_rpc_message"; describe("JsonrpcMessage", () => { it("should get Params", () => { @@ -88,3 +93,43 @@ describe("ParseJsonRPCBatch", () => { } }); }); + +describe("JsonRPCBatchMessageInit", () => { + it("should create valid batch message", () => { + const generateJsonRpcMsg = (params: any) => { + const jsonRpcMsg = new JsonrpcMessage(); + jsonRpcMsg.initJsonrpcMessage("2.0", "6", "test", params); + return jsonRpcMsg; + }; + + const generateJsonRpcBatchMsg = (jsonRpcMessage: JsonrpcMessage) => { + const jsonRpcBatchMsg = new JsonrpcBatchMessage(); + jsonRpcBatchMsg.batch = [jsonRpcMessage]; + return jsonRpcBatchMsg; + }; + + const validJsonRpcMsg = [ + generateJsonRpcMsg({ key: "value" }), + generateJsonRpcMsg([{ key: "value" }]), + generateJsonRpcMsg([]), + generateJsonRpcMsg(undefined), + generateJsonRpcMsg(null), + ]; + + const invalidJsonRpcMsgs = [ + generateJsonRpcMsg("params"), + generateJsonRpcMsg(66), + ]; + + for (const jsonRpcMsg of validJsonRpcMsg) { + const batch = newBatchMessage([jsonRpcMsg]); + expect(batch).toBeInstanceOf(JsonrpcBatchMessage); + expect(batch).toStrictEqual(generateJsonRpcBatchMsg(jsonRpcMsg)); + } + + for (const jsonRpcMsg of invalidJsonRpcMsgs) { + const batch = newBatchMessage([jsonRpcMsg]); + expect(batch).toBeInstanceOf(Error); + } + }); +}); diff --git a/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/json_rpc_message.ts b/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/json_rpc_message.ts index e8079f92b6..e9c7988c1e 100644 --- a/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/json_rpc_message.ts +++ b/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/json_rpc_message.ts @@ -54,9 +54,9 @@ export class JsonrpcMessage extends BaseMessage implements RPCInput { updateLatestBlockInMessage( // eslint-disable-next-line @typescript-eslint/no-unused-vars - latestBlock: number, + _latestBlock: number, // eslint-disable-next-line @typescript-eslint/no-unused-vars - modifyContent: boolean + _modifyContent: boolean ): boolean { return false; } @@ -124,3 +124,49 @@ function validateRawJsonrpcMessage( return new Error("Missing params field from json"); } } + +export class JsonrpcBatchMessage extends BaseMessage { + public batch: JsonrpcMessage[] = []; + + initJsonrpcBatchMessage(batch: JsonrpcMessage[]) { + this.batch = batch; + } + + updateLatestBlockInMessage( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + _latestBlock: number, + // eslint-disable-next-line @typescript-eslint/no-unused-vars + _modifyContent: boolean + ): boolean { + return false; + } + + getBatch() { + return this.batch; + } +} + +export function newBatchMessage( + msgs: JsonrpcMessage[] +): JsonrpcBatchMessage | Error { + const batch: JsonrpcMessage[] = []; + for (const msg of msgs) { + if ( + !(msg.params instanceof Object) && + !(msg.params instanceof Array) && + msg.params !== null && + msg.params !== undefined + ) { + return new Error( + `Message with id ${ + msg.id + } has params of wrong type: ${typeof msg.params}` + ); + } + batch.push(msg); + } + + const jsonrpcBatchMessage = new JsonrpcBatchMessage(); + jsonrpcBatchMessage.initJsonrpcBatchMessage(batch); + return jsonrpcBatchMessage; +} diff --git a/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/rest_message.ts b/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/rest_message.ts index 3e755a6ab8..4f17875638 100644 --- a/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/rest_message.ts +++ b/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/rest_message.ts @@ -1,3 +1,4 @@ +import { DUMMY_URL } from "../../../common/common"; import { Parser } from "../../../parser/parser"; import { RPCInput } from "../../../parser/rpcInput"; import { BaseMessage } from "../common"; @@ -16,13 +17,9 @@ export class RestMessage extends BaseMessage implements RPCInput { // GetParams will be deprecated after we remove old client // Currently needed because of parser.RPCInput interface getParams(): any { - let parsedMethod: string; - const idx = this.path.indexOf("?"); - if (idx === -1) { - parsedMethod = this.path; - } else { - parsedMethod = this.path.substring(0, idx); - } + const urlObj = new URL(this.path, DUMMY_URL); + const parsedMethod = urlObj.pathname; + const queryParams = urlObj.searchParams; const objectSpec = this.specPath.split("/"); const objectPath = parsedMethod.split("/"); @@ -37,21 +34,11 @@ export class RestMessage extends BaseMessage implements RPCInput { } } } - if (idx > -1) { - const queryParams = this.path.substring(idx); - if (queryParams != undefined && queryParams.length > 0) { - const queryParamsList = queryParams.split("&"); - for (const queryParamNameValue of queryParamsList) { - const queryParamNameValueSplitted = queryParamNameValue.split("="); - if (queryParamNameValueSplitted.length !== 2) { - continue; - } - const queryParamName = queryParamNameValueSplitted[0]; - const queryParamValue = queryParamNameValueSplitted[1]; - parameters.set(queryParamName, queryParamValue); - } - } - } + + queryParams.forEach((value, key) => { + parameters[key] = value; + }); + if (Object.keys(parameters).length === 0) { return null; } diff --git a/ecosystem/lava-sdk/src/chainlib/common.test.ts b/ecosystem/lava-sdk/src/chainlib/common.test.ts new file mode 100644 index 0000000000..66615b6838 --- /dev/null +++ b/ecosystem/lava-sdk/src/chainlib/common.test.ts @@ -0,0 +1,44 @@ +import { EARLIEST_BLOCK } from "../common/common"; +import { compareRequestedBlockInBatch } from "./common"; + +describe("compareRequestedBlockInBatch", () => { + it("should return the correct result when first is EARLIEST_BLOCK", () => { + const result = compareRequestedBlockInBatch(EARLIEST_BLOCK, 20); + expect(result).toEqual([20, EARLIEST_BLOCK]); + }); + + it("should return the correct result when second is EARLIEST_BLOCK", () => { + const result = compareRequestedBlockInBatch(20, EARLIEST_BLOCK); + expect(result).toEqual([20, EARLIEST_BLOCK]); + }); + + it("should return the correct result when both first and second are EARLIEST_BLOCK", () => { + const result = compareRequestedBlockInBatch(EARLIEST_BLOCK, EARLIEST_BLOCK); + expect(result).toEqual([EARLIEST_BLOCK, EARLIEST_BLOCK]); + }); + + it("should return the correct result when both first and second are positive numbers", () => { + const result = compareRequestedBlockInBatch(10, 20); + expect(result).toEqual([20, 10]); + }); + + it("should return the correct result when both first and second are EARLIEST_BLOCK", () => { + const result = compareRequestedBlockInBatch(EARLIEST_BLOCK, EARLIEST_BLOCK); + expect(result).toEqual([EARLIEST_BLOCK, EARLIEST_BLOCK]); + }); + + it("should return the correct result when both first and second are negative numbers", () => { + const result = compareRequestedBlockInBatch(-10, -20); + expect(result).toEqual([-10, -20]); + }); + + it("should return the correct result when first is a positive number and second is a negative number", () => { + const result = compareRequestedBlockInBatch(10, -20); + expect(result).toEqual([-20, 10]); + }); + + it("should return the correct result when first is a negative number and second is a positive number", () => { + const result = compareRequestedBlockInBatch(-10, 20); + expect(result).toEqual([-10, 20]); + }); +}); diff --git a/ecosystem/lava-sdk/src/chainlib/common.ts b/ecosystem/lava-sdk/src/chainlib/common.ts index 199cdec080..08fef31cf2 100644 --- a/ecosystem/lava-sdk/src/chainlib/common.ts +++ b/ecosystem/lava-sdk/src/chainlib/common.ts @@ -7,6 +7,7 @@ import { APIInterfaceTendermintRPC, } from "./base_chain_parser"; import { Logger } from "../logger/logger"; +import { EARLIEST_BLOCK } from "../common/common"; export function getChainParser(apiInterface: string) { switch (apiInterface) { @@ -23,3 +24,46 @@ export function getChainParser(apiInterface: string) { ); } } + +// split two requested blocks to the most advanced and most behind +// the hierarchy is as follows: +// NOT_APPLICABLE +// LATEST_BLOCK +// PENDING_BLOCK +// SAFE +// FINALIZED +// numeric value (descending) +// EARLIEST +// +// returns: [latest, earliest] +export function compareRequestedBlockInBatch( + firstRequestedBlock: number, + second: number +): [number, number] { + if (firstRequestedBlock === EARLIEST_BLOCK) { + return [second, firstRequestedBlock]; + } + if (second === EARLIEST_BLOCK) { + return [firstRequestedBlock, second]; + } + + const biggerFirst = (x: number, y: number): [number, number] => [ + Math.max(x, y), + Math.min(x, y), + ]; + + if (firstRequestedBlock < 0) { + if (second < 0) { + // both are negative + return biggerFirst(firstRequestedBlock, second); + } + // first is negative non earliest, second is positive + return [firstRequestedBlock, second]; + } + if (second < 0) { + // second is negative non earliest, first is positive + return [second, firstRequestedBlock]; + } + // both are positive + return biggerFirst(firstRequestedBlock, second); +} diff --git a/ecosystem/lava-sdk/src/chainlib/jsonrpc.test.ts b/ecosystem/lava-sdk/src/chainlib/jsonrpc.test.ts new file mode 100644 index 0000000000..9c424d7c5a --- /dev/null +++ b/ecosystem/lava-sdk/src/chainlib/jsonrpc.test.ts @@ -0,0 +1,143 @@ +import { + Api, + ApiCollection, + BlockParser, + CollectionData, + PARSER_FUNC, +} from "../grpc_web_services/lavanet/lava/spec/api_collection_pb"; +import { Spec } from "../grpc_web_services/lavanet/lava/spec/spec_pb"; +import { + SendRelayOptions, + SendRelaysBatchOptions, + SendRestRelayOptions, +} from "./base_chain_parser"; +import { BaseChainMessageContainer } from "./chain_message"; +import { JsonRPCVersion } from "./chainproxy/consts"; +import { + JsonrpcBatchMessage, + JsonrpcMessage, +} from "./chainproxy/rpcInterfaceMessages/json_rpc_message"; +import { JsonRpcChainParser } from "./jsonrpc"; + +describe("ParseJsonRPCMessage", () => { + let parser: JsonRpcChainParser; + let spec: Spec; + + beforeAll(() => { + spec = new Spec(); + const apiCollection = new ApiCollection(); + const collectionData = new CollectionData(); + const api1 = new Api(); + const api2 = new Api(); + const blockParser = new BlockParser(); + + blockParser.setParserFunc(PARSER_FUNC.DEFAULT); + blockParser.setParserArgList(["latest"]); + + api1.setName("method1"); + api1.setEnabled(true); + api1.setBlockParsing(blockParser); + + api2.setName("method2"); + api2.setEnabled(true); + api2.setBlockParsing(blockParser); + + collectionData.setType("POST"); + collectionData.setApiInterface("jsonrpc"); + + apiCollection.setApisList([api1, api2]); + apiCollection.setCollectionData(collectionData); + apiCollection.setEnabled(true); + + spec.setApiCollectionsList([apiCollection]); + spec.setEnabled(true); + }); + + beforeEach(() => { + parser = new JsonRpcChainParser(); + parser.init(spec); + }); + + it("parses a single relay message correctly", () => { + const id = 123; + const options: SendRelayOptions = { + method: "method1", + params: ["param1", "param2"], + id: id, + apiInterface: "jsonrpc", + }; + + const expectedJsonRpcMessage = new JsonrpcMessage(); + expectedJsonRpcMessage.initJsonrpcMessage( + JsonRPCVersion, + id.toString(), + options.method, + options.params + ); + expectedJsonRpcMessage.initBaseMessage({ + headers: [], + latestBlockHeaderSetter: undefined, + }); + + const result = parser.parseMsg(options); + expect(result).toBeInstanceOf(BaseChainMessageContainer); + const jsonRpcMessage = result.getRPCMessage(); + expect(jsonRpcMessage).toBeInstanceOf(JsonrpcMessage); + expect(jsonRpcMessage).toStrictEqual(expectedJsonRpcMessage); + }); + + it("parses a batch of relay messages correctly", () => { + const id = 123; + const options: SendRelaysBatchOptions = { + relays: [ + { method: "method1", params: ["param1"], id: id }, + { method: "method2", params: ["param2"] }, + ], + apiInterface: "jsonrpc", + }; + + const generateJsonpcMsg = (method: string, params: any, id?: number) => { + const jsonrpcMsg = new JsonrpcMessage(); + jsonrpcMsg.initJsonrpcMessage( + JsonRPCVersion, + id?.toString() ?? "", + method, + params + ); + jsonrpcMsg.initBaseMessage({ + headers: [], + latestBlockHeaderSetter: undefined, + }); + return jsonrpcMsg; + }; + + const expectedJsonRpcBatchMessage = new JsonrpcBatchMessage(); + expectedJsonRpcBatchMessage.initJsonrpcBatchMessage([ + generateJsonpcMsg(options.relays[0].method, options.relays[0].params, id), + generateJsonpcMsg(options.relays[1].method, options.relays[1].params), + ]); + + const result = parser.parseMsg(options); + expect(result).toBeInstanceOf(BaseChainMessageContainer); + + const jsonRpcBatchMessage = result.getRPCMessage(); + expect(jsonRpcBatchMessage).toBeInstanceOf(JsonrpcBatchMessage); + const secondMessageId = + (jsonRpcBatchMessage as JsonrpcBatchMessage).batch[1].id ?? "-1"; + + expect(Number.parseInt(secondMessageId)).toBeGreaterThan(0); + + // Generated Id + expectedJsonRpcBatchMessage.batch[1].id = secondMessageId; + expect(jsonRpcBatchMessage).toStrictEqual(expectedJsonRpcBatchMessage); + }); + + it("throws an error with SendRestRelayOptions", () => { + const options: SendRestRelayOptions = { + connectionType: "GET", + url: "http://example.com", + }; + + expect(() => parser.parseMsg(options)).toThrow(); + }); +}); diff --git a/ecosystem/lava-sdk/src/chainlib/jsonrpc.ts b/ecosystem/lava-sdk/src/chainlib/jsonrpc.ts index 9fed07cf5d..6aabaaaf81 100644 --- a/ecosystem/lava-sdk/src/chainlib/jsonrpc.ts +++ b/ecosystem/lava-sdk/src/chainlib/jsonrpc.ts @@ -1,26 +1,42 @@ import { BaseChainParser, SendRelayOptions, + SendRelaysBatchOptions, SendRestRelayOptions, APIInterfaceJsonRPC, HeadersPassSend, + ApiContainer, } from "../chainlib/base_chain_parser"; import { Logger } from "../logger/logger"; -import { generateRPCData } from "../util/common"; +import { generateBatchRPCData, generateRPCData } from "../util/common"; import { HttpMethod, NOT_APPLICABLE } from "../common/common"; -import { FUNCTION_TAG } from "../grpc_web_services/lavanet/lava/spec/api_collection_pb"; -import { JsonrpcMessage } from "./chainproxy/rpcInterfaceMessages/json_rpc_message"; +import { + JsonrpcMessage, + newBatchMessage, +} from "./chainproxy/rpcInterfaceMessages/json_rpc_message"; import { Parser } from "../parser/parser"; +import { JsonRPCVersion } from "./chainproxy/consts"; +import { + Api, + ApiCollection, + BlockParser, + FUNCTION_TAG, + PARSER_FUNC, + SpecCategory, +} from "../grpc_web_services/lavanet/lava/spec/api_collection_pb"; +import { CombineSpecCategories } from "../util/apiCollection"; +import { compareRequestedBlockInBatch } from "./common"; import { BaseChainMessageContainer } from "./chain_message"; -const jsonrpcVersion = "2.0"; +const SEP = "&"; export class JsonRpcChainParser extends BaseChainParser { constructor() { super(); this.apiInterface = APIInterfaceJsonRPC; } + parseMsg( - options: SendRelayOptions | SendRestRelayOptions + options: SendRelayOptions | SendRelaysBatchOptions | SendRestRelayOptions ): BaseChainMessageContainer { if (this.isRest(options)) { throw Logger.fatal( @@ -28,6 +44,119 @@ export class JsonRpcChainParser extends BaseChainParser { ); } + if ("relays" in options) { + // options is SendRelaysBatchOptions + return this.parseBatchMsg(options); + } + + const [apiCont, apiCollection, latestRequestedBlock, jsonrpcMessage] = + this.parseSingleMessage(options); + + // TODO: add extension parsing. + + return new BaseChainMessageContainer( + apiCont.api, + latestRequestedBlock, + jsonrpcMessage, + apiCollection, + generateRPCData(jsonrpcMessage) + ); + } + + private parseBatchMsg(options: SendRelaysBatchOptions) { + let api: Api | undefined; + let apiCollection: ApiCollection | undefined; + let latestRequestedBlock = 0; + let earliestRequestedBlock = 0; + const jsonrpcMsgs: JsonrpcMessage[] = []; + + for (let idx = 0; idx < options.relays.length; idx++) { + const relay = options.relays[idx]; + const sendRelayOptions = { + method: relay.method, + params: relay.params, + id: relay.id, + chainId: options.chainId, + metadata: relay.metadata, + apiInterface: options.apiInterface, + }; + + const [ + apiCont, + apiCollectionForMessage, + requestedBlockForMessage, + jsonrpcMessage, + ] = this.parseSingleMessage(sendRelayOptions); + + jsonrpcMsgs.push(jsonrpcMessage); + + if (idx === 0) { + // on the first entry store them + api = apiCont.api; + apiCollection = apiCollectionForMessage; + latestRequestedBlock = requestedBlockForMessage; + } else { + // on next entries we need to compare to existing data + if (api === undefined) { + throw Logger.fatal("Invalid parsing. First index were skipped"); + } + + let category = api.getCategory() ?? new SpecCategory(); + category = CombineSpecCategories( + category, + apiCont.api.getCategory() ?? new SpecCategory() + ); + + const apiObj = api.toObject(); + const apiContApi = apiCont.api.toObject(); + + api = new Api(); + api.setEnabled(apiObj.enabled && apiContApi.enabled); + api.setName(apiObj.name + SEP + apiContApi.name); + api.setComputeUnits(apiObj.computeUnits + apiContApi.computeUnits); + api.setExtraComputeUnits( + apiObj.extraComputeUnits + apiContApi.extraComputeUnits + ); + api.setCategory(category); + const blockParser = new BlockParser(); + blockParser.setParserArgList([]); + blockParser.setParserFunc(PARSER_FUNC.EMPTY); + blockParser.setDefaultValue(""); + blockParser.setEncoding(""); + api.setBlockParsing(blockParser); + + [latestRequestedBlock, earliestRequestedBlock] = + compareRequestedBlockInBatch( + latestRequestedBlock, + requestedBlockForMessage + ); + } + } + + if (!api || !apiCollection) { + throw Logger.fatal( + "Invalid parsing. Api and ApiCollection is not defined" + ); + } + + const batchMsg = newBatchMessage(jsonrpcMsgs); + if (batchMsg instanceof Error) { + throw Logger.fatal("Error creating batch message", batchMsg); + } + + // TODO: add extension parsing. + return new BaseChainMessageContainer( + api, + latestRequestedBlock, + batchMsg, + apiCollection, + generateBatchRPCData(batchMsg) + ); + } + + private parseSingleMessage( + options: SendRelayOptions + ): [ApiContainer, ApiCollection, number, JsonrpcMessage] { const apiCont = this.getSupportedApi(options.method, HttpMethod.POST); const apiCollection = this.getApiCollection({ addon: apiCont.collectionKey.addon, @@ -47,7 +176,7 @@ export class JsonRpcChainParser extends BaseChainParser { const jsonrpcMessage = new JsonrpcMessage(); jsonrpcMessage.initJsonrpcMessage( - jsonrpcVersion, + JsonRPCVersion, String(options.id ?? Math.floor(Math.random() * Number.MAX_SAFE_INTEGER)), options.method, options.params @@ -86,14 +215,6 @@ export class JsonRpcChainParser extends BaseChainParser { } } - // TODO: add extension parsing. - - return new BaseChainMessageContainer( - apiCont.api, - requestedBlock, - jsonrpcMessage, - apiCollection, - generateRPCData(jsonrpcMessage) - ); + return [apiCont, apiCollection, requestedBlock, jsonrpcMessage]; } } diff --git a/ecosystem/lava-sdk/src/chainlib/rest.ts b/ecosystem/lava-sdk/src/chainlib/rest.ts index 11bcc6ad2c..864bcd0013 100644 --- a/ecosystem/lava-sdk/src/chainlib/rest.ts +++ b/ecosystem/lava-sdk/src/chainlib/rest.ts @@ -6,7 +6,7 @@ import { HeadersPassSend, } from "../chainlib/base_chain_parser"; import { Logger } from "../logger/logger"; -import { HttpMethod, NOT_APPLICABLE } from "../common/common"; +import { DUMMY_URL, HttpMethod, NOT_APPLICABLE } from "../common/common"; import { Parser } from "../parser/parser"; import { FUNCTION_TAG } from "../grpc_web_services/lavanet/lava/spec/api_collection_pb"; import { RestMessage } from "./chainproxy/rpcInterfaceMessages/rest_message"; @@ -26,10 +26,13 @@ export class RestChainParser extends BaseChainParser { ); } + const parsedUrl = new URL(options.url, DUMMY_URL); + const [apiCont, found] = this.matchSpecApiByName( - options.url, + parsedUrl.pathname, options.connectionType ); + if (!found || !apiCont) { throw Logger.fatal("Rest api not supported", options.url); } diff --git a/ecosystem/lava-sdk/src/chainlib/tendermint.test.ts b/ecosystem/lava-sdk/src/chainlib/tendermint.test.ts new file mode 100644 index 0000000000..040c5c3496 --- /dev/null +++ b/ecosystem/lava-sdk/src/chainlib/tendermint.test.ts @@ -0,0 +1,153 @@ +import { + Api, + ApiCollection, + BlockParser, + CollectionData, + PARSER_FUNC, +} from "../grpc_web_services/lavanet/lava/spec/api_collection_pb"; +import { Spec } from "../grpc_web_services/lavanet/lava/spec/spec_pb"; +import { + SendRelayOptions, + SendRelaysBatchOptions, + SendRestRelayOptions, +} from "./base_chain_parser"; +import { BaseChainMessageContainer } from "./chain_message"; +import { JsonRPCVersion } from "./chainproxy/consts"; +import { JsonrpcBatchMessage } from "./chainproxy/rpcInterfaceMessages/json_rpc_message"; +import { TendermintrpcMessage } from "./chainproxy/rpcInterfaceMessages/tendermint_rpc_message"; +import { TendermintRpcChainParser } from "./tendermint"; + +describe("ParseTendermintRPCMessage", () => { + let parser: TendermintRpcChainParser; + let spec: Spec; + + beforeAll(() => { + spec = new Spec(); + const apiCollection = new ApiCollection(); + const collectionData = new CollectionData(); + const api1 = new Api(); + const api2 = new Api(); + const blockParser = new BlockParser(); + + blockParser.setParserFunc(PARSER_FUNC.DEFAULT); + blockParser.setParserArgList(["latest"]); + + api1.setName("method1"); + api1.setEnabled(true); + api1.setBlockParsing(blockParser); + + api2.setName("method2"); + api2.setEnabled(true); + api2.setBlockParsing(blockParser); + + collectionData.setApiInterface("tendermintrpc"); + + apiCollection.setApisList([api1, api2]); + apiCollection.setCollectionData(collectionData); + apiCollection.setEnabled(true); + + spec.setApiCollectionsList([apiCollection]); + spec.setEnabled(true); + }); + + beforeEach(() => { + parser = new TendermintRpcChainParser(); + parser.init(spec); + }); + + it("parses a single relay message correctly", () => { + const id = 123; + const options: SendRelayOptions = { + method: "method1", + params: ["param1", "param2"], + id: id, + apiInterface: "tendermintrpc", + }; + + const expectedTendermintRpcMessage = new TendermintrpcMessage(); + expectedTendermintRpcMessage.initJsonrpcMessage( + JsonRPCVersion, + id.toString(), + options.method, + options.params + ); + expectedTendermintRpcMessage.initBaseMessage({ + headers: [], + latestBlockHeaderSetter: undefined, + }); + + const result = parser.parseMsg(options); + expect(result).toBeInstanceOf(BaseChainMessageContainer); + const tendermintRpcMessage = result.getRPCMessage(); + expect(tendermintRpcMessage).toBeInstanceOf(TendermintrpcMessage); + expect(tendermintRpcMessage).toStrictEqual(expectedTendermintRpcMessage); + }); + + it("parses a batch of relay messages correctly", () => { + const id = 123; + const options: SendRelaysBatchOptions = { + relays: [ + { method: "method1", params: ["param1"], id: id }, + { method: "method2", params: ["param2"] }, + ], + apiInterface: "tendermintrpc", + }; + + const generateTendermintrpcMsg = ( + method: string, + params: any, + id?: number + ) => { + const tendermintrpcMsg = new TendermintrpcMessage(); + tendermintrpcMsg.initJsonrpcMessage( + JsonRPCVersion, + id?.toString() ?? "", + method, + params + ); + tendermintrpcMsg.initBaseMessage({ + headers: [], + latestBlockHeaderSetter: undefined, + }); + return tendermintrpcMsg; + }; + + const expectedTendermintRpcBatchMessage = new JsonrpcBatchMessage(); + expectedTendermintRpcBatchMessage.initJsonrpcBatchMessage([ + generateTendermintrpcMsg( + options.relays[0].method, + options.relays[0].params, + id + ), + generateTendermintrpcMsg( + options.relays[1].method, + options.relays[1].params + ), + ]); + + const result = parser.parseMsg(options); + expect(result).toBeInstanceOf(BaseChainMessageContainer); + + const jsonRpcBatchMessage = result.getRPCMessage(); + expect(jsonRpcBatchMessage).toBeInstanceOf(JsonrpcBatchMessage); + const secondMessageId = + (jsonRpcBatchMessage as JsonrpcBatchMessage).batch[1].id ?? "-1"; + + expect(Number.parseInt(secondMessageId)).toBeGreaterThan(0); + + // Generated Id + expectedTendermintRpcBatchMessage.batch[1].id = secondMessageId; + expect(jsonRpcBatchMessage).toStrictEqual( + expectedTendermintRpcBatchMessage + ); + }); + + it("throws an error with SendRestRelayOptions", () => { + const options: SendRestRelayOptions = { + connectionType: "GET", + url: "http://example.com", + }; + + expect(() => parser.parseMsg(options)).toThrow(); + }); +}); diff --git a/ecosystem/lava-sdk/src/chainlib/tendermint.ts b/ecosystem/lava-sdk/src/chainlib/tendermint.ts index 8db130cec1..9e012f2548 100644 --- a/ecosystem/lava-sdk/src/chainlib/tendermint.ts +++ b/ecosystem/lava-sdk/src/chainlib/tendermint.ts @@ -4,24 +4,37 @@ import { SendRestRelayOptions, APIInterfaceTendermintRPC, HeadersPassSend, + SendRelaysBatchOptions, + ApiContainer, } from "../chainlib/base_chain_parser"; import { Logger } from "../logger/logger"; -import { generateRPCData } from "../util/common"; -import { FUNCTION_TAG } from "../grpc_web_services/lavanet/lava/spec/api_collection_pb"; +import { generateBatchRPCData, generateRPCData } from "../util/common"; +import { + Api, + ApiCollection, + BlockParser, + FUNCTION_TAG, + PARSER_FUNC, + SpecCategory, +} from "../grpc_web_services/lavanet/lava/spec/api_collection_pb"; import { TendermintrpcMessage } from "./chainproxy/rpcInterfaceMessages/tendermint_rpc_message"; import { Parser } from "../parser/parser"; import { BaseChainMessageContainer } from "./chain_message"; import { NOT_APPLICABLE } from "../common/common"; +import { CombineSpecCategories } from "../util/apiCollection"; +import { compareRequestedBlockInBatch } from "./common"; +import { newBatchMessage } from "./chainproxy/rpcInterfaceMessages/json_rpc_message"; +import { JsonRPCVersion } from "./chainproxy/consts"; const Method = ""; // in tendermint all types are empty (in spec) -const jsonrpcVersion = "2.0"; +const SEP = "&"; export class TendermintRpcChainParser extends BaseChainParser { constructor() { super(); this.apiInterface = APIInterfaceTendermintRPC; } parseMsg( - options: SendRelayOptions | SendRestRelayOptions + options: SendRelayOptions | SendRelaysBatchOptions | SendRestRelayOptions ): BaseChainMessageContainer { if (this.isRest(options)) { throw Logger.fatal( @@ -29,6 +42,116 @@ export class TendermintRpcChainParser extends BaseChainParser { ); } + if ("relays" in options) { + // options is SendRelaysBatchOptions + return this.parseBatchMsg(options); + } + + const [apiCont, apiCollection, latestRequestedBlock, tendermintrpcMessage] = + this.parseSingleMessage(options); + + // TODO: add extension parsing. + return new BaseChainMessageContainer( + apiCont.api, + latestRequestedBlock, + tendermintrpcMessage, + apiCollection, + generateRPCData(tendermintrpcMessage) + ); + } + + private parseBatchMsg(options: SendRelaysBatchOptions) { + let api: Api | undefined; + let apiCollection: ApiCollection | undefined; + let latestRequestedBlock = 0; + let earliestRequestedBlock = 0; + const tendermintrpcMsgs: TendermintrpcMessage[] = []; + + for (let idx = 0; idx < options.relays.length; idx++) { + const relay = options.relays[idx]; + const sendRelayOptions = { + method: relay.method, + params: relay.params, + id: relay.id, + chainId: options.chainId, + metadata: relay.metadata, + apiInterface: options.apiInterface, + }; + + const [ + apiCont, + apiCollectionForMessage, + requestedBlockForMessage, + tendermintrpcMessage, + ] = this.parseSingleMessage(sendRelayOptions); + tendermintrpcMsgs.push(tendermintrpcMessage); + if (idx === 0) { + // on the first entry store them + api = apiCont.api; + apiCollection = apiCollectionForMessage; + latestRequestedBlock = requestedBlockForMessage; + } else { + // on next entries we need to compare to existing data + if (api === undefined) { + throw Logger.fatal("Invalid parsing. First index were skipped"); + } + + let category = api.getCategory() ?? new SpecCategory(); + category = CombineSpecCategories( + category, + apiCont.api.getCategory() ?? new SpecCategory() + ); + + const apiObj = api.toObject(); + const apiContApi = apiCont.api.toObject(); + + api = new Api(); + api.setEnabled(apiObj.enabled && apiContApi.enabled); + api.setName(apiObj.name + SEP + apiContApi.name); + api.setComputeUnits(apiObj.computeUnits + apiContApi.computeUnits); + api.setExtraComputeUnits( + apiObj.extraComputeUnits + apiContApi.extraComputeUnits + ); + api.setCategory(category); + const blockParser = new BlockParser(); + blockParser.setParserArgList([]); + blockParser.setParserFunc(PARSER_FUNC.EMPTY); + blockParser.setDefaultValue(""); + blockParser.setEncoding(""); + api.setBlockParsing(blockParser); + + [latestRequestedBlock, earliestRequestedBlock] = + compareRequestedBlockInBatch( + latestRequestedBlock, + requestedBlockForMessage + ); + } + } + + if (!api || !apiCollection) { + throw Logger.fatal( + "Invalid parsing. Api and ApiCollection is not defined" + ); + } + + const batchMsg = newBatchMessage(tendermintrpcMsgs); + if (batchMsg instanceof Error) { + throw Logger.fatal("Error creating batch message", batchMsg); + } + + // TODO: add extension parsing. + return new BaseChainMessageContainer( + api, + latestRequestedBlock, + batchMsg, + apiCollection, + generateBatchRPCData(batchMsg) + ); + } + + parseSingleMessage( + options: SendRelayOptions + ): [ApiContainer, ApiCollection, number, TendermintrpcMessage] { const apiCont = this.getSupportedApi(options.method, Method); const apiCollection = this.getApiCollection({ addon: apiCont.collectionKey.addon, @@ -48,7 +171,7 @@ export class TendermintRpcChainParser extends BaseChainParser { const tendermintrpcMessage = new TendermintrpcMessage(); tendermintrpcMessage.initJsonrpcMessage( - jsonrpcVersion, + JsonRPCVersion, String(options.id ?? Math.floor(Math.random() * Number.MAX_SAFE_INTEGER)), options.method, options.params @@ -90,14 +213,6 @@ export class TendermintRpcChainParser extends BaseChainParser { } } - // TODO: add extension parsing. - - return new BaseChainMessageContainer( - apiCont.api, - requestedBlock, - tendermintrpcMessage, - apiCollection, - generateRPCData(tendermintrpcMessage) - ); + return [apiCont, apiCollection, requestedBlock, tendermintrpcMessage]; } } diff --git a/ecosystem/lava-sdk/src/common/common.ts b/ecosystem/lava-sdk/src/common/common.ts index f25ae159d5..012acd4d18 100644 --- a/ecosystem/lava-sdk/src/common/common.ts +++ b/ecosystem/lava-sdk/src/common/common.ts @@ -31,3 +31,5 @@ export enum HttpMethod { OPTIONS = "OPTIONS", TRACE = "TRACE", } + +export const DUMMY_URL = "http://dummy.com"; diff --git a/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb.d.ts deleted file mode 100644 index a82b8bc9fc..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -// package: amino -// file: amino/amino.proto - -import * as jspb from "google-protobuf"; -import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; - - export const name: jspb.ExtensionFieldInfo; - - export const messageEncoding: jspb.ExtensionFieldInfo; - - export const encoding: jspb.ExtensionFieldInfo; - - export const fieldName: jspb.ExtensionFieldInfo; - - export const dontOmitempty: jspb.ExtensionFieldInfo; - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb.js deleted file mode 100644 index 467238b035..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb.js +++ /dev/null @@ -1,147 +0,0 @@ -// source: amino/amino.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); -goog.object.extend(proto, google_protobuf_descriptor_pb); -goog.exportSymbol('proto.amino.dontOmitempty', null, global); -goog.exportSymbol('proto.amino.encoding', null, global); -goog.exportSymbol('proto.amino.fieldName', null, global); -goog.exportSymbol('proto.amino.messageEncoding', null, global); -goog.exportSymbol('proto.amino.name', null, global); - -/** - * A tuple of {field number, class constructor} for the extension - * field named `name`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.amino.name = new jspb.ExtensionFieldInfo( - 11110001, - {name: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[11110001] = new jspb.ExtensionFieldBinaryInfo( - proto.amino.name, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[11110001] = proto.amino.name; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `messageEncoding`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.amino.messageEncoding = new jspb.ExtensionFieldInfo( - 11110002, - {messageEncoding: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[11110002] = new jspb.ExtensionFieldBinaryInfo( - proto.amino.messageEncoding, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[11110002] = proto.amino.messageEncoding; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `encoding`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.amino.encoding = new jspb.ExtensionFieldInfo( - 11110003, - {encoding: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[11110003] = new jspb.ExtensionFieldBinaryInfo( - proto.amino.encoding, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[11110003] = proto.amino.encoding; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `fieldName`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.amino.fieldName = new jspb.ExtensionFieldInfo( - 11110004, - {fieldName: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[11110004] = new jspb.ExtensionFieldBinaryInfo( - proto.amino.fieldName, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[11110004] = proto.amino.fieldName; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `dontOmitempty`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.amino.dontOmitempty = new jspb.ExtensionFieldInfo( - 11110005, - {dontOmitempty: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[11110005] = new jspb.ExtensionFieldBinaryInfo( - proto.amino.dontOmitempty, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[11110005] = proto.amino.dontOmitempty; - -goog.object.extend(exports, proto.amino); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb_service.d.ts deleted file mode 100644 index bcb4ebb33e..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: amino -// file: amino/amino.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb_service.js deleted file mode 100644 index bcb4ebb33e..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: amino -// file: amino/amino.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb.d.ts deleted file mode 100644 index 76d5f4f598..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -// package: cosmos.base.query.v1beta1 -// file: cosmos/base/query/v1beta1/pagination.proto - -import * as jspb from "google-protobuf"; - -export class PageRequest extends jspb.Message { - getKey(): Uint8Array | string; - getKey_asU8(): Uint8Array; - getKey_asB64(): string; - setKey(value: Uint8Array | string): void; - - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getCountTotal(): boolean; - setCountTotal(value: boolean): void; - - getReverse(): boolean; - setReverse(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PageRequest.AsObject; - static toObject(includeInstance: boolean, msg: PageRequest): PageRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PageRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PageRequest; - static deserializeBinaryFromReader(message: PageRequest, reader: jspb.BinaryReader): PageRequest; -} - -export namespace PageRequest { - export type AsObject = { - key: Uint8Array | string, - offset: number, - limit: number, - countTotal: boolean, - reverse: boolean, - } -} - -export class PageResponse extends jspb.Message { - getNextKey(): Uint8Array | string; - getNextKey_asU8(): Uint8Array; - getNextKey_asB64(): string; - setNextKey(value: Uint8Array | string): void; - - getTotal(): number; - setTotal(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PageResponse.AsObject; - static toObject(includeInstance: boolean, msg: PageResponse): PageResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PageResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PageResponse; - static deserializeBinaryFromReader(message: PageResponse, reader: jspb.BinaryReader): PageResponse; -} - -export namespace PageResponse { - export type AsObject = { - nextKey: Uint8Array | string, - total: number, - } -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb.js deleted file mode 100644 index 4093aa0c52..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb.js +++ /dev/null @@ -1,517 +0,0 @@ -// source: cosmos/base/query/v1beta1/pagination.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.cosmos.base.query.v1beta1.PageRequest', null, global); -goog.exportSymbol('proto.cosmos.base.query.v1beta1.PageResponse', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.cosmos.base.query.v1beta1.PageRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.cosmos.base.query.v1beta1.PageRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.cosmos.base.query.v1beta1.PageRequest.displayName = 'proto.cosmos.base.query.v1beta1.PageRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.cosmos.base.query.v1beta1.PageResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.cosmos.base.query.v1beta1.PageResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.cosmos.base.query.v1beta1.PageResponse.displayName = 'proto.cosmos.base.query.v1beta1.PageResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.cosmos.base.query.v1beta1.PageRequest.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.query.v1beta1.PageRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.cosmos.base.query.v1beta1.PageRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.cosmos.base.query.v1beta1.PageRequest.toObject = function(includeInstance, msg) { - var f, obj = { - key: msg.getKey_asB64(), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - limit: jspb.Message.getFieldWithDefault(msg, 3, 0), - countTotal: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - reverse: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.query.v1beta1.PageRequest} - */ -proto.cosmos.base.query.v1beta1.PageRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.query.v1beta1.PageRequest; - return proto.cosmos.base.query.v1beta1.PageRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.cosmos.base.query.v1beta1.PageRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.query.v1beta1.PageRequest} - */ -proto.cosmos.base.query.v1beta1.PageRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setKey(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCountTotal(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setReverse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.cosmos.base.query.v1beta1.PageRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.cosmos.base.query.v1beta1.PageRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.query.v1beta1.PageRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.cosmos.base.query.v1beta1.PageRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getCountTotal(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getReverse(); - if (f) { - writer.writeBool( - 5, - f - ); - } -}; - - -/** - * optional bytes key = 1; - * @return {!(string|Uint8Array)} - */ -proto.cosmos.base.query.v1beta1.PageRequest.prototype.getKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes key = 1; - * This is a type-conversion wrapper around `getKey()` - * @return {string} - */ -proto.cosmos.base.query.v1beta1.PageRequest.prototype.getKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getKey())); -}; - - -/** - * optional bytes key = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getKey()` - * @return {!Uint8Array} - */ -proto.cosmos.base.query.v1beta1.PageRequest.prototype.getKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.cosmos.base.query.v1beta1.PageRequest} returns this - */ -proto.cosmos.base.query.v1beta1.PageRequest.prototype.setKey = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional uint64 offset = 2; - * @return {number} - */ -proto.cosmos.base.query.v1beta1.PageRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.cosmos.base.query.v1beta1.PageRequest} returns this - */ -proto.cosmos.base.query.v1beta1.PageRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 limit = 3; - * @return {number} - */ -proto.cosmos.base.query.v1beta1.PageRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.cosmos.base.query.v1beta1.PageRequest} returns this - */ -proto.cosmos.base.query.v1beta1.PageRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bool count_total = 4; - * @return {boolean} - */ -proto.cosmos.base.query.v1beta1.PageRequest.prototype.getCountTotal = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.cosmos.base.query.v1beta1.PageRequest} returns this - */ -proto.cosmos.base.query.v1beta1.PageRequest.prototype.setCountTotal = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional bool reverse = 5; - * @return {boolean} - */ -proto.cosmos.base.query.v1beta1.PageRequest.prototype.getReverse = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.cosmos.base.query.v1beta1.PageRequest} returns this - */ -proto.cosmos.base.query.v1beta1.PageRequest.prototype.setReverse = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.cosmos.base.query.v1beta1.PageResponse.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.query.v1beta1.PageResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.cosmos.base.query.v1beta1.PageResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.cosmos.base.query.v1beta1.PageResponse.toObject = function(includeInstance, msg) { - var f, obj = { - nextKey: msg.getNextKey_asB64(), - total: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.query.v1beta1.PageResponse} - */ -proto.cosmos.base.query.v1beta1.PageResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.query.v1beta1.PageResponse; - return proto.cosmos.base.query.v1beta1.PageResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.cosmos.base.query.v1beta1.PageResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.query.v1beta1.PageResponse} - */ -proto.cosmos.base.query.v1beta1.PageResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setNextKey(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotal(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.cosmos.base.query.v1beta1.PageResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.cosmos.base.query.v1beta1.PageResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.query.v1beta1.PageResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.cosmos.base.query.v1beta1.PageResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNextKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getTotal(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } -}; - - -/** - * optional bytes next_key = 1; - * @return {!(string|Uint8Array)} - */ -proto.cosmos.base.query.v1beta1.PageResponse.prototype.getNextKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes next_key = 1; - * This is a type-conversion wrapper around `getNextKey()` - * @return {string} - */ -proto.cosmos.base.query.v1beta1.PageResponse.prototype.getNextKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getNextKey())); -}; - - -/** - * optional bytes next_key = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getNextKey()` - * @return {!Uint8Array} - */ -proto.cosmos.base.query.v1beta1.PageResponse.prototype.getNextKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getNextKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.cosmos.base.query.v1beta1.PageResponse} returns this - */ -proto.cosmos.base.query.v1beta1.PageResponse.prototype.setNextKey = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional uint64 total = 2; - * @return {number} - */ -proto.cosmos.base.query.v1beta1.PageResponse.prototype.getTotal = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.cosmos.base.query.v1beta1.PageResponse} returns this - */ -proto.cosmos.base.query.v1beta1.PageResponse.prototype.setTotal = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -goog.object.extend(exports, proto.cosmos.base.query.v1beta1); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb_service.d.ts deleted file mode 100644 index 598ed35f7c..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: cosmos.base.query.v1beta1 -// file: cosmos/base/query/v1beta1/pagination.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb_service.js deleted file mode 100644 index 598ed35f7c..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: cosmos.base.query.v1beta1 -// file: cosmos/base/query/v1beta1/pagination.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb.d.ts deleted file mode 100644 index a8e6a167c2..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -// package: cosmos.base.v1beta1 -// file: cosmos/base/v1beta1/coin.proto - -import * as jspb from "google-protobuf"; -import * as gogoproto_gogo_pb from "../../../gogoproto/gogo_pb"; -import * as cosmos_proto_cosmos_pb from "../../../cosmos_proto/cosmos_pb"; -import * as amino_amino_pb from "../../../amino/amino_pb"; - -export class Coin extends jspb.Message { - getDenom(): string; - setDenom(value: string): void; - - getAmount(): string; - setAmount(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Coin.AsObject; - static toObject(includeInstance: boolean, msg: Coin): Coin.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Coin, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Coin; - static deserializeBinaryFromReader(message: Coin, reader: jspb.BinaryReader): Coin; -} - -export namespace Coin { - export type AsObject = { - denom: string, - amount: string, - } -} - -export class DecCoin extends jspb.Message { - getDenom(): string; - setDenom(value: string): void; - - getAmount(): string; - setAmount(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DecCoin.AsObject; - static toObject(includeInstance: boolean, msg: DecCoin): DecCoin.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DecCoin, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DecCoin; - static deserializeBinaryFromReader(message: DecCoin, reader: jspb.BinaryReader): DecCoin; -} - -export namespace DecCoin { - export type AsObject = { - denom: string, - amount: string, - } -} - -export class IntProto extends jspb.Message { - getInt(): string; - setInt(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): IntProto.AsObject; - static toObject(includeInstance: boolean, msg: IntProto): IntProto.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: IntProto, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): IntProto; - static deserializeBinaryFromReader(message: IntProto, reader: jspb.BinaryReader): IntProto; -} - -export namespace IntProto { - export type AsObject = { - pb_int: string, - } -} - -export class DecProto extends jspb.Message { - getDec(): string; - setDec(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DecProto.AsObject; - static toObject(includeInstance: boolean, msg: DecProto): DecProto.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DecProto, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DecProto; - static deserializeBinaryFromReader(message: DecProto, reader: jspb.BinaryReader): DecProto; -} - -export namespace DecProto { - export type AsObject = { - dec: string, - } -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb.js deleted file mode 100644 index 0f246bd1ab..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb.js +++ /dev/null @@ -1,689 +0,0 @@ -// source: cosmos/base/v1beta1/coin.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -var cosmos_proto_cosmos_pb = require('../../../cosmos_proto/cosmos_pb.js'); -goog.object.extend(proto, cosmos_proto_cosmos_pb); -var amino_amino_pb = require('../../../amino/amino_pb.js'); -goog.object.extend(proto, amino_amino_pb); -goog.exportSymbol('proto.cosmos.base.v1beta1.Coin', null, global); -goog.exportSymbol('proto.cosmos.base.v1beta1.DecCoin', null, global); -goog.exportSymbol('proto.cosmos.base.v1beta1.DecProto', null, global); -goog.exportSymbol('proto.cosmos.base.v1beta1.IntProto', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.cosmos.base.v1beta1.Coin = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.cosmos.base.v1beta1.Coin, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.cosmos.base.v1beta1.Coin.displayName = 'proto.cosmos.base.v1beta1.Coin'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.cosmos.base.v1beta1.DecCoin = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.cosmos.base.v1beta1.DecCoin, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.cosmos.base.v1beta1.DecCoin.displayName = 'proto.cosmos.base.v1beta1.DecCoin'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.cosmos.base.v1beta1.IntProto = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.cosmos.base.v1beta1.IntProto, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.cosmos.base.v1beta1.IntProto.displayName = 'proto.cosmos.base.v1beta1.IntProto'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.cosmos.base.v1beta1.DecProto = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.cosmos.base.v1beta1.DecProto, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.cosmos.base.v1beta1.DecProto.displayName = 'proto.cosmos.base.v1beta1.DecProto'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.cosmos.base.v1beta1.Coin.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.v1beta1.Coin.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.cosmos.base.v1beta1.Coin} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.cosmos.base.v1beta1.Coin.toObject = function(includeInstance, msg) { - var f, obj = { - denom: jspb.Message.getFieldWithDefault(msg, 1, ""), - amount: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.v1beta1.Coin} - */ -proto.cosmos.base.v1beta1.Coin.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.v1beta1.Coin; - return proto.cosmos.base.v1beta1.Coin.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.cosmos.base.v1beta1.Coin} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.v1beta1.Coin} - */ -proto.cosmos.base.v1beta1.Coin.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDenom(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAmount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.cosmos.base.v1beta1.Coin.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.cosmos.base.v1beta1.Coin.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.v1beta1.Coin} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.cosmos.base.v1beta1.Coin.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDenom(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAmount(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string denom = 1; - * @return {string} - */ -proto.cosmos.base.v1beta1.Coin.prototype.getDenom = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.cosmos.base.v1beta1.Coin} returns this - */ -proto.cosmos.base.v1beta1.Coin.prototype.setDenom = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string amount = 2; - * @return {string} - */ -proto.cosmos.base.v1beta1.Coin.prototype.getAmount = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.cosmos.base.v1beta1.Coin} returns this - */ -proto.cosmos.base.v1beta1.Coin.prototype.setAmount = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.cosmos.base.v1beta1.DecCoin.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.v1beta1.DecCoin.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.cosmos.base.v1beta1.DecCoin} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.cosmos.base.v1beta1.DecCoin.toObject = function(includeInstance, msg) { - var f, obj = { - denom: jspb.Message.getFieldWithDefault(msg, 1, ""), - amount: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.v1beta1.DecCoin} - */ -proto.cosmos.base.v1beta1.DecCoin.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.v1beta1.DecCoin; - return proto.cosmos.base.v1beta1.DecCoin.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.cosmos.base.v1beta1.DecCoin} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.v1beta1.DecCoin} - */ -proto.cosmos.base.v1beta1.DecCoin.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDenom(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAmount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.cosmos.base.v1beta1.DecCoin.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.cosmos.base.v1beta1.DecCoin.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.v1beta1.DecCoin} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.cosmos.base.v1beta1.DecCoin.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDenom(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAmount(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string denom = 1; - * @return {string} - */ -proto.cosmos.base.v1beta1.DecCoin.prototype.getDenom = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.cosmos.base.v1beta1.DecCoin} returns this - */ -proto.cosmos.base.v1beta1.DecCoin.prototype.setDenom = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string amount = 2; - * @return {string} - */ -proto.cosmos.base.v1beta1.DecCoin.prototype.getAmount = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.cosmos.base.v1beta1.DecCoin} returns this - */ -proto.cosmos.base.v1beta1.DecCoin.prototype.setAmount = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.cosmos.base.v1beta1.IntProto.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.v1beta1.IntProto.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.cosmos.base.v1beta1.IntProto} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.cosmos.base.v1beta1.IntProto.toObject = function(includeInstance, msg) { - var f, obj = { - pb_int: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.v1beta1.IntProto} - */ -proto.cosmos.base.v1beta1.IntProto.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.v1beta1.IntProto; - return proto.cosmos.base.v1beta1.IntProto.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.cosmos.base.v1beta1.IntProto} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.v1beta1.IntProto} - */ -proto.cosmos.base.v1beta1.IntProto.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setInt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.cosmos.base.v1beta1.IntProto.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.cosmos.base.v1beta1.IntProto.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.v1beta1.IntProto} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.cosmos.base.v1beta1.IntProto.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getInt(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string int = 1; - * @return {string} - */ -proto.cosmos.base.v1beta1.IntProto.prototype.getInt = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.cosmos.base.v1beta1.IntProto} returns this - */ -proto.cosmos.base.v1beta1.IntProto.prototype.setInt = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.cosmos.base.v1beta1.DecProto.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos.base.v1beta1.DecProto.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.cosmos.base.v1beta1.DecProto} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.cosmos.base.v1beta1.DecProto.toObject = function(includeInstance, msg) { - var f, obj = { - dec: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos.base.v1beta1.DecProto} - */ -proto.cosmos.base.v1beta1.DecProto.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos.base.v1beta1.DecProto; - return proto.cosmos.base.v1beta1.DecProto.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.cosmos.base.v1beta1.DecProto} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos.base.v1beta1.DecProto} - */ -proto.cosmos.base.v1beta1.DecProto.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDec(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.cosmos.base.v1beta1.DecProto.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.cosmos.base.v1beta1.DecProto.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.cosmos.base.v1beta1.DecProto} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.cosmos.base.v1beta1.DecProto.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDec(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dec = 1; - * @return {string} - */ -proto.cosmos.base.v1beta1.DecProto.prototype.getDec = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.cosmos.base.v1beta1.DecProto} returns this - */ -proto.cosmos.base.v1beta1.DecProto.prototype.setDec = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -goog.object.extend(exports, proto.cosmos.base.v1beta1); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb_service.d.ts deleted file mode 100644 index 048461917a..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: cosmos.base.v1beta1 -// file: cosmos/base/v1beta1/coin.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb_service.js deleted file mode 100644 index 048461917a..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: cosmos.base.v1beta1 -// file: cosmos/base/v1beta1/coin.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb.d.ts deleted file mode 100644 index 0ec909d179..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb.d.ts +++ /dev/null @@ -1,82 +0,0 @@ -// package: cosmos_proto -// file: cosmos_proto/cosmos.proto - -import * as jspb from "google-protobuf"; -import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; - -export class InterfaceDescriptor extends jspb.Message { - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InterfaceDescriptor.AsObject; - static toObject(includeInstance: boolean, msg: InterfaceDescriptor): InterfaceDescriptor.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InterfaceDescriptor, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InterfaceDescriptor; - static deserializeBinaryFromReader(message: InterfaceDescriptor, reader: jspb.BinaryReader): InterfaceDescriptor; -} - -export namespace InterfaceDescriptor { - export type AsObject = { - name: string, - description: string, - } -} - -export class ScalarDescriptor extends jspb.Message { - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - clearFieldTypeList(): void; - getFieldTypeList(): Array; - setFieldTypeList(value: Array): void; - addFieldType(value: ScalarTypeMap[keyof ScalarTypeMap], index?: number): ScalarTypeMap[keyof ScalarTypeMap]; - - getLegacyAminoEncoding(): string; - setLegacyAminoEncoding(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ScalarDescriptor.AsObject; - static toObject(includeInstance: boolean, msg: ScalarDescriptor): ScalarDescriptor.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ScalarDescriptor, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ScalarDescriptor; - static deserializeBinaryFromReader(message: ScalarDescriptor, reader: jspb.BinaryReader): ScalarDescriptor; -} - -export namespace ScalarDescriptor { - export type AsObject = { - name: string, - description: string, - fieldTypeList: Array, - legacyAminoEncoding: string, - } -} - - export const implementsInterface: jspb.ExtensionFieldInfo; - - export const acceptsInterface: jspb.ExtensionFieldInfo; - - export const scalar: jspb.ExtensionFieldInfo; - - export const declareInterface: jspb.ExtensionFieldInfo; - - export const declareScalar: jspb.ExtensionFieldInfo; - -export interface ScalarTypeMap { - SCALAR_TYPE_UNSPECIFIED: 0; - SCALAR_TYPE_STRING: 1; - SCALAR_TYPE_BYTES: 2; -} - -export const ScalarType: ScalarTypeMap; - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb.js deleted file mode 100644 index 5ff235138a..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb.js +++ /dev/null @@ -1,607 +0,0 @@ -// source: cosmos_proto/cosmos.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); -goog.object.extend(proto, google_protobuf_descriptor_pb); -goog.exportSymbol('proto.cosmos_proto.InterfaceDescriptor', null, global); -goog.exportSymbol('proto.cosmos_proto.ScalarDescriptor', null, global); -goog.exportSymbol('proto.cosmos_proto.ScalarType', null, global); -goog.exportSymbol('proto.cosmos_proto.acceptsInterface', null, global); -goog.exportSymbol('proto.cosmos_proto.declareInterfaceList', null, global); -goog.exportSymbol('proto.cosmos_proto.declareScalarList', null, global); -goog.exportSymbol('proto.cosmos_proto.implementsInterfaceList', null, global); -goog.exportSymbol('proto.cosmos_proto.scalar', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.cosmos_proto.InterfaceDescriptor = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.cosmos_proto.InterfaceDescriptor, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.cosmos_proto.InterfaceDescriptor.displayName = 'proto.cosmos_proto.InterfaceDescriptor'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.cosmos_proto.ScalarDescriptor = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos_proto.ScalarDescriptor.repeatedFields_, null); -}; -goog.inherits(proto.cosmos_proto.ScalarDescriptor, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.cosmos_proto.ScalarDescriptor.displayName = 'proto.cosmos_proto.ScalarDescriptor'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.cosmos_proto.InterfaceDescriptor.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos_proto.InterfaceDescriptor.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.cosmos_proto.InterfaceDescriptor} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.cosmos_proto.InterfaceDescriptor.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos_proto.InterfaceDescriptor} - */ -proto.cosmos_proto.InterfaceDescriptor.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos_proto.InterfaceDescriptor; - return proto.cosmos_proto.InterfaceDescriptor.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.cosmos_proto.InterfaceDescriptor} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos_proto.InterfaceDescriptor} - */ -proto.cosmos_proto.InterfaceDescriptor.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.cosmos_proto.InterfaceDescriptor.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.cosmos_proto.InterfaceDescriptor.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.cosmos_proto.InterfaceDescriptor} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.cosmos_proto.InterfaceDescriptor.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.cosmos_proto.InterfaceDescriptor.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.cosmos_proto.InterfaceDescriptor} returns this - */ -proto.cosmos_proto.InterfaceDescriptor.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.cosmos_proto.InterfaceDescriptor.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.cosmos_proto.InterfaceDescriptor} returns this - */ -proto.cosmos_proto.InterfaceDescriptor.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.cosmos_proto.ScalarDescriptor.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.cosmos_proto.ScalarDescriptor.prototype.toObject = function(opt_includeInstance) { - return proto.cosmos_proto.ScalarDescriptor.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.cosmos_proto.ScalarDescriptor} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.cosmos_proto.ScalarDescriptor.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - fieldTypeList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - legacyAminoEncoding: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.cosmos_proto.ScalarDescriptor} - */ -proto.cosmos_proto.ScalarDescriptor.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.cosmos_proto.ScalarDescriptor; - return proto.cosmos_proto.ScalarDescriptor.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.cosmos_proto.ScalarDescriptor} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.cosmos_proto.ScalarDescriptor} - */ -proto.cosmos_proto.ScalarDescriptor.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = /** @type {!Array} */ (reader.readPackedEnum()); - msg.setFieldTypeList(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setLegacyAminoEncoding(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.cosmos_proto.ScalarDescriptor.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.cosmos_proto.ScalarDescriptor.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.cosmos_proto.ScalarDescriptor} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.cosmos_proto.ScalarDescriptor.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getFieldTypeList(); - if (f.length > 0) { - writer.writePackedEnum( - 3, - f - ); - } - f = message.getLegacyAminoEncoding(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.cosmos_proto.ScalarDescriptor.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.cosmos_proto.ScalarDescriptor} returns this - */ -proto.cosmos_proto.ScalarDescriptor.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.cosmos_proto.ScalarDescriptor.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.cosmos_proto.ScalarDescriptor} returns this - */ -proto.cosmos_proto.ScalarDescriptor.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated ScalarType field_type = 3; - * @return {!Array} - */ -proto.cosmos_proto.ScalarDescriptor.prototype.getFieldTypeList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.cosmos_proto.ScalarDescriptor} returns this - */ -proto.cosmos_proto.ScalarDescriptor.prototype.setFieldTypeList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {!proto.cosmos_proto.ScalarType} value - * @param {number=} opt_index - * @return {!proto.cosmos_proto.ScalarDescriptor} returns this - */ -proto.cosmos_proto.ScalarDescriptor.prototype.addFieldType = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.cosmos_proto.ScalarDescriptor} returns this - */ -proto.cosmos_proto.ScalarDescriptor.prototype.clearFieldTypeList = function() { - return this.setFieldTypeList([]); -}; - - -/** - * optional string legacy_amino_encoding = 4; - * @return {string} - */ -proto.cosmos_proto.ScalarDescriptor.prototype.getLegacyAminoEncoding = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.cosmos_proto.ScalarDescriptor} returns this - */ -proto.cosmos_proto.ScalarDescriptor.prototype.setLegacyAminoEncoding = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * @enum {number} - */ -proto.cosmos_proto.ScalarType = { - SCALAR_TYPE_UNSPECIFIED: 0, - SCALAR_TYPE_STRING: 1, - SCALAR_TYPE_BYTES: 2 -}; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `implementsInterfaceList`. - * @type {!jspb.ExtensionFieldInfo>} - */ -proto.cosmos_proto.implementsInterfaceList = new jspb.ExtensionFieldInfo( - 93001, - {implementsInterfaceList: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 1); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[93001] = new jspb.ExtensionFieldBinaryInfo( - proto.cosmos_proto.implementsInterfaceList, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeRepeatedString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[93001] = proto.cosmos_proto.implementsInterfaceList; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `acceptsInterface`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.cosmos_proto.acceptsInterface = new jspb.ExtensionFieldInfo( - 93001, - {acceptsInterface: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[93001] = new jspb.ExtensionFieldBinaryInfo( - proto.cosmos_proto.acceptsInterface, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[93001] = proto.cosmos_proto.acceptsInterface; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `scalar`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.cosmos_proto.scalar = new jspb.ExtensionFieldInfo( - 93002, - {scalar: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[93002] = new jspb.ExtensionFieldBinaryInfo( - proto.cosmos_proto.scalar, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[93002] = proto.cosmos_proto.scalar; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `declareInterfaceList`. - * @type {!jspb.ExtensionFieldInfo>} - */ -proto.cosmos_proto.declareInterfaceList = new jspb.ExtensionFieldInfo( - 793021, - {declareInterfaceList: 0}, - proto.cosmos_proto.InterfaceDescriptor, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.cosmos_proto.InterfaceDescriptor.toObject), - 1); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[793021] = new jspb.ExtensionFieldBinaryInfo( - proto.cosmos_proto.declareInterfaceList, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeRepeatedMessage, - proto.cosmos_proto.InterfaceDescriptor.serializeBinaryToWriter, - proto.cosmos_proto.InterfaceDescriptor.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[793021] = proto.cosmos_proto.declareInterfaceList; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `declareScalarList`. - * @type {!jspb.ExtensionFieldInfo>} - */ -proto.cosmos_proto.declareScalarList = new jspb.ExtensionFieldInfo( - 793022, - {declareScalarList: 0}, - proto.cosmos_proto.ScalarDescriptor, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.cosmos_proto.ScalarDescriptor.toObject), - 1); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[793022] = new jspb.ExtensionFieldBinaryInfo( - proto.cosmos_proto.declareScalarList, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeRepeatedMessage, - proto.cosmos_proto.ScalarDescriptor.serializeBinaryToWriter, - proto.cosmos_proto.ScalarDescriptor.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[793022] = proto.cosmos_proto.declareScalarList; - -goog.object.extend(exports, proto.cosmos_proto); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb_service.d.ts deleted file mode 100644 index fdb113dd23..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: cosmos_proto -// file: cosmos_proto/cosmos.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb_service.js deleted file mode 100644 index fdb113dd23..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: cosmos_proto -// file: cosmos_proto/cosmos.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb.d.ts deleted file mode 100644 index b6baa4d49f..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb.d.ts +++ /dev/null @@ -1,160 +0,0 @@ -// package: gogoproto -// file: gogoproto/gogo.proto - -import * as jspb from "google-protobuf"; -import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; - - export const goprotoEnumPrefix: jspb.ExtensionFieldInfo; - - export const goprotoEnumStringer: jspb.ExtensionFieldInfo; - - export const enumStringer: jspb.ExtensionFieldInfo; - - export const enumCustomname: jspb.ExtensionFieldInfo; - - export const enumdecl: jspb.ExtensionFieldInfo; - - export const enumvalueCustomname: jspb.ExtensionFieldInfo; - - export const goprotoGettersAll: jspb.ExtensionFieldInfo; - - export const goprotoEnumPrefixAll: jspb.ExtensionFieldInfo; - - export const goprotoStringerAll: jspb.ExtensionFieldInfo; - - export const verboseEqualAll: jspb.ExtensionFieldInfo; - - export const faceAll: jspb.ExtensionFieldInfo; - - export const gostringAll: jspb.ExtensionFieldInfo; - - export const populateAll: jspb.ExtensionFieldInfo; - - export const stringerAll: jspb.ExtensionFieldInfo; - - export const onlyoneAll: jspb.ExtensionFieldInfo; - - export const equalAll: jspb.ExtensionFieldInfo; - - export const descriptionAll: jspb.ExtensionFieldInfo; - - export const testgenAll: jspb.ExtensionFieldInfo; - - export const benchgenAll: jspb.ExtensionFieldInfo; - - export const marshalerAll: jspb.ExtensionFieldInfo; - - export const unmarshalerAll: jspb.ExtensionFieldInfo; - - export const stableMarshalerAll: jspb.ExtensionFieldInfo; - - export const sizerAll: jspb.ExtensionFieldInfo; - - export const goprotoEnumStringerAll: jspb.ExtensionFieldInfo; - - export const enumStringerAll: jspb.ExtensionFieldInfo; - - export const unsafeMarshalerAll: jspb.ExtensionFieldInfo; - - export const unsafeUnmarshalerAll: jspb.ExtensionFieldInfo; - - export const goprotoExtensionsMapAll: jspb.ExtensionFieldInfo; - - export const goprotoUnrecognizedAll: jspb.ExtensionFieldInfo; - - export const gogoprotoImport: jspb.ExtensionFieldInfo; - - export const protosizerAll: jspb.ExtensionFieldInfo; - - export const compareAll: jspb.ExtensionFieldInfo; - - export const typedeclAll: jspb.ExtensionFieldInfo; - - export const enumdeclAll: jspb.ExtensionFieldInfo; - - export const goprotoRegistration: jspb.ExtensionFieldInfo; - - export const messagenameAll: jspb.ExtensionFieldInfo; - - export const goprotoSizecacheAll: jspb.ExtensionFieldInfo; - - export const goprotoUnkeyedAll: jspb.ExtensionFieldInfo; - - export const goprotoGetters: jspb.ExtensionFieldInfo; - - export const goprotoStringer: jspb.ExtensionFieldInfo; - - export const verboseEqual: jspb.ExtensionFieldInfo; - - export const face: jspb.ExtensionFieldInfo; - - export const gostring: jspb.ExtensionFieldInfo; - - export const populate: jspb.ExtensionFieldInfo; - - export const stringer: jspb.ExtensionFieldInfo; - - export const onlyone: jspb.ExtensionFieldInfo; - - export const equal: jspb.ExtensionFieldInfo; - - export const description: jspb.ExtensionFieldInfo; - - export const testgen: jspb.ExtensionFieldInfo; - - export const benchgen: jspb.ExtensionFieldInfo; - - export const marshaler: jspb.ExtensionFieldInfo; - - export const unmarshaler: jspb.ExtensionFieldInfo; - - export const stableMarshaler: jspb.ExtensionFieldInfo; - - export const sizer: jspb.ExtensionFieldInfo; - - export const unsafeMarshaler: jspb.ExtensionFieldInfo; - - export const unsafeUnmarshaler: jspb.ExtensionFieldInfo; - - export const goprotoExtensionsMap: jspb.ExtensionFieldInfo; - - export const goprotoUnrecognized: jspb.ExtensionFieldInfo; - - export const protosizer: jspb.ExtensionFieldInfo; - - export const compare: jspb.ExtensionFieldInfo; - - export const typedecl: jspb.ExtensionFieldInfo; - - export const messagename: jspb.ExtensionFieldInfo; - - export const goprotoSizecache: jspb.ExtensionFieldInfo; - - export const goprotoUnkeyed: jspb.ExtensionFieldInfo; - - export const nullable: jspb.ExtensionFieldInfo; - - export const embed: jspb.ExtensionFieldInfo; - - export const customtype: jspb.ExtensionFieldInfo; - - export const customname: jspb.ExtensionFieldInfo; - - export const jsontag: jspb.ExtensionFieldInfo; - - export const moretags: jspb.ExtensionFieldInfo; - - export const casttype: jspb.ExtensionFieldInfo; - - export const castkey: jspb.ExtensionFieldInfo; - - export const castvalue: jspb.ExtensionFieldInfo; - - export const stdtime: jspb.ExtensionFieldInfo; - - export const stdduration: jspb.ExtensionFieldInfo; - - export const wktpointer: jspb.ExtensionFieldInfo; - - export const castrepeated: jspb.ExtensionFieldInfo; - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb.js deleted file mode 100644 index 52865d8a14..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb.js +++ /dev/null @@ -1,2019 +0,0 @@ -// source: gogoproto/gogo.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); -goog.object.extend(proto, google_protobuf_descriptor_pb); -goog.exportSymbol('proto.gogoproto.benchgen', null, global); -goog.exportSymbol('proto.gogoproto.benchgenAll', null, global); -goog.exportSymbol('proto.gogoproto.castkey', null, global); -goog.exportSymbol('proto.gogoproto.castrepeated', null, global); -goog.exportSymbol('proto.gogoproto.casttype', null, global); -goog.exportSymbol('proto.gogoproto.castvalue', null, global); -goog.exportSymbol('proto.gogoproto.compare', null, global); -goog.exportSymbol('proto.gogoproto.compareAll', null, global); -goog.exportSymbol('proto.gogoproto.customname', null, global); -goog.exportSymbol('proto.gogoproto.customtype', null, global); -goog.exportSymbol('proto.gogoproto.description', null, global); -goog.exportSymbol('proto.gogoproto.descriptionAll', null, global); -goog.exportSymbol('proto.gogoproto.embed', null, global); -goog.exportSymbol('proto.gogoproto.enumCustomname', null, global); -goog.exportSymbol('proto.gogoproto.enumStringer', null, global); -goog.exportSymbol('proto.gogoproto.enumStringerAll', null, global); -goog.exportSymbol('proto.gogoproto.enumdecl', null, global); -goog.exportSymbol('proto.gogoproto.enumdeclAll', null, global); -goog.exportSymbol('proto.gogoproto.enumvalueCustomname', null, global); -goog.exportSymbol('proto.gogoproto.equal', null, global); -goog.exportSymbol('proto.gogoproto.equalAll', null, global); -goog.exportSymbol('proto.gogoproto.face', null, global); -goog.exportSymbol('proto.gogoproto.faceAll', null, global); -goog.exportSymbol('proto.gogoproto.gogoprotoImport', null, global); -goog.exportSymbol('proto.gogoproto.goprotoEnumPrefix', null, global); -goog.exportSymbol('proto.gogoproto.goprotoEnumPrefixAll', null, global); -goog.exportSymbol('proto.gogoproto.goprotoEnumStringer', null, global); -goog.exportSymbol('proto.gogoproto.goprotoEnumStringerAll', null, global); -goog.exportSymbol('proto.gogoproto.goprotoExtensionsMap', null, global); -goog.exportSymbol('proto.gogoproto.goprotoExtensionsMapAll', null, global); -goog.exportSymbol('proto.gogoproto.goprotoGetters', null, global); -goog.exportSymbol('proto.gogoproto.goprotoGettersAll', null, global); -goog.exportSymbol('proto.gogoproto.goprotoRegistration', null, global); -goog.exportSymbol('proto.gogoproto.goprotoSizecache', null, global); -goog.exportSymbol('proto.gogoproto.goprotoSizecacheAll', null, global); -goog.exportSymbol('proto.gogoproto.goprotoStringer', null, global); -goog.exportSymbol('proto.gogoproto.goprotoStringerAll', null, global); -goog.exportSymbol('proto.gogoproto.goprotoUnkeyed', null, global); -goog.exportSymbol('proto.gogoproto.goprotoUnkeyedAll', null, global); -goog.exportSymbol('proto.gogoproto.goprotoUnrecognized', null, global); -goog.exportSymbol('proto.gogoproto.goprotoUnrecognizedAll', null, global); -goog.exportSymbol('proto.gogoproto.gostring', null, global); -goog.exportSymbol('proto.gogoproto.gostringAll', null, global); -goog.exportSymbol('proto.gogoproto.jsontag', null, global); -goog.exportSymbol('proto.gogoproto.marshaler', null, global); -goog.exportSymbol('proto.gogoproto.marshalerAll', null, global); -goog.exportSymbol('proto.gogoproto.messagename', null, global); -goog.exportSymbol('proto.gogoproto.messagenameAll', null, global); -goog.exportSymbol('proto.gogoproto.moretags', null, global); -goog.exportSymbol('proto.gogoproto.nullable', null, global); -goog.exportSymbol('proto.gogoproto.onlyone', null, global); -goog.exportSymbol('proto.gogoproto.onlyoneAll', null, global); -goog.exportSymbol('proto.gogoproto.populate', null, global); -goog.exportSymbol('proto.gogoproto.populateAll', null, global); -goog.exportSymbol('proto.gogoproto.protosizer', null, global); -goog.exportSymbol('proto.gogoproto.protosizerAll', null, global); -goog.exportSymbol('proto.gogoproto.sizer', null, global); -goog.exportSymbol('proto.gogoproto.sizerAll', null, global); -goog.exportSymbol('proto.gogoproto.stableMarshaler', null, global); -goog.exportSymbol('proto.gogoproto.stableMarshalerAll', null, global); -goog.exportSymbol('proto.gogoproto.stdduration', null, global); -goog.exportSymbol('proto.gogoproto.stdtime', null, global); -goog.exportSymbol('proto.gogoproto.stringer', null, global); -goog.exportSymbol('proto.gogoproto.stringerAll', null, global); -goog.exportSymbol('proto.gogoproto.testgen', null, global); -goog.exportSymbol('proto.gogoproto.testgenAll', null, global); -goog.exportSymbol('proto.gogoproto.typedecl', null, global); -goog.exportSymbol('proto.gogoproto.typedeclAll', null, global); -goog.exportSymbol('proto.gogoproto.unmarshaler', null, global); -goog.exportSymbol('proto.gogoproto.unmarshalerAll', null, global); -goog.exportSymbol('proto.gogoproto.unsafeMarshaler', null, global); -goog.exportSymbol('proto.gogoproto.unsafeMarshalerAll', null, global); -goog.exportSymbol('proto.gogoproto.unsafeUnmarshaler', null, global); -goog.exportSymbol('proto.gogoproto.unsafeUnmarshalerAll', null, global); -goog.exportSymbol('proto.gogoproto.verboseEqual', null, global); -goog.exportSymbol('proto.gogoproto.verboseEqualAll', null, global); -goog.exportSymbol('proto.gogoproto.wktpointer', null, global); - -/** - * A tuple of {field number, class constructor} for the extension - * field named `goprotoEnumPrefix`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.goprotoEnumPrefix = new jspb.ExtensionFieldInfo( - 62001, - {goprotoEnumPrefix: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.EnumOptions.extensionsBinary[62001] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.goprotoEnumPrefix, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.EnumOptions.extensions[62001] = proto.gogoproto.goprotoEnumPrefix; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `goprotoEnumStringer`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.goprotoEnumStringer = new jspb.ExtensionFieldInfo( - 62021, - {goprotoEnumStringer: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.EnumOptions.extensionsBinary[62021] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.goprotoEnumStringer, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.EnumOptions.extensions[62021] = proto.gogoproto.goprotoEnumStringer; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `enumStringer`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.enumStringer = new jspb.ExtensionFieldInfo( - 62022, - {enumStringer: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.EnumOptions.extensionsBinary[62022] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.enumStringer, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.EnumOptions.extensions[62022] = proto.gogoproto.enumStringer; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `enumCustomname`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.enumCustomname = new jspb.ExtensionFieldInfo( - 62023, - {enumCustomname: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.EnumOptions.extensionsBinary[62023] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.enumCustomname, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.EnumOptions.extensions[62023] = proto.gogoproto.enumCustomname; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `enumdecl`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.enumdecl = new jspb.ExtensionFieldInfo( - 62024, - {enumdecl: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.EnumOptions.extensionsBinary[62024] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.enumdecl, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.EnumOptions.extensions[62024] = proto.gogoproto.enumdecl; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `enumvalueCustomname`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.enumvalueCustomname = new jspb.ExtensionFieldInfo( - 66001, - {enumvalueCustomname: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.EnumValueOptions.extensionsBinary[66001] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.enumvalueCustomname, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.EnumValueOptions.extensions[66001] = proto.gogoproto.enumvalueCustomname; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `goprotoGettersAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.goprotoGettersAll = new jspb.ExtensionFieldInfo( - 63001, - {goprotoGettersAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63001] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.goprotoGettersAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63001] = proto.gogoproto.goprotoGettersAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `goprotoEnumPrefixAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.goprotoEnumPrefixAll = new jspb.ExtensionFieldInfo( - 63002, - {goprotoEnumPrefixAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63002] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.goprotoEnumPrefixAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63002] = proto.gogoproto.goprotoEnumPrefixAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `goprotoStringerAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.goprotoStringerAll = new jspb.ExtensionFieldInfo( - 63003, - {goprotoStringerAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63003] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.goprotoStringerAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63003] = proto.gogoproto.goprotoStringerAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `verboseEqualAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.verboseEqualAll = new jspb.ExtensionFieldInfo( - 63004, - {verboseEqualAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63004] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.verboseEqualAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63004] = proto.gogoproto.verboseEqualAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `faceAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.faceAll = new jspb.ExtensionFieldInfo( - 63005, - {faceAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63005] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.faceAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63005] = proto.gogoproto.faceAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `gostringAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.gostringAll = new jspb.ExtensionFieldInfo( - 63006, - {gostringAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63006] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.gostringAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63006] = proto.gogoproto.gostringAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `populateAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.populateAll = new jspb.ExtensionFieldInfo( - 63007, - {populateAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63007] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.populateAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63007] = proto.gogoproto.populateAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `stringerAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.stringerAll = new jspb.ExtensionFieldInfo( - 63008, - {stringerAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63008] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.stringerAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63008] = proto.gogoproto.stringerAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `onlyoneAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.onlyoneAll = new jspb.ExtensionFieldInfo( - 63009, - {onlyoneAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63009] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.onlyoneAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63009] = proto.gogoproto.onlyoneAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `equalAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.equalAll = new jspb.ExtensionFieldInfo( - 63013, - {equalAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63013] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.equalAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63013] = proto.gogoproto.equalAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `descriptionAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.descriptionAll = new jspb.ExtensionFieldInfo( - 63014, - {descriptionAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63014] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.descriptionAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63014] = proto.gogoproto.descriptionAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `testgenAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.testgenAll = new jspb.ExtensionFieldInfo( - 63015, - {testgenAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63015] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.testgenAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63015] = proto.gogoproto.testgenAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `benchgenAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.benchgenAll = new jspb.ExtensionFieldInfo( - 63016, - {benchgenAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63016] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.benchgenAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63016] = proto.gogoproto.benchgenAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `marshalerAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.marshalerAll = new jspb.ExtensionFieldInfo( - 63017, - {marshalerAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63017] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.marshalerAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63017] = proto.gogoproto.marshalerAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `unmarshalerAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.unmarshalerAll = new jspb.ExtensionFieldInfo( - 63018, - {unmarshalerAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63018] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.unmarshalerAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63018] = proto.gogoproto.unmarshalerAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `stableMarshalerAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.stableMarshalerAll = new jspb.ExtensionFieldInfo( - 63019, - {stableMarshalerAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63019] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.stableMarshalerAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63019] = proto.gogoproto.stableMarshalerAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `sizerAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.sizerAll = new jspb.ExtensionFieldInfo( - 63020, - {sizerAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63020] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.sizerAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63020] = proto.gogoproto.sizerAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `goprotoEnumStringerAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.goprotoEnumStringerAll = new jspb.ExtensionFieldInfo( - 63021, - {goprotoEnumStringerAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63021] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.goprotoEnumStringerAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63021] = proto.gogoproto.goprotoEnumStringerAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `enumStringerAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.enumStringerAll = new jspb.ExtensionFieldInfo( - 63022, - {enumStringerAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63022] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.enumStringerAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63022] = proto.gogoproto.enumStringerAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `unsafeMarshalerAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.unsafeMarshalerAll = new jspb.ExtensionFieldInfo( - 63023, - {unsafeMarshalerAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63023] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.unsafeMarshalerAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63023] = proto.gogoproto.unsafeMarshalerAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `unsafeUnmarshalerAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.unsafeUnmarshalerAll = new jspb.ExtensionFieldInfo( - 63024, - {unsafeUnmarshalerAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63024] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.unsafeUnmarshalerAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63024] = proto.gogoproto.unsafeUnmarshalerAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `goprotoExtensionsMapAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.goprotoExtensionsMapAll = new jspb.ExtensionFieldInfo( - 63025, - {goprotoExtensionsMapAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63025] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.goprotoExtensionsMapAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63025] = proto.gogoproto.goprotoExtensionsMapAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `goprotoUnrecognizedAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.goprotoUnrecognizedAll = new jspb.ExtensionFieldInfo( - 63026, - {goprotoUnrecognizedAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63026] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.goprotoUnrecognizedAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63026] = proto.gogoproto.goprotoUnrecognizedAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `gogoprotoImport`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.gogoprotoImport = new jspb.ExtensionFieldInfo( - 63027, - {gogoprotoImport: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63027] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.gogoprotoImport, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63027] = proto.gogoproto.gogoprotoImport; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `protosizerAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.protosizerAll = new jspb.ExtensionFieldInfo( - 63028, - {protosizerAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63028] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.protosizerAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63028] = proto.gogoproto.protosizerAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `compareAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.compareAll = new jspb.ExtensionFieldInfo( - 63029, - {compareAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63029] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.compareAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63029] = proto.gogoproto.compareAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `typedeclAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.typedeclAll = new jspb.ExtensionFieldInfo( - 63030, - {typedeclAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63030] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.typedeclAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63030] = proto.gogoproto.typedeclAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `enumdeclAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.enumdeclAll = new jspb.ExtensionFieldInfo( - 63031, - {enumdeclAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63031] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.enumdeclAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63031] = proto.gogoproto.enumdeclAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `goprotoRegistration`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.goprotoRegistration = new jspb.ExtensionFieldInfo( - 63032, - {goprotoRegistration: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63032] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.goprotoRegistration, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63032] = proto.gogoproto.goprotoRegistration; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `messagenameAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.messagenameAll = new jspb.ExtensionFieldInfo( - 63033, - {messagenameAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63033] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.messagenameAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63033] = proto.gogoproto.messagenameAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `goprotoSizecacheAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.goprotoSizecacheAll = new jspb.ExtensionFieldInfo( - 63034, - {goprotoSizecacheAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63034] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.goprotoSizecacheAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63034] = proto.gogoproto.goprotoSizecacheAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `goprotoUnkeyedAll`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.goprotoUnkeyedAll = new jspb.ExtensionFieldInfo( - 63035, - {goprotoUnkeyedAll: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63035] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.goprotoUnkeyedAll, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[63035] = proto.gogoproto.goprotoUnkeyedAll; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `goprotoGetters`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.goprotoGetters = new jspb.ExtensionFieldInfo( - 64001, - {goprotoGetters: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64001] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.goprotoGetters, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64001] = proto.gogoproto.goprotoGetters; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `goprotoStringer`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.goprotoStringer = new jspb.ExtensionFieldInfo( - 64003, - {goprotoStringer: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64003] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.goprotoStringer, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64003] = proto.gogoproto.goprotoStringer; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `verboseEqual`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.verboseEqual = new jspb.ExtensionFieldInfo( - 64004, - {verboseEqual: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64004] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.verboseEqual, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64004] = proto.gogoproto.verboseEqual; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `face`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.face = new jspb.ExtensionFieldInfo( - 64005, - {face: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64005] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.face, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64005] = proto.gogoproto.face; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `gostring`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.gostring = new jspb.ExtensionFieldInfo( - 64006, - {gostring: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64006] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.gostring, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64006] = proto.gogoproto.gostring; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `populate`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.populate = new jspb.ExtensionFieldInfo( - 64007, - {populate: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64007] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.populate, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64007] = proto.gogoproto.populate; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `stringer`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.stringer = new jspb.ExtensionFieldInfo( - 67008, - {stringer: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[67008] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.stringer, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[67008] = proto.gogoproto.stringer; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `onlyone`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.onlyone = new jspb.ExtensionFieldInfo( - 64009, - {onlyone: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64009] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.onlyone, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64009] = proto.gogoproto.onlyone; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `equal`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.equal = new jspb.ExtensionFieldInfo( - 64013, - {equal: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64013] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.equal, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64013] = proto.gogoproto.equal; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `description`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.description = new jspb.ExtensionFieldInfo( - 64014, - {description: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64014] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.description, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64014] = proto.gogoproto.description; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `testgen`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.testgen = new jspb.ExtensionFieldInfo( - 64015, - {testgen: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64015] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.testgen, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64015] = proto.gogoproto.testgen; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `benchgen`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.benchgen = new jspb.ExtensionFieldInfo( - 64016, - {benchgen: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64016] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.benchgen, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64016] = proto.gogoproto.benchgen; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `marshaler`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.marshaler = new jspb.ExtensionFieldInfo( - 64017, - {marshaler: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64017] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.marshaler, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64017] = proto.gogoproto.marshaler; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `unmarshaler`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.unmarshaler = new jspb.ExtensionFieldInfo( - 64018, - {unmarshaler: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64018] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.unmarshaler, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64018] = proto.gogoproto.unmarshaler; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `stableMarshaler`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.stableMarshaler = new jspb.ExtensionFieldInfo( - 64019, - {stableMarshaler: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64019] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.stableMarshaler, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64019] = proto.gogoproto.stableMarshaler; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `sizer`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.sizer = new jspb.ExtensionFieldInfo( - 64020, - {sizer: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64020] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.sizer, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64020] = proto.gogoproto.sizer; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `unsafeMarshaler`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.unsafeMarshaler = new jspb.ExtensionFieldInfo( - 64023, - {unsafeMarshaler: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64023] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.unsafeMarshaler, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64023] = proto.gogoproto.unsafeMarshaler; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `unsafeUnmarshaler`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.unsafeUnmarshaler = new jspb.ExtensionFieldInfo( - 64024, - {unsafeUnmarshaler: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64024] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.unsafeUnmarshaler, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64024] = proto.gogoproto.unsafeUnmarshaler; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `goprotoExtensionsMap`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.goprotoExtensionsMap = new jspb.ExtensionFieldInfo( - 64025, - {goprotoExtensionsMap: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64025] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.goprotoExtensionsMap, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64025] = proto.gogoproto.goprotoExtensionsMap; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `goprotoUnrecognized`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.goprotoUnrecognized = new jspb.ExtensionFieldInfo( - 64026, - {goprotoUnrecognized: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64026] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.goprotoUnrecognized, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64026] = proto.gogoproto.goprotoUnrecognized; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `protosizer`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.protosizer = new jspb.ExtensionFieldInfo( - 64028, - {protosizer: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64028] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.protosizer, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64028] = proto.gogoproto.protosizer; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `compare`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.compare = new jspb.ExtensionFieldInfo( - 64029, - {compare: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64029] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.compare, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64029] = proto.gogoproto.compare; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `typedecl`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.typedecl = new jspb.ExtensionFieldInfo( - 64030, - {typedecl: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64030] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.typedecl, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64030] = proto.gogoproto.typedecl; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `messagename`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.messagename = new jspb.ExtensionFieldInfo( - 64033, - {messagename: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64033] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.messagename, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64033] = proto.gogoproto.messagename; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `goprotoSizecache`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.goprotoSizecache = new jspb.ExtensionFieldInfo( - 64034, - {goprotoSizecache: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64034] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.goprotoSizecache, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64034] = proto.gogoproto.goprotoSizecache; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `goprotoUnkeyed`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.goprotoUnkeyed = new jspb.ExtensionFieldInfo( - 64035, - {goprotoUnkeyed: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64035] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.goprotoUnkeyed, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[64035] = proto.gogoproto.goprotoUnkeyed; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `nullable`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.nullable = new jspb.ExtensionFieldInfo( - 65001, - {nullable: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65001] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.nullable, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[65001] = proto.gogoproto.nullable; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `embed`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.embed = new jspb.ExtensionFieldInfo( - 65002, - {embed: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65002] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.embed, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[65002] = proto.gogoproto.embed; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `customtype`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.customtype = new jspb.ExtensionFieldInfo( - 65003, - {customtype: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65003] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.customtype, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[65003] = proto.gogoproto.customtype; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `customname`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.customname = new jspb.ExtensionFieldInfo( - 65004, - {customname: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65004] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.customname, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[65004] = proto.gogoproto.customname; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `jsontag`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.jsontag = new jspb.ExtensionFieldInfo( - 65005, - {jsontag: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65005] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.jsontag, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[65005] = proto.gogoproto.jsontag; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `moretags`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.moretags = new jspb.ExtensionFieldInfo( - 65006, - {moretags: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65006] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.moretags, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[65006] = proto.gogoproto.moretags; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `casttype`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.casttype = new jspb.ExtensionFieldInfo( - 65007, - {casttype: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65007] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.casttype, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[65007] = proto.gogoproto.casttype; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `castkey`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.castkey = new jspb.ExtensionFieldInfo( - 65008, - {castkey: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65008] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.castkey, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[65008] = proto.gogoproto.castkey; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `castvalue`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.castvalue = new jspb.ExtensionFieldInfo( - 65009, - {castvalue: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65009] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.castvalue, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[65009] = proto.gogoproto.castvalue; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `stdtime`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.stdtime = new jspb.ExtensionFieldInfo( - 65010, - {stdtime: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65010] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.stdtime, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[65010] = proto.gogoproto.stdtime; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `stdduration`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.stdduration = new jspb.ExtensionFieldInfo( - 65011, - {stdduration: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65011] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.stdduration, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[65011] = proto.gogoproto.stdduration; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `wktpointer`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.wktpointer = new jspb.ExtensionFieldInfo( - 65012, - {wktpointer: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65012] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.wktpointer, - jspb.BinaryReader.prototype.readBool, - jspb.BinaryWriter.prototype.writeBool, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[65012] = proto.gogoproto.wktpointer; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `castrepeated`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.gogoproto.castrepeated = new jspb.ExtensionFieldInfo( - 65013, - {castrepeated: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65013] = new jspb.ExtensionFieldBinaryInfo( - proto.gogoproto.castrepeated, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[65013] = proto.gogoproto.castrepeated; - -goog.object.extend(exports, proto.gogoproto); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb_service.d.ts deleted file mode 100644 index 1d20e5a457..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: gogoproto -// file: gogoproto/gogo.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb_service.js deleted file mode 100644 index 1d20e5a457..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: gogoproto -// file: gogoproto/gogo.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb.d.ts deleted file mode 100644 index adf3b88c38..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// package: google.api -// file: google/api/annotations.proto - -import * as jspb from "google-protobuf"; -import * as google_api_http_pb from "../../google/api/http_pb"; -import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; - - export const http: jspb.ExtensionFieldInfo; - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb.js deleted file mode 100644 index 2341dbed22..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb.js +++ /dev/null @@ -1,45 +0,0 @@ -// source: google/api/annotations.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_http_pb = require('../../google/api/http_pb.js'); -goog.object.extend(proto, google_api_http_pb); -var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); -goog.object.extend(proto, google_protobuf_descriptor_pb); -goog.exportSymbol('proto.google.api.http', null, global); - -/** - * A tuple of {field number, class constructor} for the extension - * field named `http`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.http = new jspb.ExtensionFieldInfo( - 72295728, - {http: 0}, - google_api_http_pb.HttpRule, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - google_api_http_pb.HttpRule.toObject), - 0); - -google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295728] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.http, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - google_api_http_pb.HttpRule.serializeBinaryToWriter, - google_api_http_pb.HttpRule.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MethodOptions.extensions[72295728] = proto.google.api.http; - -goog.object.extend(exports, proto.google.api); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb_service.d.ts deleted file mode 100644 index a2a92a7fc8..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: google.api -// file: google/api/annotations.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb_service.js deleted file mode 100644 index a2a92a7fc8..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: google.api -// file: google/api/annotations.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb.d.ts deleted file mode 100644 index 9236d7c318..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb.d.ts +++ /dev/null @@ -1,136 +0,0 @@ -// package: google.api -// file: google/api/http.proto - -import * as jspb from "google-protobuf"; - -export class Http extends jspb.Message { - clearRulesList(): void; - getRulesList(): Array; - setRulesList(value: Array): void; - addRules(value?: HttpRule, index?: number): HttpRule; - - getFullyDecodeReservedExpansion(): boolean; - setFullyDecodeReservedExpansion(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Http.AsObject; - static toObject(includeInstance: boolean, msg: Http): Http.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Http, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Http; - static deserializeBinaryFromReader(message: Http, reader: jspb.BinaryReader): Http; -} - -export namespace Http { - export type AsObject = { - rulesList: Array, - fullyDecodeReservedExpansion: boolean, - } -} - -export class HttpRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): void; - - hasGet(): boolean; - clearGet(): void; - getGet(): string; - setGet(value: string): void; - - hasPut(): boolean; - clearPut(): void; - getPut(): string; - setPut(value: string): void; - - hasPost(): boolean; - clearPost(): void; - getPost(): string; - setPost(value: string): void; - - hasDelete(): boolean; - clearDelete(): void; - getDelete(): string; - setDelete(value: string): void; - - hasPatch(): boolean; - clearPatch(): void; - getPatch(): string; - setPatch(value: string): void; - - hasCustom(): boolean; - clearCustom(): void; - getCustom(): CustomHttpPattern | undefined; - setCustom(value?: CustomHttpPattern): void; - - getBody(): string; - setBody(value: string): void; - - getResponseBody(): string; - setResponseBody(value: string): void; - - clearAdditionalBindingsList(): void; - getAdditionalBindingsList(): Array; - setAdditionalBindingsList(value: Array): void; - addAdditionalBindings(value?: HttpRule, index?: number): HttpRule; - - getPatternCase(): HttpRule.PatternCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HttpRule.AsObject; - static toObject(includeInstance: boolean, msg: HttpRule): HttpRule.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HttpRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HttpRule; - static deserializeBinaryFromReader(message: HttpRule, reader: jspb.BinaryReader): HttpRule; -} - -export namespace HttpRule { - export type AsObject = { - selector: string, - get: string, - put: string, - post: string, - pb_delete: string, - patch: string, - custom?: CustomHttpPattern.AsObject, - body: string, - responseBody: string, - additionalBindingsList: Array, - } - - export enum PatternCase { - PATTERN_NOT_SET = 0, - GET = 2, - PUT = 3, - POST = 4, - DELETE = 5, - PATCH = 6, - CUSTOM = 8, - } -} - -export class CustomHttpPattern extends jspb.Message { - getKind(): string; - setKind(value: string): void; - - getPath(): string; - setPath(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CustomHttpPattern.AsObject; - static toObject(includeInstance: boolean, msg: CustomHttpPattern): CustomHttpPattern.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CustomHttpPattern, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CustomHttpPattern; - static deserializeBinaryFromReader(message: CustomHttpPattern, reader: jspb.BinaryReader): CustomHttpPattern; -} - -export namespace CustomHttpPattern { - export type AsObject = { - kind: string, - path: string, - } -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb.js deleted file mode 100644 index b59093d96a..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb.js +++ /dev/null @@ -1,1003 +0,0 @@ -// source: google/api/http.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.CustomHttpPattern', null, global); -goog.exportSymbol('proto.google.api.Http', null, global); -goog.exportSymbol('proto.google.api.HttpRule', null, global); -goog.exportSymbol('proto.google.api.HttpRule.PatternCase', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Http = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Http.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Http, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Http.displayName = 'proto.google.api.Http'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.HttpRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.HttpRule.repeatedFields_, proto.google.api.HttpRule.oneofGroups_); -}; -goog.inherits(proto.google.api.HttpRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.HttpRule.displayName = 'proto.google.api.HttpRule'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.CustomHttpPattern = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.CustomHttpPattern, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.CustomHttpPattern.displayName = 'proto.google.api.CustomHttpPattern'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Http.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Http.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Http.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Http} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Http.toObject = function(includeInstance, msg) { - var f, obj = { - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.google.api.HttpRule.toObject, includeInstance), - fullyDecodeReservedExpansion: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Http} - */ -proto.google.api.Http.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Http; - return proto.google.api.Http.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Http} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Http} - */ -proto.google.api.Http.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.HttpRule; - reader.readMessage(value,proto.google.api.HttpRule.deserializeBinaryFromReader); - msg.addRules(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setFullyDecodeReservedExpansion(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Http.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Http.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Http} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Http.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.api.HttpRule.serializeBinaryToWriter - ); - } - f = message.getFullyDecodeReservedExpansion(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * repeated HttpRule rules = 1; - * @return {!Array} - */ -proto.google.api.Http.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.HttpRule, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Http} returns this -*/ -proto.google.api.Http.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.api.HttpRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.HttpRule} - */ -proto.google.api.Http.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.HttpRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Http} returns this - */ -proto.google.api.Http.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - -/** - * optional bool fully_decode_reserved_expansion = 2; - * @return {boolean} - */ -proto.google.api.Http.prototype.getFullyDecodeReservedExpansion = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.api.Http} returns this - */ -proto.google.api.Http.prototype.setFullyDecodeReservedExpansion = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.HttpRule.repeatedFields_ = [11]; - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.google.api.HttpRule.oneofGroups_ = [[2,3,4,5,6,8]]; - -/** - * @enum {number} - */ -proto.google.api.HttpRule.PatternCase = { - PATTERN_NOT_SET: 0, - GET: 2, - PUT: 3, - POST: 4, - DELETE: 5, - PATCH: 6, - CUSTOM: 8 -}; - -/** - * @return {proto.google.api.HttpRule.PatternCase} - */ -proto.google.api.HttpRule.prototype.getPatternCase = function() { - return /** @type {proto.google.api.HttpRule.PatternCase} */(jspb.Message.computeOneofCase(this, proto.google.api.HttpRule.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.HttpRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.HttpRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.HttpRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.HttpRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - get: jspb.Message.getFieldWithDefault(msg, 2, ""), - put: jspb.Message.getFieldWithDefault(msg, 3, ""), - post: jspb.Message.getFieldWithDefault(msg, 4, ""), - pb_delete: jspb.Message.getFieldWithDefault(msg, 5, ""), - patch: jspb.Message.getFieldWithDefault(msg, 6, ""), - custom: (f = msg.getCustom()) && proto.google.api.CustomHttpPattern.toObject(includeInstance, f), - body: jspb.Message.getFieldWithDefault(msg, 7, ""), - responseBody: jspb.Message.getFieldWithDefault(msg, 12, ""), - additionalBindingsList: jspb.Message.toObjectList(msg.getAdditionalBindingsList(), - proto.google.api.HttpRule.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.HttpRule} - */ -proto.google.api.HttpRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.HttpRule; - return proto.google.api.HttpRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.HttpRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.HttpRule} - */ -proto.google.api.HttpRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGet(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setPut(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPost(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDelete(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setPatch(value); - break; - case 8: - var value = new proto.google.api.CustomHttpPattern; - reader.readMessage(value,proto.google.api.CustomHttpPattern.deserializeBinaryFromReader); - msg.setCustom(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setBody(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setResponseBody(value); - break; - case 11: - var value = new proto.google.api.HttpRule; - reader.readMessage(value,proto.google.api.HttpRule.deserializeBinaryFromReader); - msg.addAdditionalBindings(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.HttpRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.HttpRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.HttpRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.HttpRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeString( - 2, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeString( - 3, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeString( - 4, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 5)); - if (f != null) { - writer.writeString( - 5, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeString( - 6, - f - ); - } - f = message.getCustom(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.google.api.CustomHttpPattern.serializeBinaryToWriter - ); - } - f = message.getBody(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getResponseBody(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getAdditionalBindingsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 11, - f, - proto.google.api.HttpRule.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string get = 2; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getGet = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setGet = function(value) { - return jspb.Message.setOneofField(this, 2, proto.google.api.HttpRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearGet = function() { - return jspb.Message.setOneofField(this, 2, proto.google.api.HttpRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.HttpRule.prototype.hasGet = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string put = 3; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getPut = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setPut = function(value) { - return jspb.Message.setOneofField(this, 3, proto.google.api.HttpRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearPut = function() { - return jspb.Message.setOneofField(this, 3, proto.google.api.HttpRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.HttpRule.prototype.hasPut = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string post = 4; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getPost = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setPost = function(value) { - return jspb.Message.setOneofField(this, 4, proto.google.api.HttpRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearPost = function() { - return jspb.Message.setOneofField(this, 4, proto.google.api.HttpRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.HttpRule.prototype.hasPost = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string delete = 5; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getDelete = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setDelete = function(value) { - return jspb.Message.setOneofField(this, 5, proto.google.api.HttpRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearDelete = function() { - return jspb.Message.setOneofField(this, 5, proto.google.api.HttpRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.HttpRule.prototype.hasDelete = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional string patch = 6; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getPatch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setPatch = function(value) { - return jspb.Message.setOneofField(this, 6, proto.google.api.HttpRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearPatch = function() { - return jspb.Message.setOneofField(this, 6, proto.google.api.HttpRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.HttpRule.prototype.hasPatch = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional CustomHttpPattern custom = 8; - * @return {?proto.google.api.CustomHttpPattern} - */ -proto.google.api.HttpRule.prototype.getCustom = function() { - return /** @type{?proto.google.api.CustomHttpPattern} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CustomHttpPattern, 8)); -}; - - -/** - * @param {?proto.google.api.CustomHttpPattern|undefined} value - * @return {!proto.google.api.HttpRule} returns this -*/ -proto.google.api.HttpRule.prototype.setCustom = function(value) { - return jspb.Message.setOneofWrapperField(this, 8, proto.google.api.HttpRule.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearCustom = function() { - return this.setCustom(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.HttpRule.prototype.hasCustom = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional string body = 7; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getBody = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setBody = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string response_body = 12; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getResponseBody = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setResponseBody = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * repeated HttpRule additional_bindings = 11; - * @return {!Array} - */ -proto.google.api.HttpRule.prototype.getAdditionalBindingsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.HttpRule, 11)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.HttpRule} returns this -*/ -proto.google.api.HttpRule.prototype.setAdditionalBindingsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 11, value); -}; - - -/** - * @param {!proto.google.api.HttpRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.HttpRule} - */ -proto.google.api.HttpRule.prototype.addAdditionalBindings = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.google.api.HttpRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearAdditionalBindingsList = function() { - return this.setAdditionalBindingsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.CustomHttpPattern.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.CustomHttpPattern.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.CustomHttpPattern} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.CustomHttpPattern.toObject = function(includeInstance, msg) { - var f, obj = { - kind: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.CustomHttpPattern} - */ -proto.google.api.CustomHttpPattern.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.CustomHttpPattern; - return proto.google.api.CustomHttpPattern.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.CustomHttpPattern} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.CustomHttpPattern} - */ -proto.google.api.CustomHttpPattern.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setKind(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.CustomHttpPattern.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.CustomHttpPattern.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.CustomHttpPattern} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.CustomHttpPattern.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKind(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string kind = 1; - * @return {string} - */ -proto.google.api.CustomHttpPattern.prototype.getKind = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.CustomHttpPattern} returns this - */ -proto.google.api.CustomHttpPattern.prototype.setKind = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -proto.google.api.CustomHttpPattern.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.CustomHttpPattern} returns this - */ -proto.google.api.CustomHttpPattern.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb_service.d.ts deleted file mode 100644 index 4d2b6862f5..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: google.api -// file: google/api/http.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb_service.js deleted file mode 100644 index 4d2b6862f5..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: google.api -// file: google/api/http.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/descriptor_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/descriptor_pb.d.ts deleted file mode 100644 index 63bae5b519..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/descriptor_pb.d.ts +++ /dev/null @@ -1,1252 +0,0 @@ -// package: google.protobuf -// file: google/protobuf/descriptor.proto - -import * as jspb from "google-protobuf"; - -export class FileDescriptorSet extends jspb.Message { - clearFileList(): void; - getFileList(): Array; - setFileList(value: Array): void; - addFile(value?: FileDescriptorProto, index?: number): FileDescriptorProto; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FileDescriptorSet.AsObject; - static toObject(includeInstance: boolean, msg: FileDescriptorSet): FileDescriptorSet.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FileDescriptorSet, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FileDescriptorSet; - static deserializeBinaryFromReader(message: FileDescriptorSet, reader: jspb.BinaryReader): FileDescriptorSet; -} - -export namespace FileDescriptorSet { - export type AsObject = { - fileList: Array, - } -} - -export class FileDescriptorProto extends jspb.Message { - hasName(): boolean; - clearName(): void; - getName(): string | undefined; - setName(value: string): void; - - hasPackage(): boolean; - clearPackage(): void; - getPackage(): string | undefined; - setPackage(value: string): void; - - clearDependencyList(): void; - getDependencyList(): Array; - setDependencyList(value: Array): void; - addDependency(value: string, index?: number): string; - - clearPublicDependencyList(): void; - getPublicDependencyList(): Array; - setPublicDependencyList(value: Array): void; - addPublicDependency(value: number, index?: number): number; - - clearWeakDependencyList(): void; - getWeakDependencyList(): Array; - setWeakDependencyList(value: Array): void; - addWeakDependency(value: number, index?: number): number; - - clearMessageTypeList(): void; - getMessageTypeList(): Array; - setMessageTypeList(value: Array): void; - addMessageType(value?: DescriptorProto, index?: number): DescriptorProto; - - clearEnumTypeList(): void; - getEnumTypeList(): Array; - setEnumTypeList(value: Array): void; - addEnumType(value?: EnumDescriptorProto, index?: number): EnumDescriptorProto; - - clearServiceList(): void; - getServiceList(): Array; - setServiceList(value: Array): void; - addService(value?: ServiceDescriptorProto, index?: number): ServiceDescriptorProto; - - clearExtension$List(): void; - getExtensionList(): Array; - setExtensionList(value: Array): void; - addExtension(value?: FieldDescriptorProto, index?: number): FieldDescriptorProto; - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): FileOptions | undefined; - setOptions(value?: FileOptions): void; - - hasSourceCodeInfo(): boolean; - clearSourceCodeInfo(): void; - getSourceCodeInfo(): SourceCodeInfo | undefined; - setSourceCodeInfo(value?: SourceCodeInfo): void; - - hasSyntax(): boolean; - clearSyntax(): void; - getSyntax(): string | undefined; - setSyntax(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FileDescriptorProto.AsObject; - static toObject(includeInstance: boolean, msg: FileDescriptorProto): FileDescriptorProto.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FileDescriptorProto, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FileDescriptorProto; - static deserializeBinaryFromReader(message: FileDescriptorProto, reader: jspb.BinaryReader): FileDescriptorProto; -} - -export namespace FileDescriptorProto { - export type AsObject = { - name?: string, - pb_package?: string, - dependencyList: Array, - publicDependencyList: Array, - weakDependencyList: Array, - messageTypeList: Array, - enumTypeList: Array, - serviceList: Array, - extensionList: Array, - options?: FileOptions.AsObject, - sourceCodeInfo?: SourceCodeInfo.AsObject, - syntax?: string, - } -} - -export class DescriptorProto extends jspb.Message { - hasName(): boolean; - clearName(): void; - getName(): string | undefined; - setName(value: string): void; - - clearFieldList(): void; - getFieldList(): Array; - setFieldList(value: Array): void; - addField(value?: FieldDescriptorProto, index?: number): FieldDescriptorProto; - - clearExtension$List(): void; - getExtensionList(): Array; - setExtensionList(value: Array): void; - addExtension(value?: FieldDescriptorProto, index?: number): FieldDescriptorProto; - - clearNestedTypeList(): void; - getNestedTypeList(): Array; - setNestedTypeList(value: Array): void; - addNestedType(value?: DescriptorProto, index?: number): DescriptorProto; - - clearEnumTypeList(): void; - getEnumTypeList(): Array; - setEnumTypeList(value: Array): void; - addEnumType(value?: EnumDescriptorProto, index?: number): EnumDescriptorProto; - - clearExtensionRangeList(): void; - getExtensionRangeList(): Array; - setExtensionRangeList(value: Array): void; - addExtensionRange(value?: DescriptorProto.ExtensionRange, index?: number): DescriptorProto.ExtensionRange; - - clearOneofDeclList(): void; - getOneofDeclList(): Array; - setOneofDeclList(value: Array): void; - addOneofDecl(value?: OneofDescriptorProto, index?: number): OneofDescriptorProto; - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): MessageOptions | undefined; - setOptions(value?: MessageOptions): void; - - clearReservedRangeList(): void; - getReservedRangeList(): Array; - setReservedRangeList(value: Array): void; - addReservedRange(value?: DescriptorProto.ReservedRange, index?: number): DescriptorProto.ReservedRange; - - clearReservedNameList(): void; - getReservedNameList(): Array; - setReservedNameList(value: Array): void; - addReservedName(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DescriptorProto.AsObject; - static toObject(includeInstance: boolean, msg: DescriptorProto): DescriptorProto.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DescriptorProto, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DescriptorProto; - static deserializeBinaryFromReader(message: DescriptorProto, reader: jspb.BinaryReader): DescriptorProto; -} - -export namespace DescriptorProto { - export type AsObject = { - name?: string, - fieldList: Array, - extensionList: Array, - nestedTypeList: Array, - enumTypeList: Array, - extensionRangeList: Array, - oneofDeclList: Array, - options?: MessageOptions.AsObject, - reservedRangeList: Array, - reservedNameList: Array, - } - - export class ExtensionRange extends jspb.Message { - hasStart(): boolean; - clearStart(): void; - getStart(): number | undefined; - setStart(value: number): void; - - hasEnd(): boolean; - clearEnd(): void; - getEnd(): number | undefined; - setEnd(value: number): void; - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): ExtensionRangeOptions | undefined; - setOptions(value?: ExtensionRangeOptions): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ExtensionRange.AsObject; - static toObject(includeInstance: boolean, msg: ExtensionRange): ExtensionRange.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ExtensionRange, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ExtensionRange; - static deserializeBinaryFromReader(message: ExtensionRange, reader: jspb.BinaryReader): ExtensionRange; - } - - export namespace ExtensionRange { - export type AsObject = { - start?: number, - end?: number, - options?: ExtensionRangeOptions.AsObject, - } - } - - export class ReservedRange extends jspb.Message { - hasStart(): boolean; - clearStart(): void; - getStart(): number | undefined; - setStart(value: number): void; - - hasEnd(): boolean; - clearEnd(): void; - getEnd(): number | undefined; - setEnd(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ReservedRange.AsObject; - static toObject(includeInstance: boolean, msg: ReservedRange): ReservedRange.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ReservedRange, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ReservedRange; - static deserializeBinaryFromReader(message: ReservedRange, reader: jspb.BinaryReader): ReservedRange; - } - - export namespace ReservedRange { - export type AsObject = { - start?: number, - end?: number, - } - } -} - -export class ExtensionRangeOptions extends jspb.Message { - clearUninterpretedOptionList(): void; - getUninterpretedOptionList(): Array; - setUninterpretedOptionList(value: Array): void; - addUninterpretedOption(value?: UninterpretedOption, index?: number): UninterpretedOption; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ExtensionRangeOptions.AsObject; - static toObject(includeInstance: boolean, msg: ExtensionRangeOptions): ExtensionRangeOptions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ExtensionRangeOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ExtensionRangeOptions; - static deserializeBinaryFromReader(message: ExtensionRangeOptions, reader: jspb.BinaryReader): ExtensionRangeOptions; -} - -export namespace ExtensionRangeOptions { - export type AsObject = { - uninterpretedOptionList: Array, - } -} - -export class FieldDescriptorProto extends jspb.Message { - hasName(): boolean; - clearName(): void; - getName(): string | undefined; - setName(value: string): void; - - hasNumber(): boolean; - clearNumber(): void; - getNumber(): number | undefined; - setNumber(value: number): void; - - hasLabel(): boolean; - clearLabel(): void; - getLabel(): FieldDescriptorProto.LabelMap[keyof FieldDescriptorProto.LabelMap] | undefined; - setLabel(value: FieldDescriptorProto.LabelMap[keyof FieldDescriptorProto.LabelMap]): void; - - hasType(): boolean; - clearType(): void; - getType(): FieldDescriptorProto.TypeMap[keyof FieldDescriptorProto.TypeMap] | undefined; - setType(value: FieldDescriptorProto.TypeMap[keyof FieldDescriptorProto.TypeMap]): void; - - hasTypeName(): boolean; - clearTypeName(): void; - getTypeName(): string | undefined; - setTypeName(value: string): void; - - hasExtendee(): boolean; - clearExtendee(): void; - getExtendee(): string | undefined; - setExtendee(value: string): void; - - hasDefaultValue(): boolean; - clearDefaultValue(): void; - getDefaultValue(): string | undefined; - setDefaultValue(value: string): void; - - hasOneofIndex(): boolean; - clearOneofIndex(): void; - getOneofIndex(): number | undefined; - setOneofIndex(value: number): void; - - hasJsonName(): boolean; - clearJsonName(): void; - getJsonName(): string | undefined; - setJsonName(value: string): void; - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): FieldOptions | undefined; - setOptions(value?: FieldOptions): void; - - hasProto3Optional(): boolean; - clearProto3Optional(): void; - getProto3Optional(): boolean | undefined; - setProto3Optional(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FieldDescriptorProto.AsObject; - static toObject(includeInstance: boolean, msg: FieldDescriptorProto): FieldDescriptorProto.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FieldDescriptorProto, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FieldDescriptorProto; - static deserializeBinaryFromReader(message: FieldDescriptorProto, reader: jspb.BinaryReader): FieldDescriptorProto; -} - -export namespace FieldDescriptorProto { - export type AsObject = { - name?: string, - number?: number, - label?: FieldDescriptorProto.LabelMap[keyof FieldDescriptorProto.LabelMap], - type?: FieldDescriptorProto.TypeMap[keyof FieldDescriptorProto.TypeMap], - typeName?: string, - extendee?: string, - defaultValue?: string, - oneofIndex?: number, - jsonName?: string, - options?: FieldOptions.AsObject, - proto3Optional?: boolean, - } - - export interface TypeMap { - TYPE_DOUBLE: 1; - TYPE_FLOAT: 2; - TYPE_INT64: 3; - TYPE_UINT64: 4; - TYPE_INT32: 5; - TYPE_FIXED64: 6; - TYPE_FIXED32: 7; - TYPE_BOOL: 8; - TYPE_STRING: 9; - TYPE_GROUP: 10; - TYPE_MESSAGE: 11; - TYPE_BYTES: 12; - TYPE_UINT32: 13; - TYPE_ENUM: 14; - TYPE_SFIXED32: 15; - TYPE_SFIXED64: 16; - TYPE_SINT32: 17; - TYPE_SINT64: 18; - } - - export const Type: TypeMap; - - export interface LabelMap { - LABEL_OPTIONAL: 1; - LABEL_REQUIRED: 2; - LABEL_REPEATED: 3; - } - - export const Label: LabelMap; -} - -export class OneofDescriptorProto extends jspb.Message { - hasName(): boolean; - clearName(): void; - getName(): string | undefined; - setName(value: string): void; - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): OneofOptions | undefined; - setOptions(value?: OneofOptions): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OneofDescriptorProto.AsObject; - static toObject(includeInstance: boolean, msg: OneofDescriptorProto): OneofDescriptorProto.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OneofDescriptorProto, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OneofDescriptorProto; - static deserializeBinaryFromReader(message: OneofDescriptorProto, reader: jspb.BinaryReader): OneofDescriptorProto; -} - -export namespace OneofDescriptorProto { - export type AsObject = { - name?: string, - options?: OneofOptions.AsObject, - } -} - -export class EnumDescriptorProto extends jspb.Message { - hasName(): boolean; - clearName(): void; - getName(): string | undefined; - setName(value: string): void; - - clearValueList(): void; - getValueList(): Array; - setValueList(value: Array): void; - addValue(value?: EnumValueDescriptorProto, index?: number): EnumValueDescriptorProto; - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): EnumOptions | undefined; - setOptions(value?: EnumOptions): void; - - clearReservedRangeList(): void; - getReservedRangeList(): Array; - setReservedRangeList(value: Array): void; - addReservedRange(value?: EnumDescriptorProto.EnumReservedRange, index?: number): EnumDescriptorProto.EnumReservedRange; - - clearReservedNameList(): void; - getReservedNameList(): Array; - setReservedNameList(value: Array): void; - addReservedName(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EnumDescriptorProto.AsObject; - static toObject(includeInstance: boolean, msg: EnumDescriptorProto): EnumDescriptorProto.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EnumDescriptorProto, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EnumDescriptorProto; - static deserializeBinaryFromReader(message: EnumDescriptorProto, reader: jspb.BinaryReader): EnumDescriptorProto; -} - -export namespace EnumDescriptorProto { - export type AsObject = { - name?: string, - valueList: Array, - options?: EnumOptions.AsObject, - reservedRangeList: Array, - reservedNameList: Array, - } - - export class EnumReservedRange extends jspb.Message { - hasStart(): boolean; - clearStart(): void; - getStart(): number | undefined; - setStart(value: number): void; - - hasEnd(): boolean; - clearEnd(): void; - getEnd(): number | undefined; - setEnd(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EnumReservedRange.AsObject; - static toObject(includeInstance: boolean, msg: EnumReservedRange): EnumReservedRange.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EnumReservedRange, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EnumReservedRange; - static deserializeBinaryFromReader(message: EnumReservedRange, reader: jspb.BinaryReader): EnumReservedRange; - } - - export namespace EnumReservedRange { - export type AsObject = { - start?: number, - end?: number, - } - } -} - -export class EnumValueDescriptorProto extends jspb.Message { - hasName(): boolean; - clearName(): void; - getName(): string | undefined; - setName(value: string): void; - - hasNumber(): boolean; - clearNumber(): void; - getNumber(): number | undefined; - setNumber(value: number): void; - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): EnumValueOptions | undefined; - setOptions(value?: EnumValueOptions): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EnumValueDescriptorProto.AsObject; - static toObject(includeInstance: boolean, msg: EnumValueDescriptorProto): EnumValueDescriptorProto.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EnumValueDescriptorProto, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EnumValueDescriptorProto; - static deserializeBinaryFromReader(message: EnumValueDescriptorProto, reader: jspb.BinaryReader): EnumValueDescriptorProto; -} - -export namespace EnumValueDescriptorProto { - export type AsObject = { - name?: string, - number?: number, - options?: EnumValueOptions.AsObject, - } -} - -export class ServiceDescriptorProto extends jspb.Message { - hasName(): boolean; - clearName(): void; - getName(): string | undefined; - setName(value: string): void; - - clearMethodList(): void; - getMethodList(): Array; - setMethodList(value: Array): void; - addMethod(value?: MethodDescriptorProto, index?: number): MethodDescriptorProto; - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): ServiceOptions | undefined; - setOptions(value?: ServiceOptions): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ServiceDescriptorProto.AsObject; - static toObject(includeInstance: boolean, msg: ServiceDescriptorProto): ServiceDescriptorProto.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ServiceDescriptorProto, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ServiceDescriptorProto; - static deserializeBinaryFromReader(message: ServiceDescriptorProto, reader: jspb.BinaryReader): ServiceDescriptorProto; -} - -export namespace ServiceDescriptorProto { - export type AsObject = { - name?: string, - methodList: Array, - options?: ServiceOptions.AsObject, - } -} - -export class MethodDescriptorProto extends jspb.Message { - hasName(): boolean; - clearName(): void; - getName(): string | undefined; - setName(value: string): void; - - hasInputType(): boolean; - clearInputType(): void; - getInputType(): string | undefined; - setInputType(value: string): void; - - hasOutputType(): boolean; - clearOutputType(): void; - getOutputType(): string | undefined; - setOutputType(value: string): void; - - hasOptions(): boolean; - clearOptions(): void; - getOptions(): MethodOptions | undefined; - setOptions(value?: MethodOptions): void; - - hasClientStreaming(): boolean; - clearClientStreaming(): void; - getClientStreaming(): boolean | undefined; - setClientStreaming(value: boolean): void; - - hasServerStreaming(): boolean; - clearServerStreaming(): void; - getServerStreaming(): boolean | undefined; - setServerStreaming(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MethodDescriptorProto.AsObject; - static toObject(includeInstance: boolean, msg: MethodDescriptorProto): MethodDescriptorProto.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MethodDescriptorProto, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MethodDescriptorProto; - static deserializeBinaryFromReader(message: MethodDescriptorProto, reader: jspb.BinaryReader): MethodDescriptorProto; -} - -export namespace MethodDescriptorProto { - export type AsObject = { - name?: string, - inputType?: string, - outputType?: string, - options?: MethodOptions.AsObject, - clientStreaming?: boolean, - serverStreaming?: boolean, - } -} - -export class FileOptions extends jspb.Message { - hasJavaPackage(): boolean; - clearJavaPackage(): void; - getJavaPackage(): string | undefined; - setJavaPackage(value: string): void; - - hasJavaOuterClassname(): boolean; - clearJavaOuterClassname(): void; - getJavaOuterClassname(): string | undefined; - setJavaOuterClassname(value: string): void; - - hasJavaMultipleFiles(): boolean; - clearJavaMultipleFiles(): void; - getJavaMultipleFiles(): boolean | undefined; - setJavaMultipleFiles(value: boolean): void; - - hasJavaGenerateEqualsAndHash(): boolean; - clearJavaGenerateEqualsAndHash(): void; - getJavaGenerateEqualsAndHash(): boolean | undefined; - setJavaGenerateEqualsAndHash(value: boolean): void; - - hasJavaStringCheckUtf8(): boolean; - clearJavaStringCheckUtf8(): void; - getJavaStringCheckUtf8(): boolean | undefined; - setJavaStringCheckUtf8(value: boolean): void; - - hasOptimizeFor(): boolean; - clearOptimizeFor(): void; - getOptimizeFor(): FileOptions.OptimizeModeMap[keyof FileOptions.OptimizeModeMap] | undefined; - setOptimizeFor(value: FileOptions.OptimizeModeMap[keyof FileOptions.OptimizeModeMap]): void; - - hasGoPackage(): boolean; - clearGoPackage(): void; - getGoPackage(): string | undefined; - setGoPackage(value: string): void; - - hasCcGenericServices(): boolean; - clearCcGenericServices(): void; - getCcGenericServices(): boolean | undefined; - setCcGenericServices(value: boolean): void; - - hasJavaGenericServices(): boolean; - clearJavaGenericServices(): void; - getJavaGenericServices(): boolean | undefined; - setJavaGenericServices(value: boolean): void; - - hasPyGenericServices(): boolean; - clearPyGenericServices(): void; - getPyGenericServices(): boolean | undefined; - setPyGenericServices(value: boolean): void; - - hasPhpGenericServices(): boolean; - clearPhpGenericServices(): void; - getPhpGenericServices(): boolean | undefined; - setPhpGenericServices(value: boolean): void; - - hasDeprecated(): boolean; - clearDeprecated(): void; - getDeprecated(): boolean | undefined; - setDeprecated(value: boolean): void; - - hasCcEnableArenas(): boolean; - clearCcEnableArenas(): void; - getCcEnableArenas(): boolean | undefined; - setCcEnableArenas(value: boolean): void; - - hasObjcClassPrefix(): boolean; - clearObjcClassPrefix(): void; - getObjcClassPrefix(): string | undefined; - setObjcClassPrefix(value: string): void; - - hasCsharpNamespace(): boolean; - clearCsharpNamespace(): void; - getCsharpNamespace(): string | undefined; - setCsharpNamespace(value: string): void; - - hasSwiftPrefix(): boolean; - clearSwiftPrefix(): void; - getSwiftPrefix(): string | undefined; - setSwiftPrefix(value: string): void; - - hasPhpClassPrefix(): boolean; - clearPhpClassPrefix(): void; - getPhpClassPrefix(): string | undefined; - setPhpClassPrefix(value: string): void; - - hasPhpNamespace(): boolean; - clearPhpNamespace(): void; - getPhpNamespace(): string | undefined; - setPhpNamespace(value: string): void; - - hasPhpMetadataNamespace(): boolean; - clearPhpMetadataNamespace(): void; - getPhpMetadataNamespace(): string | undefined; - setPhpMetadataNamespace(value: string): void; - - hasRubyPackage(): boolean; - clearRubyPackage(): void; - getRubyPackage(): string | undefined; - setRubyPackage(value: string): void; - - clearUninterpretedOptionList(): void; - getUninterpretedOptionList(): Array; - setUninterpretedOptionList(value: Array): void; - addUninterpretedOption(value?: UninterpretedOption, index?: number): UninterpretedOption; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FileOptions.AsObject; - static toObject(includeInstance: boolean, msg: FileOptions): FileOptions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FileOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FileOptions; - static deserializeBinaryFromReader(message: FileOptions, reader: jspb.BinaryReader): FileOptions; -} - -export namespace FileOptions { - export type AsObject = { - javaPackage?: string, - javaOuterClassname?: string, - javaMultipleFiles?: boolean, - javaGenerateEqualsAndHash?: boolean, - javaStringCheckUtf8?: boolean, - optimizeFor?: FileOptions.OptimizeModeMap[keyof FileOptions.OptimizeModeMap], - goPackage?: string, - ccGenericServices?: boolean, - javaGenericServices?: boolean, - pyGenericServices?: boolean, - phpGenericServices?: boolean, - deprecated?: boolean, - ccEnableArenas?: boolean, - objcClassPrefix?: string, - csharpNamespace?: string, - swiftPrefix?: string, - phpClassPrefix?: string, - phpNamespace?: string, - phpMetadataNamespace?: string, - rubyPackage?: string, - uninterpretedOptionList: Array, - } - - export interface OptimizeModeMap { - SPEED: 1; - CODE_SIZE: 2; - LITE_RUNTIME: 3; - } - - export const OptimizeMode: OptimizeModeMap; -} - -export class MessageOptions extends jspb.Message { - hasMessageSetWireFormat(): boolean; - clearMessageSetWireFormat(): void; - getMessageSetWireFormat(): boolean | undefined; - setMessageSetWireFormat(value: boolean): void; - - hasNoStandardDescriptorAccessor(): boolean; - clearNoStandardDescriptorAccessor(): void; - getNoStandardDescriptorAccessor(): boolean | undefined; - setNoStandardDescriptorAccessor(value: boolean): void; - - hasDeprecated(): boolean; - clearDeprecated(): void; - getDeprecated(): boolean | undefined; - setDeprecated(value: boolean): void; - - hasMapEntry(): boolean; - clearMapEntry(): void; - getMapEntry(): boolean | undefined; - setMapEntry(value: boolean): void; - - clearUninterpretedOptionList(): void; - getUninterpretedOptionList(): Array; - setUninterpretedOptionList(value: Array): void; - addUninterpretedOption(value?: UninterpretedOption, index?: number): UninterpretedOption; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MessageOptions.AsObject; - static toObject(includeInstance: boolean, msg: MessageOptions): MessageOptions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MessageOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MessageOptions; - static deserializeBinaryFromReader(message: MessageOptions, reader: jspb.BinaryReader): MessageOptions; -} - -export namespace MessageOptions { - export type AsObject = { - messageSetWireFormat?: boolean, - noStandardDescriptorAccessor?: boolean, - deprecated?: boolean, - mapEntry?: boolean, - uninterpretedOptionList: Array, - } -} - -export class FieldOptions extends jspb.Message { - hasCtype(): boolean; - clearCtype(): void; - getCtype(): FieldOptions.CTypeMap[keyof FieldOptions.CTypeMap] | undefined; - setCtype(value: FieldOptions.CTypeMap[keyof FieldOptions.CTypeMap]): void; - - hasPacked(): boolean; - clearPacked(): void; - getPacked(): boolean | undefined; - setPacked(value: boolean): void; - - hasJstype(): boolean; - clearJstype(): void; - getJstype(): FieldOptions.JSTypeMap[keyof FieldOptions.JSTypeMap] | undefined; - setJstype(value: FieldOptions.JSTypeMap[keyof FieldOptions.JSTypeMap]): void; - - hasLazy(): boolean; - clearLazy(): void; - getLazy(): boolean | undefined; - setLazy(value: boolean): void; - - hasDeprecated(): boolean; - clearDeprecated(): void; - getDeprecated(): boolean | undefined; - setDeprecated(value: boolean): void; - - hasWeak(): boolean; - clearWeak(): void; - getWeak(): boolean | undefined; - setWeak(value: boolean): void; - - clearUninterpretedOptionList(): void; - getUninterpretedOptionList(): Array; - setUninterpretedOptionList(value: Array): void; - addUninterpretedOption(value?: UninterpretedOption, index?: number): UninterpretedOption; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FieldOptions.AsObject; - static toObject(includeInstance: boolean, msg: FieldOptions): FieldOptions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FieldOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FieldOptions; - static deserializeBinaryFromReader(message: FieldOptions, reader: jspb.BinaryReader): FieldOptions; -} - -export namespace FieldOptions { - export type AsObject = { - ctype?: FieldOptions.CTypeMap[keyof FieldOptions.CTypeMap], - packed?: boolean, - jstype?: FieldOptions.JSTypeMap[keyof FieldOptions.JSTypeMap], - lazy?: boolean, - deprecated?: boolean, - weak?: boolean, - uninterpretedOptionList: Array, - } - - export interface CTypeMap { - STRING: 0; - CORD: 1; - STRING_PIECE: 2; - } - - export const CType: CTypeMap; - - export interface JSTypeMap { - JS_NORMAL: 0; - JS_STRING: 1; - JS_NUMBER: 2; - } - - export const JSType: JSTypeMap; -} - -export class OneofOptions extends jspb.Message { - clearUninterpretedOptionList(): void; - getUninterpretedOptionList(): Array; - setUninterpretedOptionList(value: Array): void; - addUninterpretedOption(value?: UninterpretedOption, index?: number): UninterpretedOption; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OneofOptions.AsObject; - static toObject(includeInstance: boolean, msg: OneofOptions): OneofOptions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OneofOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OneofOptions; - static deserializeBinaryFromReader(message: OneofOptions, reader: jspb.BinaryReader): OneofOptions; -} - -export namespace OneofOptions { - export type AsObject = { - uninterpretedOptionList: Array, - } -} - -export class EnumOptions extends jspb.Message { - hasAllowAlias(): boolean; - clearAllowAlias(): void; - getAllowAlias(): boolean | undefined; - setAllowAlias(value: boolean): void; - - hasDeprecated(): boolean; - clearDeprecated(): void; - getDeprecated(): boolean | undefined; - setDeprecated(value: boolean): void; - - clearUninterpretedOptionList(): void; - getUninterpretedOptionList(): Array; - setUninterpretedOptionList(value: Array): void; - addUninterpretedOption(value?: UninterpretedOption, index?: number): UninterpretedOption; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EnumOptions.AsObject; - static toObject(includeInstance: boolean, msg: EnumOptions): EnumOptions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EnumOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EnumOptions; - static deserializeBinaryFromReader(message: EnumOptions, reader: jspb.BinaryReader): EnumOptions; -} - -export namespace EnumOptions { - export type AsObject = { - allowAlias?: boolean, - deprecated?: boolean, - uninterpretedOptionList: Array, - } -} - -export class EnumValueOptions extends jspb.Message { - hasDeprecated(): boolean; - clearDeprecated(): void; - getDeprecated(): boolean | undefined; - setDeprecated(value: boolean): void; - - clearUninterpretedOptionList(): void; - getUninterpretedOptionList(): Array; - setUninterpretedOptionList(value: Array): void; - addUninterpretedOption(value?: UninterpretedOption, index?: number): UninterpretedOption; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EnumValueOptions.AsObject; - static toObject(includeInstance: boolean, msg: EnumValueOptions): EnumValueOptions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EnumValueOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EnumValueOptions; - static deserializeBinaryFromReader(message: EnumValueOptions, reader: jspb.BinaryReader): EnumValueOptions; -} - -export namespace EnumValueOptions { - export type AsObject = { - deprecated?: boolean, - uninterpretedOptionList: Array, - } -} - -export class ServiceOptions extends jspb.Message { - hasDeprecated(): boolean; - clearDeprecated(): void; - getDeprecated(): boolean | undefined; - setDeprecated(value: boolean): void; - - clearUninterpretedOptionList(): void; - getUninterpretedOptionList(): Array; - setUninterpretedOptionList(value: Array): void; - addUninterpretedOption(value?: UninterpretedOption, index?: number): UninterpretedOption; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ServiceOptions.AsObject; - static toObject(includeInstance: boolean, msg: ServiceOptions): ServiceOptions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ServiceOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ServiceOptions; - static deserializeBinaryFromReader(message: ServiceOptions, reader: jspb.BinaryReader): ServiceOptions; -} - -export namespace ServiceOptions { - export type AsObject = { - deprecated?: boolean, - uninterpretedOptionList: Array, - } -} - -export class MethodOptions extends jspb.Message { - hasDeprecated(): boolean; - clearDeprecated(): void; - getDeprecated(): boolean | undefined; - setDeprecated(value: boolean): void; - - hasIdempotencyLevel(): boolean; - clearIdempotencyLevel(): void; - getIdempotencyLevel(): MethodOptions.IdempotencyLevelMap[keyof MethodOptions.IdempotencyLevelMap] | undefined; - setIdempotencyLevel(value: MethodOptions.IdempotencyLevelMap[keyof MethodOptions.IdempotencyLevelMap]): void; - - clearUninterpretedOptionList(): void; - getUninterpretedOptionList(): Array; - setUninterpretedOptionList(value: Array): void; - addUninterpretedOption(value?: UninterpretedOption, index?: number): UninterpretedOption; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MethodOptions.AsObject; - static toObject(includeInstance: boolean, msg: MethodOptions): MethodOptions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MethodOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MethodOptions; - static deserializeBinaryFromReader(message: MethodOptions, reader: jspb.BinaryReader): MethodOptions; -} - -export namespace MethodOptions { - export type AsObject = { - deprecated?: boolean, - idempotencyLevel?: MethodOptions.IdempotencyLevelMap[keyof MethodOptions.IdempotencyLevelMap], - uninterpretedOptionList: Array, - } - - export interface IdempotencyLevelMap { - IDEMPOTENCY_UNKNOWN: 0; - NO_SIDE_EFFECTS: 1; - IDEMPOTENT: 2; - } - - export const IdempotencyLevel: IdempotencyLevelMap; -} - -export class UninterpretedOption extends jspb.Message { - clearNameList(): void; - getNameList(): Array; - setNameList(value: Array): void; - addName(value?: UninterpretedOption.NamePart, index?: number): UninterpretedOption.NamePart; - - hasIdentifierValue(): boolean; - clearIdentifierValue(): void; - getIdentifierValue(): string | undefined; - setIdentifierValue(value: string): void; - - hasPositiveIntValue(): boolean; - clearPositiveIntValue(): void; - getPositiveIntValue(): number | undefined; - setPositiveIntValue(value: number): void; - - hasNegativeIntValue(): boolean; - clearNegativeIntValue(): void; - getNegativeIntValue(): number | undefined; - setNegativeIntValue(value: number): void; - - hasDoubleValue(): boolean; - clearDoubleValue(): void; - getDoubleValue(): number | undefined; - setDoubleValue(value: number): void; - - hasStringValue(): boolean; - clearStringValue(): void; - getStringValue(): Uint8Array | string; - getStringValue_asU8(): Uint8Array; - getStringValue_asB64(): string; - setStringValue(value: Uint8Array | string): void; - - hasAggregateValue(): boolean; - clearAggregateValue(): void; - getAggregateValue(): string | undefined; - setAggregateValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UninterpretedOption.AsObject; - static toObject(includeInstance: boolean, msg: UninterpretedOption): UninterpretedOption.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UninterpretedOption, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UninterpretedOption; - static deserializeBinaryFromReader(message: UninterpretedOption, reader: jspb.BinaryReader): UninterpretedOption; -} - -export namespace UninterpretedOption { - export type AsObject = { - nameList: Array, - identifierValue?: string, - positiveIntValue?: number, - negativeIntValue?: number, - doubleValue?: number, - stringValue: Uint8Array | string, - aggregateValue?: string, - } - - export class NamePart extends jspb.Message { - hasNamePart(): boolean; - clearNamePart(): void; - getNamePart(): string | undefined; - setNamePart(value: string): void; - - hasIsExtension(): boolean; - clearIsExtension(): void; - getIsExtension(): boolean | undefined; - setIsExtension(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NamePart.AsObject; - static toObject(includeInstance: boolean, msg: NamePart): NamePart.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NamePart, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NamePart; - static deserializeBinaryFromReader(message: NamePart, reader: jspb.BinaryReader): NamePart; - } - - export namespace NamePart { - export type AsObject = { - namePart?: string, - isExtension?: boolean, - } - } -} - -export class SourceCodeInfo extends jspb.Message { - clearLocationList(): void; - getLocationList(): Array; - setLocationList(value: Array): void; - addLocation(value?: SourceCodeInfo.Location, index?: number): SourceCodeInfo.Location; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SourceCodeInfo.AsObject; - static toObject(includeInstance: boolean, msg: SourceCodeInfo): SourceCodeInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SourceCodeInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SourceCodeInfo; - static deserializeBinaryFromReader(message: SourceCodeInfo, reader: jspb.BinaryReader): SourceCodeInfo; -} - -export namespace SourceCodeInfo { - export type AsObject = { - locationList: Array, - } - - export class Location extends jspb.Message { - clearPathList(): void; - getPathList(): Array; - setPathList(value: Array): void; - addPath(value: number, index?: number): number; - - clearSpanList(): void; - getSpanList(): Array; - setSpanList(value: Array): void; - addSpan(value: number, index?: number): number; - - hasLeadingComments(): boolean; - clearLeadingComments(): void; - getLeadingComments(): string | undefined; - setLeadingComments(value: string): void; - - hasTrailingComments(): boolean; - clearTrailingComments(): void; - getTrailingComments(): string | undefined; - setTrailingComments(value: string): void; - - clearLeadingDetachedCommentsList(): void; - getLeadingDetachedCommentsList(): Array; - setLeadingDetachedCommentsList(value: Array): void; - addLeadingDetachedComments(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Location.AsObject; - static toObject(includeInstance: boolean, msg: Location): Location.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Location, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Location; - static deserializeBinaryFromReader(message: Location, reader: jspb.BinaryReader): Location; - } - - export namespace Location { - export type AsObject = { - pathList: Array, - spanList: Array, - leadingComments?: string, - trailingComments?: string, - leadingDetachedCommentsList: Array, - } - } -} - -export class GeneratedCodeInfo extends jspb.Message { - clearAnnotationList(): void; - getAnnotationList(): Array; - setAnnotationList(value: Array): void; - addAnnotation(value?: GeneratedCodeInfo.Annotation, index?: number): GeneratedCodeInfo.Annotation; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GeneratedCodeInfo.AsObject; - static toObject(includeInstance: boolean, msg: GeneratedCodeInfo): GeneratedCodeInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GeneratedCodeInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GeneratedCodeInfo; - static deserializeBinaryFromReader(message: GeneratedCodeInfo, reader: jspb.BinaryReader): GeneratedCodeInfo; -} - -export namespace GeneratedCodeInfo { - export type AsObject = { - annotationList: Array, - } - - export class Annotation extends jspb.Message { - clearPathList(): void; - getPathList(): Array; - setPathList(value: Array): void; - addPath(value: number, index?: number): number; - - hasSourceFile(): boolean; - clearSourceFile(): void; - getSourceFile(): string | undefined; - setSourceFile(value: string): void; - - hasBegin(): boolean; - clearBegin(): void; - getBegin(): number | undefined; - setBegin(value: number): void; - - hasEnd(): boolean; - clearEnd(): void; - getEnd(): number | undefined; - setEnd(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Annotation.AsObject; - static toObject(includeInstance: boolean, msg: Annotation): Annotation.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Annotation, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Annotation; - static deserializeBinaryFromReader(message: Annotation, reader: jspb.BinaryReader): Annotation; - } - - export namespace Annotation { - export type AsObject = { - pathList: Array, - sourceFile?: string, - begin?: number, - end?: number, - } - } -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/descriptor_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/descriptor_pb.js deleted file mode 100644 index 221e503f27..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/descriptor_pb.js +++ /dev/null @@ -1,10057 +0,0 @@ -// source: google/protobuf/descriptor.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.protobuf.DescriptorProto', null, global); -goog.exportSymbol('proto.google.protobuf.DescriptorProto.ExtensionRange', null, global); -goog.exportSymbol('proto.google.protobuf.DescriptorProto.ReservedRange', null, global); -goog.exportSymbol('proto.google.protobuf.EnumDescriptorProto', null, global); -goog.exportSymbol('proto.google.protobuf.EnumDescriptorProto.EnumReservedRange', null, global); -goog.exportSymbol('proto.google.protobuf.EnumOptions', null, global); -goog.exportSymbol('proto.google.protobuf.EnumValueDescriptorProto', null, global); -goog.exportSymbol('proto.google.protobuf.EnumValueOptions', null, global); -goog.exportSymbol('proto.google.protobuf.ExtensionRangeOptions', null, global); -goog.exportSymbol('proto.google.protobuf.FieldDescriptorProto', null, global); -goog.exportSymbol('proto.google.protobuf.FieldDescriptorProto.Label', null, global); -goog.exportSymbol('proto.google.protobuf.FieldDescriptorProto.Type', null, global); -goog.exportSymbol('proto.google.protobuf.FieldOptions', null, global); -goog.exportSymbol('proto.google.protobuf.FieldOptions.CType', null, global); -goog.exportSymbol('proto.google.protobuf.FieldOptions.JSType', null, global); -goog.exportSymbol('proto.google.protobuf.FileDescriptorProto', null, global); -goog.exportSymbol('proto.google.protobuf.FileDescriptorSet', null, global); -goog.exportSymbol('proto.google.protobuf.FileOptions', null, global); -goog.exportSymbol('proto.google.protobuf.FileOptions.OptimizeMode', null, global); -goog.exportSymbol('proto.google.protobuf.GeneratedCodeInfo', null, global); -goog.exportSymbol('proto.google.protobuf.GeneratedCodeInfo.Annotation', null, global); -goog.exportSymbol('proto.google.protobuf.MessageOptions', null, global); -goog.exportSymbol('proto.google.protobuf.MethodDescriptorProto', null, global); -goog.exportSymbol('proto.google.protobuf.MethodOptions', null, global); -goog.exportSymbol('proto.google.protobuf.MethodOptions.IdempotencyLevel', null, global); -goog.exportSymbol('proto.google.protobuf.OneofDescriptorProto', null, global); -goog.exportSymbol('proto.google.protobuf.OneofOptions', null, global); -goog.exportSymbol('proto.google.protobuf.ServiceDescriptorProto', null, global); -goog.exportSymbol('proto.google.protobuf.ServiceOptions', null, global); -goog.exportSymbol('proto.google.protobuf.SourceCodeInfo', null, global); -goog.exportSymbol('proto.google.protobuf.SourceCodeInfo.Location', null, global); -goog.exportSymbol('proto.google.protobuf.UninterpretedOption', null, global); -goog.exportSymbol('proto.google.protobuf.UninterpretedOption.NamePart', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.FileDescriptorSet = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.FileDescriptorSet.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.FileDescriptorSet, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.FileDescriptorSet.displayName = 'proto.google.protobuf.FileDescriptorSet'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.FileDescriptorProto = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.FileDescriptorProto.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.FileDescriptorProto, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.FileDescriptorProto.displayName = 'proto.google.protobuf.FileDescriptorProto'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.DescriptorProto = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.DescriptorProto.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.DescriptorProto, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.DescriptorProto.displayName = 'proto.google.protobuf.DescriptorProto'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.DescriptorProto.ExtensionRange = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.DescriptorProto.ExtensionRange, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.DescriptorProto.ExtensionRange.displayName = 'proto.google.protobuf.DescriptorProto.ExtensionRange'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.DescriptorProto.ReservedRange = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.DescriptorProto.ReservedRange, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.DescriptorProto.ReservedRange.displayName = 'proto.google.protobuf.DescriptorProto.ReservedRange'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.ExtensionRangeOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.ExtensionRangeOptions.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.ExtensionRangeOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.ExtensionRangeOptions.displayName = 'proto.google.protobuf.ExtensionRangeOptions'; -} - -/** - * The extensions registered with this message class. This is a map of - * extension field number to fieldInfo object. - * - * For example: - * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } - * - * fieldName contains the JsCompiler renamed field name property so that it - * works in OPTIMIZED mode. - * - * @type {!Object} - */ -proto.google.protobuf.ExtensionRangeOptions.extensions = {}; - - -/** - * The extensions registered with this message class. This is a map of - * extension field number to fieldInfo object. - * - * For example: - * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } - * - * fieldName contains the JsCompiler renamed field name property so that it - * works in OPTIMIZED mode. - * - * @type {!Object} - */ -proto.google.protobuf.ExtensionRangeOptions.extensionsBinary = {}; - -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.FieldDescriptorProto = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.FieldDescriptorProto, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.FieldDescriptorProto.displayName = 'proto.google.protobuf.FieldDescriptorProto'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.OneofDescriptorProto = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.OneofDescriptorProto, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.OneofDescriptorProto.displayName = 'proto.google.protobuf.OneofDescriptorProto'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.EnumDescriptorProto = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.EnumDescriptorProto.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.EnumDescriptorProto, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.EnumDescriptorProto.displayName = 'proto.google.protobuf.EnumDescriptorProto'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.EnumDescriptorProto.EnumReservedRange = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.displayName = 'proto.google.protobuf.EnumDescriptorProto.EnumReservedRange'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.EnumValueDescriptorProto = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.EnumValueDescriptorProto, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.EnumValueDescriptorProto.displayName = 'proto.google.protobuf.EnumValueDescriptorProto'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.ServiceDescriptorProto = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.ServiceDescriptorProto.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.ServiceDescriptorProto, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.ServiceDescriptorProto.displayName = 'proto.google.protobuf.ServiceDescriptorProto'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.MethodDescriptorProto = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.MethodDescriptorProto, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.MethodDescriptorProto.displayName = 'proto.google.protobuf.MethodDescriptorProto'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.FileOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.FileOptions.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.FileOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.FileOptions.displayName = 'proto.google.protobuf.FileOptions'; -} - -/** - * The extensions registered with this message class. This is a map of - * extension field number to fieldInfo object. - * - * For example: - * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } - * - * fieldName contains the JsCompiler renamed field name property so that it - * works in OPTIMIZED mode. - * - * @type {!Object} - */ -proto.google.protobuf.FileOptions.extensions = {}; - - -/** - * The extensions registered with this message class. This is a map of - * extension field number to fieldInfo object. - * - * For example: - * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } - * - * fieldName contains the JsCompiler renamed field name property so that it - * works in OPTIMIZED mode. - * - * @type {!Object} - */ -proto.google.protobuf.FileOptions.extensionsBinary = {}; - -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.MessageOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.MessageOptions.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.MessageOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.MessageOptions.displayName = 'proto.google.protobuf.MessageOptions'; -} - -/** - * The extensions registered with this message class. This is a map of - * extension field number to fieldInfo object. - * - * For example: - * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } - * - * fieldName contains the JsCompiler renamed field name property so that it - * works in OPTIMIZED mode. - * - * @type {!Object} - */ -proto.google.protobuf.MessageOptions.extensions = {}; - - -/** - * The extensions registered with this message class. This is a map of - * extension field number to fieldInfo object. - * - * For example: - * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } - * - * fieldName contains the JsCompiler renamed field name property so that it - * works in OPTIMIZED mode. - * - * @type {!Object} - */ -proto.google.protobuf.MessageOptions.extensionsBinary = {}; - -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.FieldOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.FieldOptions.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.FieldOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.FieldOptions.displayName = 'proto.google.protobuf.FieldOptions'; -} - -/** - * The extensions registered with this message class. This is a map of - * extension field number to fieldInfo object. - * - * For example: - * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } - * - * fieldName contains the JsCompiler renamed field name property so that it - * works in OPTIMIZED mode. - * - * @type {!Object} - */ -proto.google.protobuf.FieldOptions.extensions = {}; - - -/** - * The extensions registered with this message class. This is a map of - * extension field number to fieldInfo object. - * - * For example: - * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } - * - * fieldName contains the JsCompiler renamed field name property so that it - * works in OPTIMIZED mode. - * - * @type {!Object} - */ -proto.google.protobuf.FieldOptions.extensionsBinary = {}; - -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.OneofOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.OneofOptions.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.OneofOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.OneofOptions.displayName = 'proto.google.protobuf.OneofOptions'; -} - -/** - * The extensions registered with this message class. This is a map of - * extension field number to fieldInfo object. - * - * For example: - * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } - * - * fieldName contains the JsCompiler renamed field name property so that it - * works in OPTIMIZED mode. - * - * @type {!Object} - */ -proto.google.protobuf.OneofOptions.extensions = {}; - - -/** - * The extensions registered with this message class. This is a map of - * extension field number to fieldInfo object. - * - * For example: - * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } - * - * fieldName contains the JsCompiler renamed field name property so that it - * works in OPTIMIZED mode. - * - * @type {!Object} - */ -proto.google.protobuf.OneofOptions.extensionsBinary = {}; - -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.EnumOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.EnumOptions.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.EnumOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.EnumOptions.displayName = 'proto.google.protobuf.EnumOptions'; -} - -/** - * The extensions registered with this message class. This is a map of - * extension field number to fieldInfo object. - * - * For example: - * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } - * - * fieldName contains the JsCompiler renamed field name property so that it - * works in OPTIMIZED mode. - * - * @type {!Object} - */ -proto.google.protobuf.EnumOptions.extensions = {}; - - -/** - * The extensions registered with this message class. This is a map of - * extension field number to fieldInfo object. - * - * For example: - * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } - * - * fieldName contains the JsCompiler renamed field name property so that it - * works in OPTIMIZED mode. - * - * @type {!Object} - */ -proto.google.protobuf.EnumOptions.extensionsBinary = {}; - -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.EnumValueOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.EnumValueOptions.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.EnumValueOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.EnumValueOptions.displayName = 'proto.google.protobuf.EnumValueOptions'; -} - -/** - * The extensions registered with this message class. This is a map of - * extension field number to fieldInfo object. - * - * For example: - * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } - * - * fieldName contains the JsCompiler renamed field name property so that it - * works in OPTIMIZED mode. - * - * @type {!Object} - */ -proto.google.protobuf.EnumValueOptions.extensions = {}; - - -/** - * The extensions registered with this message class. This is a map of - * extension field number to fieldInfo object. - * - * For example: - * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } - * - * fieldName contains the JsCompiler renamed field name property so that it - * works in OPTIMIZED mode. - * - * @type {!Object} - */ -proto.google.protobuf.EnumValueOptions.extensionsBinary = {}; - -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.ServiceOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.ServiceOptions.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.ServiceOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.ServiceOptions.displayName = 'proto.google.protobuf.ServiceOptions'; -} - -/** - * The extensions registered with this message class. This is a map of - * extension field number to fieldInfo object. - * - * For example: - * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } - * - * fieldName contains the JsCompiler renamed field name property so that it - * works in OPTIMIZED mode. - * - * @type {!Object} - */ -proto.google.protobuf.ServiceOptions.extensions = {}; - - -/** - * The extensions registered with this message class. This is a map of - * extension field number to fieldInfo object. - * - * For example: - * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } - * - * fieldName contains the JsCompiler renamed field name property so that it - * works in OPTIMIZED mode. - * - * @type {!Object} - */ -proto.google.protobuf.ServiceOptions.extensionsBinary = {}; - -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.MethodOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.MethodOptions.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.MethodOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.MethodOptions.displayName = 'proto.google.protobuf.MethodOptions'; -} - -/** - * The extensions registered with this message class. This is a map of - * extension field number to fieldInfo object. - * - * For example: - * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } - * - * fieldName contains the JsCompiler renamed field name property so that it - * works in OPTIMIZED mode. - * - * @type {!Object} - */ -proto.google.protobuf.MethodOptions.extensions = {}; - - -/** - * The extensions registered with this message class. This is a map of - * extension field number to fieldInfo object. - * - * For example: - * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } - * - * fieldName contains the JsCompiler renamed field name property so that it - * works in OPTIMIZED mode. - * - * @type {!Object} - */ -proto.google.protobuf.MethodOptions.extensionsBinary = {}; - -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.UninterpretedOption = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.UninterpretedOption.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.UninterpretedOption, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.UninterpretedOption.displayName = 'proto.google.protobuf.UninterpretedOption'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.UninterpretedOption.NamePart = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.UninterpretedOption.NamePart, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.UninterpretedOption.NamePart.displayName = 'proto.google.protobuf.UninterpretedOption.NamePart'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.SourceCodeInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.SourceCodeInfo.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.SourceCodeInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.SourceCodeInfo.displayName = 'proto.google.protobuf.SourceCodeInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.SourceCodeInfo.Location = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.SourceCodeInfo.Location.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.SourceCodeInfo.Location, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.SourceCodeInfo.Location.displayName = 'proto.google.protobuf.SourceCodeInfo.Location'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.GeneratedCodeInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.GeneratedCodeInfo.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.GeneratedCodeInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.GeneratedCodeInfo.displayName = 'proto.google.protobuf.GeneratedCodeInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.GeneratedCodeInfo.Annotation.repeatedFields_, null); -}; -goog.inherits(proto.google.protobuf.GeneratedCodeInfo.Annotation, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.GeneratedCodeInfo.Annotation.displayName = 'proto.google.protobuf.GeneratedCodeInfo.Annotation'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.FileDescriptorSet.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.FileDescriptorSet.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.FileDescriptorSet.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.FileDescriptorSet} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.FileDescriptorSet.toObject = function(includeInstance, msg) { - var f, obj = { - fileList: jspb.Message.toObjectList(msg.getFileList(), - proto.google.protobuf.FileDescriptorProto.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.FileDescriptorSet} - */ -proto.google.protobuf.FileDescriptorSet.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.FileDescriptorSet; - return proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.FileDescriptorSet} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.FileDescriptorSet} - */ -proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.protobuf.FileDescriptorProto; - reader.readMessage(value,proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader); - msg.addFile(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.FileDescriptorSet.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.FileDescriptorSet} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFileList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated FileDescriptorProto file = 1; - * @return {!Array} - */ -proto.google.protobuf.FileDescriptorSet.prototype.getFileList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.FileDescriptorProto, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.FileDescriptorSet} returns this -*/ -proto.google.protobuf.FileDescriptorSet.prototype.setFileList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.protobuf.FileDescriptorProto=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.FileDescriptorProto} - */ -proto.google.protobuf.FileDescriptorSet.prototype.addFile = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.FileDescriptorProto, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.FileDescriptorSet} returns this - */ -proto.google.protobuf.FileDescriptorSet.prototype.clearFileList = function() { - return this.setFileList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.FileDescriptorProto.repeatedFields_ = [3,10,11,4,5,6,7]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.FileDescriptorProto.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.FileDescriptorProto.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.FileDescriptorProto} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.FileDescriptorProto.toObject = function(includeInstance, msg) { - var f, obj = { - name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, - pb_package: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f, - dependencyList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - publicDependencyList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f, - weakDependencyList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f, - messageTypeList: jspb.Message.toObjectList(msg.getMessageTypeList(), - proto.google.protobuf.DescriptorProto.toObject, includeInstance), - enumTypeList: jspb.Message.toObjectList(msg.getEnumTypeList(), - proto.google.protobuf.EnumDescriptorProto.toObject, includeInstance), - serviceList: jspb.Message.toObjectList(msg.getServiceList(), - proto.google.protobuf.ServiceDescriptorProto.toObject, includeInstance), - extensionList: jspb.Message.toObjectList(msg.getExtensionList(), - proto.google.protobuf.FieldDescriptorProto.toObject, includeInstance), - options: (f = msg.getOptions()) && proto.google.protobuf.FileOptions.toObject(includeInstance, f), - sourceCodeInfo: (f = msg.getSourceCodeInfo()) && proto.google.protobuf.SourceCodeInfo.toObject(includeInstance, f), - syntax: (f = jspb.Message.getField(msg, 12)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.FileDescriptorProto} - */ -proto.google.protobuf.FileDescriptorProto.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.FileDescriptorProto; - return proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.FileDescriptorProto} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.FileDescriptorProto} - */ -proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPackage(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addDependency(value); - break; - case 10: - var value = /** @type {number} */ (reader.readInt32()); - msg.addPublicDependency(value); - break; - case 11: - var value = /** @type {number} */ (reader.readInt32()); - msg.addWeakDependency(value); - break; - case 4: - var value = new proto.google.protobuf.DescriptorProto; - reader.readMessage(value,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader); - msg.addMessageType(value); - break; - case 5: - var value = new proto.google.protobuf.EnumDescriptorProto; - reader.readMessage(value,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader); - msg.addEnumType(value); - break; - case 6: - var value = new proto.google.protobuf.ServiceDescriptorProto; - reader.readMessage(value,proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader); - msg.addService(value); - break; - case 7: - var value = new proto.google.protobuf.FieldDescriptorProto; - reader.readMessage(value,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader); - msg.addExtension$(value); - break; - case 8: - var value = new proto.google.protobuf.FileOptions; - reader.readMessage(value,proto.google.protobuf.FileOptions.deserializeBinaryFromReader); - msg.setOptions(value); - break; - case 9: - var value = new proto.google.protobuf.SourceCodeInfo; - reader.readMessage(value,proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader); - msg.setSourceCodeInfo(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setSyntax(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.FileDescriptorProto.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.FileDescriptorProto} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeString( - 2, - f - ); - } - f = message.getDependencyList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } - f = message.getPublicDependencyList(); - if (f.length > 0) { - writer.writeRepeatedInt32( - 10, - f - ); - } - f = message.getWeakDependencyList(); - if (f.length > 0) { - writer.writeRepeatedInt32( - 11, - f - ); - } - f = message.getMessageTypeList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.google.protobuf.DescriptorProto.serializeBinaryToWriter - ); - } - f = message.getEnumTypeList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter - ); - } - f = message.getServiceList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter - ); - } - f = message.getExtensionList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter - ); - } - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.google.protobuf.FileOptions.serializeBinaryToWriter - ); - } - f = message.getSourceCodeInfo(); - if (f != null) { - writer.writeMessage( - 9, - f, - proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 12)); - if (f != null) { - writer.writeString( - 12, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.protobuf.FileDescriptorProto.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.setName = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.clearName = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileDescriptorProto.prototype.hasName = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string package = 2; - * @return {string} - */ -proto.google.protobuf.FileDescriptorProto.prototype.getPackage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.setPackage = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.clearPackage = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileDescriptorProto.prototype.hasPackage = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * repeated string dependency = 3; - * @return {!Array} - */ -proto.google.protobuf.FileDescriptorProto.prototype.getDependencyList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.setDependencyList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.addDependency = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.clearDependencyList = function() { - return this.setDependencyList([]); -}; - - -/** - * repeated int32 public_dependency = 10; - * @return {!Array} - */ -proto.google.protobuf.FileDescriptorProto.prototype.getPublicDependencyList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 10)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.setPublicDependencyList = function(value) { - return jspb.Message.setField(this, 10, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.addPublicDependency = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 10, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.clearPublicDependencyList = function() { - return this.setPublicDependencyList([]); -}; - - -/** - * repeated int32 weak_dependency = 11; - * @return {!Array} - */ -proto.google.protobuf.FileDescriptorProto.prototype.getWeakDependencyList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 11)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.setWeakDependencyList = function(value) { - return jspb.Message.setField(this, 11, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.addWeakDependency = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 11, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.clearWeakDependencyList = function() { - return this.setWeakDependencyList([]); -}; - - -/** - * repeated DescriptorProto message_type = 4; - * @return {!Array} - */ -proto.google.protobuf.FileDescriptorProto.prototype.getMessageTypeList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.DescriptorProto, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.FileDescriptorProto} returns this -*/ -proto.google.protobuf.FileDescriptorProto.prototype.setMessageTypeList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.google.protobuf.DescriptorProto=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.DescriptorProto} - */ -proto.google.protobuf.FileDescriptorProto.prototype.addMessageType = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.protobuf.DescriptorProto, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.clearMessageTypeList = function() { - return this.setMessageTypeList([]); -}; - - -/** - * repeated EnumDescriptorProto enum_type = 5; - * @return {!Array} - */ -proto.google.protobuf.FileDescriptorProto.prototype.getEnumTypeList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.EnumDescriptorProto, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.FileDescriptorProto} returns this -*/ -proto.google.protobuf.FileDescriptorProto.prototype.setEnumTypeList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.google.protobuf.EnumDescriptorProto=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.EnumDescriptorProto} - */ -proto.google.protobuf.FileDescriptorProto.prototype.addEnumType = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.protobuf.EnumDescriptorProto, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.clearEnumTypeList = function() { - return this.setEnumTypeList([]); -}; - - -/** - * repeated ServiceDescriptorProto service = 6; - * @return {!Array} - */ -proto.google.protobuf.FileDescriptorProto.prototype.getServiceList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.ServiceDescriptorProto, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.FileDescriptorProto} returns this -*/ -proto.google.protobuf.FileDescriptorProto.prototype.setServiceList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.google.protobuf.ServiceDescriptorProto=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.ServiceDescriptorProto} - */ -proto.google.protobuf.FileDescriptorProto.prototype.addService = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.google.protobuf.ServiceDescriptorProto, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.clearServiceList = function() { - return this.setServiceList([]); -}; - - -/** - * repeated FieldDescriptorProto extension = 7; - * @return {!Array} - */ -proto.google.protobuf.FileDescriptorProto.prototype.getExtensionList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.FieldDescriptorProto, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.FileDescriptorProto} returns this -*/ -proto.google.protobuf.FileDescriptorProto.prototype.setExtensionList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); -}; - - -/** - * @param {!proto.google.protobuf.FieldDescriptorProto=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.FieldDescriptorProto} - */ -proto.google.protobuf.FileDescriptorProto.prototype.addExtension$ = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.google.protobuf.FieldDescriptorProto, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.clearExtensionList = function() { - return this.setExtensionList([]); -}; - - -/** - * optional FileOptions options = 8; - * @return {?proto.google.protobuf.FileOptions} - */ -proto.google.protobuf.FileDescriptorProto.prototype.getOptions = function() { - return /** @type{?proto.google.protobuf.FileOptions} */ ( - jspb.Message.getWrapperField(this, proto.google.protobuf.FileOptions, 8)); -}; - - -/** - * @param {?proto.google.protobuf.FileOptions|undefined} value - * @return {!proto.google.protobuf.FileDescriptorProto} returns this -*/ -proto.google.protobuf.FileDescriptorProto.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileDescriptorProto.prototype.hasOptions = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional SourceCodeInfo source_code_info = 9; - * @return {?proto.google.protobuf.SourceCodeInfo} - */ -proto.google.protobuf.FileDescriptorProto.prototype.getSourceCodeInfo = function() { - return /** @type{?proto.google.protobuf.SourceCodeInfo} */ ( - jspb.Message.getWrapperField(this, proto.google.protobuf.SourceCodeInfo, 9)); -}; - - -/** - * @param {?proto.google.protobuf.SourceCodeInfo|undefined} value - * @return {!proto.google.protobuf.FileDescriptorProto} returns this -*/ -proto.google.protobuf.FileDescriptorProto.prototype.setSourceCodeInfo = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.clearSourceCodeInfo = function() { - return this.setSourceCodeInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileDescriptorProto.prototype.hasSourceCodeInfo = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional string syntax = 12; - * @return {string} - */ -proto.google.protobuf.FileDescriptorProto.prototype.getSyntax = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.setSyntax = function(value) { - return jspb.Message.setField(this, 12, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileDescriptorProto} returns this - */ -proto.google.protobuf.FileDescriptorProto.prototype.clearSyntax = function() { - return jspb.Message.setField(this, 12, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileDescriptorProto.prototype.hasSyntax = function() { - return jspb.Message.getField(this, 12) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.DescriptorProto.repeatedFields_ = [2,6,3,4,5,8,9,10]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.DescriptorProto.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.DescriptorProto.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.DescriptorProto} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.DescriptorProto.toObject = function(includeInstance, msg) { - var f, obj = { - name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, - fieldList: jspb.Message.toObjectList(msg.getFieldList(), - proto.google.protobuf.FieldDescriptorProto.toObject, includeInstance), - extensionList: jspb.Message.toObjectList(msg.getExtensionList(), - proto.google.protobuf.FieldDescriptorProto.toObject, includeInstance), - nestedTypeList: jspb.Message.toObjectList(msg.getNestedTypeList(), - proto.google.protobuf.DescriptorProto.toObject, includeInstance), - enumTypeList: jspb.Message.toObjectList(msg.getEnumTypeList(), - proto.google.protobuf.EnumDescriptorProto.toObject, includeInstance), - extensionRangeList: jspb.Message.toObjectList(msg.getExtensionRangeList(), - proto.google.protobuf.DescriptorProto.ExtensionRange.toObject, includeInstance), - oneofDeclList: jspb.Message.toObjectList(msg.getOneofDeclList(), - proto.google.protobuf.OneofDescriptorProto.toObject, includeInstance), - options: (f = msg.getOptions()) && proto.google.protobuf.MessageOptions.toObject(includeInstance, f), - reservedRangeList: jspb.Message.toObjectList(msg.getReservedRangeList(), - proto.google.protobuf.DescriptorProto.ReservedRange.toObject, includeInstance), - reservedNameList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.DescriptorProto} - */ -proto.google.protobuf.DescriptorProto.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.DescriptorProto; - return proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.DescriptorProto} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.DescriptorProto} - */ -proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = new proto.google.protobuf.FieldDescriptorProto; - reader.readMessage(value,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader); - msg.addField(value); - break; - case 6: - var value = new proto.google.protobuf.FieldDescriptorProto; - reader.readMessage(value,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader); - msg.addExtension$(value); - break; - case 3: - var value = new proto.google.protobuf.DescriptorProto; - reader.readMessage(value,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader); - msg.addNestedType(value); - break; - case 4: - var value = new proto.google.protobuf.EnumDescriptorProto; - reader.readMessage(value,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader); - msg.addEnumType(value); - break; - case 5: - var value = new proto.google.protobuf.DescriptorProto.ExtensionRange; - reader.readMessage(value,proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader); - msg.addExtensionRange(value); - break; - case 8: - var value = new proto.google.protobuf.OneofDescriptorProto; - reader.readMessage(value,proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader); - msg.addOneofDecl(value); - break; - case 7: - var value = new proto.google.protobuf.MessageOptions; - reader.readMessage(value,proto.google.protobuf.MessageOptions.deserializeBinaryFromReader); - msg.setOptions(value); - break; - case 9: - var value = new proto.google.protobuf.DescriptorProto.ReservedRange; - reader.readMessage(value,proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader); - msg.addReservedRange(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.addReservedName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.DescriptorProto.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.DescriptorProto.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.DescriptorProto} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.DescriptorProto.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = message.getFieldList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter - ); - } - f = message.getExtensionList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter - ); - } - f = message.getNestedTypeList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.google.protobuf.DescriptorProto.serializeBinaryToWriter - ); - } - f = message.getEnumTypeList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter - ); - } - f = message.getExtensionRangeList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter - ); - } - f = message.getOneofDeclList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 8, - f, - proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter - ); - } - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.google.protobuf.MessageOptions.serializeBinaryToWriter - ); - } - f = message.getReservedRangeList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 9, - f, - proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter - ); - } - f = message.getReservedNameList(); - if (f.length > 0) { - writer.writeRepeatedString( - 10, - f - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.DescriptorProto.ExtensionRange.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.DescriptorProto.ExtensionRange} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.DescriptorProto.ExtensionRange.toObject = function(includeInstance, msg) { - var f, obj = { - start: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, - end: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f, - options: (f = msg.getOptions()) && proto.google.protobuf.ExtensionRangeOptions.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} - */ -proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.DescriptorProto.ExtensionRange; - return proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.DescriptorProto.ExtensionRange} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} - */ -proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setStart(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setEnd(value); - break; - case 3: - var value = new proto.google.protobuf.ExtensionRangeOptions; - reader.readMessage(value,proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader); - msg.setOptions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.DescriptorProto.ExtensionRange} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {number} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeInt32( - 1, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeInt32( - 2, - f - ); - } - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 start = 1; - * @return {number} - */ -proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getStart = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} returns this - */ -proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setStart = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} returns this - */ -proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearStart = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasStart = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional int32 end = 2; - * @return {number} - */ -proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getEnd = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} returns this - */ -proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setEnd = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} returns this - */ -proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearEnd = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasEnd = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional ExtensionRangeOptions options = 3; - * @return {?proto.google.protobuf.ExtensionRangeOptions} - */ -proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getOptions = function() { - return /** @type{?proto.google.protobuf.ExtensionRangeOptions} */ ( - jspb.Message.getWrapperField(this, proto.google.protobuf.ExtensionRangeOptions, 3)); -}; - - -/** - * @param {?proto.google.protobuf.ExtensionRangeOptions|undefined} value - * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} returns this -*/ -proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} returns this - */ -proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasOptions = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.DescriptorProto.ReservedRange.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.DescriptorProto.ReservedRange.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.DescriptorProto.ReservedRange} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.DescriptorProto.ReservedRange.toObject = function(includeInstance, msg) { - var f, obj = { - start: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, - end: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.DescriptorProto.ReservedRange} - */ -proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.DescriptorProto.ReservedRange; - return proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.DescriptorProto.ReservedRange} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.DescriptorProto.ReservedRange} - */ -proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setStart(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setEnd(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.DescriptorProto.ReservedRange.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.DescriptorProto.ReservedRange} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {number} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeInt32( - 1, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeInt32( - 2, - f - ); - } -}; - - -/** - * optional int32 start = 1; - * @return {number} - */ -proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getStart = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.DescriptorProto.ReservedRange} returns this - */ -proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setStart = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.DescriptorProto.ReservedRange} returns this - */ -proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearStart = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasStart = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional int32 end = 2; - * @return {number} - */ -proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getEnd = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.DescriptorProto.ReservedRange} returns this - */ -proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setEnd = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.DescriptorProto.ReservedRange} returns this - */ -proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearEnd = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasEnd = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.protobuf.DescriptorProto.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.DescriptorProto} returns this - */ -proto.google.protobuf.DescriptorProto.prototype.setName = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.DescriptorProto} returns this - */ -proto.google.protobuf.DescriptorProto.prototype.clearName = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.DescriptorProto.prototype.hasName = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated FieldDescriptorProto field = 2; - * @return {!Array} - */ -proto.google.protobuf.DescriptorProto.prototype.getFieldList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.FieldDescriptorProto, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.DescriptorProto} returns this -*/ -proto.google.protobuf.DescriptorProto.prototype.setFieldList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.protobuf.FieldDescriptorProto=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.FieldDescriptorProto} - */ -proto.google.protobuf.DescriptorProto.prototype.addField = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.FieldDescriptorProto, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.DescriptorProto} returns this - */ -proto.google.protobuf.DescriptorProto.prototype.clearFieldList = function() { - return this.setFieldList([]); -}; - - -/** - * repeated FieldDescriptorProto extension = 6; - * @return {!Array} - */ -proto.google.protobuf.DescriptorProto.prototype.getExtensionList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.FieldDescriptorProto, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.DescriptorProto} returns this -*/ -proto.google.protobuf.DescriptorProto.prototype.setExtensionList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.google.protobuf.FieldDescriptorProto=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.FieldDescriptorProto} - */ -proto.google.protobuf.DescriptorProto.prototype.addExtension$ = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.google.protobuf.FieldDescriptorProto, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.DescriptorProto} returns this - */ -proto.google.protobuf.DescriptorProto.prototype.clearExtensionList = function() { - return this.setExtensionList([]); -}; - - -/** - * repeated DescriptorProto nested_type = 3; - * @return {!Array} - */ -proto.google.protobuf.DescriptorProto.prototype.getNestedTypeList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.DescriptorProto, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.DescriptorProto} returns this -*/ -proto.google.protobuf.DescriptorProto.prototype.setNestedTypeList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.google.protobuf.DescriptorProto=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.DescriptorProto} - */ -proto.google.protobuf.DescriptorProto.prototype.addNestedType = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.DescriptorProto, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.DescriptorProto} returns this - */ -proto.google.protobuf.DescriptorProto.prototype.clearNestedTypeList = function() { - return this.setNestedTypeList([]); -}; - - -/** - * repeated EnumDescriptorProto enum_type = 4; - * @return {!Array} - */ -proto.google.protobuf.DescriptorProto.prototype.getEnumTypeList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.EnumDescriptorProto, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.DescriptorProto} returns this -*/ -proto.google.protobuf.DescriptorProto.prototype.setEnumTypeList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.google.protobuf.EnumDescriptorProto=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.EnumDescriptorProto} - */ -proto.google.protobuf.DescriptorProto.prototype.addEnumType = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.protobuf.EnumDescriptorProto, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.DescriptorProto} returns this - */ -proto.google.protobuf.DescriptorProto.prototype.clearEnumTypeList = function() { - return this.setEnumTypeList([]); -}; - - -/** - * repeated ExtensionRange extension_range = 5; - * @return {!Array} - */ -proto.google.protobuf.DescriptorProto.prototype.getExtensionRangeList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.DescriptorProto.ExtensionRange, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.DescriptorProto} returns this -*/ -proto.google.protobuf.DescriptorProto.prototype.setExtensionRangeList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.google.protobuf.DescriptorProto.ExtensionRange=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} - */ -proto.google.protobuf.DescriptorProto.prototype.addExtensionRange = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.protobuf.DescriptorProto.ExtensionRange, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.DescriptorProto} returns this - */ -proto.google.protobuf.DescriptorProto.prototype.clearExtensionRangeList = function() { - return this.setExtensionRangeList([]); -}; - - -/** - * repeated OneofDescriptorProto oneof_decl = 8; - * @return {!Array} - */ -proto.google.protobuf.DescriptorProto.prototype.getOneofDeclList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.OneofDescriptorProto, 8)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.DescriptorProto} returns this -*/ -proto.google.protobuf.DescriptorProto.prototype.setOneofDeclList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 8, value); -}; - - -/** - * @param {!proto.google.protobuf.OneofDescriptorProto=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.OneofDescriptorProto} - */ -proto.google.protobuf.DescriptorProto.prototype.addOneofDecl = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.google.protobuf.OneofDescriptorProto, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.DescriptorProto} returns this - */ -proto.google.protobuf.DescriptorProto.prototype.clearOneofDeclList = function() { - return this.setOneofDeclList([]); -}; - - -/** - * optional MessageOptions options = 7; - * @return {?proto.google.protobuf.MessageOptions} - */ -proto.google.protobuf.DescriptorProto.prototype.getOptions = function() { - return /** @type{?proto.google.protobuf.MessageOptions} */ ( - jspb.Message.getWrapperField(this, proto.google.protobuf.MessageOptions, 7)); -}; - - -/** - * @param {?proto.google.protobuf.MessageOptions|undefined} value - * @return {!proto.google.protobuf.DescriptorProto} returns this -*/ -proto.google.protobuf.DescriptorProto.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.protobuf.DescriptorProto} returns this - */ -proto.google.protobuf.DescriptorProto.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.DescriptorProto.prototype.hasOptions = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * repeated ReservedRange reserved_range = 9; - * @return {!Array} - */ -proto.google.protobuf.DescriptorProto.prototype.getReservedRangeList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.DescriptorProto.ReservedRange, 9)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.DescriptorProto} returns this -*/ -proto.google.protobuf.DescriptorProto.prototype.setReservedRangeList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 9, value); -}; - - -/** - * @param {!proto.google.protobuf.DescriptorProto.ReservedRange=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.DescriptorProto.ReservedRange} - */ -proto.google.protobuf.DescriptorProto.prototype.addReservedRange = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.google.protobuf.DescriptorProto.ReservedRange, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.DescriptorProto} returns this - */ -proto.google.protobuf.DescriptorProto.prototype.clearReservedRangeList = function() { - return this.setReservedRangeList([]); -}; - - -/** - * repeated string reserved_name = 10; - * @return {!Array} - */ -proto.google.protobuf.DescriptorProto.prototype.getReservedNameList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 10)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.DescriptorProto} returns this - */ -proto.google.protobuf.DescriptorProto.prototype.setReservedNameList = function(value) { - return jspb.Message.setField(this, 10, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.protobuf.DescriptorProto} returns this - */ -proto.google.protobuf.DescriptorProto.prototype.addReservedName = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 10, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.DescriptorProto} returns this - */ -proto.google.protobuf.DescriptorProto.prototype.clearReservedNameList = function() { - return this.setReservedNameList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.ExtensionRangeOptions.repeatedFields_ = [999]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.ExtensionRangeOptions.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.ExtensionRangeOptions.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.ExtensionRangeOptions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.ExtensionRangeOptions.toObject = function(includeInstance, msg) { - var f, obj = { - uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(), - proto.google.protobuf.UninterpretedOption.toObject, includeInstance) - }; - - jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj, - proto.google.protobuf.ExtensionRangeOptions.extensions, proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension, - includeInstance); - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.ExtensionRangeOptions} - */ -proto.google.protobuf.ExtensionRangeOptions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.ExtensionRangeOptions; - return proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.ExtensionRangeOptions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.ExtensionRangeOptions} - */ -proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 999: - var value = new proto.google.protobuf.UninterpretedOption; - reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader); - msg.addUninterpretedOption(value); - break; - default: - jspb.Message.readBinaryExtension(msg, reader, - proto.google.protobuf.ExtensionRangeOptions.extensionsBinary, - proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension, - proto.google.protobuf.ExtensionRangeOptions.prototype.setExtension); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.ExtensionRangeOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.ExtensionRangeOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUninterpretedOptionList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 999, - f, - proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter - ); - } - jspb.Message.serializeBinaryExtensions(message, writer, - proto.google.protobuf.ExtensionRangeOptions.extensionsBinary, proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension); -}; - - -/** - * repeated UninterpretedOption uninterpreted_option = 999; - * @return {!Array} - */ -proto.google.protobuf.ExtensionRangeOptions.prototype.getUninterpretedOptionList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.ExtensionRangeOptions} returns this -*/ -proto.google.protobuf.ExtensionRangeOptions.prototype.setUninterpretedOptionList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 999, value); -}; - - -/** - * @param {!proto.google.protobuf.UninterpretedOption=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.UninterpretedOption} - */ -proto.google.protobuf.ExtensionRangeOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.ExtensionRangeOptions} returns this - */ -proto.google.protobuf.ExtensionRangeOptions.prototype.clearUninterpretedOptionList = function() { - return this.setUninterpretedOptionList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.FieldDescriptorProto.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.FieldDescriptorProto} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.FieldDescriptorProto.toObject = function(includeInstance, msg) { - var f, obj = { - name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, - number: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f, - label: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f, - type: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f, - typeName: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f, - extendee: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f, - defaultValue: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f, - oneofIndex: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f, - jsonName: (f = jspb.Message.getField(msg, 10)) == null ? undefined : f, - options: (f = msg.getOptions()) && proto.google.protobuf.FieldOptions.toObject(includeInstance, f), - proto3Optional: (f = jspb.Message.getBooleanField(msg, 17)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.FieldDescriptorProto} - */ -proto.google.protobuf.FieldDescriptorProto.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.FieldDescriptorProto; - return proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.FieldDescriptorProto} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.FieldDescriptorProto} - */ -proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setNumber(value); - break; - case 4: - var value = /** @type {!proto.google.protobuf.FieldDescriptorProto.Label} */ (reader.readEnum()); - msg.setLabel(value); - break; - case 5: - var value = /** @type {!proto.google.protobuf.FieldDescriptorProto.Type} */ (reader.readEnum()); - msg.setType(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setTypeName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setExtendee(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setDefaultValue(value); - break; - case 9: - var value = /** @type {number} */ (reader.readInt32()); - msg.setOneofIndex(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setJsonName(value); - break; - case 8: - var value = new proto.google.protobuf.FieldOptions; - reader.readMessage(value,proto.google.protobuf.FieldOptions.deserializeBinaryFromReader); - msg.setOptions(value); - break; - case 17: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setProto3Optional(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.FieldDescriptorProto} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeInt32( - 3, - f - ); - } - f = /** @type {!proto.google.protobuf.FieldDescriptorProto.Label} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeEnum( - 4, - f - ); - } - f = /** @type {!proto.google.protobuf.FieldDescriptorProto.Type} */ (jspb.Message.getField(message, 5)); - if (f != null) { - writer.writeEnum( - 5, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeString( - 6, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeString( - 2, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeString( - 7, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 9)); - if (f != null) { - writer.writeInt32( - 9, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 10)); - if (f != null) { - writer.writeString( - 10, - f - ); - } - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.google.protobuf.FieldOptions.serializeBinaryToWriter - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 17)); - if (f != null) { - writer.writeBool( - 17, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.google.protobuf.FieldDescriptorProto.Type = { - TYPE_DOUBLE: 1, - TYPE_FLOAT: 2, - TYPE_INT64: 3, - TYPE_UINT64: 4, - TYPE_INT32: 5, - TYPE_FIXED64: 6, - TYPE_FIXED32: 7, - TYPE_BOOL: 8, - TYPE_STRING: 9, - TYPE_GROUP: 10, - TYPE_MESSAGE: 11, - TYPE_BYTES: 12, - TYPE_UINT32: 13, - TYPE_ENUM: 14, - TYPE_SFIXED32: 15, - TYPE_SFIXED64: 16, - TYPE_SINT32: 17, - TYPE_SINT64: 18 -}; - -/** - * @enum {number} - */ -proto.google.protobuf.FieldDescriptorProto.Label = { - LABEL_OPTIONAL: 1, - LABEL_REQUIRED: 2, - LABEL_REPEATED: 3 -}; - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.setName = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.clearName = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.hasName = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional int32 number = 3; - * @return {number} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.getNumber = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.setNumber = function(value) { - return jspb.Message.setField(this, 3, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.clearNumber = function() { - return jspb.Message.setField(this, 3, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.hasNumber = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional Label label = 4; - * @return {!proto.google.protobuf.FieldDescriptorProto.Label} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.getLabel = function() { - return /** @type {!proto.google.protobuf.FieldDescriptorProto.Label} */ (jspb.Message.getFieldWithDefault(this, 4, 1)); -}; - - -/** - * @param {!proto.google.protobuf.FieldDescriptorProto.Label} value - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.setLabel = function(value) { - return jspb.Message.setField(this, 4, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.clearLabel = function() { - return jspb.Message.setField(this, 4, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.hasLabel = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional Type type = 5; - * @return {!proto.google.protobuf.FieldDescriptorProto.Type} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.getType = function() { - return /** @type {!proto.google.protobuf.FieldDescriptorProto.Type} */ (jspb.Message.getFieldWithDefault(this, 5, 1)); -}; - - -/** - * @param {!proto.google.protobuf.FieldDescriptorProto.Type} value - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.setType = function(value) { - return jspb.Message.setField(this, 5, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.clearType = function() { - return jspb.Message.setField(this, 5, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.hasType = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional string type_name = 6; - * @return {string} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.getTypeName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.setTypeName = function(value) { - return jspb.Message.setField(this, 6, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.clearTypeName = function() { - return jspb.Message.setField(this, 6, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.hasTypeName = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional string extendee = 2; - * @return {string} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.getExtendee = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.setExtendee = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.clearExtendee = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.hasExtendee = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string default_value = 7; - * @return {string} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.getDefaultValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.setDefaultValue = function(value) { - return jspb.Message.setField(this, 7, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.clearDefaultValue = function() { - return jspb.Message.setField(this, 7, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.hasDefaultValue = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional int32 oneof_index = 9; - * @return {number} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.getOneofIndex = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.setOneofIndex = function(value) { - return jspb.Message.setField(this, 9, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.clearOneofIndex = function() { - return jspb.Message.setField(this, 9, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.hasOneofIndex = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional string json_name = 10; - * @return {string} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.getJsonName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.setJsonName = function(value) { - return jspb.Message.setField(this, 10, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.clearJsonName = function() { - return jspb.Message.setField(this, 10, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.hasJsonName = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional FieldOptions options = 8; - * @return {?proto.google.protobuf.FieldOptions} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.getOptions = function() { - return /** @type{?proto.google.protobuf.FieldOptions} */ ( - jspb.Message.getWrapperField(this, proto.google.protobuf.FieldOptions, 8)); -}; - - -/** - * @param {?proto.google.protobuf.FieldOptions|undefined} value - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this -*/ -proto.google.protobuf.FieldDescriptorProto.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.hasOptions = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional bool proto3_optional = 17; - * @return {boolean} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.getProto3Optional = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.setProto3Optional = function(value) { - return jspb.Message.setField(this, 17, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FieldDescriptorProto} returns this - */ -proto.google.protobuf.FieldDescriptorProto.prototype.clearProto3Optional = function() { - return jspb.Message.setField(this, 17, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FieldDescriptorProto.prototype.hasProto3Optional = function() { - return jspb.Message.getField(this, 17) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.OneofDescriptorProto.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.OneofDescriptorProto.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.OneofDescriptorProto} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.OneofDescriptorProto.toObject = function(includeInstance, msg) { - var f, obj = { - name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, - options: (f = msg.getOptions()) && proto.google.protobuf.OneofOptions.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.OneofDescriptorProto} - */ -proto.google.protobuf.OneofDescriptorProto.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.OneofDescriptorProto; - return proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.OneofDescriptorProto} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.OneofDescriptorProto} - */ -proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = new proto.google.protobuf.OneofOptions; - reader.readMessage(value,proto.google.protobuf.OneofOptions.deserializeBinaryFromReader); - msg.setOptions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.OneofDescriptorProto.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.OneofDescriptorProto} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.google.protobuf.OneofOptions.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.protobuf.OneofDescriptorProto.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.OneofDescriptorProto} returns this - */ -proto.google.protobuf.OneofDescriptorProto.prototype.setName = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.OneofDescriptorProto} returns this - */ -proto.google.protobuf.OneofDescriptorProto.prototype.clearName = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.OneofDescriptorProto.prototype.hasName = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional OneofOptions options = 2; - * @return {?proto.google.protobuf.OneofOptions} - */ -proto.google.protobuf.OneofDescriptorProto.prototype.getOptions = function() { - return /** @type{?proto.google.protobuf.OneofOptions} */ ( - jspb.Message.getWrapperField(this, proto.google.protobuf.OneofOptions, 2)); -}; - - -/** - * @param {?proto.google.protobuf.OneofOptions|undefined} value - * @return {!proto.google.protobuf.OneofDescriptorProto} returns this -*/ -proto.google.protobuf.OneofDescriptorProto.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.protobuf.OneofDescriptorProto} returns this - */ -proto.google.protobuf.OneofDescriptorProto.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.OneofDescriptorProto.prototype.hasOptions = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.EnumDescriptorProto.repeatedFields_ = [2,4,5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.EnumDescriptorProto.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.EnumDescriptorProto.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.EnumDescriptorProto} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.EnumDescriptorProto.toObject = function(includeInstance, msg) { - var f, obj = { - name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, - valueList: jspb.Message.toObjectList(msg.getValueList(), - proto.google.protobuf.EnumValueDescriptorProto.toObject, includeInstance), - options: (f = msg.getOptions()) && proto.google.protobuf.EnumOptions.toObject(includeInstance, f), - reservedRangeList: jspb.Message.toObjectList(msg.getReservedRangeList(), - proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject, includeInstance), - reservedNameList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.EnumDescriptorProto} - */ -proto.google.protobuf.EnumDescriptorProto.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.EnumDescriptorProto; - return proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.EnumDescriptorProto} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.EnumDescriptorProto} - */ -proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = new proto.google.protobuf.EnumValueDescriptorProto; - reader.readMessage(value,proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader); - msg.addValue(value); - break; - case 3: - var value = new proto.google.protobuf.EnumOptions; - reader.readMessage(value,proto.google.protobuf.EnumOptions.deserializeBinaryFromReader); - msg.setOptions(value); - break; - case 4: - var value = new proto.google.protobuf.EnumDescriptorProto.EnumReservedRange; - reader.readMessage(value,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader); - msg.addReservedRange(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.addReservedName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.EnumDescriptorProto.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.EnumDescriptorProto} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = message.getValueList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter - ); - } - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.google.protobuf.EnumOptions.serializeBinaryToWriter - ); - } - f = message.getReservedRangeList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter - ); - } - f = message.getReservedNameList(); - if (f.length > 0) { - writer.writeRepeatedString( - 5, - f - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject = function(includeInstance, msg) { - var f, obj = { - start: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, - end: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} - */ -proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.EnumDescriptorProto.EnumReservedRange; - return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} - */ -proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setStart(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setEnd(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {number} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeInt32( - 1, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeInt32( - 2, - f - ); - } -}; - - -/** - * optional int32 start = 1; - * @return {number} - */ -proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.getStart = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} returns this - */ -proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.setStart = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} returns this - */ -proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.clearStart = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.hasStart = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional int32 end = 2; - * @return {number} - */ -proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.getEnd = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} returns this - */ -proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.setEnd = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} returns this - */ -proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.clearEnd = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.hasEnd = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.protobuf.EnumDescriptorProto.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.EnumDescriptorProto} returns this - */ -proto.google.protobuf.EnumDescriptorProto.prototype.setName = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.EnumDescriptorProto} returns this - */ -proto.google.protobuf.EnumDescriptorProto.prototype.clearName = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.EnumDescriptorProto.prototype.hasName = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated EnumValueDescriptorProto value = 2; - * @return {!Array} - */ -proto.google.protobuf.EnumDescriptorProto.prototype.getValueList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.EnumValueDescriptorProto, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.EnumDescriptorProto} returns this -*/ -proto.google.protobuf.EnumDescriptorProto.prototype.setValueList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.protobuf.EnumValueDescriptorProto=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.EnumValueDescriptorProto} - */ -proto.google.protobuf.EnumDescriptorProto.prototype.addValue = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.EnumValueDescriptorProto, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.EnumDescriptorProto} returns this - */ -proto.google.protobuf.EnumDescriptorProto.prototype.clearValueList = function() { - return this.setValueList([]); -}; - - -/** - * optional EnumOptions options = 3; - * @return {?proto.google.protobuf.EnumOptions} - */ -proto.google.protobuf.EnumDescriptorProto.prototype.getOptions = function() { - return /** @type{?proto.google.protobuf.EnumOptions} */ ( - jspb.Message.getWrapperField(this, proto.google.protobuf.EnumOptions, 3)); -}; - - -/** - * @param {?proto.google.protobuf.EnumOptions|undefined} value - * @return {!proto.google.protobuf.EnumDescriptorProto} returns this -*/ -proto.google.protobuf.EnumDescriptorProto.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.protobuf.EnumDescriptorProto} returns this - */ -proto.google.protobuf.EnumDescriptorProto.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.EnumDescriptorProto.prototype.hasOptions = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * repeated EnumReservedRange reserved_range = 4; - * @return {!Array} - */ -proto.google.protobuf.EnumDescriptorProto.prototype.getReservedRangeList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.EnumDescriptorProto.EnumReservedRange, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.EnumDescriptorProto} returns this -*/ -proto.google.protobuf.EnumDescriptorProto.prototype.setReservedRangeList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} - */ -proto.google.protobuf.EnumDescriptorProto.prototype.addReservedRange = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.protobuf.EnumDescriptorProto.EnumReservedRange, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.EnumDescriptorProto} returns this - */ -proto.google.protobuf.EnumDescriptorProto.prototype.clearReservedRangeList = function() { - return this.setReservedRangeList([]); -}; - - -/** - * repeated string reserved_name = 5; - * @return {!Array} - */ -proto.google.protobuf.EnumDescriptorProto.prototype.getReservedNameList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.EnumDescriptorProto} returns this - */ -proto.google.protobuf.EnumDescriptorProto.prototype.setReservedNameList = function(value) { - return jspb.Message.setField(this, 5, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.protobuf.EnumDescriptorProto} returns this - */ -proto.google.protobuf.EnumDescriptorProto.prototype.addReservedName = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 5, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.EnumDescriptorProto} returns this - */ -proto.google.protobuf.EnumDescriptorProto.prototype.clearReservedNameList = function() { - return this.setReservedNameList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.EnumValueDescriptorProto.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.EnumValueDescriptorProto.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.EnumValueDescriptorProto} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.EnumValueDescriptorProto.toObject = function(includeInstance, msg) { - var f, obj = { - name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, - number: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f, - options: (f = msg.getOptions()) && proto.google.protobuf.EnumValueOptions.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.EnumValueDescriptorProto} - */ -proto.google.protobuf.EnumValueDescriptorProto.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.EnumValueDescriptorProto; - return proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.EnumValueDescriptorProto} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.EnumValueDescriptorProto} - */ -proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setNumber(value); - break; - case 3: - var value = new proto.google.protobuf.EnumValueOptions; - reader.readMessage(value,proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader); - msg.setOptions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.EnumValueDescriptorProto.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.EnumValueDescriptorProto} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeInt32( - 2, - f - ); - } - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.protobuf.EnumValueDescriptorProto.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.EnumValueDescriptorProto} returns this - */ -proto.google.protobuf.EnumValueDescriptorProto.prototype.setName = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.EnumValueDescriptorProto} returns this - */ -proto.google.protobuf.EnumValueDescriptorProto.prototype.clearName = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.EnumValueDescriptorProto.prototype.hasName = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional int32 number = 2; - * @return {number} - */ -proto.google.protobuf.EnumValueDescriptorProto.prototype.getNumber = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.EnumValueDescriptorProto} returns this - */ -proto.google.protobuf.EnumValueDescriptorProto.prototype.setNumber = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.EnumValueDescriptorProto} returns this - */ -proto.google.protobuf.EnumValueDescriptorProto.prototype.clearNumber = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.EnumValueDescriptorProto.prototype.hasNumber = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional EnumValueOptions options = 3; - * @return {?proto.google.protobuf.EnumValueOptions} - */ -proto.google.protobuf.EnumValueDescriptorProto.prototype.getOptions = function() { - return /** @type{?proto.google.protobuf.EnumValueOptions} */ ( - jspb.Message.getWrapperField(this, proto.google.protobuf.EnumValueOptions, 3)); -}; - - -/** - * @param {?proto.google.protobuf.EnumValueOptions|undefined} value - * @return {!proto.google.protobuf.EnumValueDescriptorProto} returns this -*/ -proto.google.protobuf.EnumValueDescriptorProto.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.protobuf.EnumValueDescriptorProto} returns this - */ -proto.google.protobuf.EnumValueDescriptorProto.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.EnumValueDescriptorProto.prototype.hasOptions = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.ServiceDescriptorProto.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.ServiceDescriptorProto.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.ServiceDescriptorProto.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.ServiceDescriptorProto} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.ServiceDescriptorProto.toObject = function(includeInstance, msg) { - var f, obj = { - name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, - methodList: jspb.Message.toObjectList(msg.getMethodList(), - proto.google.protobuf.MethodDescriptorProto.toObject, includeInstance), - options: (f = msg.getOptions()) && proto.google.protobuf.ServiceOptions.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.ServiceDescriptorProto} - */ -proto.google.protobuf.ServiceDescriptorProto.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.ServiceDescriptorProto; - return proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.ServiceDescriptorProto} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.ServiceDescriptorProto} - */ -proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = new proto.google.protobuf.MethodDescriptorProto; - reader.readMessage(value,proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader); - msg.addMethod(value); - break; - case 3: - var value = new proto.google.protobuf.ServiceOptions; - reader.readMessage(value,proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader); - msg.setOptions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.ServiceDescriptorProto.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.ServiceDescriptorProto} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = message.getMethodList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter - ); - } - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.google.protobuf.ServiceOptions.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.protobuf.ServiceDescriptorProto.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.ServiceDescriptorProto} returns this - */ -proto.google.protobuf.ServiceDescriptorProto.prototype.setName = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.ServiceDescriptorProto} returns this - */ -proto.google.protobuf.ServiceDescriptorProto.prototype.clearName = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.ServiceDescriptorProto.prototype.hasName = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated MethodDescriptorProto method = 2; - * @return {!Array} - */ -proto.google.protobuf.ServiceDescriptorProto.prototype.getMethodList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.MethodDescriptorProto, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.ServiceDescriptorProto} returns this -*/ -proto.google.protobuf.ServiceDescriptorProto.prototype.setMethodList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.protobuf.MethodDescriptorProto=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.MethodDescriptorProto} - */ -proto.google.protobuf.ServiceDescriptorProto.prototype.addMethod = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.MethodDescriptorProto, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.ServiceDescriptorProto} returns this - */ -proto.google.protobuf.ServiceDescriptorProto.prototype.clearMethodList = function() { - return this.setMethodList([]); -}; - - -/** - * optional ServiceOptions options = 3; - * @return {?proto.google.protobuf.ServiceOptions} - */ -proto.google.protobuf.ServiceDescriptorProto.prototype.getOptions = function() { - return /** @type{?proto.google.protobuf.ServiceOptions} */ ( - jspb.Message.getWrapperField(this, proto.google.protobuf.ServiceOptions, 3)); -}; - - -/** - * @param {?proto.google.protobuf.ServiceOptions|undefined} value - * @return {!proto.google.protobuf.ServiceDescriptorProto} returns this -*/ -proto.google.protobuf.ServiceDescriptorProto.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.protobuf.ServiceDescriptorProto} returns this - */ -proto.google.protobuf.ServiceDescriptorProto.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.ServiceDescriptorProto.prototype.hasOptions = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.MethodDescriptorProto.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.MethodDescriptorProto.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.MethodDescriptorProto} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.MethodDescriptorProto.toObject = function(includeInstance, msg) { - var f, obj = { - name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, - inputType: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f, - outputType: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f, - options: (f = msg.getOptions()) && proto.google.protobuf.MethodOptions.toObject(includeInstance, f), - clientStreaming: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - serverStreaming: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.MethodDescriptorProto} - */ -proto.google.protobuf.MethodDescriptorProto.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.MethodDescriptorProto; - return proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.MethodDescriptorProto} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.MethodDescriptorProto} - */ -proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setInputType(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setOutputType(value); - break; - case 4: - var value = new proto.google.protobuf.MethodOptions; - reader.readMessage(value,proto.google.protobuf.MethodOptions.deserializeBinaryFromReader); - msg.setOptions(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setClientStreaming(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setServerStreaming(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.MethodDescriptorProto.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.MethodDescriptorProto} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeString( - 2, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeString( - 3, - f - ); - } - f = message.getOptions(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.google.protobuf.MethodOptions.serializeBinaryToWriter - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 5)); - if (f != null) { - writer.writeBool( - 5, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeBool( - 6, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.protobuf.MethodDescriptorProto.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.MethodDescriptorProto} returns this - */ -proto.google.protobuf.MethodDescriptorProto.prototype.setName = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.MethodDescriptorProto} returns this - */ -proto.google.protobuf.MethodDescriptorProto.prototype.clearName = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.MethodDescriptorProto.prototype.hasName = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string input_type = 2; - * @return {string} - */ -proto.google.protobuf.MethodDescriptorProto.prototype.getInputType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.MethodDescriptorProto} returns this - */ -proto.google.protobuf.MethodDescriptorProto.prototype.setInputType = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.MethodDescriptorProto} returns this - */ -proto.google.protobuf.MethodDescriptorProto.prototype.clearInputType = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.MethodDescriptorProto.prototype.hasInputType = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string output_type = 3; - * @return {string} - */ -proto.google.protobuf.MethodDescriptorProto.prototype.getOutputType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.MethodDescriptorProto} returns this - */ -proto.google.protobuf.MethodDescriptorProto.prototype.setOutputType = function(value) { - return jspb.Message.setField(this, 3, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.MethodDescriptorProto} returns this - */ -proto.google.protobuf.MethodDescriptorProto.prototype.clearOutputType = function() { - return jspb.Message.setField(this, 3, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.MethodDescriptorProto.prototype.hasOutputType = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional MethodOptions options = 4; - * @return {?proto.google.protobuf.MethodOptions} - */ -proto.google.protobuf.MethodDescriptorProto.prototype.getOptions = function() { - return /** @type{?proto.google.protobuf.MethodOptions} */ ( - jspb.Message.getWrapperField(this, proto.google.protobuf.MethodOptions, 4)); -}; - - -/** - * @param {?proto.google.protobuf.MethodOptions|undefined} value - * @return {!proto.google.protobuf.MethodDescriptorProto} returns this -*/ -proto.google.protobuf.MethodDescriptorProto.prototype.setOptions = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.protobuf.MethodDescriptorProto} returns this - */ -proto.google.protobuf.MethodDescriptorProto.prototype.clearOptions = function() { - return this.setOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.MethodDescriptorProto.prototype.hasOptions = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional bool client_streaming = 5; - * @return {boolean} - */ -proto.google.protobuf.MethodDescriptorProto.prototype.getClientStreaming = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.MethodDescriptorProto} returns this - */ -proto.google.protobuf.MethodDescriptorProto.prototype.setClientStreaming = function(value) { - return jspb.Message.setField(this, 5, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.MethodDescriptorProto} returns this - */ -proto.google.protobuf.MethodDescriptorProto.prototype.clearClientStreaming = function() { - return jspb.Message.setField(this, 5, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.MethodDescriptorProto.prototype.hasClientStreaming = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional bool server_streaming = 6; - * @return {boolean} - */ -proto.google.protobuf.MethodDescriptorProto.prototype.getServerStreaming = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.MethodDescriptorProto} returns this - */ -proto.google.protobuf.MethodDescriptorProto.prototype.setServerStreaming = function(value) { - return jspb.Message.setField(this, 6, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.MethodDescriptorProto} returns this - */ -proto.google.protobuf.MethodDescriptorProto.prototype.clearServerStreaming = function() { - return jspb.Message.setField(this, 6, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.MethodDescriptorProto.prototype.hasServerStreaming = function() { - return jspb.Message.getField(this, 6) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.FileOptions.repeatedFields_ = [999]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.FileOptions.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.FileOptions.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.FileOptions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.FileOptions.toObject = function(includeInstance, msg) { - var f, obj = { - javaPackage: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, - javaOuterClassname: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f, - javaMultipleFiles: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - javaGenerateEqualsAndHash: (f = jspb.Message.getBooleanField(msg, 20)) == null ? undefined : f, - javaStringCheckUtf8: jspb.Message.getBooleanFieldWithDefault(msg, 27, false), - optimizeFor: jspb.Message.getFieldWithDefault(msg, 9, 1), - goPackage: (f = jspb.Message.getField(msg, 11)) == null ? undefined : f, - ccGenericServices: jspb.Message.getBooleanFieldWithDefault(msg, 16, false), - javaGenericServices: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), - pyGenericServices: jspb.Message.getBooleanFieldWithDefault(msg, 18, false), - phpGenericServices: jspb.Message.getBooleanFieldWithDefault(msg, 42, false), - deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 23, false), - ccEnableArenas: jspb.Message.getBooleanFieldWithDefault(msg, 31, true), - objcClassPrefix: (f = jspb.Message.getField(msg, 36)) == null ? undefined : f, - csharpNamespace: (f = jspb.Message.getField(msg, 37)) == null ? undefined : f, - swiftPrefix: (f = jspb.Message.getField(msg, 39)) == null ? undefined : f, - phpClassPrefix: (f = jspb.Message.getField(msg, 40)) == null ? undefined : f, - phpNamespace: (f = jspb.Message.getField(msg, 41)) == null ? undefined : f, - phpMetadataNamespace: (f = jspb.Message.getField(msg, 44)) == null ? undefined : f, - rubyPackage: (f = jspb.Message.getField(msg, 45)) == null ? undefined : f, - uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(), - proto.google.protobuf.UninterpretedOption.toObject, includeInstance) - }; - - jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj, - proto.google.protobuf.FileOptions.extensions, proto.google.protobuf.FileOptions.prototype.getExtension, - includeInstance); - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.FileOptions} - */ -proto.google.protobuf.FileOptions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.FileOptions; - return proto.google.protobuf.FileOptions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.FileOptions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.FileOptions} - */ -proto.google.protobuf.FileOptions.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setJavaPackage(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setJavaOuterClassname(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setJavaMultipleFiles(value); - break; - case 20: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setJavaGenerateEqualsAndHash(value); - break; - case 27: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setJavaStringCheckUtf8(value); - break; - case 9: - var value = /** @type {!proto.google.protobuf.FileOptions.OptimizeMode} */ (reader.readEnum()); - msg.setOptimizeFor(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setGoPackage(value); - break; - case 16: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCcGenericServices(value); - break; - case 17: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setJavaGenericServices(value); - break; - case 18: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPyGenericServices(value); - break; - case 42: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPhpGenericServices(value); - break; - case 23: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDeprecated(value); - break; - case 31: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCcEnableArenas(value); - break; - case 36: - var value = /** @type {string} */ (reader.readString()); - msg.setObjcClassPrefix(value); - break; - case 37: - var value = /** @type {string} */ (reader.readString()); - msg.setCsharpNamespace(value); - break; - case 39: - var value = /** @type {string} */ (reader.readString()); - msg.setSwiftPrefix(value); - break; - case 40: - var value = /** @type {string} */ (reader.readString()); - msg.setPhpClassPrefix(value); - break; - case 41: - var value = /** @type {string} */ (reader.readString()); - msg.setPhpNamespace(value); - break; - case 44: - var value = /** @type {string} */ (reader.readString()); - msg.setPhpMetadataNamespace(value); - break; - case 45: - var value = /** @type {string} */ (reader.readString()); - msg.setRubyPackage(value); - break; - case 999: - var value = new proto.google.protobuf.UninterpretedOption; - reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader); - msg.addUninterpretedOption(value); - break; - default: - jspb.Message.readBinaryExtension(msg, reader, - proto.google.protobuf.FileOptions.extensionsBinary, - proto.google.protobuf.FileOptions.prototype.getExtension, - proto.google.protobuf.FileOptions.prototype.setExtension); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.FileOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.FileOptions.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.FileOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.FileOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 8)); - if (f != null) { - writer.writeString( - 8, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 10)); - if (f != null) { - writer.writeBool( - 10, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 20)); - if (f != null) { - writer.writeBool( - 20, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 27)); - if (f != null) { - writer.writeBool( - 27, - f - ); - } - f = /** @type {!proto.google.protobuf.FileOptions.OptimizeMode} */ (jspb.Message.getField(message, 9)); - if (f != null) { - writer.writeEnum( - 9, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 11)); - if (f != null) { - writer.writeString( - 11, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 16)); - if (f != null) { - writer.writeBool( - 16, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 17)); - if (f != null) { - writer.writeBool( - 17, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 18)); - if (f != null) { - writer.writeBool( - 18, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 42)); - if (f != null) { - writer.writeBool( - 42, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 23)); - if (f != null) { - writer.writeBool( - 23, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 31)); - if (f != null) { - writer.writeBool( - 31, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 36)); - if (f != null) { - writer.writeString( - 36, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 37)); - if (f != null) { - writer.writeString( - 37, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 39)); - if (f != null) { - writer.writeString( - 39, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 40)); - if (f != null) { - writer.writeString( - 40, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 41)); - if (f != null) { - writer.writeString( - 41, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 44)); - if (f != null) { - writer.writeString( - 44, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 45)); - if (f != null) { - writer.writeString( - 45, - f - ); - } - f = message.getUninterpretedOptionList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 999, - f, - proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter - ); - } - jspb.Message.serializeBinaryExtensions(message, writer, - proto.google.protobuf.FileOptions.extensionsBinary, proto.google.protobuf.FileOptions.prototype.getExtension); -}; - - -/** - * @enum {number} - */ -proto.google.protobuf.FileOptions.OptimizeMode = { - SPEED: 1, - CODE_SIZE: 2, - LITE_RUNTIME: 3 -}; - -/** - * optional string java_package = 1; - * @return {string} - */ -proto.google.protobuf.FileOptions.prototype.getJavaPackage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setJavaPackage = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearJavaPackage = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasJavaPackage = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string java_outer_classname = 8; - * @return {string} - */ -proto.google.protobuf.FileOptions.prototype.getJavaOuterClassname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setJavaOuterClassname = function(value) { - return jspb.Message.setField(this, 8, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearJavaOuterClassname = function() { - return jspb.Message.setField(this, 8, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasJavaOuterClassname = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional bool java_multiple_files = 10; - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.getJavaMultipleFiles = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setJavaMultipleFiles = function(value) { - return jspb.Message.setField(this, 10, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearJavaMultipleFiles = function() { - return jspb.Message.setField(this, 10, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasJavaMultipleFiles = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional bool java_generate_equals_and_hash = 20; - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.getJavaGenerateEqualsAndHash = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 20, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setJavaGenerateEqualsAndHash = function(value) { - return jspb.Message.setField(this, 20, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearJavaGenerateEqualsAndHash = function() { - return jspb.Message.setField(this, 20, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasJavaGenerateEqualsAndHash = function() { - return jspb.Message.getField(this, 20) != null; -}; - - -/** - * optional bool java_string_check_utf8 = 27; - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.getJavaStringCheckUtf8 = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 27, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setJavaStringCheckUtf8 = function(value) { - return jspb.Message.setField(this, 27, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearJavaStringCheckUtf8 = function() { - return jspb.Message.setField(this, 27, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasJavaStringCheckUtf8 = function() { - return jspb.Message.getField(this, 27) != null; -}; - - -/** - * optional OptimizeMode optimize_for = 9; - * @return {!proto.google.protobuf.FileOptions.OptimizeMode} - */ -proto.google.protobuf.FileOptions.prototype.getOptimizeFor = function() { - return /** @type {!proto.google.protobuf.FileOptions.OptimizeMode} */ (jspb.Message.getFieldWithDefault(this, 9, 1)); -}; - - -/** - * @param {!proto.google.protobuf.FileOptions.OptimizeMode} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setOptimizeFor = function(value) { - return jspb.Message.setField(this, 9, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearOptimizeFor = function() { - return jspb.Message.setField(this, 9, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasOptimizeFor = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional string go_package = 11; - * @return {string} - */ -proto.google.protobuf.FileOptions.prototype.getGoPackage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setGoPackage = function(value) { - return jspb.Message.setField(this, 11, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearGoPackage = function() { - return jspb.Message.setField(this, 11, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasGoPackage = function() { - return jspb.Message.getField(this, 11) != null; -}; - - -/** - * optional bool cc_generic_services = 16; - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.getCcGenericServices = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setCcGenericServices = function(value) { - return jspb.Message.setField(this, 16, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearCcGenericServices = function() { - return jspb.Message.setField(this, 16, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasCcGenericServices = function() { - return jspb.Message.getField(this, 16) != null; -}; - - -/** - * optional bool java_generic_services = 17; - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.getJavaGenericServices = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setJavaGenericServices = function(value) { - return jspb.Message.setField(this, 17, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearJavaGenericServices = function() { - return jspb.Message.setField(this, 17, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasJavaGenericServices = function() { - return jspb.Message.getField(this, 17) != null; -}; - - -/** - * optional bool py_generic_services = 18; - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.getPyGenericServices = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 18, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setPyGenericServices = function(value) { - return jspb.Message.setField(this, 18, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearPyGenericServices = function() { - return jspb.Message.setField(this, 18, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasPyGenericServices = function() { - return jspb.Message.getField(this, 18) != null; -}; - - -/** - * optional bool php_generic_services = 42; - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.getPhpGenericServices = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 42, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setPhpGenericServices = function(value) { - return jspb.Message.setField(this, 42, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearPhpGenericServices = function() { - return jspb.Message.setField(this, 42, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasPhpGenericServices = function() { - return jspb.Message.getField(this, 42) != null; -}; - - -/** - * optional bool deprecated = 23; - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.getDeprecated = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 23, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setDeprecated = function(value) { - return jspb.Message.setField(this, 23, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearDeprecated = function() { - return jspb.Message.setField(this, 23, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasDeprecated = function() { - return jspb.Message.getField(this, 23) != null; -}; - - -/** - * optional bool cc_enable_arenas = 31; - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.getCcEnableArenas = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 31, true)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setCcEnableArenas = function(value) { - return jspb.Message.setField(this, 31, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearCcEnableArenas = function() { - return jspb.Message.setField(this, 31, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasCcEnableArenas = function() { - return jspb.Message.getField(this, 31) != null; -}; - - -/** - * optional string objc_class_prefix = 36; - * @return {string} - */ -proto.google.protobuf.FileOptions.prototype.getObjcClassPrefix = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 36, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setObjcClassPrefix = function(value) { - return jspb.Message.setField(this, 36, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearObjcClassPrefix = function() { - return jspb.Message.setField(this, 36, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasObjcClassPrefix = function() { - return jspb.Message.getField(this, 36) != null; -}; - - -/** - * optional string csharp_namespace = 37; - * @return {string} - */ -proto.google.protobuf.FileOptions.prototype.getCsharpNamespace = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 37, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setCsharpNamespace = function(value) { - return jspb.Message.setField(this, 37, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearCsharpNamespace = function() { - return jspb.Message.setField(this, 37, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasCsharpNamespace = function() { - return jspb.Message.getField(this, 37) != null; -}; - - -/** - * optional string swift_prefix = 39; - * @return {string} - */ -proto.google.protobuf.FileOptions.prototype.getSwiftPrefix = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 39, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setSwiftPrefix = function(value) { - return jspb.Message.setField(this, 39, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearSwiftPrefix = function() { - return jspb.Message.setField(this, 39, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasSwiftPrefix = function() { - return jspb.Message.getField(this, 39) != null; -}; - - -/** - * optional string php_class_prefix = 40; - * @return {string} - */ -proto.google.protobuf.FileOptions.prototype.getPhpClassPrefix = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 40, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setPhpClassPrefix = function(value) { - return jspb.Message.setField(this, 40, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearPhpClassPrefix = function() { - return jspb.Message.setField(this, 40, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasPhpClassPrefix = function() { - return jspb.Message.getField(this, 40) != null; -}; - - -/** - * optional string php_namespace = 41; - * @return {string} - */ -proto.google.protobuf.FileOptions.prototype.getPhpNamespace = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 41, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setPhpNamespace = function(value) { - return jspb.Message.setField(this, 41, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearPhpNamespace = function() { - return jspb.Message.setField(this, 41, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasPhpNamespace = function() { - return jspb.Message.getField(this, 41) != null; -}; - - -/** - * optional string php_metadata_namespace = 44; - * @return {string} - */ -proto.google.protobuf.FileOptions.prototype.getPhpMetadataNamespace = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 44, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setPhpMetadataNamespace = function(value) { - return jspb.Message.setField(this, 44, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearPhpMetadataNamespace = function() { - return jspb.Message.setField(this, 44, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasPhpMetadataNamespace = function() { - return jspb.Message.getField(this, 44) != null; -}; - - -/** - * optional string ruby_package = 45; - * @return {string} - */ -proto.google.protobuf.FileOptions.prototype.getRubyPackage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 45, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.setRubyPackage = function(value) { - return jspb.Message.setField(this, 45, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearRubyPackage = function() { - return jspb.Message.setField(this, 45, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FileOptions.prototype.hasRubyPackage = function() { - return jspb.Message.getField(this, 45) != null; -}; - - -/** - * repeated UninterpretedOption uninterpreted_option = 999; - * @return {!Array} - */ -proto.google.protobuf.FileOptions.prototype.getUninterpretedOptionList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.FileOptions} returns this -*/ -proto.google.protobuf.FileOptions.prototype.setUninterpretedOptionList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 999, value); -}; - - -/** - * @param {!proto.google.protobuf.UninterpretedOption=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.UninterpretedOption} - */ -proto.google.protobuf.FileOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.FileOptions} returns this - */ -proto.google.protobuf.FileOptions.prototype.clearUninterpretedOptionList = function() { - return this.setUninterpretedOptionList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.MessageOptions.repeatedFields_ = [999]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.MessageOptions.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.MessageOptions.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.MessageOptions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.MessageOptions.toObject = function(includeInstance, msg) { - var f, obj = { - messageSetWireFormat: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - noStandardDescriptorAccessor: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - mapEntry: (f = jspb.Message.getBooleanField(msg, 7)) == null ? undefined : f, - uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(), - proto.google.protobuf.UninterpretedOption.toObject, includeInstance) - }; - - jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj, - proto.google.protobuf.MessageOptions.extensions, proto.google.protobuf.MessageOptions.prototype.getExtension, - includeInstance); - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.MessageOptions} - */ -proto.google.protobuf.MessageOptions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.MessageOptions; - return proto.google.protobuf.MessageOptions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.MessageOptions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.MessageOptions} - */ -proto.google.protobuf.MessageOptions.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setMessageSetWireFormat(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setNoStandardDescriptorAccessor(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDeprecated(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setMapEntry(value); - break; - case 999: - var value = new proto.google.protobuf.UninterpretedOption; - reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader); - msg.addUninterpretedOption(value); - break; - default: - jspb.Message.readBinaryExtension(msg, reader, - proto.google.protobuf.MessageOptions.extensionsBinary, - proto.google.protobuf.MessageOptions.prototype.getExtension, - proto.google.protobuf.MessageOptions.prototype.setExtension); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.MessageOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.MessageOptions.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.MessageOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.MessageOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {boolean} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeBool( - 1, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeBool( - 2, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeBool( - 3, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeBool( - 7, - f - ); - } - f = message.getUninterpretedOptionList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 999, - f, - proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter - ); - } - jspb.Message.serializeBinaryExtensions(message, writer, - proto.google.protobuf.MessageOptions.extensionsBinary, proto.google.protobuf.MessageOptions.prototype.getExtension); -}; - - -/** - * optional bool message_set_wire_format = 1; - * @return {boolean} - */ -proto.google.protobuf.MessageOptions.prototype.getMessageSetWireFormat = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.MessageOptions} returns this - */ -proto.google.protobuf.MessageOptions.prototype.setMessageSetWireFormat = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.MessageOptions} returns this - */ -proto.google.protobuf.MessageOptions.prototype.clearMessageSetWireFormat = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.MessageOptions.prototype.hasMessageSetWireFormat = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional bool no_standard_descriptor_accessor = 2; - * @return {boolean} - */ -proto.google.protobuf.MessageOptions.prototype.getNoStandardDescriptorAccessor = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.MessageOptions} returns this - */ -proto.google.protobuf.MessageOptions.prototype.setNoStandardDescriptorAccessor = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.MessageOptions} returns this - */ -proto.google.protobuf.MessageOptions.prototype.clearNoStandardDescriptorAccessor = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.MessageOptions.prototype.hasNoStandardDescriptorAccessor = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional bool deprecated = 3; - * @return {boolean} - */ -proto.google.protobuf.MessageOptions.prototype.getDeprecated = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.MessageOptions} returns this - */ -proto.google.protobuf.MessageOptions.prototype.setDeprecated = function(value) { - return jspb.Message.setField(this, 3, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.MessageOptions} returns this - */ -proto.google.protobuf.MessageOptions.prototype.clearDeprecated = function() { - return jspb.Message.setField(this, 3, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.MessageOptions.prototype.hasDeprecated = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional bool map_entry = 7; - * @return {boolean} - */ -proto.google.protobuf.MessageOptions.prototype.getMapEntry = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.MessageOptions} returns this - */ -proto.google.protobuf.MessageOptions.prototype.setMapEntry = function(value) { - return jspb.Message.setField(this, 7, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.MessageOptions} returns this - */ -proto.google.protobuf.MessageOptions.prototype.clearMapEntry = function() { - return jspb.Message.setField(this, 7, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.MessageOptions.prototype.hasMapEntry = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * repeated UninterpretedOption uninterpreted_option = 999; - * @return {!Array} - */ -proto.google.protobuf.MessageOptions.prototype.getUninterpretedOptionList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.MessageOptions} returns this -*/ -proto.google.protobuf.MessageOptions.prototype.setUninterpretedOptionList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 999, value); -}; - - -/** - * @param {!proto.google.protobuf.UninterpretedOption=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.UninterpretedOption} - */ -proto.google.protobuf.MessageOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.MessageOptions} returns this - */ -proto.google.protobuf.MessageOptions.prototype.clearUninterpretedOptionList = function() { - return this.setUninterpretedOptionList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.FieldOptions.repeatedFields_ = [999]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.FieldOptions.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.FieldOptions.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.FieldOptions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.FieldOptions.toObject = function(includeInstance, msg) { - var f, obj = { - ctype: jspb.Message.getFieldWithDefault(msg, 1, 0), - packed: (f = jspb.Message.getBooleanField(msg, 2)) == null ? undefined : f, - jstype: jspb.Message.getFieldWithDefault(msg, 6, 0), - lazy: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - weak: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(), - proto.google.protobuf.UninterpretedOption.toObject, includeInstance) - }; - - jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj, - proto.google.protobuf.FieldOptions.extensions, proto.google.protobuf.FieldOptions.prototype.getExtension, - includeInstance); - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.FieldOptions} - */ -proto.google.protobuf.FieldOptions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.FieldOptions; - return proto.google.protobuf.FieldOptions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.FieldOptions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.FieldOptions} - */ -proto.google.protobuf.FieldOptions.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.google.protobuf.FieldOptions.CType} */ (reader.readEnum()); - msg.setCtype(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPacked(value); - break; - case 6: - var value = /** @type {!proto.google.protobuf.FieldOptions.JSType} */ (reader.readEnum()); - msg.setJstype(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setLazy(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDeprecated(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setWeak(value); - break; - case 999: - var value = new proto.google.protobuf.UninterpretedOption; - reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader); - msg.addUninterpretedOption(value); - break; - default: - jspb.Message.readBinaryExtension(msg, reader, - proto.google.protobuf.FieldOptions.extensionsBinary, - proto.google.protobuf.FieldOptions.prototype.getExtension, - proto.google.protobuf.FieldOptions.prototype.setExtension); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.FieldOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.FieldOptions.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.FieldOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.FieldOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {!proto.google.protobuf.FieldOptions.CType} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeEnum( - 1, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeBool( - 2, - f - ); - } - f = /** @type {!proto.google.protobuf.FieldOptions.JSType} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeEnum( - 6, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 5)); - if (f != null) { - writer.writeBool( - 5, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeBool( - 3, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 10)); - if (f != null) { - writer.writeBool( - 10, - f - ); - } - f = message.getUninterpretedOptionList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 999, - f, - proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter - ); - } - jspb.Message.serializeBinaryExtensions(message, writer, - proto.google.protobuf.FieldOptions.extensionsBinary, proto.google.protobuf.FieldOptions.prototype.getExtension); -}; - - -/** - * @enum {number} - */ -proto.google.protobuf.FieldOptions.CType = { - STRING: 0, - CORD: 1, - STRING_PIECE: 2 -}; - -/** - * @enum {number} - */ -proto.google.protobuf.FieldOptions.JSType = { - JS_NORMAL: 0, - JS_STRING: 1, - JS_NUMBER: 2 -}; - -/** - * optional CType ctype = 1; - * @return {!proto.google.protobuf.FieldOptions.CType} - */ -proto.google.protobuf.FieldOptions.prototype.getCtype = function() { - return /** @type {!proto.google.protobuf.FieldOptions.CType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.google.protobuf.FieldOptions.CType} value - * @return {!proto.google.protobuf.FieldOptions} returns this - */ -proto.google.protobuf.FieldOptions.prototype.setCtype = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FieldOptions} returns this - */ -proto.google.protobuf.FieldOptions.prototype.clearCtype = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FieldOptions.prototype.hasCtype = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional bool packed = 2; - * @return {boolean} - */ -proto.google.protobuf.FieldOptions.prototype.getPacked = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.FieldOptions} returns this - */ -proto.google.protobuf.FieldOptions.prototype.setPacked = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FieldOptions} returns this - */ -proto.google.protobuf.FieldOptions.prototype.clearPacked = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FieldOptions.prototype.hasPacked = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional JSType jstype = 6; - * @return {!proto.google.protobuf.FieldOptions.JSType} - */ -proto.google.protobuf.FieldOptions.prototype.getJstype = function() { - return /** @type {!proto.google.protobuf.FieldOptions.JSType} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.google.protobuf.FieldOptions.JSType} value - * @return {!proto.google.protobuf.FieldOptions} returns this - */ -proto.google.protobuf.FieldOptions.prototype.setJstype = function(value) { - return jspb.Message.setField(this, 6, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FieldOptions} returns this - */ -proto.google.protobuf.FieldOptions.prototype.clearJstype = function() { - return jspb.Message.setField(this, 6, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FieldOptions.prototype.hasJstype = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional bool lazy = 5; - * @return {boolean} - */ -proto.google.protobuf.FieldOptions.prototype.getLazy = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.FieldOptions} returns this - */ -proto.google.protobuf.FieldOptions.prototype.setLazy = function(value) { - return jspb.Message.setField(this, 5, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FieldOptions} returns this - */ -proto.google.protobuf.FieldOptions.prototype.clearLazy = function() { - return jspb.Message.setField(this, 5, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FieldOptions.prototype.hasLazy = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional bool deprecated = 3; - * @return {boolean} - */ -proto.google.protobuf.FieldOptions.prototype.getDeprecated = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.FieldOptions} returns this - */ -proto.google.protobuf.FieldOptions.prototype.setDeprecated = function(value) { - return jspb.Message.setField(this, 3, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FieldOptions} returns this - */ -proto.google.protobuf.FieldOptions.prototype.clearDeprecated = function() { - return jspb.Message.setField(this, 3, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FieldOptions.prototype.hasDeprecated = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional bool weak = 10; - * @return {boolean} - */ -proto.google.protobuf.FieldOptions.prototype.getWeak = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.FieldOptions} returns this - */ -proto.google.protobuf.FieldOptions.prototype.setWeak = function(value) { - return jspb.Message.setField(this, 10, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.FieldOptions} returns this - */ -proto.google.protobuf.FieldOptions.prototype.clearWeak = function() { - return jspb.Message.setField(this, 10, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.FieldOptions.prototype.hasWeak = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * repeated UninterpretedOption uninterpreted_option = 999; - * @return {!Array} - */ -proto.google.protobuf.FieldOptions.prototype.getUninterpretedOptionList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.FieldOptions} returns this -*/ -proto.google.protobuf.FieldOptions.prototype.setUninterpretedOptionList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 999, value); -}; - - -/** - * @param {!proto.google.protobuf.UninterpretedOption=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.UninterpretedOption} - */ -proto.google.protobuf.FieldOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.FieldOptions} returns this - */ -proto.google.protobuf.FieldOptions.prototype.clearUninterpretedOptionList = function() { - return this.setUninterpretedOptionList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.OneofOptions.repeatedFields_ = [999]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.OneofOptions.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.OneofOptions.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.OneofOptions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.OneofOptions.toObject = function(includeInstance, msg) { - var f, obj = { - uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(), - proto.google.protobuf.UninterpretedOption.toObject, includeInstance) - }; - - jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj, - proto.google.protobuf.OneofOptions.extensions, proto.google.protobuf.OneofOptions.prototype.getExtension, - includeInstance); - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.OneofOptions} - */ -proto.google.protobuf.OneofOptions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.OneofOptions; - return proto.google.protobuf.OneofOptions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.OneofOptions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.OneofOptions} - */ -proto.google.protobuf.OneofOptions.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 999: - var value = new proto.google.protobuf.UninterpretedOption; - reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader); - msg.addUninterpretedOption(value); - break; - default: - jspb.Message.readBinaryExtension(msg, reader, - proto.google.protobuf.OneofOptions.extensionsBinary, - proto.google.protobuf.OneofOptions.prototype.getExtension, - proto.google.protobuf.OneofOptions.prototype.setExtension); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.OneofOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.OneofOptions.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.OneofOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.OneofOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUninterpretedOptionList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 999, - f, - proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter - ); - } - jspb.Message.serializeBinaryExtensions(message, writer, - proto.google.protobuf.OneofOptions.extensionsBinary, proto.google.protobuf.OneofOptions.prototype.getExtension); -}; - - -/** - * repeated UninterpretedOption uninterpreted_option = 999; - * @return {!Array} - */ -proto.google.protobuf.OneofOptions.prototype.getUninterpretedOptionList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.OneofOptions} returns this -*/ -proto.google.protobuf.OneofOptions.prototype.setUninterpretedOptionList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 999, value); -}; - - -/** - * @param {!proto.google.protobuf.UninterpretedOption=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.UninterpretedOption} - */ -proto.google.protobuf.OneofOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.OneofOptions} returns this - */ -proto.google.protobuf.OneofOptions.prototype.clearUninterpretedOptionList = function() { - return this.setUninterpretedOptionList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.EnumOptions.repeatedFields_ = [999]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.EnumOptions.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.EnumOptions.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.EnumOptions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.EnumOptions.toObject = function(includeInstance, msg) { - var f, obj = { - allowAlias: (f = jspb.Message.getBooleanField(msg, 2)) == null ? undefined : f, - deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(), - proto.google.protobuf.UninterpretedOption.toObject, includeInstance) - }; - - jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj, - proto.google.protobuf.EnumOptions.extensions, proto.google.protobuf.EnumOptions.prototype.getExtension, - includeInstance); - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.EnumOptions} - */ -proto.google.protobuf.EnumOptions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.EnumOptions; - return proto.google.protobuf.EnumOptions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.EnumOptions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.EnumOptions} - */ -proto.google.protobuf.EnumOptions.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAllowAlias(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDeprecated(value); - break; - case 999: - var value = new proto.google.protobuf.UninterpretedOption; - reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader); - msg.addUninterpretedOption(value); - break; - default: - jspb.Message.readBinaryExtension(msg, reader, - proto.google.protobuf.EnumOptions.extensionsBinary, - proto.google.protobuf.EnumOptions.prototype.getExtension, - proto.google.protobuf.EnumOptions.prototype.setExtension); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.EnumOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.EnumOptions.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.EnumOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.EnumOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeBool( - 2, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeBool( - 3, - f - ); - } - f = message.getUninterpretedOptionList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 999, - f, - proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter - ); - } - jspb.Message.serializeBinaryExtensions(message, writer, - proto.google.protobuf.EnumOptions.extensionsBinary, proto.google.protobuf.EnumOptions.prototype.getExtension); -}; - - -/** - * optional bool allow_alias = 2; - * @return {boolean} - */ -proto.google.protobuf.EnumOptions.prototype.getAllowAlias = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.EnumOptions} returns this - */ -proto.google.protobuf.EnumOptions.prototype.setAllowAlias = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.EnumOptions} returns this - */ -proto.google.protobuf.EnumOptions.prototype.clearAllowAlias = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.EnumOptions.prototype.hasAllowAlias = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional bool deprecated = 3; - * @return {boolean} - */ -proto.google.protobuf.EnumOptions.prototype.getDeprecated = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.EnumOptions} returns this - */ -proto.google.protobuf.EnumOptions.prototype.setDeprecated = function(value) { - return jspb.Message.setField(this, 3, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.EnumOptions} returns this - */ -proto.google.protobuf.EnumOptions.prototype.clearDeprecated = function() { - return jspb.Message.setField(this, 3, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.EnumOptions.prototype.hasDeprecated = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * repeated UninterpretedOption uninterpreted_option = 999; - * @return {!Array} - */ -proto.google.protobuf.EnumOptions.prototype.getUninterpretedOptionList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.EnumOptions} returns this -*/ -proto.google.protobuf.EnumOptions.prototype.setUninterpretedOptionList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 999, value); -}; - - -/** - * @param {!proto.google.protobuf.UninterpretedOption=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.UninterpretedOption} - */ -proto.google.protobuf.EnumOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.EnumOptions} returns this - */ -proto.google.protobuf.EnumOptions.prototype.clearUninterpretedOptionList = function() { - return this.setUninterpretedOptionList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.EnumValueOptions.repeatedFields_ = [999]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.EnumValueOptions.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.EnumValueOptions.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.EnumValueOptions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.EnumValueOptions.toObject = function(includeInstance, msg) { - var f, obj = { - deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(), - proto.google.protobuf.UninterpretedOption.toObject, includeInstance) - }; - - jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj, - proto.google.protobuf.EnumValueOptions.extensions, proto.google.protobuf.EnumValueOptions.prototype.getExtension, - includeInstance); - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.EnumValueOptions} - */ -proto.google.protobuf.EnumValueOptions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.EnumValueOptions; - return proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.EnumValueOptions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.EnumValueOptions} - */ -proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDeprecated(value); - break; - case 999: - var value = new proto.google.protobuf.UninterpretedOption; - reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader); - msg.addUninterpretedOption(value); - break; - default: - jspb.Message.readBinaryExtension(msg, reader, - proto.google.protobuf.EnumValueOptions.extensionsBinary, - proto.google.protobuf.EnumValueOptions.prototype.getExtension, - proto.google.protobuf.EnumValueOptions.prototype.setExtension); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.EnumValueOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.EnumValueOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {boolean} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeBool( - 1, - f - ); - } - f = message.getUninterpretedOptionList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 999, - f, - proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter - ); - } - jspb.Message.serializeBinaryExtensions(message, writer, - proto.google.protobuf.EnumValueOptions.extensionsBinary, proto.google.protobuf.EnumValueOptions.prototype.getExtension); -}; - - -/** - * optional bool deprecated = 1; - * @return {boolean} - */ -proto.google.protobuf.EnumValueOptions.prototype.getDeprecated = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.EnumValueOptions} returns this - */ -proto.google.protobuf.EnumValueOptions.prototype.setDeprecated = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.EnumValueOptions} returns this - */ -proto.google.protobuf.EnumValueOptions.prototype.clearDeprecated = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.EnumValueOptions.prototype.hasDeprecated = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated UninterpretedOption uninterpreted_option = 999; - * @return {!Array} - */ -proto.google.protobuf.EnumValueOptions.prototype.getUninterpretedOptionList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.EnumValueOptions} returns this -*/ -proto.google.protobuf.EnumValueOptions.prototype.setUninterpretedOptionList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 999, value); -}; - - -/** - * @param {!proto.google.protobuf.UninterpretedOption=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.UninterpretedOption} - */ -proto.google.protobuf.EnumValueOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.EnumValueOptions} returns this - */ -proto.google.protobuf.EnumValueOptions.prototype.clearUninterpretedOptionList = function() { - return this.setUninterpretedOptionList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.ServiceOptions.repeatedFields_ = [999]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.ServiceOptions.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.ServiceOptions.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.ServiceOptions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.ServiceOptions.toObject = function(includeInstance, msg) { - var f, obj = { - deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 33, false), - uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(), - proto.google.protobuf.UninterpretedOption.toObject, includeInstance) - }; - - jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj, - proto.google.protobuf.ServiceOptions.extensions, proto.google.protobuf.ServiceOptions.prototype.getExtension, - includeInstance); - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.ServiceOptions} - */ -proto.google.protobuf.ServiceOptions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.ServiceOptions; - return proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.ServiceOptions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.ServiceOptions} - */ -proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 33: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDeprecated(value); - break; - case 999: - var value = new proto.google.protobuf.UninterpretedOption; - reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader); - msg.addUninterpretedOption(value); - break; - default: - jspb.Message.readBinaryExtension(msg, reader, - proto.google.protobuf.ServiceOptions.extensionsBinary, - proto.google.protobuf.ServiceOptions.prototype.getExtension, - proto.google.protobuf.ServiceOptions.prototype.setExtension); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.ServiceOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.ServiceOptions.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.ServiceOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.ServiceOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {boolean} */ (jspb.Message.getField(message, 33)); - if (f != null) { - writer.writeBool( - 33, - f - ); - } - f = message.getUninterpretedOptionList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 999, - f, - proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter - ); - } - jspb.Message.serializeBinaryExtensions(message, writer, - proto.google.protobuf.ServiceOptions.extensionsBinary, proto.google.protobuf.ServiceOptions.prototype.getExtension); -}; - - -/** - * optional bool deprecated = 33; - * @return {boolean} - */ -proto.google.protobuf.ServiceOptions.prototype.getDeprecated = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 33, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.ServiceOptions} returns this - */ -proto.google.protobuf.ServiceOptions.prototype.setDeprecated = function(value) { - return jspb.Message.setField(this, 33, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.ServiceOptions} returns this - */ -proto.google.protobuf.ServiceOptions.prototype.clearDeprecated = function() { - return jspb.Message.setField(this, 33, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.ServiceOptions.prototype.hasDeprecated = function() { - return jspb.Message.getField(this, 33) != null; -}; - - -/** - * repeated UninterpretedOption uninterpreted_option = 999; - * @return {!Array} - */ -proto.google.protobuf.ServiceOptions.prototype.getUninterpretedOptionList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.ServiceOptions} returns this -*/ -proto.google.protobuf.ServiceOptions.prototype.setUninterpretedOptionList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 999, value); -}; - - -/** - * @param {!proto.google.protobuf.UninterpretedOption=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.UninterpretedOption} - */ -proto.google.protobuf.ServiceOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.ServiceOptions} returns this - */ -proto.google.protobuf.ServiceOptions.prototype.clearUninterpretedOptionList = function() { - return this.setUninterpretedOptionList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.MethodOptions.repeatedFields_ = [999]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.MethodOptions.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.MethodOptions.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.MethodOptions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.MethodOptions.toObject = function(includeInstance, msg) { - var f, obj = { - deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 33, false), - idempotencyLevel: jspb.Message.getFieldWithDefault(msg, 34, 0), - uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(), - proto.google.protobuf.UninterpretedOption.toObject, includeInstance) - }; - - jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj, - proto.google.protobuf.MethodOptions.extensions, proto.google.protobuf.MethodOptions.prototype.getExtension, - includeInstance); - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.MethodOptions} - */ -proto.google.protobuf.MethodOptions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.MethodOptions; - return proto.google.protobuf.MethodOptions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.MethodOptions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.MethodOptions} - */ -proto.google.protobuf.MethodOptions.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 33: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDeprecated(value); - break; - case 34: - var value = /** @type {!proto.google.protobuf.MethodOptions.IdempotencyLevel} */ (reader.readEnum()); - msg.setIdempotencyLevel(value); - break; - case 999: - var value = new proto.google.protobuf.UninterpretedOption; - reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader); - msg.addUninterpretedOption(value); - break; - default: - jspb.Message.readBinaryExtension(msg, reader, - proto.google.protobuf.MethodOptions.extensionsBinary, - proto.google.protobuf.MethodOptions.prototype.getExtension, - proto.google.protobuf.MethodOptions.prototype.setExtension); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.MethodOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.MethodOptions.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.MethodOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.MethodOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {boolean} */ (jspb.Message.getField(message, 33)); - if (f != null) { - writer.writeBool( - 33, - f - ); - } - f = /** @type {!proto.google.protobuf.MethodOptions.IdempotencyLevel} */ (jspb.Message.getField(message, 34)); - if (f != null) { - writer.writeEnum( - 34, - f - ); - } - f = message.getUninterpretedOptionList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 999, - f, - proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter - ); - } - jspb.Message.serializeBinaryExtensions(message, writer, - proto.google.protobuf.MethodOptions.extensionsBinary, proto.google.protobuf.MethodOptions.prototype.getExtension); -}; - - -/** - * @enum {number} - */ -proto.google.protobuf.MethodOptions.IdempotencyLevel = { - IDEMPOTENCY_UNKNOWN: 0, - NO_SIDE_EFFECTS: 1, - IDEMPOTENT: 2 -}; - -/** - * optional bool deprecated = 33; - * @return {boolean} - */ -proto.google.protobuf.MethodOptions.prototype.getDeprecated = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 33, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.MethodOptions} returns this - */ -proto.google.protobuf.MethodOptions.prototype.setDeprecated = function(value) { - return jspb.Message.setField(this, 33, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.MethodOptions} returns this - */ -proto.google.protobuf.MethodOptions.prototype.clearDeprecated = function() { - return jspb.Message.setField(this, 33, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.MethodOptions.prototype.hasDeprecated = function() { - return jspb.Message.getField(this, 33) != null; -}; - - -/** - * optional IdempotencyLevel idempotency_level = 34; - * @return {!proto.google.protobuf.MethodOptions.IdempotencyLevel} - */ -proto.google.protobuf.MethodOptions.prototype.getIdempotencyLevel = function() { - return /** @type {!proto.google.protobuf.MethodOptions.IdempotencyLevel} */ (jspb.Message.getFieldWithDefault(this, 34, 0)); -}; - - -/** - * @param {!proto.google.protobuf.MethodOptions.IdempotencyLevel} value - * @return {!proto.google.protobuf.MethodOptions} returns this - */ -proto.google.protobuf.MethodOptions.prototype.setIdempotencyLevel = function(value) { - return jspb.Message.setField(this, 34, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.MethodOptions} returns this - */ -proto.google.protobuf.MethodOptions.prototype.clearIdempotencyLevel = function() { - return jspb.Message.setField(this, 34, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.MethodOptions.prototype.hasIdempotencyLevel = function() { - return jspb.Message.getField(this, 34) != null; -}; - - -/** - * repeated UninterpretedOption uninterpreted_option = 999; - * @return {!Array} - */ -proto.google.protobuf.MethodOptions.prototype.getUninterpretedOptionList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.MethodOptions} returns this -*/ -proto.google.protobuf.MethodOptions.prototype.setUninterpretedOptionList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 999, value); -}; - - -/** - * @param {!proto.google.protobuf.UninterpretedOption=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.UninterpretedOption} - */ -proto.google.protobuf.MethodOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.MethodOptions} returns this - */ -proto.google.protobuf.MethodOptions.prototype.clearUninterpretedOptionList = function() { - return this.setUninterpretedOptionList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.UninterpretedOption.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.UninterpretedOption.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.UninterpretedOption.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.UninterpretedOption} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.UninterpretedOption.toObject = function(includeInstance, msg) { - var f, obj = { - nameList: jspb.Message.toObjectList(msg.getNameList(), - proto.google.protobuf.UninterpretedOption.NamePart.toObject, includeInstance), - identifierValue: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f, - positiveIntValue: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f, - negativeIntValue: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f, - doubleValue: (f = jspb.Message.getOptionalFloatingPointField(msg, 6)) == null ? undefined : f, - stringValue: msg.getStringValue_asB64(), - aggregateValue: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.UninterpretedOption} - */ -proto.google.protobuf.UninterpretedOption.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.UninterpretedOption; - return proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.UninterpretedOption} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.UninterpretedOption} - */ -proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = new proto.google.protobuf.UninterpretedOption.NamePart; - reader.readMessage(value,proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader); - msg.addName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setIdentifierValue(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setPositiveIntValue(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setNegativeIntValue(value); - break; - case 6: - var value = /** @type {number} */ (reader.readDouble()); - msg.setDoubleValue(value); - break; - case 7: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setStringValue(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setAggregateValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.UninterpretedOption.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.UninterpretedOption} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNameList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeString( - 3, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeUint64( - 4, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 5)); - if (f != null) { - writer.writeInt64( - 5, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeDouble( - 6, - f - ); - } - f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeBytes( - 7, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 8)); - if (f != null) { - writer.writeString( - 8, - f - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.UninterpretedOption.NamePart.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.UninterpretedOption.NamePart.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.UninterpretedOption.NamePart} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.UninterpretedOption.NamePart.toObject = function(includeInstance, msg) { - var f, obj = { - namePart: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, - isExtension: (f = jspb.Message.getBooleanField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.UninterpretedOption.NamePart} - */ -proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.UninterpretedOption.NamePart; - return proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.UninterpretedOption.NamePart} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.UninterpretedOption.NamePart} - */ -proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setNamePart(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsExtension(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.UninterpretedOption.NamePart.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.UninterpretedOption.NamePart} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * required string name_part = 1; - * @return {string} - */ -proto.google.protobuf.UninterpretedOption.NamePart.prototype.getNamePart = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.UninterpretedOption.NamePart} returns this - */ -proto.google.protobuf.UninterpretedOption.NamePart.prototype.setNamePart = function(value) { - return jspb.Message.setField(this, 1, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.UninterpretedOption.NamePart} returns this - */ -proto.google.protobuf.UninterpretedOption.NamePart.prototype.clearNamePart = function() { - return jspb.Message.setField(this, 1, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.UninterpretedOption.NamePart.prototype.hasNamePart = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * required bool is_extension = 2; - * @return {boolean} - */ -proto.google.protobuf.UninterpretedOption.NamePart.prototype.getIsExtension = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.UninterpretedOption.NamePart} returns this - */ -proto.google.protobuf.UninterpretedOption.NamePart.prototype.setIsExtension = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.UninterpretedOption.NamePart} returns this - */ -proto.google.protobuf.UninterpretedOption.NamePart.prototype.clearIsExtension = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.UninterpretedOption.NamePart.prototype.hasIsExtension = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * repeated NamePart name = 2; - * @return {!Array} - */ -proto.google.protobuf.UninterpretedOption.prototype.getNameList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption.NamePart, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.UninterpretedOption} returns this -*/ -proto.google.protobuf.UninterpretedOption.prototype.setNameList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.protobuf.UninterpretedOption.NamePart=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.UninterpretedOption.NamePart} - */ -proto.google.protobuf.UninterpretedOption.prototype.addName = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.UninterpretedOption.NamePart, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.UninterpretedOption} returns this - */ -proto.google.protobuf.UninterpretedOption.prototype.clearNameList = function() { - return this.setNameList([]); -}; - - -/** - * optional string identifier_value = 3; - * @return {string} - */ -proto.google.protobuf.UninterpretedOption.prototype.getIdentifierValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.UninterpretedOption} returns this - */ -proto.google.protobuf.UninterpretedOption.prototype.setIdentifierValue = function(value) { - return jspb.Message.setField(this, 3, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.UninterpretedOption} returns this - */ -proto.google.protobuf.UninterpretedOption.prototype.clearIdentifierValue = function() { - return jspb.Message.setField(this, 3, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.UninterpretedOption.prototype.hasIdentifierValue = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional uint64 positive_int_value = 4; - * @return {number} - */ -proto.google.protobuf.UninterpretedOption.prototype.getPositiveIntValue = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.UninterpretedOption} returns this - */ -proto.google.protobuf.UninterpretedOption.prototype.setPositiveIntValue = function(value) { - return jspb.Message.setField(this, 4, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.UninterpretedOption} returns this - */ -proto.google.protobuf.UninterpretedOption.prototype.clearPositiveIntValue = function() { - return jspb.Message.setField(this, 4, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.UninterpretedOption.prototype.hasPositiveIntValue = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional int64 negative_int_value = 5; - * @return {number} - */ -proto.google.protobuf.UninterpretedOption.prototype.getNegativeIntValue = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.UninterpretedOption} returns this - */ -proto.google.protobuf.UninterpretedOption.prototype.setNegativeIntValue = function(value) { - return jspb.Message.setField(this, 5, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.UninterpretedOption} returns this - */ -proto.google.protobuf.UninterpretedOption.prototype.clearNegativeIntValue = function() { - return jspb.Message.setField(this, 5, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.UninterpretedOption.prototype.hasNegativeIntValue = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional double double_value = 6; - * @return {number} - */ -proto.google.protobuf.UninterpretedOption.prototype.getDoubleValue = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.UninterpretedOption} returns this - */ -proto.google.protobuf.UninterpretedOption.prototype.setDoubleValue = function(value) { - return jspb.Message.setField(this, 6, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.UninterpretedOption} returns this - */ -proto.google.protobuf.UninterpretedOption.prototype.clearDoubleValue = function() { - return jspb.Message.setField(this, 6, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.UninterpretedOption.prototype.hasDoubleValue = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional bytes string_value = 7; - * @return {!(string|Uint8Array)} - */ -proto.google.protobuf.UninterpretedOption.prototype.getStringValue = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * optional bytes string_value = 7; - * This is a type-conversion wrapper around `getStringValue()` - * @return {string} - */ -proto.google.protobuf.UninterpretedOption.prototype.getStringValue_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getStringValue())); -}; - - -/** - * optional bytes string_value = 7; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getStringValue()` - * @return {!Uint8Array} - */ -proto.google.protobuf.UninterpretedOption.prototype.getStringValue_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getStringValue())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.google.protobuf.UninterpretedOption} returns this - */ -proto.google.protobuf.UninterpretedOption.prototype.setStringValue = function(value) { - return jspb.Message.setField(this, 7, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.UninterpretedOption} returns this - */ -proto.google.protobuf.UninterpretedOption.prototype.clearStringValue = function() { - return jspb.Message.setField(this, 7, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.UninterpretedOption.prototype.hasStringValue = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional string aggregate_value = 8; - * @return {string} - */ -proto.google.protobuf.UninterpretedOption.prototype.getAggregateValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.UninterpretedOption} returns this - */ -proto.google.protobuf.UninterpretedOption.prototype.setAggregateValue = function(value) { - return jspb.Message.setField(this, 8, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.UninterpretedOption} returns this - */ -proto.google.protobuf.UninterpretedOption.prototype.clearAggregateValue = function() { - return jspb.Message.setField(this, 8, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.UninterpretedOption.prototype.hasAggregateValue = function() { - return jspb.Message.getField(this, 8) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.SourceCodeInfo.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.SourceCodeInfo.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.SourceCodeInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.SourceCodeInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.SourceCodeInfo.toObject = function(includeInstance, msg) { - var f, obj = { - locationList: jspb.Message.toObjectList(msg.getLocationList(), - proto.google.protobuf.SourceCodeInfo.Location.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.SourceCodeInfo} - */ -proto.google.protobuf.SourceCodeInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.SourceCodeInfo; - return proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.SourceCodeInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.SourceCodeInfo} - */ -proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.protobuf.SourceCodeInfo.Location; - reader.readMessage(value,proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader); - msg.addLocation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.SourceCodeInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.SourceCodeInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLocationList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter - ); - } -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.SourceCodeInfo.Location.repeatedFields_ = [1,2,6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.SourceCodeInfo.Location.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.SourceCodeInfo.Location} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.SourceCodeInfo.Location.toObject = function(includeInstance, msg) { - var f, obj = { - pathList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, - spanList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - leadingComments: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f, - trailingComments: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f, - leadingDetachedCommentsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.SourceCodeInfo.Location} - */ -proto.google.protobuf.SourceCodeInfo.Location.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.SourceCodeInfo.Location; - return proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.SourceCodeInfo.Location} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.SourceCodeInfo.Location} - */ -proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Array} */ (reader.readPackedInt32()); - msg.setPathList(value); - break; - case 2: - var value = /** @type {!Array} */ (reader.readPackedInt32()); - msg.setSpanList(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLeadingComments(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTrailingComments(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.addLeadingDetachedComments(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.SourceCodeInfo.Location} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPathList(); - if (f.length > 0) { - writer.writePackedInt32( - 1, - f - ); - } - f = message.getSpanList(); - if (f.length > 0) { - writer.writePackedInt32( - 2, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeString( - 3, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeString( - 4, - f - ); - } - f = message.getLeadingDetachedCommentsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 6, - f - ); - } -}; - - -/** - * repeated int32 path = 1; - * @return {!Array} - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.getPathList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.setPathList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.addPath = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.clearPathList = function() { - return this.setPathList([]); -}; - - -/** - * repeated int32 span = 2; - * @return {!Array} - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.getSpanList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.setSpanList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.addSpan = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.clearSpanList = function() { - return this.setSpanList([]); -}; - - -/** - * optional string leading_comments = 3; - * @return {string} - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.getLeadingComments = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.setLeadingComments = function(value) { - return jspb.Message.setField(this, 3, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.clearLeadingComments = function() { - return jspb.Message.setField(this, 3, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.hasLeadingComments = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string trailing_comments = 4; - * @return {string} - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.getTrailingComments = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.setTrailingComments = function(value) { - return jspb.Message.setField(this, 4, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.clearTrailingComments = function() { - return jspb.Message.setField(this, 4, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.hasTrailingComments = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * repeated string leading_detached_comments = 6; - * @return {!Array} - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.getLeadingDetachedCommentsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.setLeadingDetachedCommentsList = function(value) { - return jspb.Message.setField(this, 6, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.addLeadingDetachedComments = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 6, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this - */ -proto.google.protobuf.SourceCodeInfo.Location.prototype.clearLeadingDetachedCommentsList = function() { - return this.setLeadingDetachedCommentsList([]); -}; - - -/** - * repeated Location location = 1; - * @return {!Array} - */ -proto.google.protobuf.SourceCodeInfo.prototype.getLocationList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.SourceCodeInfo.Location, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.SourceCodeInfo} returns this -*/ -proto.google.protobuf.SourceCodeInfo.prototype.setLocationList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.protobuf.SourceCodeInfo.Location=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.SourceCodeInfo.Location} - */ -proto.google.protobuf.SourceCodeInfo.prototype.addLocation = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.SourceCodeInfo.Location, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.SourceCodeInfo} returns this - */ -proto.google.protobuf.SourceCodeInfo.prototype.clearLocationList = function() { - return this.setLocationList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.GeneratedCodeInfo.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.GeneratedCodeInfo.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.GeneratedCodeInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.GeneratedCodeInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.GeneratedCodeInfo.toObject = function(includeInstance, msg) { - var f, obj = { - annotationList: jspb.Message.toObjectList(msg.getAnnotationList(), - proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.GeneratedCodeInfo} - */ -proto.google.protobuf.GeneratedCodeInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.GeneratedCodeInfo; - return proto.google.protobuf.GeneratedCodeInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.GeneratedCodeInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.GeneratedCodeInfo} - */ -proto.google.protobuf.GeneratedCodeInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.protobuf.GeneratedCodeInfo.Annotation; - reader.readMessage(value,proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader); - msg.addAnnotation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.GeneratedCodeInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.GeneratedCodeInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.GeneratedCodeInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.GeneratedCodeInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAnnotationList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter - ); - } -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.GeneratedCodeInfo.Annotation} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject = function(includeInstance, msg) { - var f, obj = { - pathList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, - sourceFile: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f, - begin: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f, - end: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.GeneratedCodeInfo.Annotation; - return proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.GeneratedCodeInfo.Annotation} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Array} */ (reader.readPackedInt32()); - msg.setPathList(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setSourceFile(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setBegin(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setEnd(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.GeneratedCodeInfo.Annotation} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPathList(); - if (f.length > 0) { - writer.writePackedInt32( - 1, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeString( - 2, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeInt32( - 3, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeInt32( - 4, - f - ); - } -}; - - -/** - * repeated int32 path = 1; - * @return {!Array} - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getPathList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setPathList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.addPath = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearPathList = function() { - return this.setPathList([]); -}; - - -/** - * optional string source_file = 2; - * @return {string} - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getSourceFile = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setSourceFile = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearSourceFile = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasSourceFile = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional int32 begin = 3; - * @return {number} - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getBegin = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setBegin = function(value) { - return jspb.Message.setField(this, 3, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearBegin = function() { - return jspb.Message.setField(this, 3, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasBegin = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional int32 end = 4; - * @return {number} - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getEnd = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setEnd = function(value) { - return jspb.Message.setField(this, 4, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearEnd = function() { - return jspb.Message.setField(this, 4, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasEnd = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * repeated Annotation annotation = 1; - * @return {!Array} - */ -proto.google.protobuf.GeneratedCodeInfo.prototype.getAnnotationList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.GeneratedCodeInfo.Annotation, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.protobuf.GeneratedCodeInfo} returns this -*/ -proto.google.protobuf.GeneratedCodeInfo.prototype.setAnnotationList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.protobuf.GeneratedCodeInfo.Annotation=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} - */ -proto.google.protobuf.GeneratedCodeInfo.prototype.addAnnotation = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.GeneratedCodeInfo.Annotation, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.protobuf.GeneratedCodeInfo} returns this - */ -proto.google.protobuf.GeneratedCodeInfo.prototype.clearAnnotationList = function() { - return this.setAnnotationList([]); -}; - - -goog.object.extend(exports, proto.google.protobuf); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/descriptor_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/descriptor_pb_service.d.ts deleted file mode 100644 index b13e1c5646..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/descriptor_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: google.protobuf -// file: google/protobuf/descriptor.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/descriptor_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/descriptor_pb_service.js deleted file mode 100644 index b13e1c5646..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/descriptor_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: google.protobuf -// file: google/protobuf/descriptor.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/wrappers_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/wrappers_pb.d.ts deleted file mode 100644 index 31dcea7160..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/wrappers_pb.d.ts +++ /dev/null @@ -1,187 +0,0 @@ -// package: google.protobuf -// file: google/protobuf/wrappers.proto - -import * as jspb from "google-protobuf"; - -export class DoubleValue extends jspb.Message { - getValue(): number; - setValue(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DoubleValue.AsObject; - static toObject(includeInstance: boolean, msg: DoubleValue): DoubleValue.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DoubleValue, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DoubleValue; - static deserializeBinaryFromReader(message: DoubleValue, reader: jspb.BinaryReader): DoubleValue; -} - -export namespace DoubleValue { - export type AsObject = { - value: number, - } -} - -export class FloatValue extends jspb.Message { - getValue(): number; - setValue(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FloatValue.AsObject; - static toObject(includeInstance: boolean, msg: FloatValue): FloatValue.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FloatValue, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FloatValue; - static deserializeBinaryFromReader(message: FloatValue, reader: jspb.BinaryReader): FloatValue; -} - -export namespace FloatValue { - export type AsObject = { - value: number, - } -} - -export class Int64Value extends jspb.Message { - getValue(): number; - setValue(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Int64Value.AsObject; - static toObject(includeInstance: boolean, msg: Int64Value): Int64Value.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Int64Value, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Int64Value; - static deserializeBinaryFromReader(message: Int64Value, reader: jspb.BinaryReader): Int64Value; -} - -export namespace Int64Value { - export type AsObject = { - value: number, - } -} - -export class UInt64Value extends jspb.Message { - getValue(): number; - setValue(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UInt64Value.AsObject; - static toObject(includeInstance: boolean, msg: UInt64Value): UInt64Value.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UInt64Value, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UInt64Value; - static deserializeBinaryFromReader(message: UInt64Value, reader: jspb.BinaryReader): UInt64Value; -} - -export namespace UInt64Value { - export type AsObject = { - value: number, - } -} - -export class Int32Value extends jspb.Message { - getValue(): number; - setValue(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Int32Value.AsObject; - static toObject(includeInstance: boolean, msg: Int32Value): Int32Value.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Int32Value, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Int32Value; - static deserializeBinaryFromReader(message: Int32Value, reader: jspb.BinaryReader): Int32Value; -} - -export namespace Int32Value { - export type AsObject = { - value: number, - } -} - -export class UInt32Value extends jspb.Message { - getValue(): number; - setValue(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UInt32Value.AsObject; - static toObject(includeInstance: boolean, msg: UInt32Value): UInt32Value.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UInt32Value, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UInt32Value; - static deserializeBinaryFromReader(message: UInt32Value, reader: jspb.BinaryReader): UInt32Value; -} - -export namespace UInt32Value { - export type AsObject = { - value: number, - } -} - -export class BoolValue extends jspb.Message { - getValue(): boolean; - setValue(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BoolValue.AsObject; - static toObject(includeInstance: boolean, msg: BoolValue): BoolValue.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BoolValue, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BoolValue; - static deserializeBinaryFromReader(message: BoolValue, reader: jspb.BinaryReader): BoolValue; -} - -export namespace BoolValue { - export type AsObject = { - value: boolean, - } -} - -export class StringValue extends jspb.Message { - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StringValue.AsObject; - static toObject(includeInstance: boolean, msg: StringValue): StringValue.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StringValue, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StringValue; - static deserializeBinaryFromReader(message: StringValue, reader: jspb.BinaryReader): StringValue; -} - -export namespace StringValue { - export type AsObject = { - value: string, - } -} - -export class BytesValue extends jspb.Message { - getValue(): Uint8Array | string; - getValue_asU8(): Uint8Array; - getValue_asB64(): string; - setValue(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BytesValue.AsObject; - static toObject(includeInstance: boolean, msg: BytesValue): BytesValue.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BytesValue, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BytesValue; - static deserializeBinaryFromReader(message: BytesValue, reader: jspb.BinaryReader): BytesValue; -} - -export namespace BytesValue { - export type AsObject = { - value: Uint8Array | string, - } -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/wrappers_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/wrappers_pb.js deleted file mode 100644 index a6f7c789ff..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/wrappers_pb.js +++ /dev/null @@ -1,1407 +0,0 @@ -// source: google/protobuf/wrappers.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.protobuf.BoolValue', null, global); -goog.exportSymbol('proto.google.protobuf.BytesValue', null, global); -goog.exportSymbol('proto.google.protobuf.DoubleValue', null, global); -goog.exportSymbol('proto.google.protobuf.FloatValue', null, global); -goog.exportSymbol('proto.google.protobuf.Int32Value', null, global); -goog.exportSymbol('proto.google.protobuf.Int64Value', null, global); -goog.exportSymbol('proto.google.protobuf.StringValue', null, global); -goog.exportSymbol('proto.google.protobuf.UInt32Value', null, global); -goog.exportSymbol('proto.google.protobuf.UInt64Value', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.DoubleValue = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.DoubleValue, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.DoubleValue.displayName = 'proto.google.protobuf.DoubleValue'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.FloatValue = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.FloatValue, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.FloatValue.displayName = 'proto.google.protobuf.FloatValue'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.Int64Value = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.Int64Value, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.Int64Value.displayName = 'proto.google.protobuf.Int64Value'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.UInt64Value = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.UInt64Value, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.UInt64Value.displayName = 'proto.google.protobuf.UInt64Value'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.Int32Value = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.Int32Value, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.Int32Value.displayName = 'proto.google.protobuf.Int32Value'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.UInt32Value = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.UInt32Value, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.UInt32Value.displayName = 'proto.google.protobuf.UInt32Value'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.BoolValue = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.BoolValue, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.BoolValue.displayName = 'proto.google.protobuf.BoolValue'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.StringValue = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.StringValue, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.StringValue.displayName = 'proto.google.protobuf.StringValue'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.protobuf.BytesValue = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.protobuf.BytesValue, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.protobuf.BytesValue.displayName = 'proto.google.protobuf.BytesValue'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.DoubleValue.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.DoubleValue.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.DoubleValue} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.DoubleValue.toObject = function(includeInstance, msg) { - var f, obj = { - value: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.DoubleValue} - */ -proto.google.protobuf.DoubleValue.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.DoubleValue; - return proto.google.protobuf.DoubleValue.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.DoubleValue} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.DoubleValue} - */ -proto.google.protobuf.DoubleValue.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readDouble()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.DoubleValue.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.DoubleValue.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.DoubleValue} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.DoubleValue.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValue(); - if (f !== 0.0) { - writer.writeDouble( - 1, - f - ); - } -}; - - -/** - * optional double value = 1; - * @return {number} - */ -proto.google.protobuf.DoubleValue.prototype.getValue = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.DoubleValue} returns this - */ -proto.google.protobuf.DoubleValue.prototype.setValue = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.FloatValue.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.FloatValue.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.FloatValue} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.FloatValue.toObject = function(includeInstance, msg) { - var f, obj = { - value: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.FloatValue} - */ -proto.google.protobuf.FloatValue.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.FloatValue; - return proto.google.protobuf.FloatValue.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.FloatValue} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.FloatValue} - */ -proto.google.protobuf.FloatValue.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readFloat()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.FloatValue.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.FloatValue.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.FloatValue} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.FloatValue.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValue(); - if (f !== 0.0) { - writer.writeFloat( - 1, - f - ); - } -}; - - -/** - * optional float value = 1; - * @return {number} - */ -proto.google.protobuf.FloatValue.prototype.getValue = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.FloatValue} returns this - */ -proto.google.protobuf.FloatValue.prototype.setValue = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.Int64Value.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.Int64Value.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.Int64Value} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.Int64Value.toObject = function(includeInstance, msg) { - var f, obj = { - value: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.Int64Value} - */ -proto.google.protobuf.Int64Value.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.Int64Value; - return proto.google.protobuf.Int64Value.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.Int64Value} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.Int64Value} - */ -proto.google.protobuf.Int64Value.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.Int64Value.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.Int64Value.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.Int64Value} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.Int64Value.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValue(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } -}; - - -/** - * optional int64 value = 1; - * @return {number} - */ -proto.google.protobuf.Int64Value.prototype.getValue = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.Int64Value} returns this - */ -proto.google.protobuf.Int64Value.prototype.setValue = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.UInt64Value.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.UInt64Value.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.UInt64Value} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.UInt64Value.toObject = function(includeInstance, msg) { - var f, obj = { - value: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.UInt64Value} - */ -proto.google.protobuf.UInt64Value.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.UInt64Value; - return proto.google.protobuf.UInt64Value.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.UInt64Value} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.UInt64Value} - */ -proto.google.protobuf.UInt64Value.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.UInt64Value.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.UInt64Value.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.UInt64Value} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.UInt64Value.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValue(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } -}; - - -/** - * optional uint64 value = 1; - * @return {number} - */ -proto.google.protobuf.UInt64Value.prototype.getValue = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.UInt64Value} returns this - */ -proto.google.protobuf.UInt64Value.prototype.setValue = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.Int32Value.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.Int32Value.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.Int32Value} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.Int32Value.toObject = function(includeInstance, msg) { - var f, obj = { - value: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.Int32Value} - */ -proto.google.protobuf.Int32Value.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.Int32Value; - return proto.google.protobuf.Int32Value.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.Int32Value} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.Int32Value} - */ -proto.google.protobuf.Int32Value.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.Int32Value.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.Int32Value.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.Int32Value} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.Int32Value.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValue(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } -}; - - -/** - * optional int32 value = 1; - * @return {number} - */ -proto.google.protobuf.Int32Value.prototype.getValue = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.Int32Value} returns this - */ -proto.google.protobuf.Int32Value.prototype.setValue = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.UInt32Value.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.UInt32Value.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.UInt32Value} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.UInt32Value.toObject = function(includeInstance, msg) { - var f, obj = { - value: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.UInt32Value} - */ -proto.google.protobuf.UInt32Value.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.UInt32Value; - return proto.google.protobuf.UInt32Value.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.UInt32Value} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.UInt32Value} - */ -proto.google.protobuf.UInt32Value.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.UInt32Value.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.UInt32Value.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.UInt32Value} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.UInt32Value.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValue(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } -}; - - -/** - * optional uint32 value = 1; - * @return {number} - */ -proto.google.protobuf.UInt32Value.prototype.getValue = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.protobuf.UInt32Value} returns this - */ -proto.google.protobuf.UInt32Value.prototype.setValue = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.BoolValue.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.BoolValue.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.BoolValue} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.BoolValue.toObject = function(includeInstance, msg) { - var f, obj = { - value: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.BoolValue} - */ -proto.google.protobuf.BoolValue.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.BoolValue; - return proto.google.protobuf.BoolValue.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.BoolValue} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.BoolValue} - */ -proto.google.protobuf.BoolValue.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.BoolValue.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.BoolValue.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.BoolValue} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.BoolValue.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValue(); - if (f) { - writer.writeBool( - 1, - f - ); - } -}; - - -/** - * optional bool value = 1; - * @return {boolean} - */ -proto.google.protobuf.BoolValue.prototype.getValue = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.protobuf.BoolValue} returns this - */ -proto.google.protobuf.BoolValue.prototype.setValue = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.StringValue.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.StringValue.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.StringValue} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.StringValue.toObject = function(includeInstance, msg) { - var f, obj = { - value: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.StringValue} - */ -proto.google.protobuf.StringValue.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.StringValue; - return proto.google.protobuf.StringValue.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.StringValue} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.StringValue} - */ -proto.google.protobuf.StringValue.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.StringValue.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.StringValue.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.StringValue} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.StringValue.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string value = 1; - * @return {string} - */ -proto.google.protobuf.StringValue.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.protobuf.StringValue} returns this - */ -proto.google.protobuf.StringValue.prototype.setValue = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.protobuf.BytesValue.prototype.toObject = function(opt_includeInstance) { - return proto.google.protobuf.BytesValue.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.protobuf.BytesValue} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.BytesValue.toObject = function(includeInstance, msg) { - var f, obj = { - value: msg.getValue_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.protobuf.BytesValue} - */ -proto.google.protobuf.BytesValue.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.protobuf.BytesValue; - return proto.google.protobuf.BytesValue.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.protobuf.BytesValue} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.protobuf.BytesValue} - */ -proto.google.protobuf.BytesValue.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.protobuf.BytesValue.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.protobuf.BytesValue.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.protobuf.BytesValue} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.protobuf.BytesValue.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValue_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes value = 1; - * @return {!(string|Uint8Array)} - */ -proto.google.protobuf.BytesValue.prototype.getValue = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes value = 1; - * This is a type-conversion wrapper around `getValue()` - * @return {string} - */ -proto.google.protobuf.BytesValue.prototype.getValue_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getValue())); -}; - - -/** - * optional bytes value = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getValue()` - * @return {!Uint8Array} - */ -proto.google.protobuf.BytesValue.prototype.getValue_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getValue())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.google.protobuf.BytesValue} returns this - */ -proto.google.protobuf.BytesValue.prototype.setValue = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -goog.object.extend(exports, proto.google.protobuf); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/wrappers_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/wrappers_pb_service.d.ts deleted file mode 100644 index 5d9f53d609..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/wrappers_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: google.protobuf -// file: google/protobuf/wrappers.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/wrappers_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/wrappers_pb_service.js deleted file mode 100644 index 5d9f53d609..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/google/protobuf/wrappers_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: google.protobuf -// file: google/protobuf/wrappers.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/conflict/conflict_data_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/conflict/conflict_data_pb.d.ts deleted file mode 100644 index 643083c51f..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/conflict/conflict_data_pb.d.ts +++ /dev/null @@ -1,135 +0,0 @@ -// package: lavanet.lava.conflict -// file: lavanet/lava/conflict/conflict_data.proto - -import * as jspb from "google-protobuf"; -import * as gogoproto_gogo_pb from "../../../gogoproto/gogo_pb"; -import * as lavanet_lava_pairing_relay_pb from "../../../lavanet/lava/pairing/relay_pb"; - -export class ResponseConflict extends jspb.Message { - hasConflictrelaydata0(): boolean; - clearConflictrelaydata0(): void; - getConflictrelaydata0(): ConflictRelayData | undefined; - setConflictrelaydata0(value?: ConflictRelayData): void; - - hasConflictrelaydata1(): boolean; - clearConflictrelaydata1(): void; - getConflictrelaydata1(): ConflictRelayData | undefined; - setConflictrelaydata1(value?: ConflictRelayData): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResponseConflict.AsObject; - static toObject(includeInstance: boolean, msg: ResponseConflict): ResponseConflict.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResponseConflict, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResponseConflict; - static deserializeBinaryFromReader(message: ResponseConflict, reader: jspb.BinaryReader): ResponseConflict; -} - -export namespace ResponseConflict { - export type AsObject = { - conflictrelaydata0?: ConflictRelayData.AsObject, - conflictrelaydata1?: ConflictRelayData.AsObject, - } -} - -export class ConflictRelayData extends jspb.Message { - hasRequest(): boolean; - clearRequest(): void; - getRequest(): lavanet_lava_pairing_relay_pb.RelayRequest | undefined; - setRequest(value?: lavanet_lava_pairing_relay_pb.RelayRequest): void; - - hasReply(): boolean; - clearReply(): void; - getReply(): ReplyMetadata | undefined; - setReply(value?: ReplyMetadata): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConflictRelayData.AsObject; - static toObject(includeInstance: boolean, msg: ConflictRelayData): ConflictRelayData.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConflictRelayData, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConflictRelayData; - static deserializeBinaryFromReader(message: ConflictRelayData, reader: jspb.BinaryReader): ConflictRelayData; -} - -export namespace ConflictRelayData { - export type AsObject = { - request?: lavanet_lava_pairing_relay_pb.RelayRequest.AsObject, - reply?: ReplyMetadata.AsObject, - } -} - -export class ReplyMetadata extends jspb.Message { - getHashAllDataHash(): Uint8Array | string; - getHashAllDataHash_asU8(): Uint8Array; - getHashAllDataHash_asB64(): string; - setHashAllDataHash(value: Uint8Array | string): void; - - getSig(): Uint8Array | string; - getSig_asU8(): Uint8Array; - getSig_asB64(): string; - setSig(value: Uint8Array | string): void; - - getLatestBlock(): number; - setLatestBlock(value: number): void; - - getFinalizedBlocksHashes(): Uint8Array | string; - getFinalizedBlocksHashes_asU8(): Uint8Array; - getFinalizedBlocksHashes_asB64(): string; - setFinalizedBlocksHashes(value: Uint8Array | string): void; - - getSigBlocks(): Uint8Array | string; - getSigBlocks_asU8(): Uint8Array; - getSigBlocks_asB64(): string; - setSigBlocks(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ReplyMetadata.AsObject; - static toObject(includeInstance: boolean, msg: ReplyMetadata): ReplyMetadata.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ReplyMetadata, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ReplyMetadata; - static deserializeBinaryFromReader(message: ReplyMetadata, reader: jspb.BinaryReader): ReplyMetadata; -} - -export namespace ReplyMetadata { - export type AsObject = { - hashAllDataHash: Uint8Array | string, - sig: Uint8Array | string, - latestBlock: number, - finalizedBlocksHashes: Uint8Array | string, - sigBlocks: Uint8Array | string, - } -} - -export class FinalizationConflict extends jspb.Message { - hasRelayreply0(): boolean; - clearRelayreply0(): void; - getRelayreply0(): lavanet_lava_pairing_relay_pb.RelayReply | undefined; - setRelayreply0(value?: lavanet_lava_pairing_relay_pb.RelayReply): void; - - hasRelayreply1(): boolean; - clearRelayreply1(): void; - getRelayreply1(): lavanet_lava_pairing_relay_pb.RelayReply | undefined; - setRelayreply1(value?: lavanet_lava_pairing_relay_pb.RelayReply): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FinalizationConflict.AsObject; - static toObject(includeInstance: boolean, msg: FinalizationConflict): FinalizationConflict.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FinalizationConflict, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FinalizationConflict; - static deserializeBinaryFromReader(message: FinalizationConflict, reader: jspb.BinaryReader): FinalizationConflict; -} - -export namespace FinalizationConflict { - export type AsObject = { - relayreply0?: lavanet_lava_pairing_relay_pb.RelayReply.AsObject, - relayreply1?: lavanet_lava_pairing_relay_pb.RelayReply.AsObject, - } -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/conflict/conflict_data_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/conflict/conflict_data_pb.js deleted file mode 100644 index a22c6f9466..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/conflict/conflict_data_pb.js +++ /dev/null @@ -1,1059 +0,0 @@ -// source: lavanet/lava/conflict/conflict_data.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -var lavanet_lava_pairing_relay_pb = require('../../../lavanet/lava/pairing/relay_pb.js'); -goog.object.extend(proto, lavanet_lava_pairing_relay_pb); -goog.exportSymbol('proto.lavanet.lava.conflict.ConflictRelayData', null, global); -goog.exportSymbol('proto.lavanet.lava.conflict.FinalizationConflict', null, global); -goog.exportSymbol('proto.lavanet.lava.conflict.ReplyMetadata', null, global); -goog.exportSymbol('proto.lavanet.lava.conflict.ResponseConflict', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.conflict.ResponseConflict = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.conflict.ResponseConflict, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.conflict.ResponseConflict.displayName = 'proto.lavanet.lava.conflict.ResponseConflict'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.conflict.ConflictRelayData = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.conflict.ConflictRelayData, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.conflict.ConflictRelayData.displayName = 'proto.lavanet.lava.conflict.ConflictRelayData'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.conflict.ReplyMetadata = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.conflict.ReplyMetadata, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.conflict.ReplyMetadata.displayName = 'proto.lavanet.lava.conflict.ReplyMetadata'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.conflict.FinalizationConflict = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.conflict.FinalizationConflict, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.conflict.FinalizationConflict.displayName = 'proto.lavanet.lava.conflict.FinalizationConflict'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.conflict.ResponseConflict.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.conflict.ResponseConflict.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.conflict.ResponseConflict} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.conflict.ResponseConflict.toObject = function(includeInstance, msg) { - var f, obj = { - conflictrelaydata0: (f = msg.getConflictrelaydata0()) && proto.lavanet.lava.conflict.ConflictRelayData.toObject(includeInstance, f), - conflictrelaydata1: (f = msg.getConflictrelaydata1()) && proto.lavanet.lava.conflict.ConflictRelayData.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.conflict.ResponseConflict} - */ -proto.lavanet.lava.conflict.ResponseConflict.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.conflict.ResponseConflict; - return proto.lavanet.lava.conflict.ResponseConflict.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.conflict.ResponseConflict} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.conflict.ResponseConflict} - */ -proto.lavanet.lava.conflict.ResponseConflict.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.lavanet.lava.conflict.ConflictRelayData; - reader.readMessage(value,proto.lavanet.lava.conflict.ConflictRelayData.deserializeBinaryFromReader); - msg.setConflictrelaydata0(value); - break; - case 2: - var value = new proto.lavanet.lava.conflict.ConflictRelayData; - reader.readMessage(value,proto.lavanet.lava.conflict.ConflictRelayData.deserializeBinaryFromReader); - msg.setConflictrelaydata1(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.conflict.ResponseConflict.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.conflict.ResponseConflict.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.conflict.ResponseConflict} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.conflict.ResponseConflict.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getConflictrelaydata0(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.lavanet.lava.conflict.ConflictRelayData.serializeBinaryToWriter - ); - } - f = message.getConflictrelaydata1(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.lavanet.lava.conflict.ConflictRelayData.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ConflictRelayData conflictRelayData0 = 1; - * @return {?proto.lavanet.lava.conflict.ConflictRelayData} - */ -proto.lavanet.lava.conflict.ResponseConflict.prototype.getConflictrelaydata0 = function() { - return /** @type{?proto.lavanet.lava.conflict.ConflictRelayData} */ ( - jspb.Message.getWrapperField(this, proto.lavanet.lava.conflict.ConflictRelayData, 1)); -}; - - -/** - * @param {?proto.lavanet.lava.conflict.ConflictRelayData|undefined} value - * @return {!proto.lavanet.lava.conflict.ResponseConflict} returns this -*/ -proto.lavanet.lava.conflict.ResponseConflict.prototype.setConflictrelaydata0 = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.conflict.ResponseConflict} returns this - */ -proto.lavanet.lava.conflict.ResponseConflict.prototype.clearConflictrelaydata0 = function() { - return this.setConflictrelaydata0(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.conflict.ResponseConflict.prototype.hasConflictrelaydata0 = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional ConflictRelayData conflictRelayData1 = 2; - * @return {?proto.lavanet.lava.conflict.ConflictRelayData} - */ -proto.lavanet.lava.conflict.ResponseConflict.prototype.getConflictrelaydata1 = function() { - return /** @type{?proto.lavanet.lava.conflict.ConflictRelayData} */ ( - jspb.Message.getWrapperField(this, proto.lavanet.lava.conflict.ConflictRelayData, 2)); -}; - - -/** - * @param {?proto.lavanet.lava.conflict.ConflictRelayData|undefined} value - * @return {!proto.lavanet.lava.conflict.ResponseConflict} returns this -*/ -proto.lavanet.lava.conflict.ResponseConflict.prototype.setConflictrelaydata1 = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.conflict.ResponseConflict} returns this - */ -proto.lavanet.lava.conflict.ResponseConflict.prototype.clearConflictrelaydata1 = function() { - return this.setConflictrelaydata1(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.conflict.ResponseConflict.prototype.hasConflictrelaydata1 = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.conflict.ConflictRelayData.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.conflict.ConflictRelayData.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.conflict.ConflictRelayData} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.conflict.ConflictRelayData.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && lavanet_lava_pairing_relay_pb.RelayRequest.toObject(includeInstance, f), - reply: (f = msg.getReply()) && proto.lavanet.lava.conflict.ReplyMetadata.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.conflict.ConflictRelayData} - */ -proto.lavanet.lava.conflict.ConflictRelayData.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.conflict.ConflictRelayData; - return proto.lavanet.lava.conflict.ConflictRelayData.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.conflict.ConflictRelayData} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.conflict.ConflictRelayData} - */ -proto.lavanet.lava.conflict.ConflictRelayData.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new lavanet_lava_pairing_relay_pb.RelayRequest; - reader.readMessage(value,lavanet_lava_pairing_relay_pb.RelayRequest.deserializeBinaryFromReader); - msg.setRequest(value); - break; - case 3: - var value = new proto.lavanet.lava.conflict.ReplyMetadata; - reader.readMessage(value,proto.lavanet.lava.conflict.ReplyMetadata.deserializeBinaryFromReader); - msg.setReply(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.conflict.ConflictRelayData.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.conflict.ConflictRelayData.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.conflict.ConflictRelayData} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.conflict.ConflictRelayData.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 1, - f, - lavanet_lava_pairing_relay_pb.RelayRequest.serializeBinaryToWriter - ); - } - f = message.getReply(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.lavanet.lava.conflict.ReplyMetadata.serializeBinaryToWriter - ); - } -}; - - -/** - * optional lavanet.lava.pairing.RelayRequest request = 1; - * @return {?proto.lavanet.lava.pairing.RelayRequest} - */ -proto.lavanet.lava.conflict.ConflictRelayData.prototype.getRequest = function() { - return /** @type{?proto.lavanet.lava.pairing.RelayRequest} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_pairing_relay_pb.RelayRequest, 1)); -}; - - -/** - * @param {?proto.lavanet.lava.pairing.RelayRequest|undefined} value - * @return {!proto.lavanet.lava.conflict.ConflictRelayData} returns this -*/ -proto.lavanet.lava.conflict.ConflictRelayData.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.conflict.ConflictRelayData} returns this - */ -proto.lavanet.lava.conflict.ConflictRelayData.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.conflict.ConflictRelayData.prototype.hasRequest = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional ReplyMetadata reply = 3; - * @return {?proto.lavanet.lava.conflict.ReplyMetadata} - */ -proto.lavanet.lava.conflict.ConflictRelayData.prototype.getReply = function() { - return /** @type{?proto.lavanet.lava.conflict.ReplyMetadata} */ ( - jspb.Message.getWrapperField(this, proto.lavanet.lava.conflict.ReplyMetadata, 3)); -}; - - -/** - * @param {?proto.lavanet.lava.conflict.ReplyMetadata|undefined} value - * @return {!proto.lavanet.lava.conflict.ConflictRelayData} returns this -*/ -proto.lavanet.lava.conflict.ConflictRelayData.prototype.setReply = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.conflict.ConflictRelayData} returns this - */ -proto.lavanet.lava.conflict.ConflictRelayData.prototype.clearReply = function() { - return this.setReply(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.conflict.ConflictRelayData.prototype.hasReply = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.conflict.ReplyMetadata.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.conflict.ReplyMetadata} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.conflict.ReplyMetadata.toObject = function(includeInstance, msg) { - var f, obj = { - hashAllDataHash: msg.getHashAllDataHash_asB64(), - sig: msg.getSig_asB64(), - latestBlock: jspb.Message.getFieldWithDefault(msg, 3, 0), - finalizedBlocksHashes: msg.getFinalizedBlocksHashes_asB64(), - sigBlocks: msg.getSigBlocks_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.conflict.ReplyMetadata} - */ -proto.lavanet.lava.conflict.ReplyMetadata.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.conflict.ReplyMetadata; - return proto.lavanet.lava.conflict.ReplyMetadata.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.conflict.ReplyMetadata} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.conflict.ReplyMetadata} - */ -proto.lavanet.lava.conflict.ReplyMetadata.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setHashAllDataHash(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSig(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setLatestBlock(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setFinalizedBlocksHashes(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSigBlocks(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.conflict.ReplyMetadata.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.conflict.ReplyMetadata} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.conflict.ReplyMetadata.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHashAllDataHash_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getSig_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getLatestBlock(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getFinalizedBlocksHashes_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getSigBlocks_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } -}; - - -/** - * optional bytes hash_all_data_hash = 1; - * @return {!(string|Uint8Array)} - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.getHashAllDataHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes hash_all_data_hash = 1; - * This is a type-conversion wrapper around `getHashAllDataHash()` - * @return {string} - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.getHashAllDataHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getHashAllDataHash())); -}; - - -/** - * optional bytes hash_all_data_hash = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getHashAllDataHash()` - * @return {!Uint8Array} - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.getHashAllDataHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getHashAllDataHash())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.lavanet.lava.conflict.ReplyMetadata} returns this - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.setHashAllDataHash = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional bytes sig = 2; - * @return {!(string|Uint8Array)} - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.getSig = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes sig = 2; - * This is a type-conversion wrapper around `getSig()` - * @return {string} - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.getSig_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSig())); -}; - - -/** - * optional bytes sig = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSig()` - * @return {!Uint8Array} - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.getSig_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSig())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.lavanet.lava.conflict.ReplyMetadata} returns this - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.setSig = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional int64 latest_block = 3; - * @return {number} - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.getLatestBlock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.conflict.ReplyMetadata} returns this - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.setLatestBlock = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bytes finalized_blocks_hashes = 4; - * @return {!(string|Uint8Array)} - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.getFinalizedBlocksHashes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes finalized_blocks_hashes = 4; - * This is a type-conversion wrapper around `getFinalizedBlocksHashes()` - * @return {string} - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.getFinalizedBlocksHashes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getFinalizedBlocksHashes())); -}; - - -/** - * optional bytes finalized_blocks_hashes = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getFinalizedBlocksHashes()` - * @return {!Uint8Array} - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.getFinalizedBlocksHashes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getFinalizedBlocksHashes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.lavanet.lava.conflict.ReplyMetadata} returns this - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.setFinalizedBlocksHashes = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * optional bytes sig_blocks = 5; - * @return {!(string|Uint8Array)} - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.getSigBlocks = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes sig_blocks = 5; - * This is a type-conversion wrapper around `getSigBlocks()` - * @return {string} - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.getSigBlocks_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSigBlocks())); -}; - - -/** - * optional bytes sig_blocks = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSigBlocks()` - * @return {!Uint8Array} - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.getSigBlocks_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSigBlocks())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.lavanet.lava.conflict.ReplyMetadata} returns this - */ -proto.lavanet.lava.conflict.ReplyMetadata.prototype.setSigBlocks = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.conflict.FinalizationConflict.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.conflict.FinalizationConflict.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.conflict.FinalizationConflict} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.conflict.FinalizationConflict.toObject = function(includeInstance, msg) { - var f, obj = { - relayreply0: (f = msg.getRelayreply0()) && lavanet_lava_pairing_relay_pb.RelayReply.toObject(includeInstance, f), - relayreply1: (f = msg.getRelayreply1()) && lavanet_lava_pairing_relay_pb.RelayReply.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.conflict.FinalizationConflict} - */ -proto.lavanet.lava.conflict.FinalizationConflict.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.conflict.FinalizationConflict; - return proto.lavanet.lava.conflict.FinalizationConflict.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.conflict.FinalizationConflict} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.conflict.FinalizationConflict} - */ -proto.lavanet.lava.conflict.FinalizationConflict.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new lavanet_lava_pairing_relay_pb.RelayReply; - reader.readMessage(value,lavanet_lava_pairing_relay_pb.RelayReply.deserializeBinaryFromReader); - msg.setRelayreply0(value); - break; - case 2: - var value = new lavanet_lava_pairing_relay_pb.RelayReply; - reader.readMessage(value,lavanet_lava_pairing_relay_pb.RelayReply.deserializeBinaryFromReader); - msg.setRelayreply1(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.conflict.FinalizationConflict.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.conflict.FinalizationConflict.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.conflict.FinalizationConflict} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.conflict.FinalizationConflict.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRelayreply0(); - if (f != null) { - writer.writeMessage( - 1, - f, - lavanet_lava_pairing_relay_pb.RelayReply.serializeBinaryToWriter - ); - } - f = message.getRelayreply1(); - if (f != null) { - writer.writeMessage( - 2, - f, - lavanet_lava_pairing_relay_pb.RelayReply.serializeBinaryToWriter - ); - } -}; - - -/** - * optional lavanet.lava.pairing.RelayReply relayReply0 = 1; - * @return {?proto.lavanet.lava.pairing.RelayReply} - */ -proto.lavanet.lava.conflict.FinalizationConflict.prototype.getRelayreply0 = function() { - return /** @type{?proto.lavanet.lava.pairing.RelayReply} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_pairing_relay_pb.RelayReply, 1)); -}; - - -/** - * @param {?proto.lavanet.lava.pairing.RelayReply|undefined} value - * @return {!proto.lavanet.lava.conflict.FinalizationConflict} returns this -*/ -proto.lavanet.lava.conflict.FinalizationConflict.prototype.setRelayreply0 = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.conflict.FinalizationConflict} returns this - */ -proto.lavanet.lava.conflict.FinalizationConflict.prototype.clearRelayreply0 = function() { - return this.setRelayreply0(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.conflict.FinalizationConflict.prototype.hasRelayreply0 = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional lavanet.lava.pairing.RelayReply relayReply1 = 2; - * @return {?proto.lavanet.lava.pairing.RelayReply} - */ -proto.lavanet.lava.conflict.FinalizationConflict.prototype.getRelayreply1 = function() { - return /** @type{?proto.lavanet.lava.pairing.RelayReply} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_pairing_relay_pb.RelayReply, 2)); -}; - - -/** - * @param {?proto.lavanet.lava.pairing.RelayReply|undefined} value - * @return {!proto.lavanet.lava.conflict.FinalizationConflict} returns this -*/ -proto.lavanet.lava.conflict.FinalizationConflict.prototype.setRelayreply1 = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.conflict.FinalizationConflict} returns this - */ -proto.lavanet.lava.conflict.FinalizationConflict.prototype.clearRelayreply1 = function() { - return this.setRelayreply1(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.conflict.FinalizationConflict.prototype.hasRelayreply1 = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -goog.object.extend(exports, proto.lavanet.lava.conflict); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/conflict/conflict_data_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/conflict/conflict_data_pb_service.d.ts deleted file mode 100644 index 4fa71b4c3d..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/conflict/conflict_data_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.conflict -// file: lavanet/lava/conflict/conflict_data.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/conflict/conflict_data_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/conflict/conflict_data_pb_service.js deleted file mode 100644 index 4fa71b4c3d..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/conflict/conflict_data_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.conflict -// file: lavanet/lava/conflict/conflict_data.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/endpoint_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/endpoint_pb.d.ts deleted file mode 100644 index 343b0c7a7d..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/endpoint_pb.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -// package: lavanet.lava.epochstorage -// file: lavanet/lava/epochstorage/endpoint.proto - -import * as jspb from "google-protobuf"; - -export class Endpoint extends jspb.Message { - getIpport(): string; - setIpport(value: string): void; - - getGeolocation(): number; - setGeolocation(value: number): void; - - clearAddonsList(): void; - getAddonsList(): Array; - setAddonsList(value: Array): void; - addAddons(value: string, index?: number): string; - - clearApiInterfacesList(): void; - getApiInterfacesList(): Array; - setApiInterfacesList(value: Array): void; - addApiInterfaces(value: string, index?: number): string; - - clearExtensionsList(): void; - getExtensionsList(): Array; - setExtensionsList(value: Array): void; - addExtensions(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Endpoint.AsObject; - static toObject(includeInstance: boolean, msg: Endpoint): Endpoint.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Endpoint, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Endpoint; - static deserializeBinaryFromReader(message: Endpoint, reader: jspb.BinaryReader): Endpoint; -} - -export namespace Endpoint { - export type AsObject = { - ipport: string, - geolocation: number, - addonsList: Array, - apiInterfacesList: Array, - extensionsList: Array, - } -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/endpoint_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/endpoint_pb.js deleted file mode 100644 index fc32e9d526..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/endpoint_pb.js +++ /dev/null @@ -1,351 +0,0 @@ -// source: lavanet/lava/epochstorage/endpoint.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.lavanet.lava.epochstorage.Endpoint', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.epochstorage.Endpoint = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.epochstorage.Endpoint.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.epochstorage.Endpoint, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.epochstorage.Endpoint.displayName = 'proto.lavanet.lava.epochstorage.Endpoint'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.epochstorage.Endpoint.repeatedFields_ = [4,5,6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.epochstorage.Endpoint.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.epochstorage.Endpoint.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.epochstorage.Endpoint} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.epochstorage.Endpoint.toObject = function(includeInstance, msg) { - var f, obj = { - ipport: jspb.Message.getFieldWithDefault(msg, 1, ""), - geolocation: jspb.Message.getFieldWithDefault(msg, 3, 0), - addonsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, - apiInterfacesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, - extensionsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.epochstorage.Endpoint} - */ -proto.lavanet.lava.epochstorage.Endpoint.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.epochstorage.Endpoint; - return proto.lavanet.lava.epochstorage.Endpoint.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.epochstorage.Endpoint} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.epochstorage.Endpoint} - */ -proto.lavanet.lava.epochstorage.Endpoint.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setIpport(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setGeolocation(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addAddons(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.addApiInterfaces(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.addExtensions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.epochstorage.Endpoint.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.epochstorage.Endpoint.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.epochstorage.Endpoint} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.epochstorage.Endpoint.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIpport(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getGeolocation(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getAddonsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } - f = message.getApiInterfacesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 5, - f - ); - } - f = message.getExtensionsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 6, - f - ); - } -}; - - -/** - * optional string iPPORT = 1; - * @return {string} - */ -proto.lavanet.lava.epochstorage.Endpoint.prototype.getIpport = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.epochstorage.Endpoint} returns this - */ -proto.lavanet.lava.epochstorage.Endpoint.prototype.setIpport = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int32 geolocation = 3; - * @return {number} - */ -proto.lavanet.lava.epochstorage.Endpoint.prototype.getGeolocation = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.epochstorage.Endpoint} returns this - */ -proto.lavanet.lava.epochstorage.Endpoint.prototype.setGeolocation = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated string addons = 4; - * @return {!Array} - */ -proto.lavanet.lava.epochstorage.Endpoint.prototype.getAddonsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.epochstorage.Endpoint} returns this - */ -proto.lavanet.lava.epochstorage.Endpoint.prototype.setAddonsList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.epochstorage.Endpoint} returns this - */ -proto.lavanet.lava.epochstorage.Endpoint.prototype.addAddons = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.epochstorage.Endpoint} returns this - */ -proto.lavanet.lava.epochstorage.Endpoint.prototype.clearAddonsList = function() { - return this.setAddonsList([]); -}; - - -/** - * repeated string api_interfaces = 5; - * @return {!Array} - */ -proto.lavanet.lava.epochstorage.Endpoint.prototype.getApiInterfacesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.epochstorage.Endpoint} returns this - */ -proto.lavanet.lava.epochstorage.Endpoint.prototype.setApiInterfacesList = function(value) { - return jspb.Message.setField(this, 5, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.epochstorage.Endpoint} returns this - */ -proto.lavanet.lava.epochstorage.Endpoint.prototype.addApiInterfaces = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 5, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.epochstorage.Endpoint} returns this - */ -proto.lavanet.lava.epochstorage.Endpoint.prototype.clearApiInterfacesList = function() { - return this.setApiInterfacesList([]); -}; - - -/** - * repeated string extensions = 6; - * @return {!Array} - */ -proto.lavanet.lava.epochstorage.Endpoint.prototype.getExtensionsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.epochstorage.Endpoint} returns this - */ -proto.lavanet.lava.epochstorage.Endpoint.prototype.setExtensionsList = function(value) { - return jspb.Message.setField(this, 6, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.epochstorage.Endpoint} returns this - */ -proto.lavanet.lava.epochstorage.Endpoint.prototype.addExtensions = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 6, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.epochstorage.Endpoint} returns this - */ -proto.lavanet.lava.epochstorage.Endpoint.prototype.clearExtensionsList = function() { - return this.setExtensionsList([]); -}; - - -goog.object.extend(exports, proto.lavanet.lava.epochstorage); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/endpoint_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/endpoint_pb_service.d.ts deleted file mode 100644 index 550243d2e2..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/endpoint_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.epochstorage -// file: lavanet/lava/epochstorage/endpoint.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/endpoint_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/endpoint_pb_service.js deleted file mode 100644 index 550243d2e2..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/endpoint_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.epochstorage -// file: lavanet/lava/epochstorage/endpoint.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/stake_entry_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/stake_entry_pb.d.ts deleted file mode 100644 index 7a5b29e058..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/stake_entry_pb.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -// package: lavanet.lava.epochstorage -// file: lavanet/lava/epochstorage/stake_entry.proto - -import * as jspb from "google-protobuf"; -import * as lavanet_lava_epochstorage_endpoint_pb from "../../../lavanet/lava/epochstorage/endpoint_pb"; -import * as gogoproto_gogo_pb from "../../../gogoproto/gogo_pb"; -import * as cosmos_base_v1beta1_coin_pb from "../../../cosmos/base/v1beta1/coin_pb"; - -export class StakeEntry extends jspb.Message { - hasStake(): boolean; - clearStake(): void; - getStake(): cosmos_base_v1beta1_coin_pb.Coin | undefined; - setStake(value?: cosmos_base_v1beta1_coin_pb.Coin): void; - - getAddress(): string; - setAddress(value: string): void; - - getStakeAppliedBlock(): number; - setStakeAppliedBlock(value: number): void; - - clearEndpointsList(): void; - getEndpointsList(): Array; - setEndpointsList(value: Array): void; - addEndpoints(value?: lavanet_lava_epochstorage_endpoint_pb.Endpoint, index?: number): lavanet_lava_epochstorage_endpoint_pb.Endpoint; - - getGeolocation(): number; - setGeolocation(value: number): void; - - getChain(): string; - setChain(value: string): void; - - getMoniker(): string; - setMoniker(value: string): void; - - hasDelegateTotal(): boolean; - clearDelegateTotal(): void; - getDelegateTotal(): cosmos_base_v1beta1_coin_pb.Coin | undefined; - setDelegateTotal(value?: cosmos_base_v1beta1_coin_pb.Coin): void; - - hasDelegateLimit(): boolean; - clearDelegateLimit(): void; - getDelegateLimit(): cosmos_base_v1beta1_coin_pb.Coin | undefined; - setDelegateLimit(value?: cosmos_base_v1beta1_coin_pb.Coin): void; - - getDelegateCommission(): number; - setDelegateCommission(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StakeEntry.AsObject; - static toObject(includeInstance: boolean, msg: StakeEntry): StakeEntry.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StakeEntry, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StakeEntry; - static deserializeBinaryFromReader(message: StakeEntry, reader: jspb.BinaryReader): StakeEntry; -} - -export namespace StakeEntry { - export type AsObject = { - stake?: cosmos_base_v1beta1_coin_pb.Coin.AsObject, - address: string, - stakeAppliedBlock: number, - endpointsList: Array, - geolocation: number, - chain: string, - moniker: string, - delegateTotal?: cosmos_base_v1beta1_coin_pb.Coin.AsObject, - delegateLimit?: cosmos_base_v1beta1_coin_pb.Coin.AsObject, - delegateCommission: number, - } -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/stake_entry_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/stake_entry_pb.js deleted file mode 100644 index 1ce45b21dc..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/stake_entry_pb.js +++ /dev/null @@ -1,536 +0,0 @@ -// source: lavanet/lava/epochstorage/stake_entry.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var lavanet_lava_epochstorage_endpoint_pb = require('../../../lavanet/lava/epochstorage/endpoint_pb.js'); -goog.object.extend(proto, lavanet_lava_epochstorage_endpoint_pb); -var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -var cosmos_base_v1beta1_coin_pb = require('../../../cosmos/base/v1beta1/coin_pb.js'); -goog.object.extend(proto, cosmos_base_v1beta1_coin_pb); -goog.exportSymbol('proto.lavanet.lava.epochstorage.StakeEntry', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.epochstorage.StakeEntry = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.epochstorage.StakeEntry.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.epochstorage.StakeEntry, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.epochstorage.StakeEntry.displayName = 'proto.lavanet.lava.epochstorage.StakeEntry'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.epochstorage.StakeEntry.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.epochstorage.StakeEntry.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.epochstorage.StakeEntry} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.epochstorage.StakeEntry.toObject = function(includeInstance, msg) { - var f, obj = { - stake: (f = msg.getStake()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), - address: jspb.Message.getFieldWithDefault(msg, 2, ""), - stakeAppliedBlock: jspb.Message.getFieldWithDefault(msg, 3, 0), - endpointsList: jspb.Message.toObjectList(msg.getEndpointsList(), - lavanet_lava_epochstorage_endpoint_pb.Endpoint.toObject, includeInstance), - geolocation: jspb.Message.getFieldWithDefault(msg, 5, 0), - chain: jspb.Message.getFieldWithDefault(msg, 6, ""), - moniker: jspb.Message.getFieldWithDefault(msg, 8, ""), - delegateTotal: (f = msg.getDelegateTotal()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), - delegateLimit: (f = msg.getDelegateLimit()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), - delegateCommission: jspb.Message.getFieldWithDefault(msg, 11, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} - */ -proto.lavanet.lava.epochstorage.StakeEntry.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.epochstorage.StakeEntry; - return proto.lavanet.lava.epochstorage.StakeEntry.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.epochstorage.StakeEntry} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} - */ -proto.lavanet.lava.epochstorage.StakeEntry.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new cosmos_base_v1beta1_coin_pb.Coin; - reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); - msg.setStake(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAddress(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setStakeAppliedBlock(value); - break; - case 4: - var value = new lavanet_lava_epochstorage_endpoint_pb.Endpoint; - reader.readMessage(value,lavanet_lava_epochstorage_endpoint_pb.Endpoint.deserializeBinaryFromReader); - msg.addEndpoints(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setGeolocation(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setChain(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setMoniker(value); - break; - case 9: - var value = new cosmos_base_v1beta1_coin_pb.Coin; - reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); - msg.setDelegateTotal(value); - break; - case 10: - var value = new cosmos_base_v1beta1_coin_pb.Coin; - reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); - msg.setDelegateLimit(value); - break; - case 11: - var value = /** @type {number} */ (reader.readUint64()); - msg.setDelegateCommission(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.epochstorage.StakeEntry.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.epochstorage.StakeEntry} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.epochstorage.StakeEntry.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStake(); - if (f != null) { - writer.writeMessage( - 1, - f, - cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter - ); - } - f = message.getAddress(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getStakeAppliedBlock(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getEndpointsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - lavanet_lava_epochstorage_endpoint_pb.Endpoint.serializeBinaryToWriter - ); - } - f = message.getGeolocation(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getChain(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getMoniker(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getDelegateTotal(); - if (f != null) { - writer.writeMessage( - 9, - f, - cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter - ); - } - f = message.getDelegateLimit(); - if (f != null) { - writer.writeMessage( - 10, - f, - cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter - ); - } - f = message.getDelegateCommission(); - if (f !== 0) { - writer.writeUint64( - 11, - f - ); - } -}; - - -/** - * optional cosmos.base.v1beta1.Coin stake = 1; - * @return {?proto.cosmos.base.v1beta1.Coin} - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.getStake = function() { - return /** @type{?proto.cosmos.base.v1beta1.Coin} */ ( - jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 1)); -}; - - -/** - * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} returns this -*/ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.setStake = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} returns this - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.clearStake = function() { - return this.setStake(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.hasStake = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string address = 2; - * @return {string} - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.getAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} returns this - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.setAddress = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint64 stake_applied_block = 3; - * @return {number} - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.getStakeAppliedBlock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} returns this - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.setStakeAppliedBlock = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated Endpoint endpoints = 4; - * @return {!Array} - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.getEndpointsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, lavanet_lava_epochstorage_endpoint_pb.Endpoint, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} returns this -*/ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.setEndpointsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.lavanet.lava.epochstorage.Endpoint=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.epochstorage.Endpoint} - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.addEndpoints = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.lavanet.lava.epochstorage.Endpoint, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} returns this - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.clearEndpointsList = function() { - return this.setEndpointsList([]); -}; - - -/** - * optional int32 geolocation = 5; - * @return {number} - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.getGeolocation = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} returns this - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.setGeolocation = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional string chain = 6; - * @return {string} - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.getChain = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} returns this - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.setChain = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string moniker = 8; - * @return {string} - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.getMoniker = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} returns this - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.setMoniker = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional cosmos.base.v1beta1.Coin delegate_total = 9; - * @return {?proto.cosmos.base.v1beta1.Coin} - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.getDelegateTotal = function() { - return /** @type{?proto.cosmos.base.v1beta1.Coin} */ ( - jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 9)); -}; - - -/** - * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} returns this -*/ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.setDelegateTotal = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} returns this - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.clearDelegateTotal = function() { - return this.setDelegateTotal(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.hasDelegateTotal = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional cosmos.base.v1beta1.Coin delegate_limit = 10; - * @return {?proto.cosmos.base.v1beta1.Coin} - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.getDelegateLimit = function() { - return /** @type{?proto.cosmos.base.v1beta1.Coin} */ ( - jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 10)); -}; - - -/** - * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} returns this -*/ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.setDelegateLimit = function(value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} returns this - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.clearDelegateLimit = function() { - return this.setDelegateLimit(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.hasDelegateLimit = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional uint64 delegate_commission = 11; - * @return {number} - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.getDelegateCommission = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} returns this - */ -proto.lavanet.lava.epochstorage.StakeEntry.prototype.setDelegateCommission = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -goog.object.extend(exports, proto.lavanet.lava.epochstorage); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/stake_entry_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/stake_entry_pb_service.d.ts deleted file mode 100644 index 68c655e54e..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/stake_entry_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.epochstorage -// file: lavanet/lava/epochstorage/stake_entry.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/stake_entry_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/stake_entry_pb_service.js deleted file mode 100644 index 68c655e54e..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/epochstorage/stake_entry_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.epochstorage -// file: lavanet/lava/epochstorage/stake_entry.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/badges_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/badges_pb.d.ts deleted file mode 100644 index 09ca89e17b..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/badges_pb.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/badges.proto - -import * as jspb from "google-protobuf"; -import * as lavanet_lava_pairing_relay_pb from "../../../lavanet/lava/pairing/relay_pb"; -import * as lavanet_lava_pairing_query_pb from "../../../lavanet/lava/pairing/query_pb"; -import * as gogoproto_gogo_pb from "../../../gogoproto/gogo_pb"; -import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb"; -import * as lavanet_lava_epochstorage_stake_entry_pb from "../../../lavanet/lava/epochstorage/stake_entry_pb"; -import * as lavanet_lava_spec_spec_pb from "../../../lavanet/lava/spec/spec_pb"; - -export class GenerateBadgeRequest extends jspb.Message { - getBadgeAddress(): string; - setBadgeAddress(value: string): void; - - getProjectId(): string; - setProjectId(value: string): void; - - getSpecId(): string; - setSpecId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenerateBadgeRequest.AsObject; - static toObject(includeInstance: boolean, msg: GenerateBadgeRequest): GenerateBadgeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GenerateBadgeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenerateBadgeRequest; - static deserializeBinaryFromReader(message: GenerateBadgeRequest, reader: jspb.BinaryReader): GenerateBadgeRequest; -} - -export namespace GenerateBadgeRequest { - export type AsObject = { - badgeAddress: string, - projectId: string, - specId: string, - } -} - -export class GenerateBadgeResponse extends jspb.Message { - hasBadge(): boolean; - clearBadge(): void; - getBadge(): lavanet_lava_pairing_relay_pb.Badge | undefined; - setBadge(value?: lavanet_lava_pairing_relay_pb.Badge): void; - - hasGetPairingResponse(): boolean; - clearGetPairingResponse(): void; - getGetPairingResponse(): lavanet_lava_pairing_query_pb.QueryGetPairingResponse | undefined; - setGetPairingResponse(value?: lavanet_lava_pairing_query_pb.QueryGetPairingResponse): void; - - getBadgeSignerAddress(): string; - setBadgeSignerAddress(value: string): void; - - hasSpec(): boolean; - clearSpec(): void; - getSpec(): lavanet_lava_spec_spec_pb.Spec | undefined; - setSpec(value?: lavanet_lava_spec_spec_pb.Spec): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenerateBadgeResponse.AsObject; - static toObject(includeInstance: boolean, msg: GenerateBadgeResponse): GenerateBadgeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GenerateBadgeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenerateBadgeResponse; - static deserializeBinaryFromReader(message: GenerateBadgeResponse, reader: jspb.BinaryReader): GenerateBadgeResponse; -} - -export namespace GenerateBadgeResponse { - export type AsObject = { - badge?: lavanet_lava_pairing_relay_pb.Badge.AsObject, - getPairingResponse?: lavanet_lava_pairing_query_pb.QueryGetPairingResponse.AsObject, - badgeSignerAddress: string, - spec?: lavanet_lava_spec_spec_pb.Spec.AsObject, - } -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/badges_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/badges_pb.js deleted file mode 100644 index b69afaff92..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/badges_pb.js +++ /dev/null @@ -1,544 +0,0 @@ -// source: lavanet/lava/pairing/badges.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var lavanet_lava_pairing_relay_pb = require('../../../lavanet/lava/pairing/relay_pb.js'); -goog.object.extend(proto, lavanet_lava_pairing_relay_pb); -var lavanet_lava_pairing_query_pb = require('../../../lavanet/lava/pairing/query_pb.js'); -goog.object.extend(proto, lavanet_lava_pairing_query_pb); -var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js'); -goog.object.extend(proto, google_protobuf_wrappers_pb); -var lavanet_lava_epochstorage_stake_entry_pb = require('../../../lavanet/lava/epochstorage/stake_entry_pb.js'); -goog.object.extend(proto, lavanet_lava_epochstorage_stake_entry_pb); -var lavanet_lava_spec_spec_pb = require('../../../lavanet/lava/spec/spec_pb.js'); -goog.object.extend(proto, lavanet_lava_spec_spec_pb); -goog.exportSymbol('proto.lavanet.lava.pairing.GenerateBadgeRequest', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.GenerateBadgeResponse', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.GenerateBadgeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.GenerateBadgeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.GenerateBadgeRequest.displayName = 'proto.lavanet.lava.pairing.GenerateBadgeRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.GenerateBadgeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.GenerateBadgeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.GenerateBadgeResponse.displayName = 'proto.lavanet.lava.pairing.GenerateBadgeResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.GenerateBadgeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.GenerateBadgeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.GenerateBadgeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.GenerateBadgeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - badge_address: jspb.Message.getFieldWithDefault(msg, 1, ""), - project_id: jspb.Message.getFieldWithDefault(msg, 2, ""), - spec_id: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.GenerateBadgeRequest} - */ -proto.lavanet.lava.pairing.GenerateBadgeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.GenerateBadgeRequest; - return proto.lavanet.lava.pairing.GenerateBadgeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.GenerateBadgeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.GenerateBadgeRequest} - */ -proto.lavanet.lava.pairing.GenerateBadgeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setBadgeAddress(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSpecId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.GenerateBadgeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.GenerateBadgeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.GenerateBadgeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.GenerateBadgeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBadgeAddress(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSpecId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string badge_address = 1; - * @return {string} - */ -proto.lavanet.lava.pairing.GenerateBadgeRequest.prototype.getBadgeAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.GenerateBadgeRequest} returns this - */ -proto.lavanet.lava.pairing.GenerateBadgeRequest.prototype.setBadgeAddress = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string project_id = 2; - * @return {string} - */ -proto.lavanet.lava.pairing.GenerateBadgeRequest.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.GenerateBadgeRequest} returns this - */ -proto.lavanet.lava.pairing.GenerateBadgeRequest.prototype.setProjectId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string spec_id = 3; - * @return {string} - */ -proto.lavanet.lava.pairing.GenerateBadgeRequest.prototype.getSpecId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.GenerateBadgeRequest} returns this - */ -proto.lavanet.lava.pairing.GenerateBadgeRequest.prototype.setSpecId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.GenerateBadgeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.GenerateBadgeResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.GenerateBadgeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.GenerateBadgeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - badge: (f = msg.getBadge()) && lavanet_lava_pairing_relay_pb.Badge.toObject(includeInstance, f), - get_pairing_response: (f = msg.getGetPairingResponse()) && lavanet_lava_pairing_query_pb.QueryGetPairingResponse.toObject(includeInstance, f), - badge_signer_address: jspb.Message.getFieldWithDefault(msg, 3, ""), - spec: (f = msg.getSpec()) && lavanet_lava_spec_spec_pb.Spec.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.GenerateBadgeResponse} - */ -proto.lavanet.lava.pairing.GenerateBadgeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.GenerateBadgeResponse; - return proto.lavanet.lava.pairing.GenerateBadgeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.GenerateBadgeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.GenerateBadgeResponse} - */ -proto.lavanet.lava.pairing.GenerateBadgeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new lavanet_lava_pairing_relay_pb.Badge; - reader.readMessage(value,lavanet_lava_pairing_relay_pb.Badge.deserializeBinaryFromReader); - msg.setBadge(value); - break; - case 2: - var value = new lavanet_lava_pairing_query_pb.QueryGetPairingResponse; - reader.readMessage(value,lavanet_lava_pairing_query_pb.QueryGetPairingResponse.deserializeBinaryFromReader); - msg.setGetPairingResponse(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setBadgeSignerAddress(value); - break; - case 4: - var value = new lavanet_lava_spec_spec_pb.Spec; - reader.readMessage(value,lavanet_lava_spec_spec_pb.Spec.deserializeBinaryFromReader); - msg.setSpec(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.GenerateBadgeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.GenerateBadgeResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.GenerateBadgeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.GenerateBadgeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBadge(); - if (f != null) { - writer.writeMessage( - 1, - f, - lavanet_lava_pairing_relay_pb.Badge.serializeBinaryToWriter - ); - } - f = message.getGetPairingResponse(); - if (f != null) { - writer.writeMessage( - 2, - f, - lavanet_lava_pairing_query_pb.QueryGetPairingResponse.serializeBinaryToWriter - ); - } - f = message.getBadgeSignerAddress(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getSpec(); - if (f != null) { - writer.writeMessage( - 4, - f, - lavanet_lava_spec_spec_pb.Spec.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Badge badge = 1; - * @return {?proto.lavanet.lava.pairing.Badge} - */ -proto.lavanet.lava.pairing.GenerateBadgeResponse.prototype.getBadge = function() { - return /** @type{?proto.lavanet.lava.pairing.Badge} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_pairing_relay_pb.Badge, 1)); -}; - - -/** - * @param {?proto.lavanet.lava.pairing.Badge|undefined} value - * @return {!proto.lavanet.lava.pairing.GenerateBadgeResponse} returns this -*/ -proto.lavanet.lava.pairing.GenerateBadgeResponse.prototype.setBadge = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.GenerateBadgeResponse} returns this - */ -proto.lavanet.lava.pairing.GenerateBadgeResponse.prototype.clearBadge = function() { - return this.setBadge(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.GenerateBadgeResponse.prototype.hasBadge = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional QueryGetPairingResponse get_pairing_response = 2; - * @return {?proto.lavanet.lava.pairing.QueryGetPairingResponse} - */ -proto.lavanet.lava.pairing.GenerateBadgeResponse.prototype.getGetPairingResponse = function() { - return /** @type{?proto.lavanet.lava.pairing.QueryGetPairingResponse} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_pairing_query_pb.QueryGetPairingResponse, 2)); -}; - - -/** - * @param {?proto.lavanet.lava.pairing.QueryGetPairingResponse|undefined} value - * @return {!proto.lavanet.lava.pairing.GenerateBadgeResponse} returns this -*/ -proto.lavanet.lava.pairing.GenerateBadgeResponse.prototype.setGetPairingResponse = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.GenerateBadgeResponse} returns this - */ -proto.lavanet.lava.pairing.GenerateBadgeResponse.prototype.clearGetPairingResponse = function() { - return this.setGetPairingResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.GenerateBadgeResponse.prototype.hasGetPairingResponse = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string badge_signer_address = 3; - * @return {string} - */ -proto.lavanet.lava.pairing.GenerateBadgeResponse.prototype.getBadgeSignerAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.GenerateBadgeResponse} returns this - */ -proto.lavanet.lava.pairing.GenerateBadgeResponse.prototype.setBadgeSignerAddress = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional lavanet.lava.spec.Spec spec = 4; - * @return {?proto.lavanet.lava.spec.Spec} - */ -proto.lavanet.lava.pairing.GenerateBadgeResponse.prototype.getSpec = function() { - return /** @type{?proto.lavanet.lava.spec.Spec} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_spec_spec_pb.Spec, 4)); -}; - - -/** - * @param {?proto.lavanet.lava.spec.Spec|undefined} value - * @return {!proto.lavanet.lava.pairing.GenerateBadgeResponse} returns this -*/ -proto.lavanet.lava.pairing.GenerateBadgeResponse.prototype.setSpec = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.GenerateBadgeResponse} returns this - */ -proto.lavanet.lava.pairing.GenerateBadgeResponse.prototype.clearSpec = function() { - return this.setSpec(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.GenerateBadgeResponse.prototype.hasSpec = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -goog.object.extend(exports, proto.lavanet.lava.pairing); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/badges_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/badges_pb_service.d.ts deleted file mode 100644 index 0d0ba75d5d..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/badges_pb_service.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/badges.proto - -import * as lavanet_lava_pairing_badges_pb from "../../../lavanet/lava/pairing/badges_pb"; -import {grpc} from "@improbable-eng/grpc-web"; - -type BadgeGeneratorGenerateBadge = { - readonly methodName: string; - readonly service: typeof BadgeGenerator; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof lavanet_lava_pairing_badges_pb.GenerateBadgeRequest; - readonly responseType: typeof lavanet_lava_pairing_badges_pb.GenerateBadgeResponse; -}; - -export class BadgeGenerator { - static readonly serviceName: string; - static readonly GenerateBadge: BadgeGeneratorGenerateBadge; -} - -export type ServiceError = { message: string, code: number; metadata: grpc.Metadata } -export type Status = { details: string, code: number; metadata: grpc.Metadata } - -interface UnaryResponse { - cancel(): void; -} -interface ResponseStream { - cancel(): void; - on(type: 'data', handler: (message: T) => void): ResponseStream; - on(type: 'end', handler: (status?: Status) => void): ResponseStream; - on(type: 'status', handler: (status: Status) => void): ResponseStream; -} -interface RequestStream { - write(message: T): RequestStream; - end(): void; - cancel(): void; - on(type: 'end', handler: (status?: Status) => void): RequestStream; - on(type: 'status', handler: (status: Status) => void): RequestStream; -} -interface BidirectionalStream { - write(message: ReqT): BidirectionalStream; - end(): void; - cancel(): void; - on(type: 'data', handler: (message: ResT) => void): BidirectionalStream; - on(type: 'end', handler: (status?: Status) => void): BidirectionalStream; - on(type: 'status', handler: (status: Status) => void): BidirectionalStream; -} - -export class BadgeGeneratorClient { - readonly serviceHost: string; - - constructor(serviceHost: string, options?: grpc.RpcOptions); - generateBadge( - requestMessage: lavanet_lava_pairing_badges_pb.GenerateBadgeRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_badges_pb.GenerateBadgeResponse|null) => void - ): UnaryResponse; - generateBadge( - requestMessage: lavanet_lava_pairing_badges_pb.GenerateBadgeRequest, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_badges_pb.GenerateBadgeResponse|null) => void - ): UnaryResponse; -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/badges_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/badges_pb_service.js deleted file mode 100644 index e53cc5e99c..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/badges_pb_service.js +++ /dev/null @@ -1,61 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/badges.proto - -var lavanet_lava_pairing_badges_pb = require("../../../lavanet/lava/pairing/badges_pb"); -var grpc = require("@improbable-eng/grpc-web").grpc; - -var BadgeGenerator = (function () { - function BadgeGenerator() {} - BadgeGenerator.serviceName = "lavanet.lava.pairing.BadgeGenerator"; - return BadgeGenerator; -}()); - -BadgeGenerator.GenerateBadge = { - methodName: "GenerateBadge", - service: BadgeGenerator, - requestStream: false, - responseStream: false, - requestType: lavanet_lava_pairing_badges_pb.GenerateBadgeRequest, - responseType: lavanet_lava_pairing_badges_pb.GenerateBadgeResponse -}; - -exports.BadgeGenerator = BadgeGenerator; - -function BadgeGeneratorClient(serviceHost, options) { - this.serviceHost = serviceHost; - this.options = options || {}; -} - -BadgeGeneratorClient.prototype.generateBadge = function generateBadge(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(BadgeGenerator.GenerateBadge, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -exports.BadgeGeneratorClient = BadgeGeneratorClient; - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/epoch_payments_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/epoch_payments_pb.d.ts deleted file mode 100644 index dd6e561581..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/epoch_payments_pb.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/epoch_payments.proto - -import * as jspb from "google-protobuf"; - -export class EpochPayments extends jspb.Message { - getIndex(): string; - setIndex(value: string): void; - - clearProviderpaymentstoragekeysList(): void; - getProviderpaymentstoragekeysList(): Array; - setProviderpaymentstoragekeysList(value: Array): void; - addProviderpaymentstoragekeys(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EpochPayments.AsObject; - static toObject(includeInstance: boolean, msg: EpochPayments): EpochPayments.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EpochPayments, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EpochPayments; - static deserializeBinaryFromReader(message: EpochPayments, reader: jspb.BinaryReader): EpochPayments; -} - -export namespace EpochPayments { - export type AsObject = { - index: string, - providerpaymentstoragekeysList: Array, - } -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/epoch_payments_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/epoch_payments_pb.js deleted file mode 100644 index 935ea4c311..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/epoch_payments_pb.js +++ /dev/null @@ -1,223 +0,0 @@ -// source: lavanet/lava/pairing/epoch_payments.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.lavanet.lava.pairing.EpochPayments', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.EpochPayments = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.pairing.EpochPayments.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.pairing.EpochPayments, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.EpochPayments.displayName = 'proto.lavanet.lava.pairing.EpochPayments'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.pairing.EpochPayments.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.EpochPayments.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.EpochPayments.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.EpochPayments} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.EpochPayments.toObject = function(includeInstance, msg) { - var f, obj = { - index: jspb.Message.getFieldWithDefault(msg, 1, ""), - providerpaymentstoragekeysList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.EpochPayments} - */ -proto.lavanet.lava.pairing.EpochPayments.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.EpochPayments; - return proto.lavanet.lava.pairing.EpochPayments.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.EpochPayments} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.EpochPayments} - */ -proto.lavanet.lava.pairing.EpochPayments.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setIndex(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addProviderpaymentstoragekeys(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.EpochPayments.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.EpochPayments.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.EpochPayments} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.EpochPayments.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIndex(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getProviderpaymentstoragekeysList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } -}; - - -/** - * optional string index = 1; - * @return {string} - */ -proto.lavanet.lava.pairing.EpochPayments.prototype.getIndex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.EpochPayments} returns this - */ -proto.lavanet.lava.pairing.EpochPayments.prototype.setIndex = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string providerPaymentStorageKeys = 3; - * @return {!Array} - */ -proto.lavanet.lava.pairing.EpochPayments.prototype.getProviderpaymentstoragekeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.pairing.EpochPayments} returns this - */ -proto.lavanet.lava.pairing.EpochPayments.prototype.setProviderpaymentstoragekeysList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.pairing.EpochPayments} returns this - */ -proto.lavanet.lava.pairing.EpochPayments.prototype.addProviderpaymentstoragekeys = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.pairing.EpochPayments} returns this - */ -proto.lavanet.lava.pairing.EpochPayments.prototype.clearProviderpaymentstoragekeysList = function() { - return this.setProviderpaymentstoragekeysList([]); -}; - - -goog.object.extend(exports, proto.lavanet.lava.pairing); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/epoch_payments_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/epoch_payments_pb_service.d.ts deleted file mode 100644 index 531d2b61d3..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/epoch_payments_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/epoch_payments.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/epoch_payments_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/epoch_payments_pb_service.js deleted file mode 100644 index 531d2b61d3..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/epoch_payments_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/epoch_payments.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/params_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/params_pb.d.ts deleted file mode 100644 index 5252dda7f1..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/params_pb.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/params.proto - -import * as jspb from "google-protobuf"; -import * as gogoproto_gogo_pb from "../../../gogoproto/gogo_pb"; - -export class Params extends jspb.Message { - getMintcoinspercu(): string; - setMintcoinspercu(value: string): void; - - getFraudstakeslashingfactor(): string; - setFraudstakeslashingfactor(value: string): void; - - getFraudslashingamount(): number; - setFraudslashingamount(value: number): void; - - getEpochblocksoverlap(): number; - setEpochblocksoverlap(value: number): void; - - getUnpaylimit(): string; - setUnpaylimit(value: string): void; - - getSlashlimit(): string; - setSlashlimit(value: string): void; - - getDatareliabilityreward(): string; - setDatareliabilityreward(value: string): void; - - getQosweight(): string; - setQosweight(value: string): void; - - getRecommendedepochnumtocollectpayment(): number; - setRecommendedepochnumtocollectpayment(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Params.AsObject; - static toObject(includeInstance: boolean, msg: Params): Params.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Params, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Params; - static deserializeBinaryFromReader(message: Params, reader: jspb.BinaryReader): Params; -} - -export namespace Params { - export type AsObject = { - mintcoinspercu: string, - fraudstakeslashingfactor: string, - fraudslashingamount: number, - epochblocksoverlap: number, - unpaylimit: string, - slashlimit: string, - datareliabilityreward: string, - qosweight: string, - recommendedepochnumtocollectpayment: number, - } -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/params_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/params_pb.js deleted file mode 100644 index 4b13083306..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/params_pb.js +++ /dev/null @@ -1,409 +0,0 @@ -// source: lavanet/lava/pairing/params.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -goog.exportSymbol('proto.lavanet.lava.pairing.Params', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.Params = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.Params, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.Params.displayName = 'proto.lavanet.lava.pairing.Params'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.Params.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.Params.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.Params} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.Params.toObject = function(includeInstance, msg) { - var f, obj = { - mintcoinspercu: jspb.Message.getFieldWithDefault(msg, 3, ""), - fraudstakeslashingfactor: jspb.Message.getFieldWithDefault(msg, 5, ""), - fraudslashingamount: jspb.Message.getFieldWithDefault(msg, 6, 0), - epochblocksoverlap: jspb.Message.getFieldWithDefault(msg, 8, 0), - unpaylimit: jspb.Message.getFieldWithDefault(msg, 10, ""), - slashlimit: jspb.Message.getFieldWithDefault(msg, 11, ""), - datareliabilityreward: jspb.Message.getFieldWithDefault(msg, 12, ""), - qosweight: jspb.Message.getFieldWithDefault(msg, 13, ""), - recommendedepochnumtocollectpayment: jspb.Message.getFieldWithDefault(msg, 14, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.Params} - */ -proto.lavanet.lava.pairing.Params.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.Params; - return proto.lavanet.lava.pairing.Params.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.Params} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.Params} - */ -proto.lavanet.lava.pairing.Params.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setMintcoinspercu(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setFraudstakeslashingfactor(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setFraudslashingamount(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint64()); - msg.setEpochblocksoverlap(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setUnpaylimit(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setSlashlimit(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setDatareliabilityreward(value); - break; - case 13: - var value = /** @type {string} */ (reader.readString()); - msg.setQosweight(value); - break; - case 14: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRecommendedepochnumtocollectpayment(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.Params.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.Params.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.Params} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.Params.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMintcoinspercu(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getFraudstakeslashingfactor(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getFraudslashingamount(); - if (f !== 0) { - writer.writeUint64( - 6, - f - ); - } - f = message.getEpochblocksoverlap(); - if (f !== 0) { - writer.writeUint64( - 8, - f - ); - } - f = message.getUnpaylimit(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getSlashlimit(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getDatareliabilityreward(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getQosweight(); - if (f.length > 0) { - writer.writeString( - 13, - f - ); - } - f = message.getRecommendedepochnumtocollectpayment(); - if (f !== 0) { - writer.writeUint64( - 14, - f - ); - } -}; - - -/** - * optional string mintCoinsPerCU = 3; - * @return {string} - */ -proto.lavanet.lava.pairing.Params.prototype.getMintcoinspercu = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.Params} returns this - */ -proto.lavanet.lava.pairing.Params.prototype.setMintcoinspercu = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string fraudStakeSlashingFactor = 5; - * @return {string} - */ -proto.lavanet.lava.pairing.Params.prototype.getFraudstakeslashingfactor = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.Params} returns this - */ -proto.lavanet.lava.pairing.Params.prototype.setFraudstakeslashingfactor = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional uint64 fraudSlashingAmount = 6; - * @return {number} - */ -proto.lavanet.lava.pairing.Params.prototype.getFraudslashingamount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.Params} returns this - */ -proto.lavanet.lava.pairing.Params.prototype.setFraudslashingamount = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional uint64 epochBlocksOverlap = 8; - * @return {number} - */ -proto.lavanet.lava.pairing.Params.prototype.getEpochblocksoverlap = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.Params} returns this - */ -proto.lavanet.lava.pairing.Params.prototype.setEpochblocksoverlap = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional string unpayLimit = 10; - * @return {string} - */ -proto.lavanet.lava.pairing.Params.prototype.getUnpaylimit = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.Params} returns this - */ -proto.lavanet.lava.pairing.Params.prototype.setUnpaylimit = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); -}; - - -/** - * optional string slashLimit = 11; - * @return {string} - */ -proto.lavanet.lava.pairing.Params.prototype.getSlashlimit = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.Params} returns this - */ -proto.lavanet.lava.pairing.Params.prototype.setSlashlimit = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional string dataReliabilityReward = 12; - * @return {string} - */ -proto.lavanet.lava.pairing.Params.prototype.getDatareliabilityreward = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.Params} returns this - */ -proto.lavanet.lava.pairing.Params.prototype.setDatareliabilityreward = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional string QoSWeight = 13; - * @return {string} - */ -proto.lavanet.lava.pairing.Params.prototype.getQosweight = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.Params} returns this - */ -proto.lavanet.lava.pairing.Params.prototype.setQosweight = function(value) { - return jspb.Message.setProto3StringField(this, 13, value); -}; - - -/** - * optional uint64 recommendedEpochNumToCollectPayment = 14; - * @return {number} - */ -proto.lavanet.lava.pairing.Params.prototype.getRecommendedepochnumtocollectpayment = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.Params} returns this - */ -proto.lavanet.lava.pairing.Params.prototype.setRecommendedepochnumtocollectpayment = function(value) { - return jspb.Message.setProto3IntField(this, 14, value); -}; - - -goog.object.extend(exports, proto.lavanet.lava.pairing); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/params_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/params_pb_service.d.ts deleted file mode 100644 index cc76a5f2cf..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/params_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/params.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/params_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/params_pb_service.js deleted file mode 100644 index cc76a5f2cf..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/params_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/params.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/provider_payment_storage_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/provider_payment_storage_pb.d.ts deleted file mode 100644 index cceab37b97..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/provider_payment_storage_pb.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/provider_payment_storage.proto - -import * as jspb from "google-protobuf"; -import * as lavanet_lava_pairing_unique_payment_storage_client_provider_pb from "../../../lavanet/lava/pairing/unique_payment_storage_client_provider_pb"; - -export class ProviderPaymentStorage extends jspb.Message { - getIndex(): string; - setIndex(value: string): void; - - getEpoch(): number; - setEpoch(value: number): void; - - clearUniquepaymentstorageclientproviderkeysList(): void; - getUniquepaymentstorageclientproviderkeysList(): Array; - setUniquepaymentstorageclientproviderkeysList(value: Array): void; - addUniquepaymentstorageclientproviderkeys(value: string, index?: number): string; - - getComplainerstotalcu(): number; - setComplainerstotalcu(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProviderPaymentStorage.AsObject; - static toObject(includeInstance: boolean, msg: ProviderPaymentStorage): ProviderPaymentStorage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ProviderPaymentStorage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProviderPaymentStorage; - static deserializeBinaryFromReader(message: ProviderPaymentStorage, reader: jspb.BinaryReader): ProviderPaymentStorage; -} - -export namespace ProviderPaymentStorage { - export type AsObject = { - index: string, - epoch: number, - uniquepaymentstorageclientproviderkeysList: Array, - complainerstotalcu: number, - } -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/provider_payment_storage_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/provider_payment_storage_pb.js deleted file mode 100644 index 3cb15954e4..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/provider_payment_storage_pb.js +++ /dev/null @@ -1,285 +0,0 @@ -// source: lavanet/lava/pairing/provider_payment_storage.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var lavanet_lava_pairing_unique_payment_storage_client_provider_pb = require('../../../lavanet/lava/pairing/unique_payment_storage_client_provider_pb.js'); -goog.object.extend(proto, lavanet_lava_pairing_unique_payment_storage_client_provider_pb); -goog.exportSymbol('proto.lavanet.lava.pairing.ProviderPaymentStorage', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.ProviderPaymentStorage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.pairing.ProviderPaymentStorage.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.pairing.ProviderPaymentStorage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.ProviderPaymentStorage.displayName = 'proto.lavanet.lava.pairing.ProviderPaymentStorage'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.pairing.ProviderPaymentStorage.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.ProviderPaymentStorage.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.ProviderPaymentStorage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.ProviderPaymentStorage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.ProviderPaymentStorage.toObject = function(includeInstance, msg) { - var f, obj = { - index: jspb.Message.getFieldWithDefault(msg, 1, ""), - epoch: jspb.Message.getFieldWithDefault(msg, 3, 0), - uniquepaymentstorageclientproviderkeysList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, - complainerstotalcu: jspb.Message.getFieldWithDefault(msg, 6, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.ProviderPaymentStorage} - */ -proto.lavanet.lava.pairing.ProviderPaymentStorage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.ProviderPaymentStorage; - return proto.lavanet.lava.pairing.ProviderPaymentStorage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.ProviderPaymentStorage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.ProviderPaymentStorage} - */ -proto.lavanet.lava.pairing.ProviderPaymentStorage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setIndex(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setEpoch(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.addUniquepaymentstorageclientproviderkeys(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setComplainerstotalcu(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.ProviderPaymentStorage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.ProviderPaymentStorage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.ProviderPaymentStorage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.ProviderPaymentStorage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIndex(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEpoch(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getUniquepaymentstorageclientproviderkeysList(); - if (f.length > 0) { - writer.writeRepeatedString( - 5, - f - ); - } - f = message.getComplainerstotalcu(); - if (f !== 0) { - writer.writeUint64( - 6, - f - ); - } -}; - - -/** - * optional string index = 1; - * @return {string} - */ -proto.lavanet.lava.pairing.ProviderPaymentStorage.prototype.getIndex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.ProviderPaymentStorage} returns this - */ -proto.lavanet.lava.pairing.ProviderPaymentStorage.prototype.setIndex = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint64 epoch = 3; - * @return {number} - */ -proto.lavanet.lava.pairing.ProviderPaymentStorage.prototype.getEpoch = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.ProviderPaymentStorage} returns this - */ -proto.lavanet.lava.pairing.ProviderPaymentStorage.prototype.setEpoch = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated string uniquePaymentStorageClientProviderKeys = 5; - * @return {!Array} - */ -proto.lavanet.lava.pairing.ProviderPaymentStorage.prototype.getUniquepaymentstorageclientproviderkeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.pairing.ProviderPaymentStorage} returns this - */ -proto.lavanet.lava.pairing.ProviderPaymentStorage.prototype.setUniquepaymentstorageclientproviderkeysList = function(value) { - return jspb.Message.setField(this, 5, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.pairing.ProviderPaymentStorage} returns this - */ -proto.lavanet.lava.pairing.ProviderPaymentStorage.prototype.addUniquepaymentstorageclientproviderkeys = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 5, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.pairing.ProviderPaymentStorage} returns this - */ -proto.lavanet.lava.pairing.ProviderPaymentStorage.prototype.clearUniquepaymentstorageclientproviderkeysList = function() { - return this.setUniquepaymentstorageclientproviderkeysList([]); -}; - - -/** - * optional uint64 complainersTotalCu = 6; - * @return {number} - */ -proto.lavanet.lava.pairing.ProviderPaymentStorage.prototype.getComplainerstotalcu = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.ProviderPaymentStorage} returns this - */ -proto.lavanet.lava.pairing.ProviderPaymentStorage.prototype.setComplainerstotalcu = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -goog.object.extend(exports, proto.lavanet.lava.pairing); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/provider_payment_storage_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/provider_payment_storage_pb_service.d.ts deleted file mode 100644 index 8e352e27a1..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/provider_payment_storage_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/provider_payment_storage.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/provider_payment_storage_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/provider_payment_storage_pb_service.js deleted file mode 100644 index 8e352e27a1..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/provider_payment_storage_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/provider_payment_storage.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/query_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/query_pb.d.ts deleted file mode 100644 index eb442f616e..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/query_pb.d.ts +++ /dev/null @@ -1,733 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/query.proto - -import * as jspb from "google-protobuf"; -import * as gogoproto_gogo_pb from "../../../gogoproto/gogo_pb"; -import * as google_api_annotations_pb from "../../../google/api/annotations_pb"; -import * as cosmos_base_query_v1beta1_pagination_pb from "../../../cosmos/base/query/v1beta1/pagination_pb"; -import * as lavanet_lava_pairing_params_pb from "../../../lavanet/lava/pairing/params_pb"; -import * as lavanet_lava_pairing_epoch_payments_pb from "../../../lavanet/lava/pairing/epoch_payments_pb"; -import * as lavanet_lava_spec_spec_pb from "../../../lavanet/lava/spec/spec_pb"; -import * as lavanet_lava_plans_policy_pb from "../../../lavanet/lava/plans/policy_pb"; -import * as lavanet_lava_pairing_provider_payment_storage_pb from "../../../lavanet/lava/pairing/provider_payment_storage_pb"; -import * as lavanet_lava_pairing_unique_payment_storage_client_provider_pb from "../../../lavanet/lava/pairing/unique_payment_storage_client_provider_pb"; -import * as lavanet_lava_epochstorage_stake_entry_pb from "../../../lavanet/lava/epochstorage/stake_entry_pb"; -import * as lavanet_lava_subscription_subscription_pb from "../../../lavanet/lava/subscription/subscription_pb"; -import * as lavanet_lava_projects_project_pb from "../../../lavanet/lava/projects/project_pb"; - -export class QueryParamsRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryParamsRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryParamsRequest): QueryParamsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryParamsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryParamsRequest; - static deserializeBinaryFromReader(message: QueryParamsRequest, reader: jspb.BinaryReader): QueryParamsRequest; -} - -export namespace QueryParamsRequest { - export type AsObject = { - } -} - -export class QueryParamsResponse extends jspb.Message { - hasParams(): boolean; - clearParams(): void; - getParams(): lavanet_lava_pairing_params_pb.Params | undefined; - setParams(value?: lavanet_lava_pairing_params_pb.Params): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryParamsResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryParamsResponse): QueryParamsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryParamsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryParamsResponse; - static deserializeBinaryFromReader(message: QueryParamsResponse, reader: jspb.BinaryReader): QueryParamsResponse; -} - -export namespace QueryParamsResponse { - export type AsObject = { - params?: lavanet_lava_pairing_params_pb.Params.AsObject, - } -} - -export class QueryProvidersRequest extends jspb.Message { - getChainid(): string; - setChainid(value: string): void; - - getShowfrozen(): boolean; - setShowfrozen(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryProvidersRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryProvidersRequest): QueryProvidersRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryProvidersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryProvidersRequest; - static deserializeBinaryFromReader(message: QueryProvidersRequest, reader: jspb.BinaryReader): QueryProvidersRequest; -} - -export namespace QueryProvidersRequest { - export type AsObject = { - chainid: string, - showfrozen: boolean, - } -} - -export class QueryProvidersResponse extends jspb.Message { - clearStakeentryList(): void; - getStakeentryList(): Array; - setStakeentryList(value: Array): void; - addStakeentry(value?: lavanet_lava_epochstorage_stake_entry_pb.StakeEntry, index?: number): lavanet_lava_epochstorage_stake_entry_pb.StakeEntry; - - getOutput(): string; - setOutput(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryProvidersResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryProvidersResponse): QueryProvidersResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryProvidersResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryProvidersResponse; - static deserializeBinaryFromReader(message: QueryProvidersResponse, reader: jspb.BinaryReader): QueryProvidersResponse; -} - -export namespace QueryProvidersResponse { - export type AsObject = { - stakeentryList: Array, - output: string, - } -} - -export class QueryGetPairingRequest extends jspb.Message { - getChainid(): string; - setChainid(value: string): void; - - getClient(): string; - setClient(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryGetPairingRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryGetPairingRequest): QueryGetPairingRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryGetPairingRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryGetPairingRequest; - static deserializeBinaryFromReader(message: QueryGetPairingRequest, reader: jspb.BinaryReader): QueryGetPairingRequest; -} - -export namespace QueryGetPairingRequest { - export type AsObject = { - chainid: string, - client: string, - } -} - -export class QueryGetPairingResponse extends jspb.Message { - clearProvidersList(): void; - getProvidersList(): Array; - setProvidersList(value: Array): void; - addProviders(value?: lavanet_lava_epochstorage_stake_entry_pb.StakeEntry, index?: number): lavanet_lava_epochstorage_stake_entry_pb.StakeEntry; - - getCurrentEpoch(): number; - setCurrentEpoch(value: number): void; - - getTimeLeftToNextPairing(): number; - setTimeLeftToNextPairing(value: number): void; - - getSpecLastUpdatedBlock(): number; - setSpecLastUpdatedBlock(value: number): void; - - getBlockOfNextPairing(): number; - setBlockOfNextPairing(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryGetPairingResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryGetPairingResponse): QueryGetPairingResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryGetPairingResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryGetPairingResponse; - static deserializeBinaryFromReader(message: QueryGetPairingResponse, reader: jspb.BinaryReader): QueryGetPairingResponse; -} - -export namespace QueryGetPairingResponse { - export type AsObject = { - providersList: Array, - currentEpoch: number, - timeLeftToNextPairing: number, - specLastUpdatedBlock: number, - blockOfNextPairing: number, - } -} - -export class QueryVerifyPairingRequest extends jspb.Message { - getChainid(): string; - setChainid(value: string): void; - - getClient(): string; - setClient(value: string): void; - - getProvider(): string; - setProvider(value: string): void; - - getBlock(): number; - setBlock(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryVerifyPairingRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryVerifyPairingRequest): QueryVerifyPairingRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryVerifyPairingRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryVerifyPairingRequest; - static deserializeBinaryFromReader(message: QueryVerifyPairingRequest, reader: jspb.BinaryReader): QueryVerifyPairingRequest; -} - -export namespace QueryVerifyPairingRequest { - export type AsObject = { - chainid: string, - client: string, - provider: string, - block: number, - } -} - -export class QueryVerifyPairingResponse extends jspb.Message { - getValid(): boolean; - setValid(value: boolean): void; - - getPairedProviders(): number; - setPairedProviders(value: number): void; - - getCuPerEpoch(): number; - setCuPerEpoch(value: number): void; - - getProjectId(): string; - setProjectId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryVerifyPairingResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryVerifyPairingResponse): QueryVerifyPairingResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryVerifyPairingResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryVerifyPairingResponse; - static deserializeBinaryFromReader(message: QueryVerifyPairingResponse, reader: jspb.BinaryReader): QueryVerifyPairingResponse; -} - -export namespace QueryVerifyPairingResponse { - export type AsObject = { - valid: boolean, - pairedProviders: number, - cuPerEpoch: number, - projectId: string, - } -} - -export class QueryGetUniquePaymentStorageClientProviderRequest extends jspb.Message { - getIndex(): string; - setIndex(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryGetUniquePaymentStorageClientProviderRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryGetUniquePaymentStorageClientProviderRequest): QueryGetUniquePaymentStorageClientProviderRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryGetUniquePaymentStorageClientProviderRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryGetUniquePaymentStorageClientProviderRequest; - static deserializeBinaryFromReader(message: QueryGetUniquePaymentStorageClientProviderRequest, reader: jspb.BinaryReader): QueryGetUniquePaymentStorageClientProviderRequest; -} - -export namespace QueryGetUniquePaymentStorageClientProviderRequest { - export type AsObject = { - index: string, - } -} - -export class QueryGetUniquePaymentStorageClientProviderResponse extends jspb.Message { - hasUniquepaymentstorageclientprovider(): boolean; - clearUniquepaymentstorageclientprovider(): void; - getUniquepaymentstorageclientprovider(): lavanet_lava_pairing_unique_payment_storage_client_provider_pb.UniquePaymentStorageClientProvider | undefined; - setUniquepaymentstorageclientprovider(value?: lavanet_lava_pairing_unique_payment_storage_client_provider_pb.UniquePaymentStorageClientProvider): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryGetUniquePaymentStorageClientProviderResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryGetUniquePaymentStorageClientProviderResponse): QueryGetUniquePaymentStorageClientProviderResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryGetUniquePaymentStorageClientProviderResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryGetUniquePaymentStorageClientProviderResponse; - static deserializeBinaryFromReader(message: QueryGetUniquePaymentStorageClientProviderResponse, reader: jspb.BinaryReader): QueryGetUniquePaymentStorageClientProviderResponse; -} - -export namespace QueryGetUniquePaymentStorageClientProviderResponse { - export type AsObject = { - uniquepaymentstorageclientprovider?: lavanet_lava_pairing_unique_payment_storage_client_provider_pb.UniquePaymentStorageClientProvider.AsObject, - } -} - -export class QueryAllUniquePaymentStorageClientProviderRequest extends jspb.Message { - hasPagination(): boolean; - clearPagination(): void; - getPagination(): cosmos_base_query_v1beta1_pagination_pb.PageRequest | undefined; - setPagination(value?: cosmos_base_query_v1beta1_pagination_pb.PageRequest): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryAllUniquePaymentStorageClientProviderRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryAllUniquePaymentStorageClientProviderRequest): QueryAllUniquePaymentStorageClientProviderRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryAllUniquePaymentStorageClientProviderRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryAllUniquePaymentStorageClientProviderRequest; - static deserializeBinaryFromReader(message: QueryAllUniquePaymentStorageClientProviderRequest, reader: jspb.BinaryReader): QueryAllUniquePaymentStorageClientProviderRequest; -} - -export namespace QueryAllUniquePaymentStorageClientProviderRequest { - export type AsObject = { - pagination?: cosmos_base_query_v1beta1_pagination_pb.PageRequest.AsObject, - } -} - -export class QueryAllUniquePaymentStorageClientProviderResponse extends jspb.Message { - clearUniquepaymentstorageclientproviderList(): void; - getUniquepaymentstorageclientproviderList(): Array; - setUniquepaymentstorageclientproviderList(value: Array): void; - addUniquepaymentstorageclientprovider(value?: lavanet_lava_pairing_unique_payment_storage_client_provider_pb.UniquePaymentStorageClientProvider, index?: number): lavanet_lava_pairing_unique_payment_storage_client_provider_pb.UniquePaymentStorageClientProvider; - - hasPagination(): boolean; - clearPagination(): void; - getPagination(): cosmos_base_query_v1beta1_pagination_pb.PageResponse | undefined; - setPagination(value?: cosmos_base_query_v1beta1_pagination_pb.PageResponse): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryAllUniquePaymentStorageClientProviderResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryAllUniquePaymentStorageClientProviderResponse): QueryAllUniquePaymentStorageClientProviderResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryAllUniquePaymentStorageClientProviderResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryAllUniquePaymentStorageClientProviderResponse; - static deserializeBinaryFromReader(message: QueryAllUniquePaymentStorageClientProviderResponse, reader: jspb.BinaryReader): QueryAllUniquePaymentStorageClientProviderResponse; -} - -export namespace QueryAllUniquePaymentStorageClientProviderResponse { - export type AsObject = { - uniquepaymentstorageclientproviderList: Array, - pagination?: cosmos_base_query_v1beta1_pagination_pb.PageResponse.AsObject, - } -} - -export class QueryGetProviderPaymentStorageRequest extends jspb.Message { - getIndex(): string; - setIndex(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryGetProviderPaymentStorageRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryGetProviderPaymentStorageRequest): QueryGetProviderPaymentStorageRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryGetProviderPaymentStorageRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryGetProviderPaymentStorageRequest; - static deserializeBinaryFromReader(message: QueryGetProviderPaymentStorageRequest, reader: jspb.BinaryReader): QueryGetProviderPaymentStorageRequest; -} - -export namespace QueryGetProviderPaymentStorageRequest { - export type AsObject = { - index: string, - } -} - -export class QueryGetProviderPaymentStorageResponse extends jspb.Message { - hasProviderpaymentstorage(): boolean; - clearProviderpaymentstorage(): void; - getProviderpaymentstorage(): lavanet_lava_pairing_provider_payment_storage_pb.ProviderPaymentStorage | undefined; - setProviderpaymentstorage(value?: lavanet_lava_pairing_provider_payment_storage_pb.ProviderPaymentStorage): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryGetProviderPaymentStorageResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryGetProviderPaymentStorageResponse): QueryGetProviderPaymentStorageResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryGetProviderPaymentStorageResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryGetProviderPaymentStorageResponse; - static deserializeBinaryFromReader(message: QueryGetProviderPaymentStorageResponse, reader: jspb.BinaryReader): QueryGetProviderPaymentStorageResponse; -} - -export namespace QueryGetProviderPaymentStorageResponse { - export type AsObject = { - providerpaymentstorage?: lavanet_lava_pairing_provider_payment_storage_pb.ProviderPaymentStorage.AsObject, - } -} - -export class QueryAllProviderPaymentStorageRequest extends jspb.Message { - hasPagination(): boolean; - clearPagination(): void; - getPagination(): cosmos_base_query_v1beta1_pagination_pb.PageRequest | undefined; - setPagination(value?: cosmos_base_query_v1beta1_pagination_pb.PageRequest): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryAllProviderPaymentStorageRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryAllProviderPaymentStorageRequest): QueryAllProviderPaymentStorageRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryAllProviderPaymentStorageRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryAllProviderPaymentStorageRequest; - static deserializeBinaryFromReader(message: QueryAllProviderPaymentStorageRequest, reader: jspb.BinaryReader): QueryAllProviderPaymentStorageRequest; -} - -export namespace QueryAllProviderPaymentStorageRequest { - export type AsObject = { - pagination?: cosmos_base_query_v1beta1_pagination_pb.PageRequest.AsObject, - } -} - -export class QueryAllProviderPaymentStorageResponse extends jspb.Message { - clearProviderpaymentstorageList(): void; - getProviderpaymentstorageList(): Array; - setProviderpaymentstorageList(value: Array): void; - addProviderpaymentstorage(value?: lavanet_lava_pairing_provider_payment_storage_pb.ProviderPaymentStorage, index?: number): lavanet_lava_pairing_provider_payment_storage_pb.ProviderPaymentStorage; - - hasPagination(): boolean; - clearPagination(): void; - getPagination(): cosmos_base_query_v1beta1_pagination_pb.PageResponse | undefined; - setPagination(value?: cosmos_base_query_v1beta1_pagination_pb.PageResponse): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryAllProviderPaymentStorageResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryAllProviderPaymentStorageResponse): QueryAllProviderPaymentStorageResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryAllProviderPaymentStorageResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryAllProviderPaymentStorageResponse; - static deserializeBinaryFromReader(message: QueryAllProviderPaymentStorageResponse, reader: jspb.BinaryReader): QueryAllProviderPaymentStorageResponse; -} - -export namespace QueryAllProviderPaymentStorageResponse { - export type AsObject = { - providerpaymentstorageList: Array, - pagination?: cosmos_base_query_v1beta1_pagination_pb.PageResponse.AsObject, - } -} - -export class QueryGetEpochPaymentsRequest extends jspb.Message { - getIndex(): string; - setIndex(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryGetEpochPaymentsRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryGetEpochPaymentsRequest): QueryGetEpochPaymentsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryGetEpochPaymentsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryGetEpochPaymentsRequest; - static deserializeBinaryFromReader(message: QueryGetEpochPaymentsRequest, reader: jspb.BinaryReader): QueryGetEpochPaymentsRequest; -} - -export namespace QueryGetEpochPaymentsRequest { - export type AsObject = { - index: string, - } -} - -export class QueryGetEpochPaymentsResponse extends jspb.Message { - hasEpochpayments(): boolean; - clearEpochpayments(): void; - getEpochpayments(): lavanet_lava_pairing_epoch_payments_pb.EpochPayments | undefined; - setEpochpayments(value?: lavanet_lava_pairing_epoch_payments_pb.EpochPayments): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryGetEpochPaymentsResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryGetEpochPaymentsResponse): QueryGetEpochPaymentsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryGetEpochPaymentsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryGetEpochPaymentsResponse; - static deserializeBinaryFromReader(message: QueryGetEpochPaymentsResponse, reader: jspb.BinaryReader): QueryGetEpochPaymentsResponse; -} - -export namespace QueryGetEpochPaymentsResponse { - export type AsObject = { - epochpayments?: lavanet_lava_pairing_epoch_payments_pb.EpochPayments.AsObject, - } -} - -export class QueryAllEpochPaymentsRequest extends jspb.Message { - hasPagination(): boolean; - clearPagination(): void; - getPagination(): cosmos_base_query_v1beta1_pagination_pb.PageRequest | undefined; - setPagination(value?: cosmos_base_query_v1beta1_pagination_pb.PageRequest): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryAllEpochPaymentsRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryAllEpochPaymentsRequest): QueryAllEpochPaymentsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryAllEpochPaymentsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryAllEpochPaymentsRequest; - static deserializeBinaryFromReader(message: QueryAllEpochPaymentsRequest, reader: jspb.BinaryReader): QueryAllEpochPaymentsRequest; -} - -export namespace QueryAllEpochPaymentsRequest { - export type AsObject = { - pagination?: cosmos_base_query_v1beta1_pagination_pb.PageRequest.AsObject, - } -} - -export class QueryAllEpochPaymentsResponse extends jspb.Message { - clearEpochpaymentsList(): void; - getEpochpaymentsList(): Array; - setEpochpaymentsList(value: Array): void; - addEpochpayments(value?: lavanet_lava_pairing_epoch_payments_pb.EpochPayments, index?: number): lavanet_lava_pairing_epoch_payments_pb.EpochPayments; - - hasPagination(): boolean; - clearPagination(): void; - getPagination(): cosmos_base_query_v1beta1_pagination_pb.PageResponse | undefined; - setPagination(value?: cosmos_base_query_v1beta1_pagination_pb.PageResponse): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryAllEpochPaymentsResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryAllEpochPaymentsResponse): QueryAllEpochPaymentsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryAllEpochPaymentsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryAllEpochPaymentsResponse; - static deserializeBinaryFromReader(message: QueryAllEpochPaymentsResponse, reader: jspb.BinaryReader): QueryAllEpochPaymentsResponse; -} - -export namespace QueryAllEpochPaymentsResponse { - export type AsObject = { - epochpaymentsList: Array, - pagination?: cosmos_base_query_v1beta1_pagination_pb.PageResponse.AsObject, - } -} - -export class QueryUserEntryRequest extends jspb.Message { - getAddress(): string; - setAddress(value: string): void; - - getChainid(): string; - setChainid(value: string): void; - - getBlock(): number; - setBlock(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryUserEntryRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryUserEntryRequest): QueryUserEntryRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryUserEntryRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryUserEntryRequest; - static deserializeBinaryFromReader(message: QueryUserEntryRequest, reader: jspb.BinaryReader): QueryUserEntryRequest; -} - -export namespace QueryUserEntryRequest { - export type AsObject = { - address: string, - chainid: string, - block: number, - } -} - -export class QueryUserEntryResponse extends jspb.Message { - hasConsumer(): boolean; - clearConsumer(): void; - getConsumer(): lavanet_lava_epochstorage_stake_entry_pb.StakeEntry | undefined; - setConsumer(value?: lavanet_lava_epochstorage_stake_entry_pb.StakeEntry): void; - - getMaxcu(): number; - setMaxcu(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryUserEntryResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryUserEntryResponse): QueryUserEntryResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryUserEntryResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryUserEntryResponse; - static deserializeBinaryFromReader(message: QueryUserEntryResponse, reader: jspb.BinaryReader): QueryUserEntryResponse; -} - -export namespace QueryUserEntryResponse { - export type AsObject = { - consumer?: lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.AsObject, - maxcu: number, - } -} - -export class QueryStaticProvidersListRequest extends jspb.Message { - getChainid(): string; - setChainid(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryStaticProvidersListRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryStaticProvidersListRequest): QueryStaticProvidersListRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryStaticProvidersListRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryStaticProvidersListRequest; - static deserializeBinaryFromReader(message: QueryStaticProvidersListRequest, reader: jspb.BinaryReader): QueryStaticProvidersListRequest; -} - -export namespace QueryStaticProvidersListRequest { - export type AsObject = { - chainid: string, - } -} - -export class QueryStaticProvidersListResponse extends jspb.Message { - clearProvidersList(): void; - getProvidersList(): Array; - setProvidersList(value: Array): void; - addProviders(value?: lavanet_lava_epochstorage_stake_entry_pb.StakeEntry, index?: number): lavanet_lava_epochstorage_stake_entry_pb.StakeEntry; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryStaticProvidersListResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryStaticProvidersListResponse): QueryStaticProvidersListResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryStaticProvidersListResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryStaticProvidersListResponse; - static deserializeBinaryFromReader(message: QueryStaticProvidersListResponse, reader: jspb.BinaryReader): QueryStaticProvidersListResponse; -} - -export namespace QueryStaticProvidersListResponse { - export type AsObject = { - providersList: Array, - } -} - -export class QueryAccountInfoResponse extends jspb.Message { - clearProviderList(): void; - getProviderList(): Array; - setProviderList(value: Array): void; - addProvider(value?: lavanet_lava_epochstorage_stake_entry_pb.StakeEntry, index?: number): lavanet_lava_epochstorage_stake_entry_pb.StakeEntry; - - clearFrozenList(): void; - getFrozenList(): Array; - setFrozenList(value: Array): void; - addFrozen(value?: lavanet_lava_epochstorage_stake_entry_pb.StakeEntry, index?: number): lavanet_lava_epochstorage_stake_entry_pb.StakeEntry; - - clearConsumerList(): void; - getConsumerList(): Array; - setConsumerList(value: Array): void; - addConsumer(value?: lavanet_lava_epochstorage_stake_entry_pb.StakeEntry, index?: number): lavanet_lava_epochstorage_stake_entry_pb.StakeEntry; - - clearUnstakedList(): void; - getUnstakedList(): Array; - setUnstakedList(value: Array): void; - addUnstaked(value?: lavanet_lava_epochstorage_stake_entry_pb.StakeEntry, index?: number): lavanet_lava_epochstorage_stake_entry_pb.StakeEntry; - - hasSubscription(): boolean; - clearSubscription(): void; - getSubscription(): lavanet_lava_subscription_subscription_pb.Subscription | undefined; - setSubscription(value?: lavanet_lava_subscription_subscription_pb.Subscription): void; - - hasProject(): boolean; - clearProject(): void; - getProject(): lavanet_lava_projects_project_pb.Project | undefined; - setProject(value?: lavanet_lava_projects_project_pb.Project): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryAccountInfoResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryAccountInfoResponse): QueryAccountInfoResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryAccountInfoResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryAccountInfoResponse; - static deserializeBinaryFromReader(message: QueryAccountInfoResponse, reader: jspb.BinaryReader): QueryAccountInfoResponse; -} - -export namespace QueryAccountInfoResponse { - export type AsObject = { - providerList: Array, - frozenList: Array, - consumerList: Array, - unstakedList: Array, - subscription?: lavanet_lava_subscription_subscription_pb.Subscription.AsObject, - project?: lavanet_lava_projects_project_pb.Project.AsObject, - } -} - -export class QueryEffectivePolicyRequest extends jspb.Message { - getConsumer(): string; - setConsumer(value: string): void; - - getSpecid(): string; - setSpecid(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryEffectivePolicyRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryEffectivePolicyRequest): QueryEffectivePolicyRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryEffectivePolicyRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryEffectivePolicyRequest; - static deserializeBinaryFromReader(message: QueryEffectivePolicyRequest, reader: jspb.BinaryReader): QueryEffectivePolicyRequest; -} - -export namespace QueryEffectivePolicyRequest { - export type AsObject = { - consumer: string, - specid: string, - } -} - -export class QueryEffectivePolicyResponse extends jspb.Message { - hasPolicy(): boolean; - clearPolicy(): void; - getPolicy(): lavanet_lava_plans_policy_pb.Policy | undefined; - setPolicy(value?: lavanet_lava_plans_policy_pb.Policy): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryEffectivePolicyResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryEffectivePolicyResponse): QueryEffectivePolicyResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryEffectivePolicyResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryEffectivePolicyResponse; - static deserializeBinaryFromReader(message: QueryEffectivePolicyResponse, reader: jspb.BinaryReader): QueryEffectivePolicyResponse; -} - -export namespace QueryEffectivePolicyResponse { - export type AsObject = { - policy?: lavanet_lava_plans_policy_pb.Policy.AsObject, - } -} - -export class QuerySdkPairingResponse extends jspb.Message { - hasPairing(): boolean; - clearPairing(): void; - getPairing(): QueryGetPairingResponse | undefined; - setPairing(value?: QueryGetPairingResponse): void; - - getMaxCu(): number; - setMaxCu(value: number): void; - - hasSpec(): boolean; - clearSpec(): void; - getSpec(): lavanet_lava_spec_spec_pb.Spec | undefined; - setSpec(value?: lavanet_lava_spec_spec_pb.Spec): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QuerySdkPairingResponse.AsObject; - static toObject(includeInstance: boolean, msg: QuerySdkPairingResponse): QuerySdkPairingResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QuerySdkPairingResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QuerySdkPairingResponse; - static deserializeBinaryFromReader(message: QuerySdkPairingResponse, reader: jspb.BinaryReader): QuerySdkPairingResponse; -} - -export namespace QuerySdkPairingResponse { - export type AsObject = { - pairing?: QueryGetPairingResponse.AsObject, - maxCu: number, - spec?: lavanet_lava_spec_spec_pb.Spec.AsObject, - } -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/query_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/query_pb.js deleted file mode 100644 index 46fc76af37..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/query_pb.js +++ /dev/null @@ -1,5691 +0,0 @@ -// source: lavanet/lava/pairing/query.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -var google_api_annotations_pb = require('../../../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var cosmos_base_query_v1beta1_pagination_pb = require('../../../cosmos/base/query/v1beta1/pagination_pb.js'); -goog.object.extend(proto, cosmos_base_query_v1beta1_pagination_pb); -var lavanet_lava_pairing_params_pb = require('../../../lavanet/lava/pairing/params_pb.js'); -goog.object.extend(proto, lavanet_lava_pairing_params_pb); -var lavanet_lava_pairing_epoch_payments_pb = require('../../../lavanet/lava/pairing/epoch_payments_pb.js'); -goog.object.extend(proto, lavanet_lava_pairing_epoch_payments_pb); -var lavanet_lava_spec_spec_pb = require('../../../lavanet/lava/spec/spec_pb.js'); -goog.object.extend(proto, lavanet_lava_spec_spec_pb); -var lavanet_lava_plans_policy_pb = require('../../../lavanet/lava/plans/policy_pb.js'); -goog.object.extend(proto, lavanet_lava_plans_policy_pb); -var lavanet_lava_pairing_provider_payment_storage_pb = require('../../../lavanet/lava/pairing/provider_payment_storage_pb.js'); -goog.object.extend(proto, lavanet_lava_pairing_provider_payment_storage_pb); -var lavanet_lava_pairing_unique_payment_storage_client_provider_pb = require('../../../lavanet/lava/pairing/unique_payment_storage_client_provider_pb.js'); -goog.object.extend(proto, lavanet_lava_pairing_unique_payment_storage_client_provider_pb); -var lavanet_lava_epochstorage_stake_entry_pb = require('../../../lavanet/lava/epochstorage/stake_entry_pb.js'); -goog.object.extend(proto, lavanet_lava_epochstorage_stake_entry_pb); -var lavanet_lava_subscription_subscription_pb = require('../../../lavanet/lava/subscription/subscription_pb.js'); -goog.object.extend(proto, lavanet_lava_subscription_subscription_pb); -var lavanet_lava_projects_project_pb = require('../../../lavanet/lava/projects/project_pb.js'); -goog.object.extend(proto, lavanet_lava_projects_project_pb); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryAccountInfoResponse', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryEffectivePolicyRequest', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryEffectivePolicyResponse', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryGetPairingRequest', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryGetPairingResponse', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryParamsRequest', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryParamsResponse', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryProvidersRequest', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryProvidersResponse', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QuerySdkPairingResponse', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryStaticProvidersListRequest', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryStaticProvidersListResponse', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryUserEntryRequest', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryUserEntryResponse', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryVerifyPairingRequest', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QueryVerifyPairingResponse', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryParamsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryParamsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryParamsRequest.displayName = 'proto.lavanet.lava.pairing.QueryParamsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryParamsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryParamsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryParamsResponse.displayName = 'proto.lavanet.lava.pairing.QueryParamsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryProvidersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryProvidersRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryProvidersRequest.displayName = 'proto.lavanet.lava.pairing.QueryProvidersRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryProvidersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.pairing.QueryProvidersResponse.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryProvidersResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryProvidersResponse.displayName = 'proto.lavanet.lava.pairing.QueryProvidersResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryGetPairingRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryGetPairingRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryGetPairingRequest.displayName = 'proto.lavanet.lava.pairing.QueryGetPairingRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.pairing.QueryGetPairingResponse.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryGetPairingResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryGetPairingResponse.displayName = 'proto.lavanet.lava.pairing.QueryGetPairingResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryVerifyPairingRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryVerifyPairingRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryVerifyPairingRequest.displayName = 'proto.lavanet.lava.pairing.QueryVerifyPairingRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryVerifyPairingResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryVerifyPairingResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryVerifyPairingResponse.displayName = 'proto.lavanet.lava.pairing.QueryVerifyPairingResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest.displayName = 'proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse.displayName = 'proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest.displayName = 'proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.displayName = 'proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest.displayName = 'proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse.displayName = 'proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest.displayName = 'proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.displayName = 'proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest.displayName = 'proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse.displayName = 'proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest.displayName = 'proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.displayName = 'proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryUserEntryRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryUserEntryRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryUserEntryRequest.displayName = 'proto.lavanet.lava.pairing.QueryUserEntryRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryUserEntryResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryUserEntryResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryUserEntryResponse.displayName = 'proto.lavanet.lava.pairing.QueryUserEntryResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryStaticProvidersListRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryStaticProvidersListRequest.displayName = 'proto.lavanet.lava.pairing.QueryStaticProvidersListRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.pairing.QueryStaticProvidersListResponse.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryStaticProvidersListResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryStaticProvidersListResponse.displayName = 'proto.lavanet.lava.pairing.QueryStaticProvidersListResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.pairing.QueryAccountInfoResponse.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryAccountInfoResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryAccountInfoResponse.displayName = 'proto.lavanet.lava.pairing.QueryAccountInfoResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryEffectivePolicyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryEffectivePolicyRequest.displayName = 'proto.lavanet.lava.pairing.QueryEffectivePolicyRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QueryEffectivePolicyResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QueryEffectivePolicyResponse.displayName = 'proto.lavanet.lava.pairing.QueryEffectivePolicyResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QuerySdkPairingResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QuerySdkPairingResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QuerySdkPairingResponse.displayName = 'proto.lavanet.lava.pairing.QuerySdkPairingResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryParamsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryParamsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryParamsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryParamsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryParamsRequest} - */ -proto.lavanet.lava.pairing.QueryParamsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryParamsRequest; - return proto.lavanet.lava.pairing.QueryParamsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryParamsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryParamsRequest} - */ -proto.lavanet.lava.pairing.QueryParamsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryParamsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryParamsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryParamsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryParamsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryParamsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryParamsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryParamsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryParamsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - params: (f = msg.getParams()) && lavanet_lava_pairing_params_pb.Params.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryParamsResponse} - */ -proto.lavanet.lava.pairing.QueryParamsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryParamsResponse; - return proto.lavanet.lava.pairing.QueryParamsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryParamsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryParamsResponse} - */ -proto.lavanet.lava.pairing.QueryParamsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new lavanet_lava_pairing_params_pb.Params; - reader.readMessage(value,lavanet_lava_pairing_params_pb.Params.deserializeBinaryFromReader); - msg.setParams(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryParamsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryParamsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryParamsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryParamsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getParams(); - if (f != null) { - writer.writeMessage( - 1, - f, - lavanet_lava_pairing_params_pb.Params.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Params params = 1; - * @return {?proto.lavanet.lava.pairing.Params} - */ -proto.lavanet.lava.pairing.QueryParamsResponse.prototype.getParams = function() { - return /** @type{?proto.lavanet.lava.pairing.Params} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_pairing_params_pb.Params, 1)); -}; - - -/** - * @param {?proto.lavanet.lava.pairing.Params|undefined} value - * @return {!proto.lavanet.lava.pairing.QueryParamsResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryParamsResponse.prototype.setParams = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.QueryParamsResponse} returns this - */ -proto.lavanet.lava.pairing.QueryParamsResponse.prototype.clearParams = function() { - return this.setParams(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.QueryParamsResponse.prototype.hasParams = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryProvidersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryProvidersRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryProvidersRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryProvidersRequest.toObject = function(includeInstance, msg) { - var f, obj = { - chainid: jspb.Message.getFieldWithDefault(msg, 1, ""), - showfrozen: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryProvidersRequest} - */ -proto.lavanet.lava.pairing.QueryProvidersRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryProvidersRequest; - return proto.lavanet.lava.pairing.QueryProvidersRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryProvidersRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryProvidersRequest} - */ -proto.lavanet.lava.pairing.QueryProvidersRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setChainid(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setShowfrozen(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryProvidersRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryProvidersRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryProvidersRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryProvidersRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChainid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getShowfrozen(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * optional string chainID = 1; - * @return {string} - */ -proto.lavanet.lava.pairing.QueryProvidersRequest.prototype.getChainid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QueryProvidersRequest} returns this - */ -proto.lavanet.lava.pairing.QueryProvidersRequest.prototype.setChainid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool showFrozen = 2; - * @return {boolean} - */ -proto.lavanet.lava.pairing.QueryProvidersRequest.prototype.getShowfrozen = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.lavanet.lava.pairing.QueryProvidersRequest} returns this - */ -proto.lavanet.lava.pairing.QueryProvidersRequest.prototype.setShowfrozen = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.pairing.QueryProvidersResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryProvidersResponse.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryProvidersResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryProvidersResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryProvidersResponse.toObject = function(includeInstance, msg) { - var f, obj = { - stakeentryList: jspb.Message.toObjectList(msg.getStakeentryList(), - lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.toObject, includeInstance), - output: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryProvidersResponse} - */ -proto.lavanet.lava.pairing.QueryProvidersResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryProvidersResponse; - return proto.lavanet.lava.pairing.QueryProvidersResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryProvidersResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryProvidersResponse} - */ -proto.lavanet.lava.pairing.QueryProvidersResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new lavanet_lava_epochstorage_stake_entry_pb.StakeEntry; - reader.readMessage(value,lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.deserializeBinaryFromReader); - msg.addStakeentry(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setOutput(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryProvidersResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryProvidersResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryProvidersResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryProvidersResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStakeentryList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.serializeBinaryToWriter - ); - } - f = message.getOutput(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * repeated lavanet.lava.epochstorage.StakeEntry stakeEntry = 1; - * @return {!Array} - */ -proto.lavanet.lava.pairing.QueryProvidersResponse.prototype.getStakeentryList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, lavanet_lava_epochstorage_stake_entry_pb.StakeEntry, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.pairing.QueryProvidersResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryProvidersResponse.prototype.setStakeentryList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.lavanet.lava.epochstorage.StakeEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} - */ -proto.lavanet.lava.pairing.QueryProvidersResponse.prototype.addStakeentry = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lavanet.lava.epochstorage.StakeEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.pairing.QueryProvidersResponse} returns this - */ -proto.lavanet.lava.pairing.QueryProvidersResponse.prototype.clearStakeentryList = function() { - return this.setStakeentryList([]); -}; - - -/** - * optional string output = 2; - * @return {string} - */ -proto.lavanet.lava.pairing.QueryProvidersResponse.prototype.getOutput = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QueryProvidersResponse} returns this - */ -proto.lavanet.lava.pairing.QueryProvidersResponse.prototype.setOutput = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryGetPairingRequest.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryGetPairingRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryGetPairingRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryGetPairingRequest.toObject = function(includeInstance, msg) { - var f, obj = { - chainid: jspb.Message.getFieldWithDefault(msg, 1, ""), - client: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryGetPairingRequest} - */ -proto.lavanet.lava.pairing.QueryGetPairingRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryGetPairingRequest; - return proto.lavanet.lava.pairing.QueryGetPairingRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryGetPairingRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryGetPairingRequest} - */ -proto.lavanet.lava.pairing.QueryGetPairingRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setChainid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setClient(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryGetPairingRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryGetPairingRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryGetPairingRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryGetPairingRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChainid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getClient(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string chainID = 1; - * @return {string} - */ -proto.lavanet.lava.pairing.QueryGetPairingRequest.prototype.getChainid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QueryGetPairingRequest} returns this - */ -proto.lavanet.lava.pairing.QueryGetPairingRequest.prototype.setChainid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string client = 2; - * @return {string} - */ -proto.lavanet.lava.pairing.QueryGetPairingRequest.prototype.getClient = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QueryGetPairingRequest} returns this - */ -proto.lavanet.lava.pairing.QueryGetPairingRequest.prototype.setClient = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryGetPairingResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryGetPairingResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse.toObject = function(includeInstance, msg) { - var f, obj = { - providersList: jspb.Message.toObjectList(msg.getProvidersList(), - lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.toObject, includeInstance), - currentEpoch: jspb.Message.getFieldWithDefault(msg, 2, 0), - timeLeftToNextPairing: jspb.Message.getFieldWithDefault(msg, 3, 0), - specLastUpdatedBlock: jspb.Message.getFieldWithDefault(msg, 4, 0), - blockOfNextPairing: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryGetPairingResponse} - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryGetPairingResponse; - return proto.lavanet.lava.pairing.QueryGetPairingResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryGetPairingResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryGetPairingResponse} - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new lavanet_lava_epochstorage_stake_entry_pb.StakeEntry; - reader.readMessage(value,lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.deserializeBinaryFromReader); - msg.addProviders(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setCurrentEpoch(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTimeLeftToNextPairing(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSpecLastUpdatedBlock(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBlockOfNextPairing(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryGetPairingResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryGetPairingResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProvidersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.serializeBinaryToWriter - ); - } - f = message.getCurrentEpoch(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getTimeLeftToNextPairing(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getSpecLastUpdatedBlock(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getBlockOfNextPairing(); - if (f !== 0) { - writer.writeUint64( - 5, - f - ); - } -}; - - -/** - * repeated lavanet.lava.epochstorage.StakeEntry providers = 1; - * @return {!Array} - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse.prototype.getProvidersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, lavanet_lava_epochstorage_stake_entry_pb.StakeEntry, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.pairing.QueryGetPairingResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryGetPairingResponse.prototype.setProvidersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.lavanet.lava.epochstorage.StakeEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse.prototype.addProviders = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lavanet.lava.epochstorage.StakeEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.pairing.QueryGetPairingResponse} returns this - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse.prototype.clearProvidersList = function() { - return this.setProvidersList([]); -}; - - -/** - * optional uint64 current_epoch = 2; - * @return {number} - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse.prototype.getCurrentEpoch = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.QueryGetPairingResponse} returns this - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse.prototype.setCurrentEpoch = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 time_left_to_next_pairing = 3; - * @return {number} - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse.prototype.getTimeLeftToNextPairing = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.QueryGetPairingResponse} returns this - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse.prototype.setTimeLeftToNextPairing = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional uint64 spec_last_updated_block = 4; - * @return {number} - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse.prototype.getSpecLastUpdatedBlock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.QueryGetPairingResponse} returns this - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse.prototype.setSpecLastUpdatedBlock = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional uint64 block_of_next_pairing = 5; - * @return {number} - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse.prototype.getBlockOfNextPairing = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.QueryGetPairingResponse} returns this - */ -proto.lavanet.lava.pairing.QueryGetPairingResponse.prototype.setBlockOfNextPairing = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryVerifyPairingRequest.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryVerifyPairingRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryVerifyPairingRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryVerifyPairingRequest.toObject = function(includeInstance, msg) { - var f, obj = { - chainid: jspb.Message.getFieldWithDefault(msg, 1, ""), - client: jspb.Message.getFieldWithDefault(msg, 2, ""), - provider: jspb.Message.getFieldWithDefault(msg, 3, ""), - block: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryVerifyPairingRequest} - */ -proto.lavanet.lava.pairing.QueryVerifyPairingRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryVerifyPairingRequest; - return proto.lavanet.lava.pairing.QueryVerifyPairingRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryVerifyPairingRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryVerifyPairingRequest} - */ -proto.lavanet.lava.pairing.QueryVerifyPairingRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setChainid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setClient(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setProvider(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBlock(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryVerifyPairingRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryVerifyPairingRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryVerifyPairingRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryVerifyPairingRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChainid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getClient(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getProvider(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getBlock(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } -}; - - -/** - * optional string chainID = 1; - * @return {string} - */ -proto.lavanet.lava.pairing.QueryVerifyPairingRequest.prototype.getChainid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QueryVerifyPairingRequest} returns this - */ -proto.lavanet.lava.pairing.QueryVerifyPairingRequest.prototype.setChainid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string client = 2; - * @return {string} - */ -proto.lavanet.lava.pairing.QueryVerifyPairingRequest.prototype.getClient = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QueryVerifyPairingRequest} returns this - */ -proto.lavanet.lava.pairing.QueryVerifyPairingRequest.prototype.setClient = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string provider = 3; - * @return {string} - */ -proto.lavanet.lava.pairing.QueryVerifyPairingRequest.prototype.getProvider = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QueryVerifyPairingRequest} returns this - */ -proto.lavanet.lava.pairing.QueryVerifyPairingRequest.prototype.setProvider = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional uint64 block = 4; - * @return {number} - */ -proto.lavanet.lava.pairing.QueryVerifyPairingRequest.prototype.getBlock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.QueryVerifyPairingRequest} returns this - */ -proto.lavanet.lava.pairing.QueryVerifyPairingRequest.prototype.setBlock = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryVerifyPairingResponse.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryVerifyPairingResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryVerifyPairingResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryVerifyPairingResponse.toObject = function(includeInstance, msg) { - var f, obj = { - valid: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - pairedProviders: jspb.Message.getFieldWithDefault(msg, 3, 0), - cuPerEpoch: jspb.Message.getFieldWithDefault(msg, 4, 0), - projectId: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryVerifyPairingResponse} - */ -proto.lavanet.lava.pairing.QueryVerifyPairingResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryVerifyPairingResponse; - return proto.lavanet.lava.pairing.QueryVerifyPairingResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryVerifyPairingResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryVerifyPairingResponse} - */ -proto.lavanet.lava.pairing.QueryVerifyPairingResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setValid(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setPairedProviders(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setCuPerEpoch(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryVerifyPairingResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryVerifyPairingResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryVerifyPairingResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryVerifyPairingResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValid(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getPairedProviders(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getCuPerEpoch(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional bool valid = 1; - * @return {boolean} - */ -proto.lavanet.lava.pairing.QueryVerifyPairingResponse.prototype.getValid = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.lavanet.lava.pairing.QueryVerifyPairingResponse} returns this - */ -proto.lavanet.lava.pairing.QueryVerifyPairingResponse.prototype.setValid = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional uint64 paired_providers = 3; - * @return {number} - */ -proto.lavanet.lava.pairing.QueryVerifyPairingResponse.prototype.getPairedProviders = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.QueryVerifyPairingResponse} returns this - */ -proto.lavanet.lava.pairing.QueryVerifyPairingResponse.prototype.setPairedProviders = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional uint64 cu_per_epoch = 4; - * @return {number} - */ -proto.lavanet.lava.pairing.QueryVerifyPairingResponse.prototype.getCuPerEpoch = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.QueryVerifyPairingResponse} returns this - */ -proto.lavanet.lava.pairing.QueryVerifyPairingResponse.prototype.setCuPerEpoch = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional string project_id = 5; - * @return {string} - */ -proto.lavanet.lava.pairing.QueryVerifyPairingResponse.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QueryVerifyPairingResponse} returns this - */ -proto.lavanet.lava.pairing.QueryVerifyPairingResponse.prototype.setProjectId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest.toObject = function(includeInstance, msg) { - var f, obj = { - index: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest} - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest; - return proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest} - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setIndex(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIndex(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string index = 1; - * @return {string} - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest.prototype.getIndex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest} returns this - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderRequest.prototype.setIndex = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uniquepaymentstorageclientprovider: (f = msg.getUniquepaymentstorageclientprovider()) && lavanet_lava_pairing_unique_payment_storage_client_provider_pb.UniquePaymentStorageClientProvider.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse} - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse; - return proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse} - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new lavanet_lava_pairing_unique_payment_storage_client_provider_pb.UniquePaymentStorageClientProvider; - reader.readMessage(value,lavanet_lava_pairing_unique_payment_storage_client_provider_pb.UniquePaymentStorageClientProvider.deserializeBinaryFromReader); - msg.setUniquepaymentstorageclientprovider(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUniquepaymentstorageclientprovider(); - if (f != null) { - writer.writeMessage( - 1, - f, - lavanet_lava_pairing_unique_payment_storage_client_provider_pb.UniquePaymentStorageClientProvider.serializeBinaryToWriter - ); - } -}; - - -/** - * optional UniquePaymentStorageClientProvider uniquePaymentStorageClientProvider = 1; - * @return {?proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider} - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse.prototype.getUniquepaymentstorageclientprovider = function() { - return /** @type{?proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_pairing_unique_payment_storage_client_provider_pb.UniquePaymentStorageClientProvider, 1)); -}; - - -/** - * @param {?proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider|undefined} value - * @return {!proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse.prototype.setUniquepaymentstorageclientprovider = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse} returns this - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse.prototype.clearUniquepaymentstorageclientprovider = function() { - return this.setUniquepaymentstorageclientprovider(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.QueryGetUniquePaymentStorageClientProviderResponse.prototype.hasUniquepaymentstorageclientprovider = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest.toObject = function(includeInstance, msg) { - var f, obj = { - pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest} - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest; - return proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest} - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new cosmos_base_query_v1beta1_pagination_pb.PageRequest; - reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageRequest.deserializeBinaryFromReader); - msg.setPagination(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 1, - f, - cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter - ); - } -}; - - -/** - * optional cosmos.base.query.v1beta1.PageRequest pagination = 1; - * @return {?proto.cosmos.base.query.v1beta1.PageRequest} - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest.prototype.getPagination = function() { - return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ ( - jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 1)); -}; - - -/** - * @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value - * @return {!proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest} returns this -*/ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest.prototype.setPagination = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest} returns this - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest.prototype.clearPagination = function() { - return this.setPagination(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderRequest.prototype.hasPagination = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uniquepaymentstorageclientproviderList: jspb.Message.toObjectList(msg.getUniquepaymentstorageclientproviderList(), - lavanet_lava_pairing_unique_payment_storage_client_provider_pb.UniquePaymentStorageClientProvider.toObject, includeInstance), - pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse} - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse; - return proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse} - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new lavanet_lava_pairing_unique_payment_storage_client_provider_pb.UniquePaymentStorageClientProvider; - reader.readMessage(value,lavanet_lava_pairing_unique_payment_storage_client_provider_pb.UniquePaymentStorageClientProvider.deserializeBinaryFromReader); - msg.addUniquepaymentstorageclientprovider(value); - break; - case 2: - var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse; - reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageResponse.deserializeBinaryFromReader); - msg.setPagination(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUniquepaymentstorageclientproviderList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - lavanet_lava_pairing_unique_payment_storage_client_provider_pb.UniquePaymentStorageClientProvider.serializeBinaryToWriter - ); - } - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 2, - f, - cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated UniquePaymentStorageClientProvider uniquePaymentStorageClientProvider = 1; - * @return {!Array} - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.prototype.getUniquepaymentstorageclientproviderList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, lavanet_lava_pairing_unique_payment_storage_client_provider_pb.UniquePaymentStorageClientProvider, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.prototype.setUniquepaymentstorageclientproviderList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider} - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.prototype.addUniquepaymentstorageclientprovider = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse} returns this - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.prototype.clearUniquepaymentstorageclientproviderList = function() { - return this.setUniquepaymentstorageclientproviderList([]); -}; - - -/** - * optional cosmos.base.query.v1beta1.PageResponse pagination = 2; - * @return {?proto.cosmos.base.query.v1beta1.PageResponse} - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.prototype.getPagination = function() { - return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ ( - jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 2)); -}; - - -/** - * @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value - * @return {!proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.prototype.setPagination = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse} returns this - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.prototype.clearPagination = function() { - return this.setPagination(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.QueryAllUniquePaymentStorageClientProviderResponse.prototype.hasPagination = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest.toObject = function(includeInstance, msg) { - var f, obj = { - index: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest} - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest; - return proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest} - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setIndex(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIndex(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string index = 1; - * @return {string} - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest.prototype.getIndex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest} returns this - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageRequest.prototype.setIndex = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse.toObject = function(includeInstance, msg) { - var f, obj = { - providerpaymentstorage: (f = msg.getProviderpaymentstorage()) && lavanet_lava_pairing_provider_payment_storage_pb.ProviderPaymentStorage.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse} - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse; - return proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse} - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new lavanet_lava_pairing_provider_payment_storage_pb.ProviderPaymentStorage; - reader.readMessage(value,lavanet_lava_pairing_provider_payment_storage_pb.ProviderPaymentStorage.deserializeBinaryFromReader); - msg.setProviderpaymentstorage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProviderpaymentstorage(); - if (f != null) { - writer.writeMessage( - 1, - f, - lavanet_lava_pairing_provider_payment_storage_pb.ProviderPaymentStorage.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ProviderPaymentStorage providerPaymentStorage = 1; - * @return {?proto.lavanet.lava.pairing.ProviderPaymentStorage} - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse.prototype.getProviderpaymentstorage = function() { - return /** @type{?proto.lavanet.lava.pairing.ProviderPaymentStorage} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_pairing_provider_payment_storage_pb.ProviderPaymentStorage, 1)); -}; - - -/** - * @param {?proto.lavanet.lava.pairing.ProviderPaymentStorage|undefined} value - * @return {!proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse.prototype.setProviderpaymentstorage = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse} returns this - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse.prototype.clearProviderpaymentstorage = function() { - return this.setProviderpaymentstorage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.QueryGetProviderPaymentStorageResponse.prototype.hasProviderpaymentstorage = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest.toObject = function(includeInstance, msg) { - var f, obj = { - pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest} - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest; - return proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest} - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new cosmos_base_query_v1beta1_pagination_pb.PageRequest; - reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageRequest.deserializeBinaryFromReader); - msg.setPagination(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 1, - f, - cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter - ); - } -}; - - -/** - * optional cosmos.base.query.v1beta1.PageRequest pagination = 1; - * @return {?proto.cosmos.base.query.v1beta1.PageRequest} - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest.prototype.getPagination = function() { - return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ ( - jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 1)); -}; - - -/** - * @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value - * @return {!proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest} returns this -*/ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest.prototype.setPagination = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest} returns this - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest.prototype.clearPagination = function() { - return this.setPagination(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageRequest.prototype.hasPagination = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.toObject = function(includeInstance, msg) { - var f, obj = { - providerpaymentstorageList: jspb.Message.toObjectList(msg.getProviderpaymentstorageList(), - lavanet_lava_pairing_provider_payment_storage_pb.ProviderPaymentStorage.toObject, includeInstance), - pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse} - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse; - return proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse} - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new lavanet_lava_pairing_provider_payment_storage_pb.ProviderPaymentStorage; - reader.readMessage(value,lavanet_lava_pairing_provider_payment_storage_pb.ProviderPaymentStorage.deserializeBinaryFromReader); - msg.addProviderpaymentstorage(value); - break; - case 2: - var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse; - reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageResponse.deserializeBinaryFromReader); - msg.setPagination(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProviderpaymentstorageList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - lavanet_lava_pairing_provider_payment_storage_pb.ProviderPaymentStorage.serializeBinaryToWriter - ); - } - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 2, - f, - cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated ProviderPaymentStorage providerPaymentStorage = 1; - * @return {!Array} - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.prototype.getProviderpaymentstorageList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, lavanet_lava_pairing_provider_payment_storage_pb.ProviderPaymentStorage, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.prototype.setProviderpaymentstorageList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.lavanet.lava.pairing.ProviderPaymentStorage=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.pairing.ProviderPaymentStorage} - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.prototype.addProviderpaymentstorage = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lavanet.lava.pairing.ProviderPaymentStorage, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse} returns this - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.prototype.clearProviderpaymentstorageList = function() { - return this.setProviderpaymentstorageList([]); -}; - - -/** - * optional cosmos.base.query.v1beta1.PageResponse pagination = 2; - * @return {?proto.cosmos.base.query.v1beta1.PageResponse} - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.prototype.getPagination = function() { - return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ ( - jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 2)); -}; - - -/** - * @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value - * @return {!proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.prototype.setPagination = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse} returns this - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.prototype.clearPagination = function() { - return this.setPagination(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.QueryAllProviderPaymentStorageResponse.prototype.hasPagination = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - index: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest} - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest; - return proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest} - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setIndex(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIndex(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string index = 1; - * @return {string} - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest.prototype.getIndex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest} returns this - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsRequest.prototype.setIndex = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - epochpayments: (f = msg.getEpochpayments()) && lavanet_lava_pairing_epoch_payments_pb.EpochPayments.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse} - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse; - return proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse} - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new lavanet_lava_pairing_epoch_payments_pb.EpochPayments; - reader.readMessage(value,lavanet_lava_pairing_epoch_payments_pb.EpochPayments.deserializeBinaryFromReader); - msg.setEpochpayments(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEpochpayments(); - if (f != null) { - writer.writeMessage( - 1, - f, - lavanet_lava_pairing_epoch_payments_pb.EpochPayments.serializeBinaryToWriter - ); - } -}; - - -/** - * optional EpochPayments epochPayments = 1; - * @return {?proto.lavanet.lava.pairing.EpochPayments} - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse.prototype.getEpochpayments = function() { - return /** @type{?proto.lavanet.lava.pairing.EpochPayments} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_pairing_epoch_payments_pb.EpochPayments, 1)); -}; - - -/** - * @param {?proto.lavanet.lava.pairing.EpochPayments|undefined} value - * @return {!proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse.prototype.setEpochpayments = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse} returns this - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse.prototype.clearEpochpayments = function() { - return this.setEpochpayments(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.QueryGetEpochPaymentsResponse.prototype.hasEpochpayments = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest} - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest; - return proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest} - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new cosmos_base_query_v1beta1_pagination_pb.PageRequest; - reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageRequest.deserializeBinaryFromReader); - msg.setPagination(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 1, - f, - cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter - ); - } -}; - - -/** - * optional cosmos.base.query.v1beta1.PageRequest pagination = 1; - * @return {?proto.cosmos.base.query.v1beta1.PageRequest} - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest.prototype.getPagination = function() { - return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ ( - jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 1)); -}; - - -/** - * @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value - * @return {!proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest} returns this -*/ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest.prototype.setPagination = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest} returns this - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest.prototype.clearPagination = function() { - return this.setPagination(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsRequest.prototype.hasPagination = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - epochpaymentsList: jspb.Message.toObjectList(msg.getEpochpaymentsList(), - lavanet_lava_pairing_epoch_payments_pb.EpochPayments.toObject, includeInstance), - pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse} - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse; - return proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse} - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new lavanet_lava_pairing_epoch_payments_pb.EpochPayments; - reader.readMessage(value,lavanet_lava_pairing_epoch_payments_pb.EpochPayments.deserializeBinaryFromReader); - msg.addEpochpayments(value); - break; - case 2: - var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse; - reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageResponse.deserializeBinaryFromReader); - msg.setPagination(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEpochpaymentsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - lavanet_lava_pairing_epoch_payments_pb.EpochPayments.serializeBinaryToWriter - ); - } - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 2, - f, - cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated EpochPayments epochPayments = 1; - * @return {!Array} - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.prototype.getEpochpaymentsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, lavanet_lava_pairing_epoch_payments_pb.EpochPayments, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.prototype.setEpochpaymentsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.lavanet.lava.pairing.EpochPayments=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.pairing.EpochPayments} - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.prototype.addEpochpayments = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lavanet.lava.pairing.EpochPayments, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse} returns this - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.prototype.clearEpochpaymentsList = function() { - return this.setEpochpaymentsList([]); -}; - - -/** - * optional cosmos.base.query.v1beta1.PageResponse pagination = 2; - * @return {?proto.cosmos.base.query.v1beta1.PageResponse} - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.prototype.getPagination = function() { - return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ ( - jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 2)); -}; - - -/** - * @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value - * @return {!proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.prototype.setPagination = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse} returns this - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.prototype.clearPagination = function() { - return this.setPagination(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.QueryAllEpochPaymentsResponse.prototype.hasPagination = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryUserEntryRequest.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryUserEntryRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryUserEntryRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryUserEntryRequest.toObject = function(includeInstance, msg) { - var f, obj = { - address: jspb.Message.getFieldWithDefault(msg, 1, ""), - chainid: jspb.Message.getFieldWithDefault(msg, 2, ""), - block: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryUserEntryRequest} - */ -proto.lavanet.lava.pairing.QueryUserEntryRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryUserEntryRequest; - return proto.lavanet.lava.pairing.QueryUserEntryRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryUserEntryRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryUserEntryRequest} - */ -proto.lavanet.lava.pairing.QueryUserEntryRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setAddress(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setChainid(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBlock(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryUserEntryRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryUserEntryRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryUserEntryRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryUserEntryRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAddress(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getChainid(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getBlock(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } -}; - - -/** - * optional string address = 1; - * @return {string} - */ -proto.lavanet.lava.pairing.QueryUserEntryRequest.prototype.getAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QueryUserEntryRequest} returns this - */ -proto.lavanet.lava.pairing.QueryUserEntryRequest.prototype.setAddress = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string chainID = 2; - * @return {string} - */ -proto.lavanet.lava.pairing.QueryUserEntryRequest.prototype.getChainid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QueryUserEntryRequest} returns this - */ -proto.lavanet.lava.pairing.QueryUserEntryRequest.prototype.setChainid = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint64 block = 3; - * @return {number} - */ -proto.lavanet.lava.pairing.QueryUserEntryRequest.prototype.getBlock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.QueryUserEntryRequest} returns this - */ -proto.lavanet.lava.pairing.QueryUserEntryRequest.prototype.setBlock = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryUserEntryResponse.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryUserEntryResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryUserEntryResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryUserEntryResponse.toObject = function(includeInstance, msg) { - var f, obj = { - consumer: (f = msg.getConsumer()) && lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.toObject(includeInstance, f), - maxcu: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryUserEntryResponse} - */ -proto.lavanet.lava.pairing.QueryUserEntryResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryUserEntryResponse; - return proto.lavanet.lava.pairing.QueryUserEntryResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryUserEntryResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryUserEntryResponse} - */ -proto.lavanet.lava.pairing.QueryUserEntryResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new lavanet_lava_epochstorage_stake_entry_pb.StakeEntry; - reader.readMessage(value,lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.deserializeBinaryFromReader); - msg.setConsumer(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMaxcu(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryUserEntryResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryUserEntryResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryUserEntryResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryUserEntryResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getConsumer(); - if (f != null) { - writer.writeMessage( - 1, - f, - lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.serializeBinaryToWriter - ); - } - f = message.getMaxcu(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } -}; - - -/** - * optional lavanet.lava.epochstorage.StakeEntry consumer = 1; - * @return {?proto.lavanet.lava.epochstorage.StakeEntry} - */ -proto.lavanet.lava.pairing.QueryUserEntryResponse.prototype.getConsumer = function() { - return /** @type{?proto.lavanet.lava.epochstorage.StakeEntry} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_epochstorage_stake_entry_pb.StakeEntry, 1)); -}; - - -/** - * @param {?proto.lavanet.lava.epochstorage.StakeEntry|undefined} value - * @return {!proto.lavanet.lava.pairing.QueryUserEntryResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryUserEntryResponse.prototype.setConsumer = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.QueryUserEntryResponse} returns this - */ -proto.lavanet.lava.pairing.QueryUserEntryResponse.prototype.clearConsumer = function() { - return this.setConsumer(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.QueryUserEntryResponse.prototype.hasConsumer = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional uint64 maxCU = 2; - * @return {number} - */ -proto.lavanet.lava.pairing.QueryUserEntryResponse.prototype.getMaxcu = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.QueryUserEntryResponse} returns this - */ -proto.lavanet.lava.pairing.QueryUserEntryResponse.prototype.setMaxcu = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListRequest.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryStaticProvidersListRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryStaticProvidersListRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListRequest.toObject = function(includeInstance, msg) { - var f, obj = { - chainid: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryStaticProvidersListRequest} - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryStaticProvidersListRequest; - return proto.lavanet.lava.pairing.QueryStaticProvidersListRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryStaticProvidersListRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryStaticProvidersListRequest} - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setChainid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryStaticProvidersListRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryStaticProvidersListRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChainid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string chainID = 1; - * @return {string} - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListRequest.prototype.getChainid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QueryStaticProvidersListRequest} returns this - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListRequest.prototype.setChainid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListResponse.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryStaticProvidersListResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryStaticProvidersListResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListResponse.toObject = function(includeInstance, msg) { - var f, obj = { - providersList: jspb.Message.toObjectList(msg.getProvidersList(), - lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryStaticProvidersListResponse} - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryStaticProvidersListResponse; - return proto.lavanet.lava.pairing.QueryStaticProvidersListResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryStaticProvidersListResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryStaticProvidersListResponse} - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new lavanet_lava_epochstorage_stake_entry_pb.StakeEntry; - reader.readMessage(value,lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.deserializeBinaryFromReader); - msg.addProviders(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryStaticProvidersListResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryStaticProvidersListResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProvidersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated lavanet.lava.epochstorage.StakeEntry providers = 1; - * @return {!Array} - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListResponse.prototype.getProvidersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, lavanet_lava_epochstorage_stake_entry_pb.StakeEntry, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.pairing.QueryStaticProvidersListResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryStaticProvidersListResponse.prototype.setProvidersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.lavanet.lava.epochstorage.StakeEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListResponse.prototype.addProviders = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lavanet.lava.epochstorage.StakeEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.pairing.QueryStaticProvidersListResponse} returns this - */ -proto.lavanet.lava.pairing.QueryStaticProvidersListResponse.prototype.clearProvidersList = function() { - return this.setProvidersList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.repeatedFields_ = [1,2,3,4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryAccountInfoResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryAccountInfoResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.toObject = function(includeInstance, msg) { - var f, obj = { - providerList: jspb.Message.toObjectList(msg.getProviderList(), - lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.toObject, includeInstance), - frozenList: jspb.Message.toObjectList(msg.getFrozenList(), - lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.toObject, includeInstance), - consumerList: jspb.Message.toObjectList(msg.getConsumerList(), - lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.toObject, includeInstance), - unstakedList: jspb.Message.toObjectList(msg.getUnstakedList(), - lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.toObject, includeInstance), - subscription: (f = msg.getSubscription()) && lavanet_lava_subscription_subscription_pb.Subscription.toObject(includeInstance, f), - project: (f = msg.getProject()) && lavanet_lava_projects_project_pb.Project.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryAccountInfoResponse} - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryAccountInfoResponse; - return proto.lavanet.lava.pairing.QueryAccountInfoResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryAccountInfoResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryAccountInfoResponse} - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new lavanet_lava_epochstorage_stake_entry_pb.StakeEntry; - reader.readMessage(value,lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.deserializeBinaryFromReader); - msg.addProvider(value); - break; - case 2: - var value = new lavanet_lava_epochstorage_stake_entry_pb.StakeEntry; - reader.readMessage(value,lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.deserializeBinaryFromReader); - msg.addFrozen(value); - break; - case 3: - var value = new lavanet_lava_epochstorage_stake_entry_pb.StakeEntry; - reader.readMessage(value,lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.deserializeBinaryFromReader); - msg.addConsumer(value); - break; - case 4: - var value = new lavanet_lava_epochstorage_stake_entry_pb.StakeEntry; - reader.readMessage(value,lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.deserializeBinaryFromReader); - msg.addUnstaked(value); - break; - case 5: - var value = new lavanet_lava_subscription_subscription_pb.Subscription; - reader.readMessage(value,lavanet_lava_subscription_subscription_pb.Subscription.deserializeBinaryFromReader); - msg.setSubscription(value); - break; - case 6: - var value = new lavanet_lava_projects_project_pb.Project; - reader.readMessage(value,lavanet_lava_projects_project_pb.Project.deserializeBinaryFromReader); - msg.setProject(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryAccountInfoResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryAccountInfoResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProviderList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.serializeBinaryToWriter - ); - } - f = message.getFrozenList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.serializeBinaryToWriter - ); - } - f = message.getConsumerList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.serializeBinaryToWriter - ); - } - f = message.getUnstakedList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - lavanet_lava_epochstorage_stake_entry_pb.StakeEntry.serializeBinaryToWriter - ); - } - f = message.getSubscription(); - if (f != null) { - writer.writeMessage( - 5, - f, - lavanet_lava_subscription_subscription_pb.Subscription.serializeBinaryToWriter - ); - } - f = message.getProject(); - if (f != null) { - writer.writeMessage( - 6, - f, - lavanet_lava_projects_project_pb.Project.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated lavanet.lava.epochstorage.StakeEntry provider = 1; - * @return {!Array} - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.getProviderList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, lavanet_lava_epochstorage_stake_entry_pb.StakeEntry, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.pairing.QueryAccountInfoResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.setProviderList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.lavanet.lava.epochstorage.StakeEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.addProvider = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lavanet.lava.epochstorage.StakeEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.pairing.QueryAccountInfoResponse} returns this - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.clearProviderList = function() { - return this.setProviderList([]); -}; - - -/** - * repeated lavanet.lava.epochstorage.StakeEntry frozen = 2; - * @return {!Array} - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.getFrozenList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, lavanet_lava_epochstorage_stake_entry_pb.StakeEntry, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.pairing.QueryAccountInfoResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.setFrozenList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.lavanet.lava.epochstorage.StakeEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.addFrozen = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.lavanet.lava.epochstorage.StakeEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.pairing.QueryAccountInfoResponse} returns this - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.clearFrozenList = function() { - return this.setFrozenList([]); -}; - - -/** - * repeated lavanet.lava.epochstorage.StakeEntry consumer = 3; - * @return {!Array} - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.getConsumerList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, lavanet_lava_epochstorage_stake_entry_pb.StakeEntry, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.pairing.QueryAccountInfoResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.setConsumerList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.lavanet.lava.epochstorage.StakeEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.addConsumer = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.lavanet.lava.epochstorage.StakeEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.pairing.QueryAccountInfoResponse} returns this - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.clearConsumerList = function() { - return this.setConsumerList([]); -}; - - -/** - * repeated lavanet.lava.epochstorage.StakeEntry unstaked = 4; - * @return {!Array} - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.getUnstakedList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, lavanet_lava_epochstorage_stake_entry_pb.StakeEntry, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.pairing.QueryAccountInfoResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.setUnstakedList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.lavanet.lava.epochstorage.StakeEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.epochstorage.StakeEntry} - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.addUnstaked = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.lavanet.lava.epochstorage.StakeEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.pairing.QueryAccountInfoResponse} returns this - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.clearUnstakedList = function() { - return this.setUnstakedList([]); -}; - - -/** - * optional lavanet.lava.subscription.Subscription subscription = 5; - * @return {?proto.lavanet.lava.subscription.Subscription} - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.getSubscription = function() { - return /** @type{?proto.lavanet.lava.subscription.Subscription} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_subscription_subscription_pb.Subscription, 5)); -}; - - -/** - * @param {?proto.lavanet.lava.subscription.Subscription|undefined} value - * @return {!proto.lavanet.lava.pairing.QueryAccountInfoResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.setSubscription = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.QueryAccountInfoResponse} returns this - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.clearSubscription = function() { - return this.setSubscription(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.hasSubscription = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional lavanet.lava.projects.Project project = 6; - * @return {?proto.lavanet.lava.projects.Project} - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.getProject = function() { - return /** @type{?proto.lavanet.lava.projects.Project} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_projects_project_pb.Project, 6)); -}; - - -/** - * @param {?proto.lavanet.lava.projects.Project|undefined} value - * @return {!proto.lavanet.lava.pairing.QueryAccountInfoResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.setProject = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.QueryAccountInfoResponse} returns this - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.clearProject = function() { - return this.setProject(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.QueryAccountInfoResponse.prototype.hasProject = function() { - return jspb.Message.getField(this, 6) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryEffectivePolicyRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryEffectivePolicyRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyRequest.toObject = function(includeInstance, msg) { - var f, obj = { - consumer: jspb.Message.getFieldWithDefault(msg, 1, ""), - specid: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryEffectivePolicyRequest} - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryEffectivePolicyRequest; - return proto.lavanet.lava.pairing.QueryEffectivePolicyRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryEffectivePolicyRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryEffectivePolicyRequest} - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setConsumer(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setSpecid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryEffectivePolicyRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryEffectivePolicyRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getConsumer(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSpecid(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string consumer = 1; - * @return {string} - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyRequest.prototype.getConsumer = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QueryEffectivePolicyRequest} returns this - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyRequest.prototype.setConsumer = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string specID = 2; - * @return {string} - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyRequest.prototype.getSpecid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QueryEffectivePolicyRequest} returns this - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyRequest.prototype.setSpecid = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QueryEffectivePolicyResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QueryEffectivePolicyResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyResponse.toObject = function(includeInstance, msg) { - var f, obj = { - policy: (f = msg.getPolicy()) && lavanet_lava_plans_policy_pb.Policy.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QueryEffectivePolicyResponse} - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QueryEffectivePolicyResponse; - return proto.lavanet.lava.pairing.QueryEffectivePolicyResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QueryEffectivePolicyResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QueryEffectivePolicyResponse} - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new lavanet_lava_plans_policy_pb.Policy; - reader.readMessage(value,lavanet_lava_plans_policy_pb.Policy.deserializeBinaryFromReader); - msg.setPolicy(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QueryEffectivePolicyResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QueryEffectivePolicyResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPolicy(); - if (f != null) { - writer.writeMessage( - 1, - f, - lavanet_lava_plans_policy_pb.Policy.serializeBinaryToWriter - ); - } -}; - - -/** - * optional lavanet.lava.plans.Policy policy = 1; - * @return {?proto.lavanet.lava.plans.Policy} - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyResponse.prototype.getPolicy = function() { - return /** @type{?proto.lavanet.lava.plans.Policy} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_plans_policy_pb.Policy, 1)); -}; - - -/** - * @param {?proto.lavanet.lava.plans.Policy|undefined} value - * @return {!proto.lavanet.lava.pairing.QueryEffectivePolicyResponse} returns this -*/ -proto.lavanet.lava.pairing.QueryEffectivePolicyResponse.prototype.setPolicy = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.QueryEffectivePolicyResponse} returns this - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyResponse.prototype.clearPolicy = function() { - return this.setPolicy(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.QueryEffectivePolicyResponse.prototype.hasPolicy = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QuerySdkPairingResponse.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QuerySdkPairingResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QuerySdkPairingResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QuerySdkPairingResponse.toObject = function(includeInstance, msg) { - var f, obj = { - pairing: (f = msg.getPairing()) && proto.lavanet.lava.pairing.QueryGetPairingResponse.toObject(includeInstance, f), - maxCu: jspb.Message.getFieldWithDefault(msg, 2, 0), - spec: (f = msg.getSpec()) && lavanet_lava_spec_spec_pb.Spec.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QuerySdkPairingResponse} - */ -proto.lavanet.lava.pairing.QuerySdkPairingResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QuerySdkPairingResponse; - return proto.lavanet.lava.pairing.QuerySdkPairingResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QuerySdkPairingResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QuerySdkPairingResponse} - */ -proto.lavanet.lava.pairing.QuerySdkPairingResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.lavanet.lava.pairing.QueryGetPairingResponse; - reader.readMessage(value,proto.lavanet.lava.pairing.QueryGetPairingResponse.deserializeBinaryFromReader); - msg.setPairing(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMaxCu(value); - break; - case 3: - var value = new lavanet_lava_spec_spec_pb.Spec; - reader.readMessage(value,lavanet_lava_spec_spec_pb.Spec.deserializeBinaryFromReader); - msg.setSpec(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QuerySdkPairingResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QuerySdkPairingResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QuerySdkPairingResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QuerySdkPairingResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPairing(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.lavanet.lava.pairing.QueryGetPairingResponse.serializeBinaryToWriter - ); - } - f = message.getMaxCu(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getSpec(); - if (f != null) { - writer.writeMessage( - 3, - f, - lavanet_lava_spec_spec_pb.Spec.serializeBinaryToWriter - ); - } -}; - - -/** - * optional QueryGetPairingResponse pairing = 1; - * @return {?proto.lavanet.lava.pairing.QueryGetPairingResponse} - */ -proto.lavanet.lava.pairing.QuerySdkPairingResponse.prototype.getPairing = function() { - return /** @type{?proto.lavanet.lava.pairing.QueryGetPairingResponse} */ ( - jspb.Message.getWrapperField(this, proto.lavanet.lava.pairing.QueryGetPairingResponse, 1)); -}; - - -/** - * @param {?proto.lavanet.lava.pairing.QueryGetPairingResponse|undefined} value - * @return {!proto.lavanet.lava.pairing.QuerySdkPairingResponse} returns this -*/ -proto.lavanet.lava.pairing.QuerySdkPairingResponse.prototype.setPairing = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.QuerySdkPairingResponse} returns this - */ -proto.lavanet.lava.pairing.QuerySdkPairingResponse.prototype.clearPairing = function() { - return this.setPairing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.QuerySdkPairingResponse.prototype.hasPairing = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional uint64 max_cu = 2; - * @return {number} - */ -proto.lavanet.lava.pairing.QuerySdkPairingResponse.prototype.getMaxCu = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.QuerySdkPairingResponse} returns this - */ -proto.lavanet.lava.pairing.QuerySdkPairingResponse.prototype.setMaxCu = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional lavanet.lava.spec.Spec spec = 3; - * @return {?proto.lavanet.lava.spec.Spec} - */ -proto.lavanet.lava.pairing.QuerySdkPairingResponse.prototype.getSpec = function() { - return /** @type{?proto.lavanet.lava.spec.Spec} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_spec_spec_pb.Spec, 3)); -}; - - -/** - * @param {?proto.lavanet.lava.spec.Spec|undefined} value - * @return {!proto.lavanet.lava.pairing.QuerySdkPairingResponse} returns this -*/ -proto.lavanet.lava.pairing.QuerySdkPairingResponse.prototype.setSpec = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.QuerySdkPairingResponse} returns this - */ -proto.lavanet.lava.pairing.QuerySdkPairingResponse.prototype.clearSpec = function() { - return this.setSpec(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.QuerySdkPairingResponse.prototype.hasSpec = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -goog.object.extend(exports, proto.lavanet.lava.pairing); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/query_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/query_pb_service.d.ts deleted file mode 100644 index 8421f14877..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/query_pb_service.d.ts +++ /dev/null @@ -1,310 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/query.proto - -import * as lavanet_lava_pairing_query_pb from "../../../lavanet/lava/pairing/query_pb"; -import {grpc} from "@improbable-eng/grpc-web"; - -type QueryParams = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof lavanet_lava_pairing_query_pb.QueryParamsRequest; - readonly responseType: typeof lavanet_lava_pairing_query_pb.QueryParamsResponse; -}; - -type QueryProviders = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof lavanet_lava_pairing_query_pb.QueryProvidersRequest; - readonly responseType: typeof lavanet_lava_pairing_query_pb.QueryProvidersResponse; -}; - -type QueryGetPairing = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof lavanet_lava_pairing_query_pb.QueryGetPairingRequest; - readonly responseType: typeof lavanet_lava_pairing_query_pb.QueryGetPairingResponse; -}; - -type QueryVerifyPairing = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof lavanet_lava_pairing_query_pb.QueryVerifyPairingRequest; - readonly responseType: typeof lavanet_lava_pairing_query_pb.QueryVerifyPairingResponse; -}; - -type QueryUniquePaymentStorageClientProvider = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof lavanet_lava_pairing_query_pb.QueryGetUniquePaymentStorageClientProviderRequest; - readonly responseType: typeof lavanet_lava_pairing_query_pb.QueryGetUniquePaymentStorageClientProviderResponse; -}; - -type QueryUniquePaymentStorageClientProviderAll = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof lavanet_lava_pairing_query_pb.QueryAllUniquePaymentStorageClientProviderRequest; - readonly responseType: typeof lavanet_lava_pairing_query_pb.QueryAllUniquePaymentStorageClientProviderResponse; -}; - -type QueryProviderPaymentStorage = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof lavanet_lava_pairing_query_pb.QueryGetProviderPaymentStorageRequest; - readonly responseType: typeof lavanet_lava_pairing_query_pb.QueryGetProviderPaymentStorageResponse; -}; - -type QueryProviderPaymentStorageAll = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof lavanet_lava_pairing_query_pb.QueryAllProviderPaymentStorageRequest; - readonly responseType: typeof lavanet_lava_pairing_query_pb.QueryAllProviderPaymentStorageResponse; -}; - -type QueryEpochPayments = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof lavanet_lava_pairing_query_pb.QueryGetEpochPaymentsRequest; - readonly responseType: typeof lavanet_lava_pairing_query_pb.QueryGetEpochPaymentsResponse; -}; - -type QueryEpochPaymentsAll = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof lavanet_lava_pairing_query_pb.QueryAllEpochPaymentsRequest; - readonly responseType: typeof lavanet_lava_pairing_query_pb.QueryAllEpochPaymentsResponse; -}; - -type QueryUserEntry = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof lavanet_lava_pairing_query_pb.QueryUserEntryRequest; - readonly responseType: typeof lavanet_lava_pairing_query_pb.QueryUserEntryResponse; -}; - -type QueryStaticProvidersList = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof lavanet_lava_pairing_query_pb.QueryStaticProvidersListRequest; - readonly responseType: typeof lavanet_lava_pairing_query_pb.QueryStaticProvidersListResponse; -}; - -type QueryEffectivePolicy = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof lavanet_lava_pairing_query_pb.QueryEffectivePolicyRequest; - readonly responseType: typeof lavanet_lava_pairing_query_pb.QueryEffectivePolicyResponse; -}; - -type QuerySdkPairing = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof lavanet_lava_pairing_query_pb.QueryGetPairingRequest; - readonly responseType: typeof lavanet_lava_pairing_query_pb.QuerySdkPairingResponse; -}; - -export class Query { - static readonly serviceName: string; - static readonly Params: QueryParams; - static readonly Providers: QueryProviders; - static readonly GetPairing: QueryGetPairing; - static readonly VerifyPairing: QueryVerifyPairing; - static readonly UniquePaymentStorageClientProvider: QueryUniquePaymentStorageClientProvider; - static readonly UniquePaymentStorageClientProviderAll: QueryUniquePaymentStorageClientProviderAll; - static readonly ProviderPaymentStorage: QueryProviderPaymentStorage; - static readonly ProviderPaymentStorageAll: QueryProviderPaymentStorageAll; - static readonly EpochPayments: QueryEpochPayments; - static readonly EpochPaymentsAll: QueryEpochPaymentsAll; - static readonly UserEntry: QueryUserEntry; - static readonly StaticProvidersList: QueryStaticProvidersList; - static readonly EffectivePolicy: QueryEffectivePolicy; - static readonly SdkPairing: QuerySdkPairing; -} - -export type ServiceError = { message: string, code: number; metadata: grpc.Metadata } -export type Status = { details: string, code: number; metadata: grpc.Metadata } - -interface UnaryResponse { - cancel(): void; -} -interface ResponseStream { - cancel(): void; - on(type: 'data', handler: (message: T) => void): ResponseStream; - on(type: 'end', handler: (status?: Status) => void): ResponseStream; - on(type: 'status', handler: (status: Status) => void): ResponseStream; -} -interface RequestStream { - write(message: T): RequestStream; - end(): void; - cancel(): void; - on(type: 'end', handler: (status?: Status) => void): RequestStream; - on(type: 'status', handler: (status: Status) => void): RequestStream; -} -interface BidirectionalStream { - write(message: ReqT): BidirectionalStream; - end(): void; - cancel(): void; - on(type: 'data', handler: (message: ResT) => void): BidirectionalStream; - on(type: 'end', handler: (status?: Status) => void): BidirectionalStream; - on(type: 'status', handler: (status: Status) => void): BidirectionalStream; -} - -export class QueryClient { - readonly serviceHost: string; - - constructor(serviceHost: string, options?: grpc.RpcOptions); - params( - requestMessage: lavanet_lava_pairing_query_pb.QueryParamsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryParamsResponse|null) => void - ): UnaryResponse; - params( - requestMessage: lavanet_lava_pairing_query_pb.QueryParamsRequest, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryParamsResponse|null) => void - ): UnaryResponse; - providers( - requestMessage: lavanet_lava_pairing_query_pb.QueryProvidersRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryProvidersResponse|null) => void - ): UnaryResponse; - providers( - requestMessage: lavanet_lava_pairing_query_pb.QueryProvidersRequest, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryProvidersResponse|null) => void - ): UnaryResponse; - getPairing( - requestMessage: lavanet_lava_pairing_query_pb.QueryGetPairingRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryGetPairingResponse|null) => void - ): UnaryResponse; - getPairing( - requestMessage: lavanet_lava_pairing_query_pb.QueryGetPairingRequest, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryGetPairingResponse|null) => void - ): UnaryResponse; - verifyPairing( - requestMessage: lavanet_lava_pairing_query_pb.QueryVerifyPairingRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryVerifyPairingResponse|null) => void - ): UnaryResponse; - verifyPairing( - requestMessage: lavanet_lava_pairing_query_pb.QueryVerifyPairingRequest, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryVerifyPairingResponse|null) => void - ): UnaryResponse; - uniquePaymentStorageClientProvider( - requestMessage: lavanet_lava_pairing_query_pb.QueryGetUniquePaymentStorageClientProviderRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryGetUniquePaymentStorageClientProviderResponse|null) => void - ): UnaryResponse; - uniquePaymentStorageClientProvider( - requestMessage: lavanet_lava_pairing_query_pb.QueryGetUniquePaymentStorageClientProviderRequest, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryGetUniquePaymentStorageClientProviderResponse|null) => void - ): UnaryResponse; - uniquePaymentStorageClientProviderAll( - requestMessage: lavanet_lava_pairing_query_pb.QueryAllUniquePaymentStorageClientProviderRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryAllUniquePaymentStorageClientProviderResponse|null) => void - ): UnaryResponse; - uniquePaymentStorageClientProviderAll( - requestMessage: lavanet_lava_pairing_query_pb.QueryAllUniquePaymentStorageClientProviderRequest, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryAllUniquePaymentStorageClientProviderResponse|null) => void - ): UnaryResponse; - providerPaymentStorage( - requestMessage: lavanet_lava_pairing_query_pb.QueryGetProviderPaymentStorageRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryGetProviderPaymentStorageResponse|null) => void - ): UnaryResponse; - providerPaymentStorage( - requestMessage: lavanet_lava_pairing_query_pb.QueryGetProviderPaymentStorageRequest, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryGetProviderPaymentStorageResponse|null) => void - ): UnaryResponse; - providerPaymentStorageAll( - requestMessage: lavanet_lava_pairing_query_pb.QueryAllProviderPaymentStorageRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryAllProviderPaymentStorageResponse|null) => void - ): UnaryResponse; - providerPaymentStorageAll( - requestMessage: lavanet_lava_pairing_query_pb.QueryAllProviderPaymentStorageRequest, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryAllProviderPaymentStorageResponse|null) => void - ): UnaryResponse; - epochPayments( - requestMessage: lavanet_lava_pairing_query_pb.QueryGetEpochPaymentsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryGetEpochPaymentsResponse|null) => void - ): UnaryResponse; - epochPayments( - requestMessage: lavanet_lava_pairing_query_pb.QueryGetEpochPaymentsRequest, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryGetEpochPaymentsResponse|null) => void - ): UnaryResponse; - epochPaymentsAll( - requestMessage: lavanet_lava_pairing_query_pb.QueryAllEpochPaymentsRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryAllEpochPaymentsResponse|null) => void - ): UnaryResponse; - epochPaymentsAll( - requestMessage: lavanet_lava_pairing_query_pb.QueryAllEpochPaymentsRequest, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryAllEpochPaymentsResponse|null) => void - ): UnaryResponse; - userEntry( - requestMessage: lavanet_lava_pairing_query_pb.QueryUserEntryRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryUserEntryResponse|null) => void - ): UnaryResponse; - userEntry( - requestMessage: lavanet_lava_pairing_query_pb.QueryUserEntryRequest, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryUserEntryResponse|null) => void - ): UnaryResponse; - staticProvidersList( - requestMessage: lavanet_lava_pairing_query_pb.QueryStaticProvidersListRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryStaticProvidersListResponse|null) => void - ): UnaryResponse; - staticProvidersList( - requestMessage: lavanet_lava_pairing_query_pb.QueryStaticProvidersListRequest, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryStaticProvidersListResponse|null) => void - ): UnaryResponse; - effectivePolicy( - requestMessage: lavanet_lava_pairing_query_pb.QueryEffectivePolicyRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryEffectivePolicyResponse|null) => void - ): UnaryResponse; - effectivePolicy( - requestMessage: lavanet_lava_pairing_query_pb.QueryEffectivePolicyRequest, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QueryEffectivePolicyResponse|null) => void - ): UnaryResponse; - sdkPairing( - requestMessage: lavanet_lava_pairing_query_pb.QueryGetPairingRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QuerySdkPairingResponse|null) => void - ): UnaryResponse; - sdkPairing( - requestMessage: lavanet_lava_pairing_query_pb.QueryGetPairingRequest, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_query_pb.QuerySdkPairingResponse|null) => void - ): UnaryResponse; -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/query_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/query_pb_service.js deleted file mode 100644 index 196bf0f73c..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/query_pb_service.js +++ /dev/null @@ -1,581 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/query.proto - -var lavanet_lava_pairing_query_pb = require("../../../lavanet/lava/pairing/query_pb"); -var grpc = require("@improbable-eng/grpc-web").grpc; - -var Query = (function () { - function Query() {} - Query.serviceName = "lavanet.lava.pairing.Query"; - return Query; -}()); - -Query.Params = { - methodName: "Params", - service: Query, - requestStream: false, - responseStream: false, - requestType: lavanet_lava_pairing_query_pb.QueryParamsRequest, - responseType: lavanet_lava_pairing_query_pb.QueryParamsResponse -}; - -Query.Providers = { - methodName: "Providers", - service: Query, - requestStream: false, - responseStream: false, - requestType: lavanet_lava_pairing_query_pb.QueryProvidersRequest, - responseType: lavanet_lava_pairing_query_pb.QueryProvidersResponse -}; - -Query.GetPairing = { - methodName: "GetPairing", - service: Query, - requestStream: false, - responseStream: false, - requestType: lavanet_lava_pairing_query_pb.QueryGetPairingRequest, - responseType: lavanet_lava_pairing_query_pb.QueryGetPairingResponse -}; - -Query.VerifyPairing = { - methodName: "VerifyPairing", - service: Query, - requestStream: false, - responseStream: false, - requestType: lavanet_lava_pairing_query_pb.QueryVerifyPairingRequest, - responseType: lavanet_lava_pairing_query_pb.QueryVerifyPairingResponse -}; - -Query.UniquePaymentStorageClientProvider = { - methodName: "UniquePaymentStorageClientProvider", - service: Query, - requestStream: false, - responseStream: false, - requestType: lavanet_lava_pairing_query_pb.QueryGetUniquePaymentStorageClientProviderRequest, - responseType: lavanet_lava_pairing_query_pb.QueryGetUniquePaymentStorageClientProviderResponse -}; - -Query.UniquePaymentStorageClientProviderAll = { - methodName: "UniquePaymentStorageClientProviderAll", - service: Query, - requestStream: false, - responseStream: false, - requestType: lavanet_lava_pairing_query_pb.QueryAllUniquePaymentStorageClientProviderRequest, - responseType: lavanet_lava_pairing_query_pb.QueryAllUniquePaymentStorageClientProviderResponse -}; - -Query.ProviderPaymentStorage = { - methodName: "ProviderPaymentStorage", - service: Query, - requestStream: false, - responseStream: false, - requestType: lavanet_lava_pairing_query_pb.QueryGetProviderPaymentStorageRequest, - responseType: lavanet_lava_pairing_query_pb.QueryGetProviderPaymentStorageResponse -}; - -Query.ProviderPaymentStorageAll = { - methodName: "ProviderPaymentStorageAll", - service: Query, - requestStream: false, - responseStream: false, - requestType: lavanet_lava_pairing_query_pb.QueryAllProviderPaymentStorageRequest, - responseType: lavanet_lava_pairing_query_pb.QueryAllProviderPaymentStorageResponse -}; - -Query.EpochPayments = { - methodName: "EpochPayments", - service: Query, - requestStream: false, - responseStream: false, - requestType: lavanet_lava_pairing_query_pb.QueryGetEpochPaymentsRequest, - responseType: lavanet_lava_pairing_query_pb.QueryGetEpochPaymentsResponse -}; - -Query.EpochPaymentsAll = { - methodName: "EpochPaymentsAll", - service: Query, - requestStream: false, - responseStream: false, - requestType: lavanet_lava_pairing_query_pb.QueryAllEpochPaymentsRequest, - responseType: lavanet_lava_pairing_query_pb.QueryAllEpochPaymentsResponse -}; - -Query.UserEntry = { - methodName: "UserEntry", - service: Query, - requestStream: false, - responseStream: false, - requestType: lavanet_lava_pairing_query_pb.QueryUserEntryRequest, - responseType: lavanet_lava_pairing_query_pb.QueryUserEntryResponse -}; - -Query.StaticProvidersList = { - methodName: "StaticProvidersList", - service: Query, - requestStream: false, - responseStream: false, - requestType: lavanet_lava_pairing_query_pb.QueryStaticProvidersListRequest, - responseType: lavanet_lava_pairing_query_pb.QueryStaticProvidersListResponse -}; - -Query.EffectivePolicy = { - methodName: "EffectivePolicy", - service: Query, - requestStream: false, - responseStream: false, - requestType: lavanet_lava_pairing_query_pb.QueryEffectivePolicyRequest, - responseType: lavanet_lava_pairing_query_pb.QueryEffectivePolicyResponse -}; - -Query.SdkPairing = { - methodName: "SdkPairing", - service: Query, - requestStream: false, - responseStream: false, - requestType: lavanet_lava_pairing_query_pb.QueryGetPairingRequest, - responseType: lavanet_lava_pairing_query_pb.QuerySdkPairingResponse -}; - -exports.Query = Query; - -function QueryClient(serviceHost, options) { - this.serviceHost = serviceHost; - this.options = options || {}; -} - -QueryClient.prototype.params = function params(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Query.Params, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -QueryClient.prototype.providers = function providers(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Query.Providers, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -QueryClient.prototype.getPairing = function getPairing(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Query.GetPairing, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -QueryClient.prototype.verifyPairing = function verifyPairing(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Query.VerifyPairing, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -QueryClient.prototype.uniquePaymentStorageClientProvider = function uniquePaymentStorageClientProvider(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Query.UniquePaymentStorageClientProvider, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -QueryClient.prototype.uniquePaymentStorageClientProviderAll = function uniquePaymentStorageClientProviderAll(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Query.UniquePaymentStorageClientProviderAll, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -QueryClient.prototype.providerPaymentStorage = function providerPaymentStorage(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Query.ProviderPaymentStorage, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -QueryClient.prototype.providerPaymentStorageAll = function providerPaymentStorageAll(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Query.ProviderPaymentStorageAll, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -QueryClient.prototype.epochPayments = function epochPayments(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Query.EpochPayments, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -QueryClient.prototype.epochPaymentsAll = function epochPaymentsAll(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Query.EpochPaymentsAll, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -QueryClient.prototype.userEntry = function userEntry(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Query.UserEntry, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -QueryClient.prototype.staticProvidersList = function staticProvidersList(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Query.StaticProvidersList, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -QueryClient.prototype.effectivePolicy = function effectivePolicy(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Query.EffectivePolicy, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -QueryClient.prototype.sdkPairing = function sdkPairing(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Query.SdkPairing, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -exports.QueryClient = QueryClient; - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/relay_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/relay_pb.d.ts deleted file mode 100644 index bfc232076a..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/relay_pb.d.ts +++ /dev/null @@ -1,418 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/relay.proto - -import * as jspb from "google-protobuf"; -import * as gogoproto_gogo_pb from "../../../gogoproto/gogo_pb"; -import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; - -export class ProbeRequest extends jspb.Message { - getGuid(): number; - setGuid(value: number): void; - - getSpecId(): string; - setSpecId(value: string): void; - - getApiInterface(): string; - setApiInterface(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProbeRequest.AsObject; - static toObject(includeInstance: boolean, msg: ProbeRequest): ProbeRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ProbeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProbeRequest; - static deserializeBinaryFromReader(message: ProbeRequest, reader: jspb.BinaryReader): ProbeRequest; -} - -export namespace ProbeRequest { - export type AsObject = { - guid: number, - specId: string, - apiInterface: string, - } -} - -export class ProbeReply extends jspb.Message { - getGuid(): number; - setGuid(value: number): void; - - getLatestBlock(): number; - setLatestBlock(value: number): void; - - getFinalizedBlocksHashes(): Uint8Array | string; - getFinalizedBlocksHashes_asU8(): Uint8Array; - getFinalizedBlocksHashes_asB64(): string; - setFinalizedBlocksHashes(value: Uint8Array | string): void; - - getLavaEpoch(): number; - setLavaEpoch(value: number): void; - - getLavaLatestBlock(): number; - setLavaLatestBlock(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProbeReply.AsObject; - static toObject(includeInstance: boolean, msg: ProbeReply): ProbeReply.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ProbeReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProbeReply; - static deserializeBinaryFromReader(message: ProbeReply, reader: jspb.BinaryReader): ProbeReply; -} - -export namespace ProbeReply { - export type AsObject = { - guid: number, - latestBlock: number, - finalizedBlocksHashes: Uint8Array | string, - lavaEpoch: number, - lavaLatestBlock: number, - } -} - -export class RelaySession extends jspb.Message { - getSpecId(): string; - setSpecId(value: string): void; - - getContentHash(): Uint8Array | string; - getContentHash_asU8(): Uint8Array; - getContentHash_asB64(): string; - setContentHash(value: Uint8Array | string): void; - - getSessionId(): number; - setSessionId(value: number): void; - - getCuSum(): number; - setCuSum(value: number): void; - - getProvider(): string; - setProvider(value: string): void; - - getRelayNum(): number; - setRelayNum(value: number): void; - - hasQosReport(): boolean; - clearQosReport(): void; - getQosReport(): QualityOfServiceReport | undefined; - setQosReport(value?: QualityOfServiceReport): void; - - getEpoch(): number; - setEpoch(value: number): void; - - clearUnresponsiveProvidersList(): void; - getUnresponsiveProvidersList(): Array; - setUnresponsiveProvidersList(value: Array): void; - addUnresponsiveProviders(value?: ReportedProvider, index?: number): ReportedProvider; - - getLavaChainId(): string; - setLavaChainId(value: string): void; - - getSig(): Uint8Array | string; - getSig_asU8(): Uint8Array; - getSig_asB64(): string; - setSig(value: Uint8Array | string): void; - - hasBadge(): boolean; - clearBadge(): void; - getBadge(): Badge | undefined; - setBadge(value?: Badge): void; - - hasQosExcellenceReport(): boolean; - clearQosExcellenceReport(): void; - getQosExcellenceReport(): QualityOfServiceReport | undefined; - setQosExcellenceReport(value?: QualityOfServiceReport): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RelaySession.AsObject; - static toObject(includeInstance: boolean, msg: RelaySession): RelaySession.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RelaySession, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RelaySession; - static deserializeBinaryFromReader(message: RelaySession, reader: jspb.BinaryReader): RelaySession; -} - -export namespace RelaySession { - export type AsObject = { - specId: string, - contentHash: Uint8Array | string, - sessionId: number, - cuSum: number, - provider: string, - relayNum: number, - qosReport?: QualityOfServiceReport.AsObject, - epoch: number, - unresponsiveProvidersList: Array, - lavaChainId: string, - sig: Uint8Array | string, - badge?: Badge.AsObject, - qosExcellenceReport?: QualityOfServiceReport.AsObject, - } -} - -export class Badge extends jspb.Message { - getCuAllocation(): number; - setCuAllocation(value: number): void; - - getEpoch(): number; - setEpoch(value: number): void; - - getAddress(): string; - setAddress(value: string): void; - - getLavaChainId(): string; - setLavaChainId(value: string): void; - - getProjectSig(): Uint8Array | string; - getProjectSig_asU8(): Uint8Array; - getProjectSig_asB64(): string; - setProjectSig(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Badge.AsObject; - static toObject(includeInstance: boolean, msg: Badge): Badge.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Badge, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Badge; - static deserializeBinaryFromReader(message: Badge, reader: jspb.BinaryReader): Badge; -} - -export namespace Badge { - export type AsObject = { - cuAllocation: number, - epoch: number, - address: string, - lavaChainId: string, - projectSig: Uint8Array | string, - } -} - -export class RelayPrivateData extends jspb.Message { - getConnectionType(): string; - setConnectionType(value: string): void; - - getApiUrl(): string; - setApiUrl(value: string): void; - - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): void; - - getRequestBlock(): number; - setRequestBlock(value: number): void; - - getApiInterface(): string; - setApiInterface(value: string): void; - - getSalt(): Uint8Array | string; - getSalt_asU8(): Uint8Array; - getSalt_asB64(): string; - setSalt(value: Uint8Array | string): void; - - clearMetadataList(): void; - getMetadataList(): Array; - setMetadataList(value: Array): void; - addMetadata(value?: Metadata, index?: number): Metadata; - - getAddon(): string; - setAddon(value: string): void; - - clearExtensionsList(): void; - getExtensionsList(): Array; - setExtensionsList(value: Array): void; - addExtensions(value: string, index?: number): string; - - getSeenBlock(): number; - setSeenBlock(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RelayPrivateData.AsObject; - static toObject(includeInstance: boolean, msg: RelayPrivateData): RelayPrivateData.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RelayPrivateData, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RelayPrivateData; - static deserializeBinaryFromReader(message: RelayPrivateData, reader: jspb.BinaryReader): RelayPrivateData; -} - -export namespace RelayPrivateData { - export type AsObject = { - connectionType: string, - apiUrl: string, - data: Uint8Array | string, - requestBlock: number, - apiInterface: string, - salt: Uint8Array | string, - metadataList: Array, - addon: string, - extensionsList: Array, - seenBlock: number, - } -} - -export class ReportedProvider extends jspb.Message { - getAddress(): string; - setAddress(value: string): void; - - getDisconnections(): number; - setDisconnections(value: number): void; - - getErrors(): number; - setErrors(value: number): void; - - getTimestampS(): number; - setTimestampS(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ReportedProvider.AsObject; - static toObject(includeInstance: boolean, msg: ReportedProvider): ReportedProvider.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ReportedProvider, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ReportedProvider; - static deserializeBinaryFromReader(message: ReportedProvider, reader: jspb.BinaryReader): ReportedProvider; -} - -export namespace ReportedProvider { - export type AsObject = { - address: string, - disconnections: number, - errors: number, - timestampS: number, - } -} - -export class Metadata extends jspb.Message { - getName(): string; - setName(value: string): void; - - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Metadata.AsObject; - static toObject(includeInstance: boolean, msg: Metadata): Metadata.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Metadata, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Metadata; - static deserializeBinaryFromReader(message: Metadata, reader: jspb.BinaryReader): Metadata; -} - -export namespace Metadata { - export type AsObject = { - name: string, - value: string, - } -} - -export class RelayRequest extends jspb.Message { - hasRelaySession(): boolean; - clearRelaySession(): void; - getRelaySession(): RelaySession | undefined; - setRelaySession(value?: RelaySession): void; - - hasRelayData(): boolean; - clearRelayData(): void; - getRelayData(): RelayPrivateData | undefined; - setRelayData(value?: RelayPrivateData): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RelayRequest.AsObject; - static toObject(includeInstance: boolean, msg: RelayRequest): RelayRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RelayRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RelayRequest; - static deserializeBinaryFromReader(message: RelayRequest, reader: jspb.BinaryReader): RelayRequest; -} - -export namespace RelayRequest { - export type AsObject = { - relaySession?: RelaySession.AsObject, - relayData?: RelayPrivateData.AsObject, - } -} - -export class RelayReply extends jspb.Message { - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): void; - - getSig(): Uint8Array | string; - getSig_asU8(): Uint8Array; - getSig_asB64(): string; - setSig(value: Uint8Array | string): void; - - getLatestBlock(): number; - setLatestBlock(value: number): void; - - getFinalizedBlocksHashes(): Uint8Array | string; - getFinalizedBlocksHashes_asU8(): Uint8Array; - getFinalizedBlocksHashes_asB64(): string; - setFinalizedBlocksHashes(value: Uint8Array | string): void; - - getSigBlocks(): Uint8Array | string; - getSigBlocks_asU8(): Uint8Array; - getSigBlocks_asB64(): string; - setSigBlocks(value: Uint8Array | string): void; - - clearMetadataList(): void; - getMetadataList(): Array; - setMetadataList(value: Array): void; - addMetadata(value?: Metadata, index?: number): Metadata; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RelayReply.AsObject; - static toObject(includeInstance: boolean, msg: RelayReply): RelayReply.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RelayReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RelayReply; - static deserializeBinaryFromReader(message: RelayReply, reader: jspb.BinaryReader): RelayReply; -} - -export namespace RelayReply { - export type AsObject = { - data: Uint8Array | string, - sig: Uint8Array | string, - latestBlock: number, - finalizedBlocksHashes: Uint8Array | string, - sigBlocks: Uint8Array | string, - metadataList: Array, - } -} - -export class QualityOfServiceReport extends jspb.Message { - getLatency(): string; - setLatency(value: string): void; - - getAvailability(): string; - setAvailability(value: string): void; - - getSync(): string; - setSync(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QualityOfServiceReport.AsObject; - static toObject(includeInstance: boolean, msg: QualityOfServiceReport): QualityOfServiceReport.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QualityOfServiceReport, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QualityOfServiceReport; - static deserializeBinaryFromReader(message: QualityOfServiceReport, reader: jspb.BinaryReader): QualityOfServiceReport; -} - -export namespace QualityOfServiceReport { - export type AsObject = { - latency: string, - availability: string, - sync: string, - } -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/relay_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/relay_pb.js deleted file mode 100644 index d0db2620d8..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/relay_pb.js +++ /dev/null @@ -1,3285 +0,0 @@ -// source: lavanet/lava/pairing/relay.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js'); -goog.object.extend(proto, google_protobuf_wrappers_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -goog.exportSymbol('proto.lavanet.lava.pairing.Badge', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.Metadata', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.ProbeReply', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.ProbeRequest', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.QualityOfServiceReport', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.RelayPrivateData', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.RelayReply', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.RelayRequest', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.RelaySession', null, global); -goog.exportSymbol('proto.lavanet.lava.pairing.ReportedProvider', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.ProbeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.ProbeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.ProbeRequest.displayName = 'proto.lavanet.lava.pairing.ProbeRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.ProbeReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.ProbeReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.ProbeReply.displayName = 'proto.lavanet.lava.pairing.ProbeReply'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.RelaySession = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.pairing.RelaySession.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.pairing.RelaySession, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.RelaySession.displayName = 'proto.lavanet.lava.pairing.RelaySession'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.Badge = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.Badge, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.Badge.displayName = 'proto.lavanet.lava.pairing.Badge'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.RelayPrivateData = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.pairing.RelayPrivateData.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.pairing.RelayPrivateData, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.RelayPrivateData.displayName = 'proto.lavanet.lava.pairing.RelayPrivateData'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.ReportedProvider = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.ReportedProvider, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.ReportedProvider.displayName = 'proto.lavanet.lava.pairing.ReportedProvider'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.Metadata = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.Metadata, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.Metadata.displayName = 'proto.lavanet.lava.pairing.Metadata'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.RelayRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.RelayRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.RelayRequest.displayName = 'proto.lavanet.lava.pairing.RelayRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.RelayReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.pairing.RelayReply.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.pairing.RelayReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.RelayReply.displayName = 'proto.lavanet.lava.pairing.RelayReply'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.QualityOfServiceReport = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.QualityOfServiceReport, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.QualityOfServiceReport.displayName = 'proto.lavanet.lava.pairing.QualityOfServiceReport'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.ProbeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.ProbeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.ProbeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.ProbeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - guid: jspb.Message.getFieldWithDefault(msg, 1, 0), - spec_id: jspb.Message.getFieldWithDefault(msg, 2, ""), - api_interface: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.ProbeRequest} - */ -proto.lavanet.lava.pairing.ProbeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.ProbeRequest; - return proto.lavanet.lava.pairing.ProbeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.ProbeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.ProbeRequest} - */ -proto.lavanet.lava.pairing.ProbeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setGuid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setSpecId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setApiInterface(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.ProbeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.ProbeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.ProbeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.ProbeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGuid(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getSpecId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getApiInterface(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional uint64 guid = 1; - * @return {number} - */ -proto.lavanet.lava.pairing.ProbeRequest.prototype.getGuid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.ProbeRequest} returns this - */ -proto.lavanet.lava.pairing.ProbeRequest.prototype.setGuid = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string spec_id = 2; - * @return {string} - */ -proto.lavanet.lava.pairing.ProbeRequest.prototype.getSpecId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.ProbeRequest} returns this - */ -proto.lavanet.lava.pairing.ProbeRequest.prototype.setSpecId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string api_interface = 3; - * @return {string} - */ -proto.lavanet.lava.pairing.ProbeRequest.prototype.getApiInterface = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.ProbeRequest} returns this - */ -proto.lavanet.lava.pairing.ProbeRequest.prototype.setApiInterface = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.ProbeReply.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.ProbeReply.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.ProbeReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.ProbeReply.toObject = function(includeInstance, msg) { - var f, obj = { - guid: jspb.Message.getFieldWithDefault(msg, 1, 0), - latest_block: jspb.Message.getFieldWithDefault(msg, 2, 0), - finalized_blocks_hashes: msg.getFinalizedBlocksHashes_asB64(), - lava_epoch: jspb.Message.getFieldWithDefault(msg, 4, 0), - lava_latest_block: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.ProbeReply} - */ -proto.lavanet.lava.pairing.ProbeReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.ProbeReply; - return proto.lavanet.lava.pairing.ProbeReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.ProbeReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.ProbeReply} - */ -proto.lavanet.lava.pairing.ProbeReply.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setGuid(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt64()); - msg.setLatestBlock(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setFinalizedBlocksHashes(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLavaEpoch(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLavaLatestBlock(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.ProbeReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.ProbeReply.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.ProbeReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.ProbeReply.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGuid(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLatestBlock(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } - f = message.getFinalizedBlocksHashes_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getLavaEpoch(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getLavaLatestBlock(); - if (f !== 0) { - writer.writeUint64( - 5, - f - ); - } -}; - - -/** - * optional uint64 guid = 1; - * @return {number} - */ -proto.lavanet.lava.pairing.ProbeReply.prototype.getGuid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.ProbeReply} returns this - */ -proto.lavanet.lava.pairing.ProbeReply.prototype.setGuid = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional int64 latest_block = 2; - * @return {number} - */ -proto.lavanet.lava.pairing.ProbeReply.prototype.getLatestBlock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.ProbeReply} returns this - */ -proto.lavanet.lava.pairing.ProbeReply.prototype.setLatestBlock = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional bytes finalized_blocks_hashes = 3; - * @return {!(string|Uint8Array)} - */ -proto.lavanet.lava.pairing.ProbeReply.prototype.getFinalizedBlocksHashes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes finalized_blocks_hashes = 3; - * This is a type-conversion wrapper around `getFinalizedBlocksHashes()` - * @return {string} - */ -proto.lavanet.lava.pairing.ProbeReply.prototype.getFinalizedBlocksHashes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getFinalizedBlocksHashes())); -}; - - -/** - * optional bytes finalized_blocks_hashes = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getFinalizedBlocksHashes()` - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.ProbeReply.prototype.getFinalizedBlocksHashes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getFinalizedBlocksHashes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.lavanet.lava.pairing.ProbeReply} returns this - */ -proto.lavanet.lava.pairing.ProbeReply.prototype.setFinalizedBlocksHashes = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional uint64 lava_epoch = 4; - * @return {number} - */ -proto.lavanet.lava.pairing.ProbeReply.prototype.getLavaEpoch = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.ProbeReply} returns this - */ -proto.lavanet.lava.pairing.ProbeReply.prototype.setLavaEpoch = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional uint64 lava_latest_block = 5; - * @return {number} - */ -proto.lavanet.lava.pairing.ProbeReply.prototype.getLavaLatestBlock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.ProbeReply} returns this - */ -proto.lavanet.lava.pairing.ProbeReply.prototype.setLavaLatestBlock = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.pairing.RelaySession.repeatedFields_ = [9]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.RelaySession.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.RelaySession} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.RelaySession.toObject = function(includeInstance, msg) { - var f, obj = { - spec_id: jspb.Message.getFieldWithDefault(msg, 1, ""), - content_hash: msg.getContentHash_asU8(), - session_id: jspb.Message.getFieldWithDefault(msg, 3, 0), - cu_sum: jspb.Message.getFieldWithDefault(msg, 4, 0), - provider: jspb.Message.getFieldWithDefault(msg, 5, ""), - relay_num: jspb.Message.getFieldWithDefault(msg, 6, 0), - qos_report: (f = msg.getQosReport()) && proto.lavanet.lava.pairing.QualityOfServiceReport.toObject(includeInstance, f), - epoch: jspb.Message.getFieldWithDefault(msg, 8, 0), - unresponsive_providers: jspb.Message.toObjectList(msg.getUnresponsiveProvidersList(), - proto.lavanet.lava.pairing.ReportedProvider.toObject, includeInstance), - lava_chain_id: jspb.Message.getFieldWithDefault(msg, 10, ""), - sig: msg.getSig_asB64(), - badge: (f = msg.getBadge()) && proto.lavanet.lava.pairing.Badge.toObject(includeInstance, f), - qos_excellence_report: (f = msg.getQosExcellenceReport()) && proto.lavanet.lava.pairing.QualityOfServiceReport.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.RelaySession} - */ -proto.lavanet.lava.pairing.RelaySession.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.RelaySession; - return proto.lavanet.lava.pairing.RelaySession.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.RelaySession} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.RelaySession} - */ -proto.lavanet.lava.pairing.RelaySession.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSpecId(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setContentHash(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSessionId(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setCuSum(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setProvider(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRelayNum(value); - break; - case 7: - var value = new proto.lavanet.lava.pairing.QualityOfServiceReport; - reader.readMessage(value,proto.lavanet.lava.pairing.QualityOfServiceReport.deserializeBinaryFromReader); - msg.setQosReport(value); - break; - case 8: - var value = /** @type {number} */ (reader.readInt64()); - msg.setEpoch(value); - break; - case 9: - var value = new proto.lavanet.lava.pairing.ReportedProvider; - reader.readMessage(value,proto.lavanet.lava.pairing.ReportedProvider.deserializeBinaryFromReader); - msg.addUnresponsiveProviders(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setLavaChainId(value); - break; - case 11: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSig(value); - break; - case 12: - var value = new proto.lavanet.lava.pairing.Badge; - reader.readMessage(value,proto.lavanet.lava.pairing.Badge.deserializeBinaryFromReader); - msg.setBadge(value); - break; - case 13: - var value = new proto.lavanet.lava.pairing.QualityOfServiceReport; - reader.readMessage(value,proto.lavanet.lava.pairing.QualityOfServiceReport.deserializeBinaryFromReader); - msg.setQosExcellenceReport(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.RelaySession.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.RelaySession} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.RelaySession.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSpecId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getContentHash_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getSessionId(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getCuSum(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getProvider(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getRelayNum(); - if (f !== 0) { - writer.writeUint64( - 6, - f - ); - } - f = message.getQosReport(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.lavanet.lava.pairing.QualityOfServiceReport.serializeBinaryToWriter - ); - } - f = message.getEpoch(); - if (f !== 0) { - writer.writeInt64( - 8, - f - ); - } - f = message.getUnresponsiveProvidersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 9, - f, - proto.lavanet.lava.pairing.ReportedProvider.serializeBinaryToWriter - ); - } - f = message.getLavaChainId(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getSig_asU8(); - if (f.length > 0) { - writer.writeBytes( - 11, - f - ); - } - f = message.getBadge(); - if (f != null) { - writer.writeMessage( - 12, - f, - proto.lavanet.lava.pairing.Badge.serializeBinaryToWriter - ); - } - f = message.getQosExcellenceReport(); - if (f != null) { - writer.writeMessage( - 13, - f, - proto.lavanet.lava.pairing.QualityOfServiceReport.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string spec_id = 1; - * @return {string} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.getSpecId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.RelaySession} returns this - */ -proto.lavanet.lava.pairing.RelaySession.prototype.setSpecId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes content_hash = 2; - * @return {!(string|Uint8Array)} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.getContentHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes content_hash = 2; - * This is a type-conversion wrapper around `getContentHash()` - * @return {string} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.getContentHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getContentHash())); -}; - - -/** - * optional bytes content_hash = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getContentHash()` - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.getContentHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getContentHash())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.lavanet.lava.pairing.RelaySession} returns this - */ -proto.lavanet.lava.pairing.RelaySession.prototype.setContentHash = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional uint64 session_id = 3; - * @return {number} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.getSessionId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.RelaySession} returns this - */ -proto.lavanet.lava.pairing.RelaySession.prototype.setSessionId = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional uint64 cu_sum = 4; - * @return {number} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.getCuSum = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.RelaySession} returns this - */ -proto.lavanet.lava.pairing.RelaySession.prototype.setCuSum = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional string provider = 5; - * @return {string} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.getProvider = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.RelaySession} returns this - */ -proto.lavanet.lava.pairing.RelaySession.prototype.setProvider = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional uint64 relay_num = 6; - * @return {number} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.getRelayNum = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.RelaySession} returns this - */ -proto.lavanet.lava.pairing.RelaySession.prototype.setRelayNum = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional QualityOfServiceReport qos_report = 7; - * @return {?proto.lavanet.lava.pairing.QualityOfServiceReport} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.getQosReport = function() { - return /** @type{?proto.lavanet.lava.pairing.QualityOfServiceReport} */ ( - jspb.Message.getWrapperField(this, proto.lavanet.lava.pairing.QualityOfServiceReport, 7)); -}; - - -/** - * @param {?proto.lavanet.lava.pairing.QualityOfServiceReport|undefined} value - * @return {!proto.lavanet.lava.pairing.RelaySession} returns this -*/ -proto.lavanet.lava.pairing.RelaySession.prototype.setQosReport = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.RelaySession} returns this - */ -proto.lavanet.lava.pairing.RelaySession.prototype.clearQosReport = function() { - return this.setQosReport(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.hasQosReport = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional int64 epoch = 8; - * @return {number} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.getEpoch = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.RelaySession} returns this - */ -proto.lavanet.lava.pairing.RelaySession.prototype.setEpoch = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * repeated ReportedProvider unresponsive_providers = 9; - * @return {!Array} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.getUnresponsiveProvidersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.lavanet.lava.pairing.ReportedProvider, 9)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.pairing.RelaySession} returns this -*/ -proto.lavanet.lava.pairing.RelaySession.prototype.setUnresponsiveProvidersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 9, value); -}; - - -/** - * @param {!proto.lavanet.lava.pairing.ReportedProvider=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.pairing.ReportedProvider} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.addUnresponsiveProviders = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.lavanet.lava.pairing.ReportedProvider, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.pairing.RelaySession} returns this - */ -proto.lavanet.lava.pairing.RelaySession.prototype.clearUnresponsiveProvidersList = function() { - return this.setUnresponsiveProvidersList([]); -}; - - -/** - * optional string lava_chain_id = 10; - * @return {string} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.getLavaChainId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.RelaySession} returns this - */ -proto.lavanet.lava.pairing.RelaySession.prototype.setLavaChainId = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); -}; - - -/** - * optional bytes sig = 11; - * @return {!(string|Uint8Array)} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.getSig = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * optional bytes sig = 11; - * This is a type-conversion wrapper around `getSig()` - * @return {string} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.getSig_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSig())); -}; - - -/** - * optional bytes sig = 11; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSig()` - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.getSig_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSig())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.lavanet.lava.pairing.RelaySession} returns this - */ -proto.lavanet.lava.pairing.RelaySession.prototype.setSig = function(value) { - return jspb.Message.setProto3BytesField(this, 11, value); -}; - - -/** - * optional Badge badge = 12; - * @return {?proto.lavanet.lava.pairing.Badge} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.getBadge = function() { - return /** @type{?proto.lavanet.lava.pairing.Badge} */ ( - jspb.Message.getWrapperField(this, proto.lavanet.lava.pairing.Badge, 12)); -}; - - -/** - * @param {?proto.lavanet.lava.pairing.Badge|undefined} value - * @return {!proto.lavanet.lava.pairing.RelaySession} returns this -*/ -proto.lavanet.lava.pairing.RelaySession.prototype.setBadge = function(value) { - return jspb.Message.setWrapperField(this, 12, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.RelaySession} returns this - */ -proto.lavanet.lava.pairing.RelaySession.prototype.clearBadge = function() { - return this.setBadge(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.hasBadge = function() { - return jspb.Message.getField(this, 12) != null; -}; - - -/** - * optional QualityOfServiceReport qos_excellence_report = 13; - * @return {?proto.lavanet.lava.pairing.QualityOfServiceReport} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.getQosExcellenceReport = function() { - return /** @type{?proto.lavanet.lava.pairing.QualityOfServiceReport} */ ( - jspb.Message.getWrapperField(this, proto.lavanet.lava.pairing.QualityOfServiceReport, 13)); -}; - - -/** - * @param {?proto.lavanet.lava.pairing.QualityOfServiceReport|undefined} value - * @return {!proto.lavanet.lava.pairing.RelaySession} returns this -*/ -proto.lavanet.lava.pairing.RelaySession.prototype.setQosExcellenceReport = function(value) { - return jspb.Message.setWrapperField(this, 13, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.RelaySession} returns this - */ -proto.lavanet.lava.pairing.RelaySession.prototype.clearQosExcellenceReport = function() { - return this.setQosExcellenceReport(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.RelaySession.prototype.hasQosExcellenceReport = function() { - return jspb.Message.getField(this, 13) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.Badge.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.Badge.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.Badge} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.Badge.toObject = function(includeInstance, msg) { - var f, obj = { - cu_allocation: jspb.Message.getFieldWithDefault(msg, 1, 0), - epoch: jspb.Message.getFieldWithDefault(msg, 2, 0), - address: jspb.Message.getFieldWithDefault(msg, 3, ""), - lava_chain_id: jspb.Message.getFieldWithDefault(msg, 4, ""), - project_sig: msg.getProjectSig_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.Badge} - */ -proto.lavanet.lava.pairing.Badge.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.Badge; - return proto.lavanet.lava.pairing.Badge.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.Badge} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.Badge} - */ -proto.lavanet.lava.pairing.Badge.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setCuAllocation(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setEpoch(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAddress(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setLavaChainId(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setProjectSig(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.Badge.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.Badge.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.Badge} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.Badge.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCuAllocation(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getEpoch(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getAddress(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getLavaChainId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getProjectSig_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } -}; - - -/** - * optional uint64 cu_allocation = 1; - * @return {number} - */ -proto.lavanet.lava.pairing.Badge.prototype.getCuAllocation = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.Badge} returns this - */ -proto.lavanet.lava.pairing.Badge.prototype.setCuAllocation = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 epoch = 2; - * @return {number} - */ -proto.lavanet.lava.pairing.Badge.prototype.getEpoch = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.Badge} returns this - */ -proto.lavanet.lava.pairing.Badge.prototype.setEpoch = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string address = 3; - * @return {string} - */ -proto.lavanet.lava.pairing.Badge.prototype.getAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.Badge} returns this - */ -proto.lavanet.lava.pairing.Badge.prototype.setAddress = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string lava_chain_id = 4; - * @return {string} - */ -proto.lavanet.lava.pairing.Badge.prototype.getLavaChainId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.Badge} returns this - */ -proto.lavanet.lava.pairing.Badge.prototype.setLavaChainId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bytes project_sig = 5; - * @return {!(string|Uint8Array)} - */ -proto.lavanet.lava.pairing.Badge.prototype.getProjectSig = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes project_sig = 5; - * This is a type-conversion wrapper around `getProjectSig()` - * @return {string} - */ -proto.lavanet.lava.pairing.Badge.prototype.getProjectSig_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getProjectSig())); -}; - - -/** - * optional bytes project_sig = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getProjectSig()` - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.Badge.prototype.getProjectSig_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getProjectSig())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.lavanet.lava.pairing.Badge} returns this - */ -proto.lavanet.lava.pairing.Badge.prototype.setProjectSig = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.pairing.RelayPrivateData.repeatedFields_ = [7,9]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.RelayPrivateData.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.RelayPrivateData} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.RelayPrivateData.toObject = function(includeInstance, msg) { - var f, obj = { - connection_type: jspb.Message.getFieldWithDefault(msg, 1, ""), - api_url: jspb.Message.getFieldWithDefault(msg, 2, ""), - data: msg.getData_asB64(), - request_block: jspb.Message.getFieldWithDefault(msg, 4, 0), - api_interface: jspb.Message.getFieldWithDefault(msg, 5, ""), - salt: msg.getSalt_asB64(), - metadata: jspb.Message.toObjectList(msg.getMetadataList(), - proto.lavanet.lava.pairing.Metadata.toObject, includeInstance), - addon: jspb.Message.getFieldWithDefault(msg, 8, ""), - extensions: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f, - seen_block: jspb.Message.getFieldWithDefault(msg, 10, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.RelayPrivateData} - */ -proto.lavanet.lava.pairing.RelayPrivateData.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.RelayPrivateData; - return proto.lavanet.lava.pairing.RelayPrivateData.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.RelayPrivateData} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.RelayPrivateData} - */ -proto.lavanet.lava.pairing.RelayPrivateData.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setConnectionType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setApiUrl(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setRequestBlock(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setApiInterface(value); - break; - case 6: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSalt(value); - break; - case 7: - var value = new proto.lavanet.lava.pairing.Metadata; - reader.readMessage(value,proto.lavanet.lava.pairing.Metadata.deserializeBinaryFromReader); - msg.addMetadata(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setAddon(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.addExtensions(value); - break; - case 10: - var value = /** @type {number} */ (reader.readInt64()); - msg.setSeenBlock(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.RelayPrivateData.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.RelayPrivateData} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.RelayPrivateData.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getConnectionType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getApiUrl(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getRequestBlock(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } - f = message.getApiInterface(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getSalt_asU8(); - if (f.length > 0) { - writer.writeBytes( - 6, - f - ); - } - f = message.getMetadataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - proto.lavanet.lava.pairing.Metadata.serializeBinaryToWriter - ); - } - f = message.getAddon(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getExtensionsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 9, - f - ); - } - f = message.getSeenBlock(); - if (f !== 0) { - writer.writeInt64( - 10, - f - ); - } -}; - - -/** - * optional string connection_type = 1; - * @return {string} - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.getConnectionType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.RelayPrivateData} returns this - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.setConnectionType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string api_url = 2; - * @return {string} - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.getApiUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.RelayPrivateData} returns this - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.setApiUrl = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bytes data = 3; - * @return {!(string|Uint8Array)} - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes data = 3; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.lavanet.lava.pairing.RelayPrivateData} returns this - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional int64 request_block = 4; - * @return {number} - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.getRequestBlock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.RelayPrivateData} returns this - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.setRequestBlock = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional string api_interface = 5; - * @return {string} - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.getApiInterface = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.RelayPrivateData} returns this - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.setApiInterface = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional bytes salt = 6; - * @return {!(string|Uint8Array)} - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.getSalt = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * optional bytes salt = 6; - * This is a type-conversion wrapper around `getSalt()` - * @return {string} - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.getSalt_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSalt())); -}; - - -/** - * optional bytes salt = 6; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSalt()` - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.getSalt_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSalt())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.lavanet.lava.pairing.RelayPrivateData} returns this - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.setSalt = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); -}; - - -/** - * repeated Metadata metadata = 7; - * @return {!Array} - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.getMetadataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.lavanet.lava.pairing.Metadata, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.pairing.RelayPrivateData} returns this -*/ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.setMetadataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); -}; - - -/** - * @param {!proto.lavanet.lava.pairing.Metadata=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.pairing.Metadata} - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.addMetadata = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.lavanet.lava.pairing.Metadata, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.pairing.RelayPrivateData} returns this - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.clearMetadataList = function() { - return this.setMetadataList([]); -}; - - -/** - * optional string addon = 8; - * @return {string} - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.getAddon = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.RelayPrivateData} returns this - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.setAddon = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * repeated string extensions = 9; - * @return {!Array} - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.getExtensionsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 9)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.pairing.RelayPrivateData} returns this - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.setExtensionsList = function(value) { - return jspb.Message.setField(this, 9, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.pairing.RelayPrivateData} returns this - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.addExtensions = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 9, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.pairing.RelayPrivateData} returns this - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.clearExtensionsList = function() { - return this.setExtensionsList([]); -}; - - -/** - * optional int64 seen_block = 10; - * @return {number} - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.getSeenBlock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.RelayPrivateData} returns this - */ -proto.lavanet.lava.pairing.RelayPrivateData.prototype.setSeenBlock = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.ReportedProvider.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.ReportedProvider.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.ReportedProvider} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.ReportedProvider.toObject = function(includeInstance, msg) { - var f, obj = { - address: jspb.Message.getFieldWithDefault(msg, 1, ""), - disconnections: jspb.Message.getFieldWithDefault(msg, 2, 0), - errors: jspb.Message.getFieldWithDefault(msg, 3, 0), - timestamp_s: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.ReportedProvider} - */ -proto.lavanet.lava.pairing.ReportedProvider.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.ReportedProvider; - return proto.lavanet.lava.pairing.ReportedProvider.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.ReportedProvider} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.ReportedProvider} - */ -proto.lavanet.lava.pairing.ReportedProvider.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setAddress(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setDisconnections(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setErrors(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTimestampS(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.ReportedProvider.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.ReportedProvider.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.ReportedProvider} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.ReportedProvider.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAddress(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDisconnections(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getErrors(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getTimestampS(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } -}; - - -/** - * optional string address = 1; - * @return {string} - */ -proto.lavanet.lava.pairing.ReportedProvider.prototype.getAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.ReportedProvider} returns this - */ -proto.lavanet.lava.pairing.ReportedProvider.prototype.setAddress = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint64 disconnections = 2; - * @return {number} - */ -proto.lavanet.lava.pairing.ReportedProvider.prototype.getDisconnections = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.ReportedProvider} returns this - */ -proto.lavanet.lava.pairing.ReportedProvider.prototype.setDisconnections = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 errors = 3; - * @return {number} - */ -proto.lavanet.lava.pairing.ReportedProvider.prototype.getErrors = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.ReportedProvider} returns this - */ -proto.lavanet.lava.pairing.ReportedProvider.prototype.setErrors = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional int64 timestamp_s = 4; - * @return {number} - */ -proto.lavanet.lava.pairing.ReportedProvider.prototype.getTimestampS = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.ReportedProvider} returns this - */ -proto.lavanet.lava.pairing.ReportedProvider.prototype.setTimestampS = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.Metadata.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.Metadata.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.Metadata} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.Metadata.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - value: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.Metadata} - */ -proto.lavanet.lava.pairing.Metadata.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.Metadata; - return proto.lavanet.lava.pairing.Metadata.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.Metadata} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.Metadata} - */ -proto.lavanet.lava.pairing.Metadata.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.Metadata.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.Metadata.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.Metadata} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.Metadata.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.lavanet.lava.pairing.Metadata.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.Metadata} returns this - */ -proto.lavanet.lava.pairing.Metadata.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string value = 2; - * @return {string} - */ -proto.lavanet.lava.pairing.Metadata.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.Metadata} returns this - */ -proto.lavanet.lava.pairing.Metadata.prototype.setValue = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.RelayRequest.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.RelayRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.RelayRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.RelayRequest.toObject = function(includeInstance, msg) { - var f, obj = { - relay_session: (f = msg.getRelaySession()) && proto.lavanet.lava.pairing.RelaySession.toObject(includeInstance, f), - relay_data: (f = msg.getRelayData()) && proto.lavanet.lava.pairing.RelayPrivateData.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.RelayRequest} - */ -proto.lavanet.lava.pairing.RelayRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.RelayRequest; - return proto.lavanet.lava.pairing.RelayRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.RelayRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.RelayRequest} - */ -proto.lavanet.lava.pairing.RelayRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.lavanet.lava.pairing.RelaySession; - reader.readMessage(value,proto.lavanet.lava.pairing.RelaySession.deserializeBinaryFromReader); - msg.setRelaySession(value); - break; - case 2: - var value = new proto.lavanet.lava.pairing.RelayPrivateData; - reader.readMessage(value,proto.lavanet.lava.pairing.RelayPrivateData.deserializeBinaryFromReader); - msg.setRelayData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.RelayRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.RelayRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.RelayRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.RelayRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRelaySession(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.lavanet.lava.pairing.RelaySession.serializeBinaryToWriter - ); - } - f = message.getRelayData(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.lavanet.lava.pairing.RelayPrivateData.serializeBinaryToWriter - ); - } -}; - - -/** - * optional RelaySession relay_session = 1; - * @return {?proto.lavanet.lava.pairing.RelaySession} - */ -proto.lavanet.lava.pairing.RelayRequest.prototype.getRelaySession = function() { - return /** @type{?proto.lavanet.lava.pairing.RelaySession} */ ( - jspb.Message.getWrapperField(this, proto.lavanet.lava.pairing.RelaySession, 1)); -}; - - -/** - * @param {?proto.lavanet.lava.pairing.RelaySession|undefined} value - * @return {!proto.lavanet.lava.pairing.RelayRequest} returns this -*/ -proto.lavanet.lava.pairing.RelayRequest.prototype.setRelaySession = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.RelayRequest} returns this - */ -proto.lavanet.lava.pairing.RelayRequest.prototype.clearRelaySession = function() { - return this.setRelaySession(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.RelayRequest.prototype.hasRelaySession = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional RelayPrivateData relay_data = 2; - * @return {?proto.lavanet.lava.pairing.RelayPrivateData} - */ -proto.lavanet.lava.pairing.RelayRequest.prototype.getRelayData = function() { - return /** @type{?proto.lavanet.lava.pairing.RelayPrivateData} */ ( - jspb.Message.getWrapperField(this, proto.lavanet.lava.pairing.RelayPrivateData, 2)); -}; - - -/** - * @param {?proto.lavanet.lava.pairing.RelayPrivateData|undefined} value - * @return {!proto.lavanet.lava.pairing.RelayRequest} returns this -*/ -proto.lavanet.lava.pairing.RelayRequest.prototype.setRelayData = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.pairing.RelayRequest} returns this - */ -proto.lavanet.lava.pairing.RelayRequest.prototype.clearRelayData = function() { - return this.setRelayData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.pairing.RelayRequest.prototype.hasRelayData = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.pairing.RelayReply.repeatedFields_ = [7]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.RelayReply.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.RelayReply.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.RelayReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.RelayReply.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64(), - sig: msg.getSig_asB64(), - latest_block: jspb.Message.getFieldWithDefault(msg, 4, 0), - finalized_blocks_hashes: msg.getFinalizedBlocksHashes_asB64(), - sig_blocks: msg.getSigBlocks_asB64(), - metadata: jspb.Message.toObjectList(msg.getMetadataList(), - proto.lavanet.lava.pairing.Metadata.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.RelayReply} - */ -proto.lavanet.lava.pairing.RelayReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.RelayReply; - return proto.lavanet.lava.pairing.RelayReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.RelayReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.RelayReply} - */ -proto.lavanet.lava.pairing.RelayReply.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSig(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setLatestBlock(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setFinalizedBlocksHashes(value); - break; - case 6: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSigBlocks(value); - break; - case 7: - var value = new proto.lavanet.lava.pairing.Metadata; - reader.readMessage(value,proto.lavanet.lava.pairing.Metadata.deserializeBinaryFromReader); - msg.addMetadata(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.RelayReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.RelayReply.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.RelayReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.RelayReply.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getSig_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getLatestBlock(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } - f = message.getFinalizedBlocksHashes_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } - f = message.getSigBlocks_asU8(); - if (f.length > 0) { - writer.writeBytes( - 6, - f - ); - } - f = message.getMetadataList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - proto.lavanet.lava.pairing.Metadata.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes data = 1; - * @return {!(string|Uint8Array)} - */ -proto.lavanet.lava.pairing.RelayReply.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes data = 1; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.lavanet.lava.pairing.RelayReply.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.RelayReply.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.lavanet.lava.pairing.RelayReply} returns this - */ -proto.lavanet.lava.pairing.RelayReply.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional bytes sig = 2; - * @return {!(string|Uint8Array)} - */ -proto.lavanet.lava.pairing.RelayReply.prototype.getSig = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes sig = 2; - * This is a type-conversion wrapper around `getSig()` - * @return {string} - */ -proto.lavanet.lava.pairing.RelayReply.prototype.getSig_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSig())); -}; - - -/** - * optional bytes sig = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSig()` - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.RelayReply.prototype.getSig_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSig())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.lavanet.lava.pairing.RelayReply} returns this - */ -proto.lavanet.lava.pairing.RelayReply.prototype.setSig = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional int64 latest_block = 4; - * @return {number} - */ -proto.lavanet.lava.pairing.RelayReply.prototype.getLatestBlock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.RelayReply} returns this - */ -proto.lavanet.lava.pairing.RelayReply.prototype.setLatestBlock = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional bytes finalized_blocks_hashes = 5; - * @return {!(string|Uint8Array)} - */ -proto.lavanet.lava.pairing.RelayReply.prototype.getFinalizedBlocksHashes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes finalized_blocks_hashes = 5; - * This is a type-conversion wrapper around `getFinalizedBlocksHashes()` - * @return {string} - */ -proto.lavanet.lava.pairing.RelayReply.prototype.getFinalizedBlocksHashes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getFinalizedBlocksHashes())); -}; - - -/** - * optional bytes finalized_blocks_hashes = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getFinalizedBlocksHashes()` - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.RelayReply.prototype.getFinalizedBlocksHashes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getFinalizedBlocksHashes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.lavanet.lava.pairing.RelayReply} returns this - */ -proto.lavanet.lava.pairing.RelayReply.prototype.setFinalizedBlocksHashes = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - -/** - * optional bytes sig_blocks = 6; - * @return {!(string|Uint8Array)} - */ -proto.lavanet.lava.pairing.RelayReply.prototype.getSigBlocks = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * optional bytes sig_blocks = 6; - * This is a type-conversion wrapper around `getSigBlocks()` - * @return {string} - */ -proto.lavanet.lava.pairing.RelayReply.prototype.getSigBlocks_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSigBlocks())); -}; - - -/** - * optional bytes sig_blocks = 6; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSigBlocks()` - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.RelayReply.prototype.getSigBlocks_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSigBlocks())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.lavanet.lava.pairing.RelayReply} returns this - */ -proto.lavanet.lava.pairing.RelayReply.prototype.setSigBlocks = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); -}; - - -/** - * repeated Metadata metadata = 7; - * @return {!Array} - */ -proto.lavanet.lava.pairing.RelayReply.prototype.getMetadataList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.lavanet.lava.pairing.Metadata, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.pairing.RelayReply} returns this -*/ -proto.lavanet.lava.pairing.RelayReply.prototype.setMetadataList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); -}; - - -/** - * @param {!proto.lavanet.lava.pairing.Metadata=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.pairing.Metadata} - */ -proto.lavanet.lava.pairing.RelayReply.prototype.addMetadata = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.lavanet.lava.pairing.Metadata, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.pairing.RelayReply} returns this - */ -proto.lavanet.lava.pairing.RelayReply.prototype.clearMetadataList = function() { - return this.setMetadataList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.QualityOfServiceReport.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.QualityOfServiceReport.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.QualityOfServiceReport} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QualityOfServiceReport.toObject = function(includeInstance, msg) { - var f, obj = { - latency: jspb.Message.getFieldWithDefault(msg, 1, ""), - availability: jspb.Message.getFieldWithDefault(msg, 2, ""), - sync: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.QualityOfServiceReport} - */ -proto.lavanet.lava.pairing.QualityOfServiceReport.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.QualityOfServiceReport; - return proto.lavanet.lava.pairing.QualityOfServiceReport.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.QualityOfServiceReport} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.QualityOfServiceReport} - */ -proto.lavanet.lava.pairing.QualityOfServiceReport.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setLatency(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAvailability(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSync(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.QualityOfServiceReport.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.QualityOfServiceReport.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.QualityOfServiceReport} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.QualityOfServiceReport.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLatency(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAvailability(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSync(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string latency = 1; - * @return {string} - */ -proto.lavanet.lava.pairing.QualityOfServiceReport.prototype.getLatency = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QualityOfServiceReport} returns this - */ -proto.lavanet.lava.pairing.QualityOfServiceReport.prototype.setLatency = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string availability = 2; - * @return {string} - */ -proto.lavanet.lava.pairing.QualityOfServiceReport.prototype.getAvailability = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QualityOfServiceReport} returns this - */ -proto.lavanet.lava.pairing.QualityOfServiceReport.prototype.setAvailability = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string sync = 3; - * @return {string} - */ -proto.lavanet.lava.pairing.QualityOfServiceReport.prototype.getSync = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.QualityOfServiceReport} returns this - */ -proto.lavanet.lava.pairing.QualityOfServiceReport.prototype.setSync = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -goog.object.extend(exports, proto.lavanet.lava.pairing); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/relay_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/relay_pb_service.d.ts deleted file mode 100644 index 1842ae2b1b..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/relay_pb_service.d.ts +++ /dev/null @@ -1,93 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/relay.proto - -import * as lavanet_lava_pairing_relay_pb from "../../../lavanet/lava/pairing/relay_pb"; -import {grpc} from "@improbable-eng/grpc-web"; - -type RelayerRelay = { - readonly methodName: string; - readonly service: typeof Relayer; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof lavanet_lava_pairing_relay_pb.RelayRequest; - readonly responseType: typeof lavanet_lava_pairing_relay_pb.RelayReply; -}; - -type RelayerRelaySubscribe = { - readonly methodName: string; - readonly service: typeof Relayer; - readonly requestStream: false; - readonly responseStream: true; - readonly requestType: typeof lavanet_lava_pairing_relay_pb.RelayRequest; - readonly responseType: typeof lavanet_lava_pairing_relay_pb.RelayReply; -}; - -type RelayerProbe = { - readonly methodName: string; - readonly service: typeof Relayer; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof lavanet_lava_pairing_relay_pb.ProbeRequest; - readonly responseType: typeof lavanet_lava_pairing_relay_pb.ProbeReply; -}; - -export class Relayer { - static readonly serviceName: string; - static readonly Relay: RelayerRelay; - static readonly RelaySubscribe: RelayerRelaySubscribe; - static readonly Probe: RelayerProbe; -} - -export type ServiceError = { message: string, code: number; metadata: grpc.Metadata } -export type Status = { details: string, code: number; metadata: grpc.Metadata } - -interface UnaryResponse { - cancel(): void; -} -interface ResponseStream { - cancel(): void; - on(type: 'data', handler: (message: T) => void): ResponseStream; - on(type: 'end', handler: (status?: Status) => void): ResponseStream; - on(type: 'status', handler: (status: Status) => void): ResponseStream; -} -interface RequestStream { - write(message: T): RequestStream; - end(): void; - cancel(): void; - on(type: 'end', handler: (status?: Status) => void): RequestStream; - on(type: 'status', handler: (status: Status) => void): RequestStream; -} -interface BidirectionalStream { - write(message: ReqT): BidirectionalStream; - end(): void; - cancel(): void; - on(type: 'data', handler: (message: ResT) => void): BidirectionalStream; - on(type: 'end', handler: (status?: Status) => void): BidirectionalStream; - on(type: 'status', handler: (status: Status) => void): BidirectionalStream; -} - -export class RelayerClient { - readonly serviceHost: string; - - constructor(serviceHost: string, options?: grpc.RpcOptions); - relay( - requestMessage: lavanet_lava_pairing_relay_pb.RelayRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_relay_pb.RelayReply|null) => void - ): UnaryResponse; - relay( - requestMessage: lavanet_lava_pairing_relay_pb.RelayRequest, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_relay_pb.RelayReply|null) => void - ): UnaryResponse; - relaySubscribe(requestMessage: lavanet_lava_pairing_relay_pb.RelayRequest, metadata?: grpc.Metadata): ResponseStream; - probe( - requestMessage: lavanet_lava_pairing_relay_pb.ProbeRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_relay_pb.ProbeReply|null) => void - ): UnaryResponse; - probe( - requestMessage: lavanet_lava_pairing_relay_pb.ProbeRequest, - callback: (error: ServiceError|null, responseMessage: lavanet_lava_pairing_relay_pb.ProbeReply|null) => void - ): UnaryResponse; -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/relay_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/relay_pb_service.js deleted file mode 100644 index 7551055a95..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/relay_pb_service.js +++ /dev/null @@ -1,149 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/relay.proto - -var lavanet_lava_pairing_relay_pb = require("../../../lavanet/lava/pairing/relay_pb"); -var grpc = require("@improbable-eng/grpc-web").grpc; - -var Relayer = (function () { - function Relayer() {} - Relayer.serviceName = "lavanet.lava.pairing.Relayer"; - return Relayer; -}()); - -Relayer.Relay = { - methodName: "Relay", - service: Relayer, - requestStream: false, - responseStream: false, - requestType: lavanet_lava_pairing_relay_pb.RelayRequest, - responseType: lavanet_lava_pairing_relay_pb.RelayReply -}; - -Relayer.RelaySubscribe = { - methodName: "RelaySubscribe", - service: Relayer, - requestStream: false, - responseStream: true, - requestType: lavanet_lava_pairing_relay_pb.RelayRequest, - responseType: lavanet_lava_pairing_relay_pb.RelayReply -}; - -Relayer.Probe = { - methodName: "Probe", - service: Relayer, - requestStream: false, - responseStream: false, - requestType: lavanet_lava_pairing_relay_pb.ProbeRequest, - responseType: lavanet_lava_pairing_relay_pb.ProbeReply -}; - -exports.Relayer = Relayer; - -function RelayerClient(serviceHost, options) { - this.serviceHost = serviceHost; - this.options = options || {}; -} - -RelayerClient.prototype.relay = function relay(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Relayer.Relay, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -RelayerClient.prototype.relaySubscribe = function relaySubscribe(requestMessage, metadata) { - var listeners = { - data: [], - end: [], - status: [] - }; - var client = grpc.invoke(Relayer.RelaySubscribe, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onMessage: function (responseMessage) { - listeners.data.forEach(function (handler) { - handler(responseMessage); - }); - }, - onEnd: function (status, statusMessage, trailers) { - listeners.status.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners.end.forEach(function (handler) { - handler({ code: status, details: statusMessage, metadata: trailers }); - }); - listeners = null; - } - }); - return { - on: function (type, handler) { - listeners[type].push(handler); - return this; - }, - cancel: function () { - listeners = null; - client.close(); - } - }; -}; - -RelayerClient.prototype.probe = function probe(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Relayer.Probe, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -exports.RelayerClient = RelayerClient; - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/unique_payment_storage_client_provider_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/unique_payment_storage_client_provider_pb.d.ts deleted file mode 100644 index 27b00683c5..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/unique_payment_storage_client_provider_pb.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/unique_payment_storage_client_provider.proto - -import * as jspb from "google-protobuf"; - -export class UniquePaymentStorageClientProvider extends jspb.Message { - getIndex(): string; - setIndex(value: string): void; - - getBlock(): number; - setBlock(value: number): void; - - getUsedcu(): number; - setUsedcu(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UniquePaymentStorageClientProvider.AsObject; - static toObject(includeInstance: boolean, msg: UniquePaymentStorageClientProvider): UniquePaymentStorageClientProvider.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UniquePaymentStorageClientProvider, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UniquePaymentStorageClientProvider; - static deserializeBinaryFromReader(message: UniquePaymentStorageClientProvider, reader: jspb.BinaryReader): UniquePaymentStorageClientProvider; -} - -export namespace UniquePaymentStorageClientProvider { - export type AsObject = { - index: string, - block: number, - usedcu: number, - } -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/unique_payment_storage_client_provider_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/unique_payment_storage_client_provider_pb.js deleted file mode 100644 index aa2dd43e5a..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/unique_payment_storage_client_provider_pb.js +++ /dev/null @@ -1,227 +0,0 @@ -// source: lavanet/lava/pairing/unique_payment_storage_client_provider.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider.displayName = 'proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider.toObject = function(includeInstance, msg) { - var f, obj = { - index: jspb.Message.getFieldWithDefault(msg, 1, ""), - block: jspb.Message.getFieldWithDefault(msg, 2, 0), - usedcu: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider} - */ -proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider; - return proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider} - */ -proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setIndex(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBlock(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setUsedcu(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIndex(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getBlock(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getUsedcu(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } -}; - - -/** - * optional string index = 1; - * @return {string} - */ -proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider.prototype.getIndex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider} returns this - */ -proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider.prototype.setIndex = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint64 block = 2; - * @return {number} - */ -proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider.prototype.getBlock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider} returns this - */ -proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider.prototype.setBlock = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 usedCU = 3; - * @return {number} - */ -proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider.prototype.getUsedcu = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider} returns this - */ -proto.lavanet.lava.pairing.UniquePaymentStorageClientProvider.prototype.setUsedcu = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -goog.object.extend(exports, proto.lavanet.lava.pairing); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/unique_payment_storage_client_provider_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/unique_payment_storage_client_provider_pb_service.d.ts deleted file mode 100644 index d72371e2e0..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/unique_payment_storage_client_provider_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/unique_payment_storage_client_provider.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/unique_payment_storage_client_provider_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/unique_payment_storage_client_provider_pb_service.js deleted file mode 100644 index d72371e2e0..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/pairing/unique_payment_storage_client_provider_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.pairing -// file: lavanet/lava/pairing/unique_payment_storage_client_provider.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/plans/policy_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/plans/policy_pb.d.ts deleted file mode 100644 index 873e5ea35d..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/plans/policy_pb.d.ts +++ /dev/null @@ -1,129 +0,0 @@ -// package: lavanet.lava.plans -// file: lavanet/lava/plans/policy.proto - -import * as jspb from "google-protobuf"; -import * as gogoproto_gogo_pb from "../../../gogoproto/gogo_pb"; -import * as cosmos_base_v1beta1_coin_pb from "../../../cosmos/base/v1beta1/coin_pb"; -import * as lavanet_lava_spec_api_collection_pb from "../../../lavanet/lava/spec/api_collection_pb"; - -export class Policy extends jspb.Message { - clearChainPoliciesList(): void; - getChainPoliciesList(): Array; - setChainPoliciesList(value: Array): void; - addChainPolicies(value?: ChainPolicy, index?: number): ChainPolicy; - - getGeolocationProfile(): number; - setGeolocationProfile(value: number): void; - - getTotalCuLimit(): number; - setTotalCuLimit(value: number): void; - - getEpochCuLimit(): number; - setEpochCuLimit(value: number): void; - - getMaxProvidersToPair(): number; - setMaxProvidersToPair(value: number): void; - - getSelectedProvidersMode(): SELECTED_PROVIDERS_MODEMap[keyof SELECTED_PROVIDERS_MODEMap]; - setSelectedProvidersMode(value: SELECTED_PROVIDERS_MODEMap[keyof SELECTED_PROVIDERS_MODEMap]): void; - - clearSelectedProvidersList(): void; - getSelectedProvidersList(): Array; - setSelectedProvidersList(value: Array): void; - addSelectedProviders(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Policy.AsObject; - static toObject(includeInstance: boolean, msg: Policy): Policy.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Policy, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Policy; - static deserializeBinaryFromReader(message: Policy, reader: jspb.BinaryReader): Policy; -} - -export namespace Policy { - export type AsObject = { - chainPoliciesList: Array, - geolocationProfile: number, - totalCuLimit: number, - epochCuLimit: number, - maxProvidersToPair: number, - selectedProvidersMode: SELECTED_PROVIDERS_MODEMap[keyof SELECTED_PROVIDERS_MODEMap], - selectedProvidersList: Array, - } -} - -export class ChainPolicy extends jspb.Message { - getChainId(): string; - setChainId(value: string): void; - - clearApisList(): void; - getApisList(): Array; - setApisList(value: Array): void; - addApis(value: string, index?: number): string; - - clearRequirementsList(): void; - getRequirementsList(): Array; - setRequirementsList(value: Array): void; - addRequirements(value?: ChainRequirement, index?: number): ChainRequirement; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChainPolicy.AsObject; - static toObject(includeInstance: boolean, msg: ChainPolicy): ChainPolicy.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ChainPolicy, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChainPolicy; - static deserializeBinaryFromReader(message: ChainPolicy, reader: jspb.BinaryReader): ChainPolicy; -} - -export namespace ChainPolicy { - export type AsObject = { - chainId: string, - apisList: Array, - requirementsList: Array, - } -} - -export class ChainRequirement extends jspb.Message { - hasCollection(): boolean; - clearCollection(): void; - getCollection(): lavanet_lava_spec_api_collection_pb.CollectionData | undefined; - setCollection(value?: lavanet_lava_spec_api_collection_pb.CollectionData): void; - - clearExtensionsList(): void; - getExtensionsList(): Array; - setExtensionsList(value: Array): void; - addExtensions(value: string, index?: number): string; - - getMixed(): boolean; - setMixed(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChainRequirement.AsObject; - static toObject(includeInstance: boolean, msg: ChainRequirement): ChainRequirement.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ChainRequirement, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChainRequirement; - static deserializeBinaryFromReader(message: ChainRequirement, reader: jspb.BinaryReader): ChainRequirement; -} - -export namespace ChainRequirement { - export type AsObject = { - collection?: lavanet_lava_spec_api_collection_pb.CollectionData.AsObject, - extensionsList: Array, - mixed: boolean, - } -} - -export interface SELECTED_PROVIDERS_MODEMap { - ALLOWED: 0; - MIXED: 1; - EXCLUSIVE: 2; - DISABLED: 3; -} - -export const SELECTED_PROVIDERS_MODE: SELECTED_PROVIDERS_MODEMap; - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/plans/policy_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/plans/policy_pb.js deleted file mode 100644 index ec1a1503f1..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/plans/policy_pb.js +++ /dev/null @@ -1,933 +0,0 @@ -// source: lavanet/lava/plans/policy.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -var cosmos_base_v1beta1_coin_pb = require('../../../cosmos/base/v1beta1/coin_pb.js'); -goog.object.extend(proto, cosmos_base_v1beta1_coin_pb); -var lavanet_lava_spec_api_collection_pb = require('../../../lavanet/lava/spec/api_collection_pb.js'); -goog.object.extend(proto, lavanet_lava_spec_api_collection_pb); -goog.exportSymbol('proto.lavanet.lava.plans.ChainPolicy', null, global); -goog.exportSymbol('proto.lavanet.lava.plans.ChainRequirement', null, global); -goog.exportSymbol('proto.lavanet.lava.plans.Policy', null, global); -goog.exportSymbol('proto.lavanet.lava.plans.SELECTED_PROVIDERS_MODE', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.plans.Policy = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.plans.Policy.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.plans.Policy, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.plans.Policy.displayName = 'proto.lavanet.lava.plans.Policy'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.plans.ChainPolicy = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.plans.ChainPolicy.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.plans.ChainPolicy, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.plans.ChainPolicy.displayName = 'proto.lavanet.lava.plans.ChainPolicy'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.plans.ChainRequirement = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.plans.ChainRequirement.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.plans.ChainRequirement, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.plans.ChainRequirement.displayName = 'proto.lavanet.lava.plans.ChainRequirement'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.plans.Policy.repeatedFields_ = [1,7]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.plans.Policy.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.plans.Policy.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.plans.Policy} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.plans.Policy.toObject = function(includeInstance, msg) { - var f, obj = { - chainPoliciesList: jspb.Message.toObjectList(msg.getChainPoliciesList(), - proto.lavanet.lava.plans.ChainPolicy.toObject, includeInstance), - geolocationProfile: jspb.Message.getFieldWithDefault(msg, 2, 0), - totalCuLimit: jspb.Message.getFieldWithDefault(msg, 3, 0), - epochCuLimit: jspb.Message.getFieldWithDefault(msg, 4, 0), - maxProvidersToPair: jspb.Message.getFieldWithDefault(msg, 5, 0), - selectedProvidersMode: jspb.Message.getFieldWithDefault(msg, 6, 0), - selectedProvidersList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.plans.Policy} - */ -proto.lavanet.lava.plans.Policy.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.plans.Policy; - return proto.lavanet.lava.plans.Policy.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.plans.Policy} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.plans.Policy} - */ -proto.lavanet.lava.plans.Policy.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.lavanet.lava.plans.ChainPolicy; - reader.readMessage(value,proto.lavanet.lava.plans.ChainPolicy.deserializeBinaryFromReader); - msg.addChainPolicies(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setGeolocationProfile(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalCuLimit(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setEpochCuLimit(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMaxProvidersToPair(value); - break; - case 6: - var value = /** @type {!proto.lavanet.lava.plans.SELECTED_PROVIDERS_MODE} */ (reader.readEnum()); - msg.setSelectedProvidersMode(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.addSelectedProviders(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.plans.Policy.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.plans.Policy.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.plans.Policy} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.plans.Policy.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChainPoliciesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.lavanet.lava.plans.ChainPolicy.serializeBinaryToWriter - ); - } - f = message.getGeolocationProfile(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getTotalCuLimit(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getEpochCuLimit(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getMaxProvidersToPair(); - if (f !== 0) { - writer.writeUint64( - 5, - f - ); - } - f = message.getSelectedProvidersMode(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getSelectedProvidersList(); - if (f.length > 0) { - writer.writeRepeatedString( - 7, - f - ); - } -}; - - -/** - * repeated ChainPolicy chain_policies = 1; - * @return {!Array} - */ -proto.lavanet.lava.plans.Policy.prototype.getChainPoliciesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.lavanet.lava.plans.ChainPolicy, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.plans.Policy} returns this -*/ -proto.lavanet.lava.plans.Policy.prototype.setChainPoliciesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.lavanet.lava.plans.ChainPolicy=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.plans.ChainPolicy} - */ -proto.lavanet.lava.plans.Policy.prototype.addChainPolicies = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lavanet.lava.plans.ChainPolicy, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.plans.Policy} returns this - */ -proto.lavanet.lava.plans.Policy.prototype.clearChainPoliciesList = function() { - return this.setChainPoliciesList([]); -}; - - -/** - * optional int32 geolocation_profile = 2; - * @return {number} - */ -proto.lavanet.lava.plans.Policy.prototype.getGeolocationProfile = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.plans.Policy} returns this - */ -proto.lavanet.lava.plans.Policy.prototype.setGeolocationProfile = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 total_cu_limit = 3; - * @return {number} - */ -proto.lavanet.lava.plans.Policy.prototype.getTotalCuLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.plans.Policy} returns this - */ -proto.lavanet.lava.plans.Policy.prototype.setTotalCuLimit = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional uint64 epoch_cu_limit = 4; - * @return {number} - */ -proto.lavanet.lava.plans.Policy.prototype.getEpochCuLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.plans.Policy} returns this - */ -proto.lavanet.lava.plans.Policy.prototype.setEpochCuLimit = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional uint64 max_providers_to_pair = 5; - * @return {number} - */ -proto.lavanet.lava.plans.Policy.prototype.getMaxProvidersToPair = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.plans.Policy} returns this - */ -proto.lavanet.lava.plans.Policy.prototype.setMaxProvidersToPair = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional SELECTED_PROVIDERS_MODE selected_providers_mode = 6; - * @return {!proto.lavanet.lava.plans.SELECTED_PROVIDERS_MODE} - */ -proto.lavanet.lava.plans.Policy.prototype.getSelectedProvidersMode = function() { - return /** @type {!proto.lavanet.lava.plans.SELECTED_PROVIDERS_MODE} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.lavanet.lava.plans.SELECTED_PROVIDERS_MODE} value - * @return {!proto.lavanet.lava.plans.Policy} returns this - */ -proto.lavanet.lava.plans.Policy.prototype.setSelectedProvidersMode = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * repeated string selected_providers = 7; - * @return {!Array} - */ -proto.lavanet.lava.plans.Policy.prototype.getSelectedProvidersList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.plans.Policy} returns this - */ -proto.lavanet.lava.plans.Policy.prototype.setSelectedProvidersList = function(value) { - return jspb.Message.setField(this, 7, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.plans.Policy} returns this - */ -proto.lavanet.lava.plans.Policy.prototype.addSelectedProviders = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 7, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.plans.Policy} returns this - */ -proto.lavanet.lava.plans.Policy.prototype.clearSelectedProvidersList = function() { - return this.setSelectedProvidersList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.plans.ChainPolicy.repeatedFields_ = [2,3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.plans.ChainPolicy.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.plans.ChainPolicy.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.plans.ChainPolicy} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.plans.ChainPolicy.toObject = function(includeInstance, msg) { - var f, obj = { - chainId: jspb.Message.getFieldWithDefault(msg, 1, ""), - apisList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - requirementsList: jspb.Message.toObjectList(msg.getRequirementsList(), - proto.lavanet.lava.plans.ChainRequirement.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.plans.ChainPolicy} - */ -proto.lavanet.lava.plans.ChainPolicy.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.plans.ChainPolicy; - return proto.lavanet.lava.plans.ChainPolicy.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.plans.ChainPolicy} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.plans.ChainPolicy} - */ -proto.lavanet.lava.plans.ChainPolicy.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setChainId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addApis(value); - break; - case 3: - var value = new proto.lavanet.lava.plans.ChainRequirement; - reader.readMessage(value,proto.lavanet.lava.plans.ChainRequirement.deserializeBinaryFromReader); - msg.addRequirements(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.plans.ChainPolicy.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.plans.ChainPolicy.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.plans.ChainPolicy} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.plans.ChainPolicy.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChainId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getApisList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getRequirementsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.lavanet.lava.plans.ChainRequirement.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string chain_id = 1; - * @return {string} - */ -proto.lavanet.lava.plans.ChainPolicy.prototype.getChainId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.plans.ChainPolicy} returns this - */ -proto.lavanet.lava.plans.ChainPolicy.prototype.setChainId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string apis = 2; - * @return {!Array} - */ -proto.lavanet.lava.plans.ChainPolicy.prototype.getApisList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.plans.ChainPolicy} returns this - */ -proto.lavanet.lava.plans.ChainPolicy.prototype.setApisList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.plans.ChainPolicy} returns this - */ -proto.lavanet.lava.plans.ChainPolicy.prototype.addApis = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.plans.ChainPolicy} returns this - */ -proto.lavanet.lava.plans.ChainPolicy.prototype.clearApisList = function() { - return this.setApisList([]); -}; - - -/** - * repeated ChainRequirement requirements = 3; - * @return {!Array} - */ -proto.lavanet.lava.plans.ChainPolicy.prototype.getRequirementsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.lavanet.lava.plans.ChainRequirement, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.plans.ChainPolicy} returns this -*/ -proto.lavanet.lava.plans.ChainPolicy.prototype.setRequirementsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.lavanet.lava.plans.ChainRequirement=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.plans.ChainRequirement} - */ -proto.lavanet.lava.plans.ChainPolicy.prototype.addRequirements = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.lavanet.lava.plans.ChainRequirement, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.plans.ChainPolicy} returns this - */ -proto.lavanet.lava.plans.ChainPolicy.prototype.clearRequirementsList = function() { - return this.setRequirementsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.plans.ChainRequirement.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.plans.ChainRequirement.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.plans.ChainRequirement.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.plans.ChainRequirement} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.plans.ChainRequirement.toObject = function(includeInstance, msg) { - var f, obj = { - collection: (f = msg.getCollection()) && lavanet_lava_spec_api_collection_pb.CollectionData.toObject(includeInstance, f), - extensionsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - mixed: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.plans.ChainRequirement} - */ -proto.lavanet.lava.plans.ChainRequirement.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.plans.ChainRequirement; - return proto.lavanet.lava.plans.ChainRequirement.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.plans.ChainRequirement} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.plans.ChainRequirement} - */ -proto.lavanet.lava.plans.ChainRequirement.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new lavanet_lava_spec_api_collection_pb.CollectionData; - reader.readMessage(value,lavanet_lava_spec_api_collection_pb.CollectionData.deserializeBinaryFromReader); - msg.setCollection(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addExtensions(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setMixed(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.plans.ChainRequirement.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.plans.ChainRequirement.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.plans.ChainRequirement} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.plans.ChainRequirement.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCollection(); - if (f != null) { - writer.writeMessage( - 1, - f, - lavanet_lava_spec_api_collection_pb.CollectionData.serializeBinaryToWriter - ); - } - f = message.getExtensionsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getMixed(); - if (f) { - writer.writeBool( - 3, - f - ); - } -}; - - -/** - * optional lavanet.lava.spec.CollectionData collection = 1; - * @return {?proto.lavanet.lava.spec.CollectionData} - */ -proto.lavanet.lava.plans.ChainRequirement.prototype.getCollection = function() { - return /** @type{?proto.lavanet.lava.spec.CollectionData} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_spec_api_collection_pb.CollectionData, 1)); -}; - - -/** - * @param {?proto.lavanet.lava.spec.CollectionData|undefined} value - * @return {!proto.lavanet.lava.plans.ChainRequirement} returns this -*/ -proto.lavanet.lava.plans.ChainRequirement.prototype.setCollection = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.plans.ChainRequirement} returns this - */ -proto.lavanet.lava.plans.ChainRequirement.prototype.clearCollection = function() { - return this.setCollection(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.plans.ChainRequirement.prototype.hasCollection = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated string extensions = 2; - * @return {!Array} - */ -proto.lavanet.lava.plans.ChainRequirement.prototype.getExtensionsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.plans.ChainRequirement} returns this - */ -proto.lavanet.lava.plans.ChainRequirement.prototype.setExtensionsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.plans.ChainRequirement} returns this - */ -proto.lavanet.lava.plans.ChainRequirement.prototype.addExtensions = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.plans.ChainRequirement} returns this - */ -proto.lavanet.lava.plans.ChainRequirement.prototype.clearExtensionsList = function() { - return this.setExtensionsList([]); -}; - - -/** - * optional bool mixed = 3; - * @return {boolean} - */ -proto.lavanet.lava.plans.ChainRequirement.prototype.getMixed = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.lavanet.lava.plans.ChainRequirement} returns this - */ -proto.lavanet.lava.plans.ChainRequirement.prototype.setMixed = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * @enum {number} - */ -proto.lavanet.lava.plans.SELECTED_PROVIDERS_MODE = { - ALLOWED: 0, - MIXED: 1, - EXCLUSIVE: 2, - DISABLED: 3 -}; - -goog.object.extend(exports, proto.lavanet.lava.plans); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/plans/policy_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/plans/policy_pb_service.d.ts deleted file mode 100644 index 3a3532dc26..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/plans/policy_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.plans -// file: lavanet/lava/plans/policy.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/plans/policy_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/plans/policy_pb_service.js deleted file mode 100644 index 3a3532dc26..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/plans/policy_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.plans -// file: lavanet/lava/plans/policy.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/projects/project_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/projects/project_pb.d.ts deleted file mode 100644 index 197ff77895..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/projects/project_pb.d.ts +++ /dev/null @@ -1,149 +0,0 @@ -// package: lavanet.lava.projects -// file: lavanet/lava/projects/project.proto - -import * as jspb from "google-protobuf"; -import * as gogoproto_gogo_pb from "../../../gogoproto/gogo_pb"; -import * as lavanet_lava_plans_policy_pb from "../../../lavanet/lava/plans/policy_pb"; - -export class Project extends jspb.Message { - getIndex(): string; - setIndex(value: string): void; - - getSubscription(): string; - setSubscription(value: string): void; - - getEnabled(): boolean; - setEnabled(value: boolean): void; - - clearProjectKeysList(): void; - getProjectKeysList(): Array; - setProjectKeysList(value: Array): void; - addProjectKeys(value?: ProjectKey, index?: number): ProjectKey; - - hasAdminPolicy(): boolean; - clearAdminPolicy(): void; - getAdminPolicy(): lavanet_lava_plans_policy_pb.Policy | undefined; - setAdminPolicy(value?: lavanet_lava_plans_policy_pb.Policy): void; - - getUsedCu(): number; - setUsedCu(value: number): void; - - hasSubscriptionPolicy(): boolean; - clearSubscriptionPolicy(): void; - getSubscriptionPolicy(): lavanet_lava_plans_policy_pb.Policy | undefined; - setSubscriptionPolicy(value?: lavanet_lava_plans_policy_pb.Policy): void; - - getSnapshot(): number; - setSnapshot(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Project.AsObject; - static toObject(includeInstance: boolean, msg: Project): Project.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Project, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Project; - static deserializeBinaryFromReader(message: Project, reader: jspb.BinaryReader): Project; -} - -export namespace Project { - export type AsObject = { - index: string, - subscription: string, - enabled: boolean, - projectKeysList: Array, - adminPolicy?: lavanet_lava_plans_policy_pb.Policy.AsObject, - usedCu: number, - subscriptionPolicy?: lavanet_lava_plans_policy_pb.Policy.AsObject, - snapshot: number, - } -} - -export class ProjectKey extends jspb.Message { - getKey(): string; - setKey(value: string): void; - - getKinds(): number; - setKinds(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectKey.AsObject; - static toObject(includeInstance: boolean, msg: ProjectKey): ProjectKey.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ProjectKey, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectKey; - static deserializeBinaryFromReader(message: ProjectKey, reader: jspb.BinaryReader): ProjectKey; -} - -export namespace ProjectKey { - export type AsObject = { - key: string, - kinds: number, - } - - export interface TypeMap { - NONE: 0; - ADMIN: 1; - DEVELOPER: 2; - } - - export const Type: TypeMap; -} - -export class ProtoDeveloperData extends jspb.Message { - getProjectid(): string; - setProjectid(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProtoDeveloperData.AsObject; - static toObject(includeInstance: boolean, msg: ProtoDeveloperData): ProtoDeveloperData.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ProtoDeveloperData, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProtoDeveloperData; - static deserializeBinaryFromReader(message: ProtoDeveloperData, reader: jspb.BinaryReader): ProtoDeveloperData; -} - -export namespace ProtoDeveloperData { - export type AsObject = { - projectid: string, - } -} - -export class ProjectData extends jspb.Message { - getName(): string; - setName(value: string): void; - - getEnabled(): boolean; - setEnabled(value: boolean): void; - - clearProjectkeysList(): void; - getProjectkeysList(): Array; - setProjectkeysList(value: Array): void; - addProjectkeys(value?: ProjectKey, index?: number): ProjectKey; - - hasPolicy(): boolean; - clearPolicy(): void; - getPolicy(): lavanet_lava_plans_policy_pb.Policy | undefined; - setPolicy(value?: lavanet_lava_plans_policy_pb.Policy): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectData.AsObject; - static toObject(includeInstance: boolean, msg: ProjectData): ProjectData.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ProjectData, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectData; - static deserializeBinaryFromReader(message: ProjectData, reader: jspb.BinaryReader): ProjectData; -} - -export namespace ProjectData { - export type AsObject = { - name: string, - enabled: boolean, - projectkeysList: Array, - policy?: lavanet_lava_plans_policy_pb.Policy.AsObject, - } -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/projects/project_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/projects/project_pb.js deleted file mode 100644 index e0e0c66583..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/projects/project_pb.js +++ /dev/null @@ -1,1090 +0,0 @@ -// source: lavanet/lava/projects/project.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -var lavanet_lava_plans_policy_pb = require('../../../lavanet/lava/plans/policy_pb.js'); -goog.object.extend(proto, lavanet_lava_plans_policy_pb); -goog.exportSymbol('proto.lavanet.lava.projects.Project', null, global); -goog.exportSymbol('proto.lavanet.lava.projects.ProjectData', null, global); -goog.exportSymbol('proto.lavanet.lava.projects.ProjectKey', null, global); -goog.exportSymbol('proto.lavanet.lava.projects.ProjectKey.Type', null, global); -goog.exportSymbol('proto.lavanet.lava.projects.ProtoDeveloperData', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.projects.Project = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.projects.Project.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.projects.Project, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.projects.Project.displayName = 'proto.lavanet.lava.projects.Project'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.projects.ProjectKey = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.projects.ProjectKey, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.projects.ProjectKey.displayName = 'proto.lavanet.lava.projects.ProjectKey'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.projects.ProtoDeveloperData = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.projects.ProtoDeveloperData, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.projects.ProtoDeveloperData.displayName = 'proto.lavanet.lava.projects.ProtoDeveloperData'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.projects.ProjectData = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.projects.ProjectData.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.projects.ProjectData, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.projects.ProjectData.displayName = 'proto.lavanet.lava.projects.ProjectData'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.projects.Project.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.projects.Project.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.projects.Project.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.projects.Project} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.projects.Project.toObject = function(includeInstance, msg) { - var f, obj = { - index: jspb.Message.getFieldWithDefault(msg, 1, ""), - subscription: jspb.Message.getFieldWithDefault(msg, 2, ""), - enabled: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - projectKeysList: jspb.Message.toObjectList(msg.getProjectKeysList(), - proto.lavanet.lava.projects.ProjectKey.toObject, includeInstance), - adminPolicy: (f = msg.getAdminPolicy()) && lavanet_lava_plans_policy_pb.Policy.toObject(includeInstance, f), - usedCu: jspb.Message.getFieldWithDefault(msg, 7, 0), - subscriptionPolicy: (f = msg.getSubscriptionPolicy()) && lavanet_lava_plans_policy_pb.Policy.toObject(includeInstance, f), - snapshot: jspb.Message.getFieldWithDefault(msg, 9, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.projects.Project} - */ -proto.lavanet.lava.projects.Project.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.projects.Project; - return proto.lavanet.lava.projects.Project.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.projects.Project} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.projects.Project} - */ -proto.lavanet.lava.projects.Project.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setIndex(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setSubscription(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnabled(value); - break; - case 5: - var value = new proto.lavanet.lava.projects.ProjectKey; - reader.readMessage(value,proto.lavanet.lava.projects.ProjectKey.deserializeBinaryFromReader); - msg.addProjectKeys(value); - break; - case 6: - var value = new lavanet_lava_plans_policy_pb.Policy; - reader.readMessage(value,lavanet_lava_plans_policy_pb.Policy.deserializeBinaryFromReader); - msg.setAdminPolicy(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint64()); - msg.setUsedCu(value); - break; - case 8: - var value = new lavanet_lava_plans_policy_pb.Policy; - reader.readMessage(value,lavanet_lava_plans_policy_pb.Policy.deserializeBinaryFromReader); - msg.setSubscriptionPolicy(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSnapshot(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.projects.Project.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.projects.Project.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.projects.Project} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.projects.Project.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIndex(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSubscription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getEnabled(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getProjectKeysList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.lavanet.lava.projects.ProjectKey.serializeBinaryToWriter - ); - } - f = message.getAdminPolicy(); - if (f != null) { - writer.writeMessage( - 6, - f, - lavanet_lava_plans_policy_pb.Policy.serializeBinaryToWriter - ); - } - f = message.getUsedCu(); - if (f !== 0) { - writer.writeUint64( - 7, - f - ); - } - f = message.getSubscriptionPolicy(); - if (f != null) { - writer.writeMessage( - 8, - f, - lavanet_lava_plans_policy_pb.Policy.serializeBinaryToWriter - ); - } - f = message.getSnapshot(); - if (f !== 0) { - writer.writeUint64( - 9, - f - ); - } -}; - - -/** - * optional string index = 1; - * @return {string} - */ -proto.lavanet.lava.projects.Project.prototype.getIndex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.projects.Project} returns this - */ -proto.lavanet.lava.projects.Project.prototype.setIndex = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string subscription = 2; - * @return {string} - */ -proto.lavanet.lava.projects.Project.prototype.getSubscription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.projects.Project} returns this - */ -proto.lavanet.lava.projects.Project.prototype.setSubscription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool enabled = 4; - * @return {boolean} - */ -proto.lavanet.lava.projects.Project.prototype.getEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.lavanet.lava.projects.Project} returns this - */ -proto.lavanet.lava.projects.Project.prototype.setEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * repeated ProjectKey project_keys = 5; - * @return {!Array} - */ -proto.lavanet.lava.projects.Project.prototype.getProjectKeysList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.lavanet.lava.projects.ProjectKey, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.projects.Project} returns this -*/ -proto.lavanet.lava.projects.Project.prototype.setProjectKeysList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.lavanet.lava.projects.ProjectKey=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.projects.ProjectKey} - */ -proto.lavanet.lava.projects.Project.prototype.addProjectKeys = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.lavanet.lava.projects.ProjectKey, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.projects.Project} returns this - */ -proto.lavanet.lava.projects.Project.prototype.clearProjectKeysList = function() { - return this.setProjectKeysList([]); -}; - - -/** - * optional lavanet.lava.plans.Policy admin_policy = 6; - * @return {?proto.lavanet.lava.plans.Policy} - */ -proto.lavanet.lava.projects.Project.prototype.getAdminPolicy = function() { - return /** @type{?proto.lavanet.lava.plans.Policy} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_plans_policy_pb.Policy, 6)); -}; - - -/** - * @param {?proto.lavanet.lava.plans.Policy|undefined} value - * @return {!proto.lavanet.lava.projects.Project} returns this -*/ -proto.lavanet.lava.projects.Project.prototype.setAdminPolicy = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.projects.Project} returns this - */ -proto.lavanet.lava.projects.Project.prototype.clearAdminPolicy = function() { - return this.setAdminPolicy(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.projects.Project.prototype.hasAdminPolicy = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional uint64 used_cu = 7; - * @return {number} - */ -proto.lavanet.lava.projects.Project.prototype.getUsedCu = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.projects.Project} returns this - */ -proto.lavanet.lava.projects.Project.prototype.setUsedCu = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional lavanet.lava.plans.Policy subscription_policy = 8; - * @return {?proto.lavanet.lava.plans.Policy} - */ -proto.lavanet.lava.projects.Project.prototype.getSubscriptionPolicy = function() { - return /** @type{?proto.lavanet.lava.plans.Policy} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_plans_policy_pb.Policy, 8)); -}; - - -/** - * @param {?proto.lavanet.lava.plans.Policy|undefined} value - * @return {!proto.lavanet.lava.projects.Project} returns this -*/ -proto.lavanet.lava.projects.Project.prototype.setSubscriptionPolicy = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.projects.Project} returns this - */ -proto.lavanet.lava.projects.Project.prototype.clearSubscriptionPolicy = function() { - return this.setSubscriptionPolicy(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.projects.Project.prototype.hasSubscriptionPolicy = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional uint64 snapshot = 9; - * @return {number} - */ -proto.lavanet.lava.projects.Project.prototype.getSnapshot = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.projects.Project} returns this - */ -proto.lavanet.lava.projects.Project.prototype.setSnapshot = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.projects.ProjectKey.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.projects.ProjectKey.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.projects.ProjectKey} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.projects.ProjectKey.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, ""), - kinds: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.projects.ProjectKey} - */ -proto.lavanet.lava.projects.ProjectKey.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.projects.ProjectKey; - return proto.lavanet.lava.projects.ProjectKey.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.projects.ProjectKey} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.projects.ProjectKey} - */ -proto.lavanet.lava.projects.ProjectKey.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setKinds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.projects.ProjectKey.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.projects.ProjectKey.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.projects.ProjectKey} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.projects.ProjectKey.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getKinds(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.lavanet.lava.projects.ProjectKey.Type = { - NONE: 0, - ADMIN: 1, - DEVELOPER: 2 -}; - -/** - * optional string key = 1; - * @return {string} - */ -proto.lavanet.lava.projects.ProjectKey.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.projects.ProjectKey} returns this - */ -proto.lavanet.lava.projects.ProjectKey.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint32 kinds = 4; - * @return {number} - */ -proto.lavanet.lava.projects.ProjectKey.prototype.getKinds = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.projects.ProjectKey} returns this - */ -proto.lavanet.lava.projects.ProjectKey.prototype.setKinds = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.projects.ProtoDeveloperData.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.projects.ProtoDeveloperData.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.projects.ProtoDeveloperData} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.projects.ProtoDeveloperData.toObject = function(includeInstance, msg) { - var f, obj = { - projectid: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.projects.ProtoDeveloperData} - */ -proto.lavanet.lava.projects.ProtoDeveloperData.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.projects.ProtoDeveloperData; - return proto.lavanet.lava.projects.ProtoDeveloperData.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.projects.ProtoDeveloperData} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.projects.ProtoDeveloperData} - */ -proto.lavanet.lava.projects.ProtoDeveloperData.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.projects.ProtoDeveloperData.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.projects.ProtoDeveloperData.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.projects.ProtoDeveloperData} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.projects.ProtoDeveloperData.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string projectID = 1; - * @return {string} - */ -proto.lavanet.lava.projects.ProtoDeveloperData.prototype.getProjectid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.projects.ProtoDeveloperData} returns this - */ -proto.lavanet.lava.projects.ProtoDeveloperData.prototype.setProjectid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.projects.ProjectData.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.projects.ProjectData.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.projects.ProjectData.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.projects.ProjectData} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.projects.ProjectData.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - enabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - projectkeysList: jspb.Message.toObjectList(msg.getProjectkeysList(), - proto.lavanet.lava.projects.ProjectKey.toObject, includeInstance), - policy: (f = msg.getPolicy()) && lavanet_lava_plans_policy_pb.Policy.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.projects.ProjectData} - */ -proto.lavanet.lava.projects.ProjectData.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.projects.ProjectData; - return proto.lavanet.lava.projects.ProjectData.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.projects.ProjectData} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.projects.ProjectData} - */ -proto.lavanet.lava.projects.ProjectData.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnabled(value); - break; - case 4: - var value = new proto.lavanet.lava.projects.ProjectKey; - reader.readMessage(value,proto.lavanet.lava.projects.ProjectKey.deserializeBinaryFromReader); - msg.addProjectkeys(value); - break; - case 5: - var value = new lavanet_lava_plans_policy_pb.Policy; - reader.readMessage(value,lavanet_lava_plans_policy_pb.Policy.deserializeBinaryFromReader); - msg.setPolicy(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.projects.ProjectData.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.projects.ProjectData.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.projects.ProjectData} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.projects.ProjectData.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEnabled(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getProjectkeysList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.lavanet.lava.projects.ProjectKey.serializeBinaryToWriter - ); - } - f = message.getPolicy(); - if (f != null) { - writer.writeMessage( - 5, - f, - lavanet_lava_plans_policy_pb.Policy.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.lavanet.lava.projects.ProjectData.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.projects.ProjectData} returns this - */ -proto.lavanet.lava.projects.ProjectData.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool enabled = 3; - * @return {boolean} - */ -proto.lavanet.lava.projects.ProjectData.prototype.getEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.lavanet.lava.projects.ProjectData} returns this - */ -proto.lavanet.lava.projects.ProjectData.prototype.setEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * repeated ProjectKey projectKeys = 4; - * @return {!Array} - */ -proto.lavanet.lava.projects.ProjectData.prototype.getProjectkeysList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.lavanet.lava.projects.ProjectKey, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.projects.ProjectData} returns this -*/ -proto.lavanet.lava.projects.ProjectData.prototype.setProjectkeysList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.lavanet.lava.projects.ProjectKey=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.projects.ProjectKey} - */ -proto.lavanet.lava.projects.ProjectData.prototype.addProjectkeys = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.lavanet.lava.projects.ProjectKey, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.projects.ProjectData} returns this - */ -proto.lavanet.lava.projects.ProjectData.prototype.clearProjectkeysList = function() { - return this.setProjectkeysList([]); -}; - - -/** - * optional lavanet.lava.plans.Policy policy = 5; - * @return {?proto.lavanet.lava.plans.Policy} - */ -proto.lavanet.lava.projects.ProjectData.prototype.getPolicy = function() { - return /** @type{?proto.lavanet.lava.plans.Policy} */ ( - jspb.Message.getWrapperField(this, lavanet_lava_plans_policy_pb.Policy, 5)); -}; - - -/** - * @param {?proto.lavanet.lava.plans.Policy|undefined} value - * @return {!proto.lavanet.lava.projects.ProjectData} returns this -*/ -proto.lavanet.lava.projects.ProjectData.prototype.setPolicy = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.projects.ProjectData} returns this - */ -proto.lavanet.lava.projects.ProjectData.prototype.clearPolicy = function() { - return this.setPolicy(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.projects.ProjectData.prototype.hasPolicy = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -goog.object.extend(exports, proto.lavanet.lava.projects); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/projects/project_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/projects/project_pb_service.d.ts deleted file mode 100644 index c4ee8818fe..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/projects/project_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.projects -// file: lavanet/lava/projects/project.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/projects/project_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/projects/project_pb_service.js deleted file mode 100644 index c4ee8818fe..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/projects/project_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.projects -// file: lavanet/lava/projects/project.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/api_collection_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/api_collection_pb.d.ts deleted file mode 100644 index 437a7aed90..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/api_collection_pb.d.ts +++ /dev/null @@ -1,424 +0,0 @@ -// package: lavanet.lava.spec -// file: lavanet/lava/spec/api_collection.proto - -import * as jspb from "google-protobuf"; -import * as gogoproto_gogo_pb from "../../../gogoproto/gogo_pb"; - -export class ApiCollection extends jspb.Message { - getEnabled(): boolean; - setEnabled(value: boolean): void; - - hasCollectionData(): boolean; - clearCollectionData(): void; - getCollectionData(): CollectionData | undefined; - setCollectionData(value?: CollectionData): void; - - clearApisList(): void; - getApisList(): Array; - setApisList(value: Array): void; - addApis(value?: Api, index?: number): Api; - - clearHeadersList(): void; - getHeadersList(): Array
; - setHeadersList(value: Array
): void; - addHeaders(value?: Header, index?: number): Header; - - clearInheritanceApisList(): void; - getInheritanceApisList(): Array; - setInheritanceApisList(value: Array): void; - addInheritanceApis(value?: CollectionData, index?: number): CollectionData; - - clearParseDirectivesList(): void; - getParseDirectivesList(): Array; - setParseDirectivesList(value: Array): void; - addParseDirectives(value?: ParseDirective, index?: number): ParseDirective; - - clearExtensionsList(): void; - getExtensionsList(): Array; - setExtensionsList(value: Array): void; - addExtensions(value?: Extension, index?: number): Extension; - - clearVerificationsList(): void; - getVerificationsList(): Array; - setVerificationsList(value: Array): void; - addVerifications(value?: Verification, index?: number): Verification; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ApiCollection.AsObject; - static toObject(includeInstance: boolean, msg: ApiCollection): ApiCollection.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ApiCollection, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ApiCollection; - static deserializeBinaryFromReader(message: ApiCollection, reader: jspb.BinaryReader): ApiCollection; -} - -export namespace ApiCollection { - export type AsObject = { - enabled: boolean, - collectionData?: CollectionData.AsObject, - apisList: Array, - headersList: Array, - inheritanceApisList: Array, - parseDirectivesList: Array, - extensionsList: Array, - verificationsList: Array, - } -} - -export class Extension extends jspb.Message { - getName(): string; - setName(value: string): void; - - getCuMultiplier(): number; - setCuMultiplier(value: number): void; - - hasRule(): boolean; - clearRule(): void; - getRule(): Rule | undefined; - setRule(value?: Rule): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Extension.AsObject; - static toObject(includeInstance: boolean, msg: Extension): Extension.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Extension, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Extension; - static deserializeBinaryFromReader(message: Extension, reader: jspb.BinaryReader): Extension; -} - -export namespace Extension { - export type AsObject = { - name: string, - cuMultiplier: number, - rule?: Rule.AsObject, - } -} - -export class Rule extends jspb.Message { - getBlock(): number; - setBlock(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Rule.AsObject; - static toObject(includeInstance: boolean, msg: Rule): Rule.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Rule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Rule; - static deserializeBinaryFromReader(message: Rule, reader: jspb.BinaryReader): Rule; -} - -export namespace Rule { - export type AsObject = { - block: number, - } -} - -export class Verification extends jspb.Message { - getName(): string; - setName(value: string): void; - - hasParseDirective(): boolean; - clearParseDirective(): void; - getParseDirective(): ParseDirective | undefined; - setParseDirective(value?: ParseDirective): void; - - clearValuesList(): void; - getValuesList(): Array; - setValuesList(value: Array): void; - addValues(value?: ParseValue, index?: number): ParseValue; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Verification.AsObject; - static toObject(includeInstance: boolean, msg: Verification): Verification.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Verification, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Verification; - static deserializeBinaryFromReader(message: Verification, reader: jspb.BinaryReader): Verification; -} - -export namespace Verification { - export type AsObject = { - name: string, - parseDirective?: ParseDirective.AsObject, - valuesList: Array, - } -} - -export class ParseValue extends jspb.Message { - getExtension$(): string; - setExtension$(value: string): void; - - getExpectedValue(): string; - setExpectedValue(value: string): void; - - getLatestDistance(): number; - setLatestDistance(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ParseValue.AsObject; - static toObject(includeInstance: boolean, msg: ParseValue): ParseValue.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ParseValue, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ParseValue; - static deserializeBinaryFromReader(message: ParseValue, reader: jspb.BinaryReader): ParseValue; -} - -export namespace ParseValue { - export type AsObject = { - extension: string, - expectedValue: string, - latestDistance: number, - } -} - -export class CollectionData extends jspb.Message { - getApiInterface(): string; - setApiInterface(value: string): void; - - getInternalPath(): string; - setInternalPath(value: string): void; - - getType(): string; - setType(value: string): void; - - getAddOn(): string; - setAddOn(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CollectionData.AsObject; - static toObject(includeInstance: boolean, msg: CollectionData): CollectionData.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CollectionData, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CollectionData; - static deserializeBinaryFromReader(message: CollectionData, reader: jspb.BinaryReader): CollectionData; -} - -export namespace CollectionData { - export type AsObject = { - apiInterface: string, - internalPath: string, - type: string, - addOn: string, - } -} - -export class Header extends jspb.Message { - getName(): string; - setName(value: string): void; - - getKind(): Header.HeaderTypeMap[keyof Header.HeaderTypeMap]; - setKind(value: Header.HeaderTypeMap[keyof Header.HeaderTypeMap]): void; - - getFunctionTag(): FUNCTION_TAGMap[keyof FUNCTION_TAGMap]; - setFunctionTag(value: FUNCTION_TAGMap[keyof FUNCTION_TAGMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Header.AsObject; - static toObject(includeInstance: boolean, msg: Header): Header.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Header, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Header; - static deserializeBinaryFromReader(message: Header, reader: jspb.BinaryReader): Header; -} - -export namespace Header { - export type AsObject = { - name: string, - kind: Header.HeaderTypeMap[keyof Header.HeaderTypeMap], - functionTag: FUNCTION_TAGMap[keyof FUNCTION_TAGMap], - } - - export interface HeaderTypeMap { - PASS_SEND: 0; - PASS_REPLY: 1; - PASS_BOTH: 2; - PASS_IGNORE: 3; - } - - export const HeaderType: HeaderTypeMap; -} - -export class Api extends jspb.Message { - getEnabled(): boolean; - setEnabled(value: boolean): void; - - getName(): string; - setName(value: string): void; - - getComputeUnits(): number; - setComputeUnits(value: number): void; - - getExtraComputeUnits(): number; - setExtraComputeUnits(value: number): void; - - hasCategory(): boolean; - clearCategory(): void; - getCategory(): SpecCategory | undefined; - setCategory(value?: SpecCategory): void; - - hasBlockParsing(): boolean; - clearBlockParsing(): void; - getBlockParsing(): BlockParser | undefined; - setBlockParsing(value?: BlockParser): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Api.AsObject; - static toObject(includeInstance: boolean, msg: Api): Api.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Api, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Api; - static deserializeBinaryFromReader(message: Api, reader: jspb.BinaryReader): Api; -} - -export namespace Api { - export type AsObject = { - enabled: boolean, - name: string, - computeUnits: number, - extraComputeUnits: number, - category?: SpecCategory.AsObject, - blockParsing?: BlockParser.AsObject, - } -} - -export class ParseDirective extends jspb.Message { - getFunctionTag(): FUNCTION_TAGMap[keyof FUNCTION_TAGMap]; - setFunctionTag(value: FUNCTION_TAGMap[keyof FUNCTION_TAGMap]): void; - - getFunctionTemplate(): string; - setFunctionTemplate(value: string): void; - - hasResultParsing(): boolean; - clearResultParsing(): void; - getResultParsing(): BlockParser | undefined; - setResultParsing(value?: BlockParser): void; - - getApiName(): string; - setApiName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ParseDirective.AsObject; - static toObject(includeInstance: boolean, msg: ParseDirective): ParseDirective.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ParseDirective, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ParseDirective; - static deserializeBinaryFromReader(message: ParseDirective, reader: jspb.BinaryReader): ParseDirective; -} - -export namespace ParseDirective { - export type AsObject = { - functionTag: FUNCTION_TAGMap[keyof FUNCTION_TAGMap], - functionTemplate: string, - resultParsing?: BlockParser.AsObject, - apiName: string, - } -} - -export class BlockParser extends jspb.Message { - clearParserArgList(): void; - getParserArgList(): Array; - setParserArgList(value: Array): void; - addParserArg(value: string, index?: number): string; - - getParserFunc(): PARSER_FUNCMap[keyof PARSER_FUNCMap]; - setParserFunc(value: PARSER_FUNCMap[keyof PARSER_FUNCMap]): void; - - getDefaultValue(): string; - setDefaultValue(value: string): void; - - getEncoding(): string; - setEncoding(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BlockParser.AsObject; - static toObject(includeInstance: boolean, msg: BlockParser): BlockParser.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BlockParser, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BlockParser; - static deserializeBinaryFromReader(message: BlockParser, reader: jspb.BinaryReader): BlockParser; -} - -export namespace BlockParser { - export type AsObject = { - parserArgList: Array, - parserFunc: PARSER_FUNCMap[keyof PARSER_FUNCMap], - defaultValue: string, - encoding: string, - } -} - -export class SpecCategory extends jspb.Message { - getDeterministic(): boolean; - setDeterministic(value: boolean): void; - - getLocal(): boolean; - setLocal(value: boolean): void; - - getSubscription(): boolean; - setSubscription(value: boolean): void; - - getStateful(): number; - setStateful(value: number): void; - - getHangingApi(): boolean; - setHangingApi(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SpecCategory.AsObject; - static toObject(includeInstance: boolean, msg: SpecCategory): SpecCategory.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SpecCategory, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SpecCategory; - static deserializeBinaryFromReader(message: SpecCategory, reader: jspb.BinaryReader): SpecCategory; -} - -export namespace SpecCategory { - export type AsObject = { - deterministic: boolean, - local: boolean, - subscription: boolean, - stateful: number, - hangingApi: boolean, - } -} - -export interface EXTENSIONMap { - NONE: 0; - ARCHIVE: 1; -} - -export const EXTENSION: EXTENSIONMap; - -export interface FUNCTION_TAGMap { - DISABLED: 0; - GET_BLOCKNUM: 1; - GET_BLOCK_BY_NUM: 2; - SET_LATEST_IN_METADATA: 3; - SET_LATEST_IN_BODY: 4; - VERIFICATION: 5; -} - -export const FUNCTION_TAG: FUNCTION_TAGMap; - -export interface PARSER_FUNCMap { - EMPTY: 0; - PARSE_BY_ARG: 1; - PARSE_CANONICAL: 2; - PARSE_DICTIONARY: 3; - PARSE_DICTIONARY_OR_ORDERED: 4; - DEFAULT: 6; -} - -export const PARSER_FUNC: PARSER_FUNCMap; - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/api_collection_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/api_collection_pb.js deleted file mode 100644 index 2975523238..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/api_collection_pb.js +++ /dev/null @@ -1,3052 +0,0 @@ -// source: lavanet/lava/spec/api_collection.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -goog.exportSymbol('proto.lavanet.lava.spec.Api', null, global); -goog.exportSymbol('proto.lavanet.lava.spec.ApiCollection', null, global); -goog.exportSymbol('proto.lavanet.lava.spec.BlockParser', null, global); -goog.exportSymbol('proto.lavanet.lava.spec.CollectionData', null, global); -goog.exportSymbol('proto.lavanet.lava.spec.EXTENSION', null, global); -goog.exportSymbol('proto.lavanet.lava.spec.Extension', null, global); -goog.exportSymbol('proto.lavanet.lava.spec.FUNCTION_TAG', null, global); -goog.exportSymbol('proto.lavanet.lava.spec.Header', null, global); -goog.exportSymbol('proto.lavanet.lava.spec.Header.HeaderType', null, global); -goog.exportSymbol('proto.lavanet.lava.spec.PARSER_FUNC', null, global); -goog.exportSymbol('proto.lavanet.lava.spec.ParseDirective', null, global); -goog.exportSymbol('proto.lavanet.lava.spec.ParseValue', null, global); -goog.exportSymbol('proto.lavanet.lava.spec.Rule', null, global); -goog.exportSymbol('proto.lavanet.lava.spec.SpecCategory', null, global); -goog.exportSymbol('proto.lavanet.lava.spec.Verification', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.spec.ApiCollection = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.spec.ApiCollection.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.spec.ApiCollection, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.spec.ApiCollection.displayName = 'proto.lavanet.lava.spec.ApiCollection'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.spec.Extension = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.spec.Extension, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.spec.Extension.displayName = 'proto.lavanet.lava.spec.Extension'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.spec.Rule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.spec.Rule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.spec.Rule.displayName = 'proto.lavanet.lava.spec.Rule'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.spec.Verification = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.spec.Verification.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.spec.Verification, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.spec.Verification.displayName = 'proto.lavanet.lava.spec.Verification'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.spec.ParseValue = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.spec.ParseValue, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.spec.ParseValue.displayName = 'proto.lavanet.lava.spec.ParseValue'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.spec.CollectionData = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.spec.CollectionData, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.spec.CollectionData.displayName = 'proto.lavanet.lava.spec.CollectionData'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.spec.Header = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.spec.Header, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.spec.Header.displayName = 'proto.lavanet.lava.spec.Header'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.spec.Api = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.spec.Api, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.spec.Api.displayName = 'proto.lavanet.lava.spec.Api'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.spec.ParseDirective = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.spec.ParseDirective, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.spec.ParseDirective.displayName = 'proto.lavanet.lava.spec.ParseDirective'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.spec.BlockParser = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.spec.BlockParser.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.spec.BlockParser, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.spec.BlockParser.displayName = 'proto.lavanet.lava.spec.BlockParser'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.spec.SpecCategory = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.spec.SpecCategory, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.spec.SpecCategory.displayName = 'proto.lavanet.lava.spec.SpecCategory'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.spec.ApiCollection.repeatedFields_ = [3,4,5,6,7,8]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.spec.ApiCollection.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.spec.ApiCollection.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.spec.ApiCollection} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.ApiCollection.toObject = function(includeInstance, msg) { - var f, obj = { - enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - collectionData: (f = msg.getCollectionData()) && proto.lavanet.lava.spec.CollectionData.toObject(includeInstance, f), - apisList: jspb.Message.toObjectList(msg.getApisList(), - proto.lavanet.lava.spec.Api.toObject, includeInstance), - headersList: jspb.Message.toObjectList(msg.getHeadersList(), - proto.lavanet.lava.spec.Header.toObject, includeInstance), - inheritanceApisList: jspb.Message.toObjectList(msg.getInheritanceApisList(), - proto.lavanet.lava.spec.CollectionData.toObject, includeInstance), - parseDirectivesList: jspb.Message.toObjectList(msg.getParseDirectivesList(), - proto.lavanet.lava.spec.ParseDirective.toObject, includeInstance), - extensionsList: jspb.Message.toObjectList(msg.getExtensionsList(), - proto.lavanet.lava.spec.Extension.toObject, includeInstance), - verificationsList: jspb.Message.toObjectList(msg.getVerificationsList(), - proto.lavanet.lava.spec.Verification.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.spec.ApiCollection} - */ -proto.lavanet.lava.spec.ApiCollection.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.spec.ApiCollection; - return proto.lavanet.lava.spec.ApiCollection.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.spec.ApiCollection} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.spec.ApiCollection} - */ -proto.lavanet.lava.spec.ApiCollection.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnabled(value); - break; - case 2: - var value = new proto.lavanet.lava.spec.CollectionData; - reader.readMessage(value,proto.lavanet.lava.spec.CollectionData.deserializeBinaryFromReader); - msg.setCollectionData(value); - break; - case 3: - var value = new proto.lavanet.lava.spec.Api; - reader.readMessage(value,proto.lavanet.lava.spec.Api.deserializeBinaryFromReader); - msg.addApis(value); - break; - case 4: - var value = new proto.lavanet.lava.spec.Header; - reader.readMessage(value,proto.lavanet.lava.spec.Header.deserializeBinaryFromReader); - msg.addHeaders(value); - break; - case 5: - var value = new proto.lavanet.lava.spec.CollectionData; - reader.readMessage(value,proto.lavanet.lava.spec.CollectionData.deserializeBinaryFromReader); - msg.addInheritanceApis(value); - break; - case 6: - var value = new proto.lavanet.lava.spec.ParseDirective; - reader.readMessage(value,proto.lavanet.lava.spec.ParseDirective.deserializeBinaryFromReader); - msg.addParseDirectives(value); - break; - case 7: - var value = new proto.lavanet.lava.spec.Extension; - reader.readMessage(value,proto.lavanet.lava.spec.Extension.deserializeBinaryFromReader); - msg.addExtensions(value); - break; - case 8: - var value = new proto.lavanet.lava.spec.Verification; - reader.readMessage(value,proto.lavanet.lava.spec.Verification.deserializeBinaryFromReader); - msg.addVerifications(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.spec.ApiCollection.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.spec.ApiCollection.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.spec.ApiCollection} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.ApiCollection.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEnabled(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getCollectionData(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.lavanet.lava.spec.CollectionData.serializeBinaryToWriter - ); - } - f = message.getApisList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.lavanet.lava.spec.Api.serializeBinaryToWriter - ); - } - f = message.getHeadersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.lavanet.lava.spec.Header.serializeBinaryToWriter - ); - } - f = message.getInheritanceApisList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.lavanet.lava.spec.CollectionData.serializeBinaryToWriter - ); - } - f = message.getParseDirectivesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.lavanet.lava.spec.ParseDirective.serializeBinaryToWriter - ); - } - f = message.getExtensionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - proto.lavanet.lava.spec.Extension.serializeBinaryToWriter - ); - } - f = message.getVerificationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 8, - f, - proto.lavanet.lava.spec.Verification.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bool enabled = 1; - * @return {boolean} - */ -proto.lavanet.lava.spec.ApiCollection.prototype.getEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.lavanet.lava.spec.ApiCollection} returns this - */ -proto.lavanet.lava.spec.ApiCollection.prototype.setEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional CollectionData collection_data = 2; - * @return {?proto.lavanet.lava.spec.CollectionData} - */ -proto.lavanet.lava.spec.ApiCollection.prototype.getCollectionData = function() { - return /** @type{?proto.lavanet.lava.spec.CollectionData} */ ( - jspb.Message.getWrapperField(this, proto.lavanet.lava.spec.CollectionData, 2)); -}; - - -/** - * @param {?proto.lavanet.lava.spec.CollectionData|undefined} value - * @return {!proto.lavanet.lava.spec.ApiCollection} returns this -*/ -proto.lavanet.lava.spec.ApiCollection.prototype.setCollectionData = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.spec.ApiCollection} returns this - */ -proto.lavanet.lava.spec.ApiCollection.prototype.clearCollectionData = function() { - return this.setCollectionData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.spec.ApiCollection.prototype.hasCollectionData = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * repeated Api apis = 3; - * @return {!Array} - */ -proto.lavanet.lava.spec.ApiCollection.prototype.getApisList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.lavanet.lava.spec.Api, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.spec.ApiCollection} returns this -*/ -proto.lavanet.lava.spec.ApiCollection.prototype.setApisList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.lavanet.lava.spec.Api=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.spec.Api} - */ -proto.lavanet.lava.spec.ApiCollection.prototype.addApis = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.lavanet.lava.spec.Api, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.spec.ApiCollection} returns this - */ -proto.lavanet.lava.spec.ApiCollection.prototype.clearApisList = function() { - return this.setApisList([]); -}; - - -/** - * repeated Header headers = 4; - * @return {!Array} - */ -proto.lavanet.lava.spec.ApiCollection.prototype.getHeadersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.lavanet.lava.spec.Header, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.spec.ApiCollection} returns this -*/ -proto.lavanet.lava.spec.ApiCollection.prototype.setHeadersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.lavanet.lava.spec.Header=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.spec.Header} - */ -proto.lavanet.lava.spec.ApiCollection.prototype.addHeaders = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.lavanet.lava.spec.Header, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.spec.ApiCollection} returns this - */ -proto.lavanet.lava.spec.ApiCollection.prototype.clearHeadersList = function() { - return this.setHeadersList([]); -}; - - -/** - * repeated CollectionData inheritance_apis = 5; - * @return {!Array} - */ -proto.lavanet.lava.spec.ApiCollection.prototype.getInheritanceApisList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.lavanet.lava.spec.CollectionData, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.spec.ApiCollection} returns this -*/ -proto.lavanet.lava.spec.ApiCollection.prototype.setInheritanceApisList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.lavanet.lava.spec.CollectionData=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.spec.CollectionData} - */ -proto.lavanet.lava.spec.ApiCollection.prototype.addInheritanceApis = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.lavanet.lava.spec.CollectionData, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.spec.ApiCollection} returns this - */ -proto.lavanet.lava.spec.ApiCollection.prototype.clearInheritanceApisList = function() { - return this.setInheritanceApisList([]); -}; - - -/** - * repeated ParseDirective parse_directives = 6; - * @return {!Array} - */ -proto.lavanet.lava.spec.ApiCollection.prototype.getParseDirectivesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.lavanet.lava.spec.ParseDirective, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.spec.ApiCollection} returns this -*/ -proto.lavanet.lava.spec.ApiCollection.prototype.setParseDirectivesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.lavanet.lava.spec.ParseDirective=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.spec.ParseDirective} - */ -proto.lavanet.lava.spec.ApiCollection.prototype.addParseDirectives = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.lavanet.lava.spec.ParseDirective, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.spec.ApiCollection} returns this - */ -proto.lavanet.lava.spec.ApiCollection.prototype.clearParseDirectivesList = function() { - return this.setParseDirectivesList([]); -}; - - -/** - * repeated Extension extensions = 7; - * @return {!Array} - */ -proto.lavanet.lava.spec.ApiCollection.prototype.getExtensionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.lavanet.lava.spec.Extension, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.spec.ApiCollection} returns this -*/ -proto.lavanet.lava.spec.ApiCollection.prototype.setExtensionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); -}; - - -/** - * @param {!proto.lavanet.lava.spec.Extension=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.spec.Extension} - */ -proto.lavanet.lava.spec.ApiCollection.prototype.addExtensions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.lavanet.lava.spec.Extension, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.spec.ApiCollection} returns this - */ -proto.lavanet.lava.spec.ApiCollection.prototype.clearExtensionsList = function() { - return this.setExtensionsList([]); -}; - - -/** - * repeated Verification verifications = 8; - * @return {!Array} - */ -proto.lavanet.lava.spec.ApiCollection.prototype.getVerificationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.lavanet.lava.spec.Verification, 8)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.spec.ApiCollection} returns this -*/ -proto.lavanet.lava.spec.ApiCollection.prototype.setVerificationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 8, value); -}; - - -/** - * @param {!proto.lavanet.lava.spec.Verification=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.spec.Verification} - */ -proto.lavanet.lava.spec.ApiCollection.prototype.addVerifications = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.lavanet.lava.spec.Verification, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.spec.ApiCollection} returns this - */ -proto.lavanet.lava.spec.ApiCollection.prototype.clearVerificationsList = function() { - return this.setVerificationsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.spec.Extension.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.spec.Extension.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.spec.Extension} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.Extension.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - cuMultiplier: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - rule: (f = msg.getRule()) && proto.lavanet.lava.spec.Rule.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.spec.Extension} - */ -proto.lavanet.lava.spec.Extension.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.spec.Extension; - return proto.lavanet.lava.spec.Extension.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.spec.Extension} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.spec.Extension} - */ -proto.lavanet.lava.spec.Extension.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {number} */ (reader.readFloat()); - msg.setCuMultiplier(value); - break; - case 3: - var value = new proto.lavanet.lava.spec.Rule; - reader.readMessage(value,proto.lavanet.lava.spec.Rule.deserializeBinaryFromReader); - msg.setRule(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.spec.Extension.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.spec.Extension.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.spec.Extension} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.Extension.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCuMultiplier(); - if (f !== 0.0) { - writer.writeFloat( - 2, - f - ); - } - f = message.getRule(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.lavanet.lava.spec.Rule.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.lavanet.lava.spec.Extension.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.spec.Extension} returns this - */ -proto.lavanet.lava.spec.Extension.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional float cu_multiplier = 2; - * @return {number} - */ -proto.lavanet.lava.spec.Extension.prototype.getCuMultiplier = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.spec.Extension} returns this - */ -proto.lavanet.lava.spec.Extension.prototype.setCuMultiplier = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - -/** - * optional Rule rule = 3; - * @return {?proto.lavanet.lava.spec.Rule} - */ -proto.lavanet.lava.spec.Extension.prototype.getRule = function() { - return /** @type{?proto.lavanet.lava.spec.Rule} */ ( - jspb.Message.getWrapperField(this, proto.lavanet.lava.spec.Rule, 3)); -}; - - -/** - * @param {?proto.lavanet.lava.spec.Rule|undefined} value - * @return {!proto.lavanet.lava.spec.Extension} returns this -*/ -proto.lavanet.lava.spec.Extension.prototype.setRule = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.spec.Extension} returns this - */ -proto.lavanet.lava.spec.Extension.prototype.clearRule = function() { - return this.setRule(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.spec.Extension.prototype.hasRule = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.spec.Rule.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.spec.Rule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.spec.Rule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.Rule.toObject = function(includeInstance, msg) { - var f, obj = { - block: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.spec.Rule} - */ -proto.lavanet.lava.spec.Rule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.spec.Rule; - return proto.lavanet.lava.spec.Rule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.spec.Rule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.spec.Rule} - */ -proto.lavanet.lava.spec.Rule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBlock(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.spec.Rule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.spec.Rule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.spec.Rule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.Rule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBlock(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } -}; - - -/** - * optional uint64 block = 1; - * @return {number} - */ -proto.lavanet.lava.spec.Rule.prototype.getBlock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.spec.Rule} returns this - */ -proto.lavanet.lava.spec.Rule.prototype.setBlock = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.spec.Verification.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.spec.Verification.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.spec.Verification.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.spec.Verification} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.Verification.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - parseDirective: (f = msg.getParseDirective()) && proto.lavanet.lava.spec.ParseDirective.toObject(includeInstance, f), - valuesList: jspb.Message.toObjectList(msg.getValuesList(), - proto.lavanet.lava.spec.ParseValue.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.spec.Verification} - */ -proto.lavanet.lava.spec.Verification.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.spec.Verification; - return proto.lavanet.lava.spec.Verification.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.spec.Verification} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.spec.Verification} - */ -proto.lavanet.lava.spec.Verification.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = new proto.lavanet.lava.spec.ParseDirective; - reader.readMessage(value,proto.lavanet.lava.spec.ParseDirective.deserializeBinaryFromReader); - msg.setParseDirective(value); - break; - case 3: - var value = new proto.lavanet.lava.spec.ParseValue; - reader.readMessage(value,proto.lavanet.lava.spec.ParseValue.deserializeBinaryFromReader); - msg.addValues(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.spec.Verification.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.spec.Verification.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.spec.Verification} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.Verification.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getParseDirective(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.lavanet.lava.spec.ParseDirective.serializeBinaryToWriter - ); - } - f = message.getValuesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.lavanet.lava.spec.ParseValue.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.lavanet.lava.spec.Verification.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.spec.Verification} returns this - */ -proto.lavanet.lava.spec.Verification.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional ParseDirective parse_directive = 2; - * @return {?proto.lavanet.lava.spec.ParseDirective} - */ -proto.lavanet.lava.spec.Verification.prototype.getParseDirective = function() { - return /** @type{?proto.lavanet.lava.spec.ParseDirective} */ ( - jspb.Message.getWrapperField(this, proto.lavanet.lava.spec.ParseDirective, 2)); -}; - - -/** - * @param {?proto.lavanet.lava.spec.ParseDirective|undefined} value - * @return {!proto.lavanet.lava.spec.Verification} returns this -*/ -proto.lavanet.lava.spec.Verification.prototype.setParseDirective = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.spec.Verification} returns this - */ -proto.lavanet.lava.spec.Verification.prototype.clearParseDirective = function() { - return this.setParseDirective(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.spec.Verification.prototype.hasParseDirective = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * repeated ParseValue values = 3; - * @return {!Array} - */ -proto.lavanet.lava.spec.Verification.prototype.getValuesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.lavanet.lava.spec.ParseValue, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.spec.Verification} returns this -*/ -proto.lavanet.lava.spec.Verification.prototype.setValuesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.lavanet.lava.spec.ParseValue=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.spec.ParseValue} - */ -proto.lavanet.lava.spec.Verification.prototype.addValues = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.lavanet.lava.spec.ParseValue, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.spec.Verification} returns this - */ -proto.lavanet.lava.spec.Verification.prototype.clearValuesList = function() { - return this.setValuesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.spec.ParseValue.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.spec.ParseValue.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.spec.ParseValue} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.ParseValue.toObject = function(includeInstance, msg) { - var f, obj = { - extension: jspb.Message.getFieldWithDefault(msg, 1, ""), - expectedValue: jspb.Message.getFieldWithDefault(msg, 2, ""), - latestDistance: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.spec.ParseValue} - */ -proto.lavanet.lava.spec.ParseValue.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.spec.ParseValue; - return proto.lavanet.lava.spec.ParseValue.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.spec.ParseValue} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.spec.ParseValue} - */ -proto.lavanet.lava.spec.ParseValue.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setExtension$(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setExpectedValue(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLatestDistance(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.spec.ParseValue.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.spec.ParseValue.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.spec.ParseValue} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.ParseValue.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getExtension$(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getExpectedValue(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLatestDistance(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } -}; - - -/** - * optional string extension = 1; - * @return {string} - */ -proto.lavanet.lava.spec.ParseValue.prototype.getExtension$ = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.spec.ParseValue} returns this - */ -proto.lavanet.lava.spec.ParseValue.prototype.setExtension$ = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string expected_value = 2; - * @return {string} - */ -proto.lavanet.lava.spec.ParseValue.prototype.getExpectedValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.spec.ParseValue} returns this - */ -proto.lavanet.lava.spec.ParseValue.prototype.setExpectedValue = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint64 latest_distance = 3; - * @return {number} - */ -proto.lavanet.lava.spec.ParseValue.prototype.getLatestDistance = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.spec.ParseValue} returns this - */ -proto.lavanet.lava.spec.ParseValue.prototype.setLatestDistance = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.spec.CollectionData.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.spec.CollectionData.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.spec.CollectionData} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.CollectionData.toObject = function(includeInstance, msg) { - var f, obj = { - apiInterface: jspb.Message.getFieldWithDefault(msg, 1, ""), - internalPath: jspb.Message.getFieldWithDefault(msg, 2, ""), - type: jspb.Message.getFieldWithDefault(msg, 3, ""), - addOn: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.spec.CollectionData} - */ -proto.lavanet.lava.spec.CollectionData.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.spec.CollectionData; - return proto.lavanet.lava.spec.CollectionData.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.spec.CollectionData} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.spec.CollectionData} - */ -proto.lavanet.lava.spec.CollectionData.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApiInterface(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setInternalPath(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setAddOn(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.spec.CollectionData.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.spec.CollectionData.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.spec.CollectionData} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.CollectionData.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApiInterface(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getInternalPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getAddOn(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string api_interface = 1; - * @return {string} - */ -proto.lavanet.lava.spec.CollectionData.prototype.getApiInterface = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.spec.CollectionData} returns this - */ -proto.lavanet.lava.spec.CollectionData.prototype.setApiInterface = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string internal_path = 2; - * @return {string} - */ -proto.lavanet.lava.spec.CollectionData.prototype.getInternalPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.spec.CollectionData} returns this - */ -proto.lavanet.lava.spec.CollectionData.prototype.setInternalPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string type = 3; - * @return {string} - */ -proto.lavanet.lava.spec.CollectionData.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.spec.CollectionData} returns this - */ -proto.lavanet.lava.spec.CollectionData.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string add_on = 4; - * @return {string} - */ -proto.lavanet.lava.spec.CollectionData.prototype.getAddOn = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.spec.CollectionData} returns this - */ -proto.lavanet.lava.spec.CollectionData.prototype.setAddOn = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.spec.Header.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.spec.Header.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.spec.Header} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.Header.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - kind: jspb.Message.getFieldWithDefault(msg, 2, 0), - functionTag: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.spec.Header} - */ -proto.lavanet.lava.spec.Header.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.spec.Header; - return proto.lavanet.lava.spec.Header.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.spec.Header} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.spec.Header} - */ -proto.lavanet.lava.spec.Header.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {!proto.lavanet.lava.spec.Header.HeaderType} */ (reader.readEnum()); - msg.setKind(value); - break; - case 3: - var value = /** @type {!proto.lavanet.lava.spec.FUNCTION_TAG} */ (reader.readEnum()); - msg.setFunctionTag(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.spec.Header.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.spec.Header.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.spec.Header} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.Header.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getKind(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getFunctionTag(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.lavanet.lava.spec.Header.HeaderType = { - PASS_SEND: 0, - PASS_REPLY: 1, - PASS_BOTH: 2, - PASS_IGNORE: 3 -}; - -/** - * optional string name = 1; - * @return {string} - */ -proto.lavanet.lava.spec.Header.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.spec.Header} returns this - */ -proto.lavanet.lava.spec.Header.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional HeaderType kind = 2; - * @return {!proto.lavanet.lava.spec.Header.HeaderType} - */ -proto.lavanet.lava.spec.Header.prototype.getKind = function() { - return /** @type {!proto.lavanet.lava.spec.Header.HeaderType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.lavanet.lava.spec.Header.HeaderType} value - * @return {!proto.lavanet.lava.spec.Header} returns this - */ -proto.lavanet.lava.spec.Header.prototype.setKind = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional FUNCTION_TAG function_tag = 3; - * @return {!proto.lavanet.lava.spec.FUNCTION_TAG} - */ -proto.lavanet.lava.spec.Header.prototype.getFunctionTag = function() { - return /** @type {!proto.lavanet.lava.spec.FUNCTION_TAG} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.lavanet.lava.spec.FUNCTION_TAG} value - * @return {!proto.lavanet.lava.spec.Header} returns this - */ -proto.lavanet.lava.spec.Header.prototype.setFunctionTag = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.spec.Api.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.spec.Api.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.spec.Api} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.Api.toObject = function(includeInstance, msg) { - var f, obj = { - enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - computeUnits: jspb.Message.getFieldWithDefault(msg, 3, 0), - extraComputeUnits: jspb.Message.getFieldWithDefault(msg, 4, 0), - category: (f = msg.getCategory()) && proto.lavanet.lava.spec.SpecCategory.toObject(includeInstance, f), - blockParsing: (f = msg.getBlockParsing()) && proto.lavanet.lava.spec.BlockParser.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.spec.Api} - */ -proto.lavanet.lava.spec.Api.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.spec.Api; - return proto.lavanet.lava.spec.Api.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.spec.Api} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.spec.Api} - */ -proto.lavanet.lava.spec.Api.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnabled(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setComputeUnits(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setExtraComputeUnits(value); - break; - case 6: - var value = new proto.lavanet.lava.spec.SpecCategory; - reader.readMessage(value,proto.lavanet.lava.spec.SpecCategory.deserializeBinaryFromReader); - msg.setCategory(value); - break; - case 7: - var value = new proto.lavanet.lava.spec.BlockParser; - reader.readMessage(value,proto.lavanet.lava.spec.BlockParser.deserializeBinaryFromReader); - msg.setBlockParsing(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.spec.Api.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.spec.Api.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.spec.Api} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.Api.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEnabled(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getComputeUnits(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getExtraComputeUnits(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getCategory(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.lavanet.lava.spec.SpecCategory.serializeBinaryToWriter - ); - } - f = message.getBlockParsing(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.lavanet.lava.spec.BlockParser.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bool enabled = 1; - * @return {boolean} - */ -proto.lavanet.lava.spec.Api.prototype.getEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.lavanet.lava.spec.Api} returns this - */ -proto.lavanet.lava.spec.Api.prototype.setEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.lavanet.lava.spec.Api.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.spec.Api} returns this - */ -proto.lavanet.lava.spec.Api.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint64 compute_units = 3; - * @return {number} - */ -proto.lavanet.lava.spec.Api.prototype.getComputeUnits = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.spec.Api} returns this - */ -proto.lavanet.lava.spec.Api.prototype.setComputeUnits = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional uint64 extra_compute_units = 4; - * @return {number} - */ -proto.lavanet.lava.spec.Api.prototype.getExtraComputeUnits = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.spec.Api} returns this - */ -proto.lavanet.lava.spec.Api.prototype.setExtraComputeUnits = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional SpecCategory category = 6; - * @return {?proto.lavanet.lava.spec.SpecCategory} - */ -proto.lavanet.lava.spec.Api.prototype.getCategory = function() { - return /** @type{?proto.lavanet.lava.spec.SpecCategory} */ ( - jspb.Message.getWrapperField(this, proto.lavanet.lava.spec.SpecCategory, 6)); -}; - - -/** - * @param {?proto.lavanet.lava.spec.SpecCategory|undefined} value - * @return {!proto.lavanet.lava.spec.Api} returns this -*/ -proto.lavanet.lava.spec.Api.prototype.setCategory = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.spec.Api} returns this - */ -proto.lavanet.lava.spec.Api.prototype.clearCategory = function() { - return this.setCategory(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.spec.Api.prototype.hasCategory = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional BlockParser block_parsing = 7; - * @return {?proto.lavanet.lava.spec.BlockParser} - */ -proto.lavanet.lava.spec.Api.prototype.getBlockParsing = function() { - return /** @type{?proto.lavanet.lava.spec.BlockParser} */ ( - jspb.Message.getWrapperField(this, proto.lavanet.lava.spec.BlockParser, 7)); -}; - - -/** - * @param {?proto.lavanet.lava.spec.BlockParser|undefined} value - * @return {!proto.lavanet.lava.spec.Api} returns this -*/ -proto.lavanet.lava.spec.Api.prototype.setBlockParsing = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.spec.Api} returns this - */ -proto.lavanet.lava.spec.Api.prototype.clearBlockParsing = function() { - return this.setBlockParsing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.spec.Api.prototype.hasBlockParsing = function() { - return jspb.Message.getField(this, 7) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.spec.ParseDirective.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.spec.ParseDirective.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.spec.ParseDirective} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.ParseDirective.toObject = function(includeInstance, msg) { - var f, obj = { - functionTag: jspb.Message.getFieldWithDefault(msg, 1, 0), - functionTemplate: jspb.Message.getFieldWithDefault(msg, 2, ""), - resultParsing: (f = msg.getResultParsing()) && proto.lavanet.lava.spec.BlockParser.toObject(includeInstance, f), - apiName: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.spec.ParseDirective} - */ -proto.lavanet.lava.spec.ParseDirective.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.spec.ParseDirective; - return proto.lavanet.lava.spec.ParseDirective.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.spec.ParseDirective} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.spec.ParseDirective} - */ -proto.lavanet.lava.spec.ParseDirective.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.lavanet.lava.spec.FUNCTION_TAG} */ (reader.readEnum()); - msg.setFunctionTag(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setFunctionTemplate(value); - break; - case 3: - var value = new proto.lavanet.lava.spec.BlockParser; - reader.readMessage(value,proto.lavanet.lava.spec.BlockParser.deserializeBinaryFromReader); - msg.setResultParsing(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setApiName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.spec.ParseDirective.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.spec.ParseDirective.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.spec.ParseDirective} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.ParseDirective.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFunctionTag(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getFunctionTemplate(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getResultParsing(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.lavanet.lava.spec.BlockParser.serializeBinaryToWriter - ); - } - f = message.getApiName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional FUNCTION_TAG function_tag = 1; - * @return {!proto.lavanet.lava.spec.FUNCTION_TAG} - */ -proto.lavanet.lava.spec.ParseDirective.prototype.getFunctionTag = function() { - return /** @type {!proto.lavanet.lava.spec.FUNCTION_TAG} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.lavanet.lava.spec.FUNCTION_TAG} value - * @return {!proto.lavanet.lava.spec.ParseDirective} returns this - */ -proto.lavanet.lava.spec.ParseDirective.prototype.setFunctionTag = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional string function_template = 2; - * @return {string} - */ -proto.lavanet.lava.spec.ParseDirective.prototype.getFunctionTemplate = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.spec.ParseDirective} returns this - */ -proto.lavanet.lava.spec.ParseDirective.prototype.setFunctionTemplate = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional BlockParser result_parsing = 3; - * @return {?proto.lavanet.lava.spec.BlockParser} - */ -proto.lavanet.lava.spec.ParseDirective.prototype.getResultParsing = function() { - return /** @type{?proto.lavanet.lava.spec.BlockParser} */ ( - jspb.Message.getWrapperField(this, proto.lavanet.lava.spec.BlockParser, 3)); -}; - - -/** - * @param {?proto.lavanet.lava.spec.BlockParser|undefined} value - * @return {!proto.lavanet.lava.spec.ParseDirective} returns this -*/ -proto.lavanet.lava.spec.ParseDirective.prototype.setResultParsing = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.spec.ParseDirective} returns this - */ -proto.lavanet.lava.spec.ParseDirective.prototype.clearResultParsing = function() { - return this.setResultParsing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.spec.ParseDirective.prototype.hasResultParsing = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string api_name = 4; - * @return {string} - */ -proto.lavanet.lava.spec.ParseDirective.prototype.getApiName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.spec.ParseDirective} returns this - */ -proto.lavanet.lava.spec.ParseDirective.prototype.setApiName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.spec.BlockParser.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.spec.BlockParser.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.spec.BlockParser.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.spec.BlockParser} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.BlockParser.toObject = function(includeInstance, msg) { - var f, obj = { - parserArgList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, - parserFunc: jspb.Message.getFieldWithDefault(msg, 2, 0), - defaultValue: jspb.Message.getFieldWithDefault(msg, 3, ""), - encoding: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.spec.BlockParser} - */ -proto.lavanet.lava.spec.BlockParser.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.spec.BlockParser; - return proto.lavanet.lava.spec.BlockParser.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.spec.BlockParser} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.spec.BlockParser} - */ -proto.lavanet.lava.spec.BlockParser.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addParserArg(value); - break; - case 2: - var value = /** @type {!proto.lavanet.lava.spec.PARSER_FUNC} */ (reader.readEnum()); - msg.setParserFunc(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDefaultValue(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setEncoding(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.spec.BlockParser.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.spec.BlockParser.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.spec.BlockParser} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.BlockParser.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getParserArgList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } - f = message.getParserFunc(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getDefaultValue(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getEncoding(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * repeated string parser_arg = 1; - * @return {!Array} - */ -proto.lavanet.lava.spec.BlockParser.prototype.getParserArgList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.spec.BlockParser} returns this - */ -proto.lavanet.lava.spec.BlockParser.prototype.setParserArgList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.spec.BlockParser} returns this - */ -proto.lavanet.lava.spec.BlockParser.prototype.addParserArg = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.spec.BlockParser} returns this - */ -proto.lavanet.lava.spec.BlockParser.prototype.clearParserArgList = function() { - return this.setParserArgList([]); -}; - - -/** - * optional PARSER_FUNC parser_func = 2; - * @return {!proto.lavanet.lava.spec.PARSER_FUNC} - */ -proto.lavanet.lava.spec.BlockParser.prototype.getParserFunc = function() { - return /** @type {!proto.lavanet.lava.spec.PARSER_FUNC} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.lavanet.lava.spec.PARSER_FUNC} value - * @return {!proto.lavanet.lava.spec.BlockParser} returns this - */ -proto.lavanet.lava.spec.BlockParser.prototype.setParserFunc = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string default_value = 3; - * @return {string} - */ -proto.lavanet.lava.spec.BlockParser.prototype.getDefaultValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.spec.BlockParser} returns this - */ -proto.lavanet.lava.spec.BlockParser.prototype.setDefaultValue = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string encoding = 4; - * @return {string} - */ -proto.lavanet.lava.spec.BlockParser.prototype.getEncoding = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.spec.BlockParser} returns this - */ -proto.lavanet.lava.spec.BlockParser.prototype.setEncoding = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.spec.SpecCategory.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.spec.SpecCategory.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.spec.SpecCategory} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.SpecCategory.toObject = function(includeInstance, msg) { - var f, obj = { - deterministic: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - local: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - subscription: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - stateful: jspb.Message.getFieldWithDefault(msg, 4, 0), - hangingApi: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.spec.SpecCategory} - */ -proto.lavanet.lava.spec.SpecCategory.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.spec.SpecCategory; - return proto.lavanet.lava.spec.SpecCategory.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.spec.SpecCategory} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.spec.SpecCategory} - */ -proto.lavanet.lava.spec.SpecCategory.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDeterministic(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setLocal(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSubscription(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setStateful(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHangingApi(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.spec.SpecCategory.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.spec.SpecCategory.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.spec.SpecCategory} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.SpecCategory.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeterministic(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getLocal(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getSubscription(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getStateful(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getHangingApi(); - if (f) { - writer.writeBool( - 5, - f - ); - } -}; - - -/** - * optional bool deterministic = 1; - * @return {boolean} - */ -proto.lavanet.lava.spec.SpecCategory.prototype.getDeterministic = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.lavanet.lava.spec.SpecCategory} returns this - */ -proto.lavanet.lava.spec.SpecCategory.prototype.setDeterministic = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional bool local = 2; - * @return {boolean} - */ -proto.lavanet.lava.spec.SpecCategory.prototype.getLocal = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.lavanet.lava.spec.SpecCategory} returns this - */ -proto.lavanet.lava.spec.SpecCategory.prototype.setLocal = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional bool subscription = 3; - * @return {boolean} - */ -proto.lavanet.lava.spec.SpecCategory.prototype.getSubscription = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.lavanet.lava.spec.SpecCategory} returns this - */ -proto.lavanet.lava.spec.SpecCategory.prototype.setSubscription = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional uint32 stateful = 4; - * @return {number} - */ -proto.lavanet.lava.spec.SpecCategory.prototype.getStateful = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.spec.SpecCategory} returns this - */ -proto.lavanet.lava.spec.SpecCategory.prototype.setStateful = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional bool hanging_api = 5; - * @return {boolean} - */ -proto.lavanet.lava.spec.SpecCategory.prototype.getHangingApi = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.lavanet.lava.spec.SpecCategory} returns this - */ -proto.lavanet.lava.spec.SpecCategory.prototype.setHangingApi = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * @enum {number} - */ -proto.lavanet.lava.spec.EXTENSION = { - NONE: 0, - ARCHIVE: 1 -}; - -/** - * @enum {number} - */ -proto.lavanet.lava.spec.FUNCTION_TAG = { - DISABLED: 0, - GET_BLOCKNUM: 1, - GET_BLOCK_BY_NUM: 2, - SET_LATEST_IN_METADATA: 3, - SET_LATEST_IN_BODY: 4, - VERIFICATION: 5 -}; - -/** - * @enum {number} - */ -proto.lavanet.lava.spec.PARSER_FUNC = { - EMPTY: 0, - PARSE_BY_ARG: 1, - PARSE_CANONICAL: 2, - PARSE_DICTIONARY: 3, - PARSE_DICTIONARY_OR_ORDERED: 4, - DEFAULT: 6 -}; - -goog.object.extend(exports, proto.lavanet.lava.spec); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/api_collection_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/api_collection_pb_service.d.ts deleted file mode 100644 index 7a6baba847..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/api_collection_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.spec -// file: lavanet/lava/spec/api_collection.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/api_collection_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/api_collection_pb_service.js deleted file mode 100644 index 7a6baba847..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/api_collection_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.spec -// file: lavanet/lava/spec/api_collection.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/spec_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/spec_pb.d.ts deleted file mode 100644 index c98992dc39..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/spec_pb.d.ts +++ /dev/null @@ -1,99 +0,0 @@ -// package: lavanet.lava.spec -// file: lavanet/lava/spec/spec.proto - -import * as jspb from "google-protobuf"; -import * as gogoproto_gogo_pb from "../../../gogoproto/gogo_pb"; -import * as lavanet_lava_spec_api_collection_pb from "../../../lavanet/lava/spec/api_collection_pb"; -import * as cosmos_base_v1beta1_coin_pb from "../../../cosmos/base/v1beta1/coin_pb"; - -export class Spec extends jspb.Message { - getIndex(): string; - setIndex(value: string): void; - - getName(): string; - setName(value: string): void; - - getEnabled(): boolean; - setEnabled(value: boolean): void; - - getReliabilityThreshold(): number; - setReliabilityThreshold(value: number): void; - - getDataReliabilityEnabled(): boolean; - setDataReliabilityEnabled(value: boolean): void; - - getBlockDistanceForFinalizedData(): number; - setBlockDistanceForFinalizedData(value: number): void; - - getBlocksInFinalizationProof(): number; - setBlocksInFinalizationProof(value: number): void; - - getAverageBlockTime(): number; - setAverageBlockTime(value: number): void; - - getAllowedBlockLagForQosSync(): number; - setAllowedBlockLagForQosSync(value: number): void; - - getBlockLastUpdated(): number; - setBlockLastUpdated(value: number): void; - - hasMinStakeProvider(): boolean; - clearMinStakeProvider(): void; - getMinStakeProvider(): cosmos_base_v1beta1_coin_pb.Coin | undefined; - setMinStakeProvider(value?: cosmos_base_v1beta1_coin_pb.Coin): void; - - hasMinStakeClient(): boolean; - clearMinStakeClient(): void; - getMinStakeClient(): cosmos_base_v1beta1_coin_pb.Coin | undefined; - setMinStakeClient(value?: cosmos_base_v1beta1_coin_pb.Coin): void; - - getProvidersTypes(): Spec.ProvidersTypesMap[keyof Spec.ProvidersTypesMap]; - setProvidersTypes(value: Spec.ProvidersTypesMap[keyof Spec.ProvidersTypesMap]): void; - - clearImportsList(): void; - getImportsList(): Array; - setImportsList(value: Array): void; - addImports(value: string, index?: number): string; - - clearApiCollectionsList(): void; - getApiCollectionsList(): Array; - setApiCollectionsList(value: Array): void; - addApiCollections(value?: lavanet_lava_spec_api_collection_pb.ApiCollection, index?: number): lavanet_lava_spec_api_collection_pb.ApiCollection; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Spec.AsObject; - static toObject(includeInstance: boolean, msg: Spec): Spec.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Spec, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Spec; - static deserializeBinaryFromReader(message: Spec, reader: jspb.BinaryReader): Spec; -} - -export namespace Spec { - export type AsObject = { - index: string, - name: string, - enabled: boolean, - reliabilityThreshold: number, - dataReliabilityEnabled: boolean, - blockDistanceForFinalizedData: number, - blocksInFinalizationProof: number, - averageBlockTime: number, - allowedBlockLagForQosSync: number, - blockLastUpdated: number, - minStakeProvider?: cosmos_base_v1beta1_coin_pb.Coin.AsObject, - minStakeClient?: cosmos_base_v1beta1_coin_pb.Coin.AsObject, - providersTypes: Spec.ProvidersTypesMap[keyof Spec.ProvidersTypesMap], - importsList: Array, - apiCollectionsList: Array, - } - - export interface ProvidersTypesMap { - DYNAMIC: 0; - STATIC: 1; - } - - export const ProvidersTypes: ProvidersTypesMap; -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/spec_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/spec_pb.js deleted file mode 100644 index 9dffe9f10d..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/spec_pb.js +++ /dev/null @@ -1,693 +0,0 @@ -// source: lavanet/lava/spec/spec.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -var lavanet_lava_spec_api_collection_pb = require('../../../lavanet/lava/spec/api_collection_pb.js'); -goog.object.extend(proto, lavanet_lava_spec_api_collection_pb); -var cosmos_base_v1beta1_coin_pb = require('../../../cosmos/base/v1beta1/coin_pb.js'); -goog.object.extend(proto, cosmos_base_v1beta1_coin_pb); -goog.exportSymbol('proto.lavanet.lava.spec.Spec', null, global); -goog.exportSymbol('proto.lavanet.lava.spec.Spec.ProvidersTypes', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.spec.Spec = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lavanet.lava.spec.Spec.repeatedFields_, null); -}; -goog.inherits(proto.lavanet.lava.spec.Spec, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.spec.Spec.displayName = 'proto.lavanet.lava.spec.Spec'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.lavanet.lava.spec.Spec.repeatedFields_ = [15,16]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.spec.Spec.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.spec.Spec.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.spec.Spec} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.Spec.toObject = function(includeInstance, msg) { - var f, obj = { - index: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - enabled: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - reliabilityThreshold: jspb.Message.getFieldWithDefault(msg, 5, 0), - dataReliabilityEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - blockDistanceForFinalizedData: jspb.Message.getFieldWithDefault(msg, 7, 0), - blocksInFinalizationProof: jspb.Message.getFieldWithDefault(msg, 8, 0), - averageBlockTime: jspb.Message.getFieldWithDefault(msg, 9, 0), - allowedBlockLagForQosSync: jspb.Message.getFieldWithDefault(msg, 10, 0), - blockLastUpdated: jspb.Message.getFieldWithDefault(msg, 11, 0), - minStakeProvider: (f = msg.getMinStakeProvider()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), - minStakeClient: (f = msg.getMinStakeClient()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), - providersTypes: jspb.Message.getFieldWithDefault(msg, 14, 0), - importsList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f, - apiCollectionsList: jspb.Message.toObjectList(msg.getApiCollectionsList(), - lavanet_lava_spec_api_collection_pb.ApiCollection.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.spec.Spec} - */ -proto.lavanet.lava.spec.Spec.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.spec.Spec; - return proto.lavanet.lava.spec.Spec.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.spec.Spec} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.spec.Spec} - */ -proto.lavanet.lava.spec.Spec.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setIndex(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnabled(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setReliabilityThreshold(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDataReliabilityEnabled(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBlockDistanceForFinalizedData(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBlocksInFinalizationProof(value); - break; - case 9: - var value = /** @type {number} */ (reader.readInt64()); - msg.setAverageBlockTime(value); - break; - case 10: - var value = /** @type {number} */ (reader.readInt64()); - msg.setAllowedBlockLagForQosSync(value); - break; - case 11: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBlockLastUpdated(value); - break; - case 12: - var value = new cosmos_base_v1beta1_coin_pb.Coin; - reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); - msg.setMinStakeProvider(value); - break; - case 13: - var value = new cosmos_base_v1beta1_coin_pb.Coin; - reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); - msg.setMinStakeClient(value); - break; - case 14: - var value = /** @type {!proto.lavanet.lava.spec.Spec.ProvidersTypes} */ (reader.readEnum()); - msg.setProvidersTypes(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.addImports(value); - break; - case 16: - var value = new lavanet_lava_spec_api_collection_pb.ApiCollection; - reader.readMessage(value,lavanet_lava_spec_api_collection_pb.ApiCollection.deserializeBinaryFromReader); - msg.addApiCollections(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.spec.Spec.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.spec.Spec.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.spec.Spec} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.spec.Spec.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIndex(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getEnabled(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getReliabilityThreshold(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getDataReliabilityEnabled(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getBlockDistanceForFinalizedData(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getBlocksInFinalizationProof(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getAverageBlockTime(); - if (f !== 0) { - writer.writeInt64( - 9, - f - ); - } - f = message.getAllowedBlockLagForQosSync(); - if (f !== 0) { - writer.writeInt64( - 10, - f - ); - } - f = message.getBlockLastUpdated(); - if (f !== 0) { - writer.writeUint64( - 11, - f - ); - } - f = message.getMinStakeProvider(); - if (f != null) { - writer.writeMessage( - 12, - f, - cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter - ); - } - f = message.getMinStakeClient(); - if (f != null) { - writer.writeMessage( - 13, - f, - cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter - ); - } - f = message.getProvidersTypes(); - if (f !== 0.0) { - writer.writeEnum( - 14, - f - ); - } - f = message.getImportsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 15, - f - ); - } - f = message.getApiCollectionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 16, - f, - lavanet_lava_spec_api_collection_pb.ApiCollection.serializeBinaryToWriter - ); - } -}; - - -/** - * @enum {number} - */ -proto.lavanet.lava.spec.Spec.ProvidersTypes = { - DYNAMIC: 0, - STATIC: 1 -}; - -/** - * optional string index = 1; - * @return {string} - */ -proto.lavanet.lava.spec.Spec.prototype.getIndex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.spec.Spec} returns this - */ -proto.lavanet.lava.spec.Spec.prototype.setIndex = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.lavanet.lava.spec.Spec.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.spec.Spec} returns this - */ -proto.lavanet.lava.spec.Spec.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool enabled = 4; - * @return {boolean} - */ -proto.lavanet.lava.spec.Spec.prototype.getEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.lavanet.lava.spec.Spec} returns this - */ -proto.lavanet.lava.spec.Spec.prototype.setEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional uint32 reliability_threshold = 5; - * @return {number} - */ -proto.lavanet.lava.spec.Spec.prototype.getReliabilityThreshold = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.spec.Spec} returns this - */ -proto.lavanet.lava.spec.Spec.prototype.setReliabilityThreshold = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional bool data_reliability_enabled = 6; - * @return {boolean} - */ -proto.lavanet.lava.spec.Spec.prototype.getDataReliabilityEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.lavanet.lava.spec.Spec} returns this - */ -proto.lavanet.lava.spec.Spec.prototype.setDataReliabilityEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional uint32 block_distance_for_finalized_data = 7; - * @return {number} - */ -proto.lavanet.lava.spec.Spec.prototype.getBlockDistanceForFinalizedData = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.spec.Spec} returns this - */ -proto.lavanet.lava.spec.Spec.prototype.setBlockDistanceForFinalizedData = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional uint32 blocks_in_finalization_proof = 8; - * @return {number} - */ -proto.lavanet.lava.spec.Spec.prototype.getBlocksInFinalizationProof = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.spec.Spec} returns this - */ -proto.lavanet.lava.spec.Spec.prototype.setBlocksInFinalizationProof = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional int64 average_block_time = 9; - * @return {number} - */ -proto.lavanet.lava.spec.Spec.prototype.getAverageBlockTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.spec.Spec} returns this - */ -proto.lavanet.lava.spec.Spec.prototype.setAverageBlockTime = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - - -/** - * optional int64 allowed_block_lag_for_qos_sync = 10; - * @return {number} - */ -proto.lavanet.lava.spec.Spec.prototype.getAllowedBlockLagForQosSync = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.spec.Spec} returns this - */ -proto.lavanet.lava.spec.Spec.prototype.setAllowedBlockLagForQosSync = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional uint64 block_last_updated = 11; - * @return {number} - */ -proto.lavanet.lava.spec.Spec.prototype.getBlockLastUpdated = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.spec.Spec} returns this - */ -proto.lavanet.lava.spec.Spec.prototype.setBlockLastUpdated = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional cosmos.base.v1beta1.Coin min_stake_provider = 12; - * @return {?proto.cosmos.base.v1beta1.Coin} - */ -proto.lavanet.lava.spec.Spec.prototype.getMinStakeProvider = function() { - return /** @type{?proto.cosmos.base.v1beta1.Coin} */ ( - jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 12)); -}; - - -/** - * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value - * @return {!proto.lavanet.lava.spec.Spec} returns this -*/ -proto.lavanet.lava.spec.Spec.prototype.setMinStakeProvider = function(value) { - return jspb.Message.setWrapperField(this, 12, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.spec.Spec} returns this - */ -proto.lavanet.lava.spec.Spec.prototype.clearMinStakeProvider = function() { - return this.setMinStakeProvider(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.spec.Spec.prototype.hasMinStakeProvider = function() { - return jspb.Message.getField(this, 12) != null; -}; - - -/** - * optional cosmos.base.v1beta1.Coin min_stake_client = 13; - * @return {?proto.cosmos.base.v1beta1.Coin} - */ -proto.lavanet.lava.spec.Spec.prototype.getMinStakeClient = function() { - return /** @type{?proto.cosmos.base.v1beta1.Coin} */ ( - jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 13)); -}; - - -/** - * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value - * @return {!proto.lavanet.lava.spec.Spec} returns this -*/ -proto.lavanet.lava.spec.Spec.prototype.setMinStakeClient = function(value) { - return jspb.Message.setWrapperField(this, 13, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.lavanet.lava.spec.Spec} returns this - */ -proto.lavanet.lava.spec.Spec.prototype.clearMinStakeClient = function() { - return this.setMinStakeClient(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.lavanet.lava.spec.Spec.prototype.hasMinStakeClient = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional ProvidersTypes providers_types = 14; - * @return {!proto.lavanet.lava.spec.Spec.ProvidersTypes} - */ -proto.lavanet.lava.spec.Spec.prototype.getProvidersTypes = function() { - return /** @type {!proto.lavanet.lava.spec.Spec.ProvidersTypes} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); -}; - - -/** - * @param {!proto.lavanet.lava.spec.Spec.ProvidersTypes} value - * @return {!proto.lavanet.lava.spec.Spec} returns this - */ -proto.lavanet.lava.spec.Spec.prototype.setProvidersTypes = function(value) { - return jspb.Message.setProto3EnumField(this, 14, value); -}; - - -/** - * repeated string imports = 15; - * @return {!Array} - */ -proto.lavanet.lava.spec.Spec.prototype.getImportsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 15)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.spec.Spec} returns this - */ -proto.lavanet.lava.spec.Spec.prototype.setImportsList = function(value) { - return jspb.Message.setField(this, 15, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.spec.Spec} returns this - */ -proto.lavanet.lava.spec.Spec.prototype.addImports = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 15, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.spec.Spec} returns this - */ -proto.lavanet.lava.spec.Spec.prototype.clearImportsList = function() { - return this.setImportsList([]); -}; - - -/** - * repeated ApiCollection api_collections = 16; - * @return {!Array} - */ -proto.lavanet.lava.spec.Spec.prototype.getApiCollectionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, lavanet_lava_spec_api_collection_pb.ApiCollection, 16)); -}; - - -/** - * @param {!Array} value - * @return {!proto.lavanet.lava.spec.Spec} returns this -*/ -proto.lavanet.lava.spec.Spec.prototype.setApiCollectionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 16, value); -}; - - -/** - * @param {!proto.lavanet.lava.spec.ApiCollection=} opt_value - * @param {number=} opt_index - * @return {!proto.lavanet.lava.spec.ApiCollection} - */ -proto.lavanet.lava.spec.Spec.prototype.addApiCollections = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 16, opt_value, proto.lavanet.lava.spec.ApiCollection, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.lavanet.lava.spec.Spec} returns this - */ -proto.lavanet.lava.spec.Spec.prototype.clearApiCollectionsList = function() { - return this.setApiCollectionsList([]); -}; - - -goog.object.extend(exports, proto.lavanet.lava.spec); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/spec_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/spec_pb_service.d.ts deleted file mode 100644 index 1bb11de341..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/spec_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.spec -// file: lavanet/lava/spec/spec.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/spec_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/spec_pb_service.js deleted file mode 100644 index 1bb11de341..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/spec/spec_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.spec -// file: lavanet/lava/spec/spec.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/subscription/subscription_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/subscription/subscription_pb.d.ts deleted file mode 100644 index 54bf870199..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/subscription/subscription_pb.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -// package: lavanet.lava.subscription -// file: lavanet/lava/subscription/subscription.proto - -import * as jspb from "google-protobuf"; - -export class Subscription extends jspb.Message { - getCreator(): string; - setCreator(value: string): void; - - getConsumer(): string; - setConsumer(value: string): void; - - getBlock(): number; - setBlock(value: number): void; - - getPlanIndex(): string; - setPlanIndex(value: string): void; - - getPlanBlock(): number; - setPlanBlock(value: number): void; - - getDurationBought(): number; - setDurationBought(value: number): void; - - getDurationLeft(): number; - setDurationLeft(value: number): void; - - getMonthExpiryTime(): number; - setMonthExpiryTime(value: number): void; - - getMonthCuTotal(): number; - setMonthCuTotal(value: number): void; - - getMonthCuLeft(): number; - setMonthCuLeft(value: number): void; - - getCluster(): string; - setCluster(value: string): void; - - getDurationTotal(): number; - setDurationTotal(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Subscription.AsObject; - static toObject(includeInstance: boolean, msg: Subscription): Subscription.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Subscription, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Subscription; - static deserializeBinaryFromReader(message: Subscription, reader: jspb.BinaryReader): Subscription; -} - -export namespace Subscription { - export type AsObject = { - creator: string, - consumer: string, - block: number, - planIndex: string, - planBlock: number, - durationBought: number, - durationLeft: number, - monthExpiryTime: number, - monthCuTotal: number, - monthCuLeft: number, - cluster: string, - durationTotal: number, - } -} - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/subscription/subscription_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/subscription/subscription_pb.js deleted file mode 100644 index 3c9582e1cc..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/subscription/subscription_pb.js +++ /dev/null @@ -1,497 +0,0 @@ -// source: lavanet/lava/subscription/subscription.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.lavanet.lava.subscription.Subscription', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lavanet.lava.subscription.Subscription = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lavanet.lava.subscription.Subscription, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.lavanet.lava.subscription.Subscription.displayName = 'proto.lavanet.lava.subscription.Subscription'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.lavanet.lava.subscription.Subscription.prototype.toObject = function(opt_includeInstance) { - return proto.lavanet.lava.subscription.Subscription.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lavanet.lava.subscription.Subscription} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.subscription.Subscription.toObject = function(includeInstance, msg) { - var f, obj = { - creator: jspb.Message.getFieldWithDefault(msg, 1, ""), - consumer: jspb.Message.getFieldWithDefault(msg, 2, ""), - block: jspb.Message.getFieldWithDefault(msg, 3, 0), - planIndex: jspb.Message.getFieldWithDefault(msg, 4, ""), - planBlock: jspb.Message.getFieldWithDefault(msg, 5, 0), - durationBought: jspb.Message.getFieldWithDefault(msg, 6, 0), - durationLeft: jspb.Message.getFieldWithDefault(msg, 7, 0), - monthExpiryTime: jspb.Message.getFieldWithDefault(msg, 8, 0), - monthCuTotal: jspb.Message.getFieldWithDefault(msg, 10, 0), - monthCuLeft: jspb.Message.getFieldWithDefault(msg, 11, 0), - cluster: jspb.Message.getFieldWithDefault(msg, 13, ""), - durationTotal: jspb.Message.getFieldWithDefault(msg, 14, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lavanet.lava.subscription.Subscription} - */ -proto.lavanet.lava.subscription.Subscription.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lavanet.lava.subscription.Subscription; - return proto.lavanet.lava.subscription.Subscription.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lavanet.lava.subscription.Subscription} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lavanet.lava.subscription.Subscription} - */ -proto.lavanet.lava.subscription.Subscription.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setCreator(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setConsumer(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBlock(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPlanIndex(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setPlanBlock(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setDurationBought(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint64()); - msg.setDurationLeft(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMonthExpiryTime(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMonthCuTotal(value); - break; - case 11: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMonthCuLeft(value); - break; - case 13: - var value = /** @type {string} */ (reader.readString()); - msg.setCluster(value); - break; - case 14: - var value = /** @type {number} */ (reader.readUint64()); - msg.setDurationTotal(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.lavanet.lava.subscription.Subscription.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lavanet.lava.subscription.Subscription.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lavanet.lava.subscription.Subscription} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.lavanet.lava.subscription.Subscription.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCreator(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getConsumer(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getBlock(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getPlanIndex(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getPlanBlock(); - if (f !== 0) { - writer.writeUint64( - 5, - f - ); - } - f = message.getDurationBought(); - if (f !== 0) { - writer.writeUint64( - 6, - f - ); - } - f = message.getDurationLeft(); - if (f !== 0) { - writer.writeUint64( - 7, - f - ); - } - f = message.getMonthExpiryTime(); - if (f !== 0) { - writer.writeUint64( - 8, - f - ); - } - f = message.getMonthCuTotal(); - if (f !== 0) { - writer.writeUint64( - 10, - f - ); - } - f = message.getMonthCuLeft(); - if (f !== 0) { - writer.writeUint64( - 11, - f - ); - } - f = message.getCluster(); - if (f.length > 0) { - writer.writeString( - 13, - f - ); - } - f = message.getDurationTotal(); - if (f !== 0) { - writer.writeUint64( - 14, - f - ); - } -}; - - -/** - * optional string creator = 1; - * @return {string} - */ -proto.lavanet.lava.subscription.Subscription.prototype.getCreator = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.subscription.Subscription} returns this - */ -proto.lavanet.lava.subscription.Subscription.prototype.setCreator = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string consumer = 2; - * @return {string} - */ -proto.lavanet.lava.subscription.Subscription.prototype.getConsumer = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.subscription.Subscription} returns this - */ -proto.lavanet.lava.subscription.Subscription.prototype.setConsumer = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint64 block = 3; - * @return {number} - */ -proto.lavanet.lava.subscription.Subscription.prototype.getBlock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.subscription.Subscription} returns this - */ -proto.lavanet.lava.subscription.Subscription.prototype.setBlock = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional string plan_index = 4; - * @return {string} - */ -proto.lavanet.lava.subscription.Subscription.prototype.getPlanIndex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.subscription.Subscription} returns this - */ -proto.lavanet.lava.subscription.Subscription.prototype.setPlanIndex = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional uint64 plan_block = 5; - * @return {number} - */ -proto.lavanet.lava.subscription.Subscription.prototype.getPlanBlock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.subscription.Subscription} returns this - */ -proto.lavanet.lava.subscription.Subscription.prototype.setPlanBlock = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional uint64 duration_bought = 6; - * @return {number} - */ -proto.lavanet.lava.subscription.Subscription.prototype.getDurationBought = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.subscription.Subscription} returns this - */ -proto.lavanet.lava.subscription.Subscription.prototype.setDurationBought = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional uint64 duration_left = 7; - * @return {number} - */ -proto.lavanet.lava.subscription.Subscription.prototype.getDurationLeft = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.subscription.Subscription} returns this - */ -proto.lavanet.lava.subscription.Subscription.prototype.setDurationLeft = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional uint64 month_expiry_time = 8; - * @return {number} - */ -proto.lavanet.lava.subscription.Subscription.prototype.getMonthExpiryTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.subscription.Subscription} returns this - */ -proto.lavanet.lava.subscription.Subscription.prototype.setMonthExpiryTime = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional uint64 month_cu_total = 10; - * @return {number} - */ -proto.lavanet.lava.subscription.Subscription.prototype.getMonthCuTotal = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.subscription.Subscription} returns this - */ -proto.lavanet.lava.subscription.Subscription.prototype.setMonthCuTotal = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional uint64 month_cu_left = 11; - * @return {number} - */ -proto.lavanet.lava.subscription.Subscription.prototype.getMonthCuLeft = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.subscription.Subscription} returns this - */ -proto.lavanet.lava.subscription.Subscription.prototype.setMonthCuLeft = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional string cluster = 13; - * @return {string} - */ -proto.lavanet.lava.subscription.Subscription.prototype.getCluster = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); -}; - - -/** - * @param {string} value - * @return {!proto.lavanet.lava.subscription.Subscription} returns this - */ -proto.lavanet.lava.subscription.Subscription.prototype.setCluster = function(value) { - return jspb.Message.setProto3StringField(this, 13, value); -}; - - -/** - * optional uint64 duration_total = 14; - * @return {number} - */ -proto.lavanet.lava.subscription.Subscription.prototype.getDurationTotal = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.lavanet.lava.subscription.Subscription} returns this - */ -proto.lavanet.lava.subscription.Subscription.prototype.setDurationTotal = function(value) { - return jspb.Message.setProto3IntField(this, 14, value); -}; - - -goog.object.extend(exports, proto.lavanet.lava.subscription); diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/subscription/subscription_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/subscription/subscription_pb_service.d.ts deleted file mode 100644 index d940d850d3..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/subscription/subscription_pb_service.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.subscription -// file: lavanet/lava/subscription/subscription.proto - diff --git a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/subscription/subscription_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/subscription/subscription_pb_service.js deleted file mode 100644 index d940d850d3..0000000000 --- a/ecosystem/lava-sdk/src/grpc_web_services/lavanet/lava/subscription/subscription_pb_service.js +++ /dev/null @@ -1,3 +0,0 @@ -// package: lavanet.lava.subscription -// file: lavanet/lava/subscription/subscription.proto - diff --git a/ecosystem/lava-sdk/src/rpcconsumer/rpcconsumer_server.ts b/ecosystem/lava-sdk/src/rpcconsumer/rpcconsumer_server.ts index 778700ead4..dfb5578ff2 100644 --- a/ecosystem/lava-sdk/src/rpcconsumer/rpcconsumer_server.ts +++ b/ecosystem/lava-sdk/src/rpcconsumer/rpcconsumer_server.ts @@ -9,6 +9,7 @@ import { ConsumerConsistency } from "./consumerConsistency"; import { BaseChainParser, SendRelayOptions, + SendRelaysBatchOptions, SendRestRelayOptions, } from "../chainlib/base_chain_parser"; import { @@ -88,7 +89,9 @@ export class RPCConsumerServer { }; } - async sendRelay(options: SendRelayOptions | SendRestRelayOptions) { + async sendRelay( + options: SendRelayOptions | SendRelaysBatchOptions | SendRestRelayOptions + ) { const chainMessage = this.chainParser.parseMsg(options); const unwantedProviders = new Set(); const relayData = { diff --git a/ecosystem/lava-sdk/src/sdk/sdk.ts b/ecosystem/lava-sdk/src/sdk/sdk.ts index 7255a5f4c0..dafa05a142 100644 --- a/ecosystem/lava-sdk/src/sdk/sdk.ts +++ b/ecosystem/lava-sdk/src/sdk/sdk.ts @@ -19,6 +19,7 @@ import { APIInterfaceRest, APIInterfaceTendermintRPC, SendRelayOptions, + SendRelaysBatchOptions, SendRestRelayOptions, } from "../chainlib/base_chain_parser"; import { JsonRpcChainParser } from "../chainlib/jsonrpc"; @@ -407,7 +408,7 @@ export class LavaSDK { } getRpcConsumerServer( - options: SendRelayOptions | SendRestRelayOptions + options: SendRelayOptions | SendRelaysBatchOptions | SendRestRelayOptions ): RPCConsumerServer | Error { const routerMap = this.rpcConsumerServerRouter; const chainID = options.chainId; @@ -494,7 +495,9 @@ export class LavaSDK { } // the inner async function throws on relay error - public async sendRelay(options: SendRelayOptions | SendRestRelayOptions) { + public async sendRelay( + options: SendRelayOptions | SendRelaysBatchOptions | SendRestRelayOptions + ) { const rpcConsumerServer = this.getRpcConsumerServer(options); if (rpcConsumerServer instanceof Error) { throw Logger.fatal( @@ -526,7 +529,7 @@ export class LavaSDK { } protected isRest( - options: SendRelayOptions | SendRestRelayOptions + options: SendRelayOptions | SendRelaysBatchOptions | SendRestRelayOptions ): options is SendRestRelayOptions { return "connectionType" in options; // how to check which options were given } diff --git a/ecosystem/lava-sdk/src/util/apiCollection.ts b/ecosystem/lava-sdk/src/util/apiCollection.ts new file mode 100644 index 0000000000..ea83098be0 --- /dev/null +++ b/ecosystem/lava-sdk/src/util/apiCollection.ts @@ -0,0 +1,20 @@ +import { + Api, + SpecCategory, +} from "../grpc_web_services/lavanet/lava/spec/api_collection_pb"; + +export function CombineSpecCategories( + first: SpecCategory, + second: SpecCategory +): SpecCategory { + const combined = new SpecCategory(); + const firstObj = first.toObject(); + const secondObj = second.toObject(); + + combined.setDeterministic(firstObj.deterministic && secondObj.deterministic); + combined.setLocal(firstObj.local || secondObj.local); + combined.setSubscription(firstObj.subscription || secondObj.subscription); + combined.setStateful(firstObj.stateful + secondObj.stateful); + combined.setHangingApi(firstObj.hangingApi || secondObj.hangingApi); + return combined; +} diff --git a/ecosystem/lava-sdk/src/util/common.ts b/ecosystem/lava-sdk/src/util/common.ts index dcf4a658c4..3af9a4d02c 100644 --- a/ecosystem/lava-sdk/src/util/common.ts +++ b/ecosystem/lava-sdk/src/util/common.ts @@ -1,4 +1,7 @@ -import { JsonrpcMessage } from "../chainlib/chainproxy/rpcInterfaceMessages/json_rpc_message"; +import { + JsonrpcBatchMessage, + JsonrpcMessage, +} from "../chainlib/chainproxy/rpcInterfaceMessages/json_rpc_message"; export function base64ToUint8Array(str: string): Uint8Array { const buffer = Buffer.from(str, "base64"); @@ -9,7 +12,7 @@ export function base64ToUint8Array(str: string): Uint8Array { export function generateRPCData(rpcMessage: JsonrpcMessage): string { const stringifyVersion = JSON.stringify(rpcMessage.version); const stringifyMethod = JSON.stringify(rpcMessage.method); - const stringifyParam = JSON.stringify(rpcMessage.params, (key, value) => { + const stringifyParam = JSON.stringify(rpcMessage.params, (_, value) => { if (typeof value === "bigint") { return value.toString(); } @@ -18,6 +21,10 @@ export function generateRPCData(rpcMessage: JsonrpcMessage): string { return `{"jsonrpc": ${stringifyVersion}, "id": ${rpcMessage.id}, "method": ${stringifyMethod}, "params": ${stringifyParam}}`; } +export function generateBatchRPCData(rpcMessage: JsonrpcBatchMessage): string { + return `[${rpcMessage.batch.map(generateRPCData).join(",")}]`; +} + export function parseLong(long: Long): number { /** * this function will parse long to a 64bit number, diff --git a/protocol/chainlib/chainproxy/rpcclient/client.go b/protocol/chainlib/chainproxy/rpcclient/client.go index c729891762..b3bd676988 100644 --- a/protocol/chainlib/chainproxy/rpcclient/client.go +++ b/protocol/chainlib/chainproxy/rpcclient/client.go @@ -28,6 +28,7 @@ import ( "time" "github.com/ethereum/go-ethereum/log" + "github.com/lavanet/lava/utils" ) var ( @@ -390,7 +391,11 @@ func (c *Client) BatchCallContext(ctx context.Context, b []BatchElemWithId, stri msgs[i] = msg op.ids[i] = msg.ID } - + timeToSend := time.Duration(0) + deadline, ok := ctx.Deadline() + if ok { + timeToSend = time.Until(deadline) + } var err error if c.isHTTP { err = c.sendBatchHTTP(ctx, op, msgs, strict) @@ -399,7 +404,8 @@ func (c *Client) BatchCallContext(ctx context.Context, b []BatchElemWithId, stri } // Wait for all responses to come back. - for n := 0; n < len(b) && err == nil; n++ { + n := 0 + for ; n < len(b) && err == nil; n++ { var resp *JsonrpcMessage resp, err = op.wait(ctx, c) if err != nil { @@ -408,7 +414,10 @@ func (c *Client) BatchCallContext(ctx context.Context, b []BatchElemWithId, stri // Find the element corresponding to this response. // The element is guaranteed to be present because dispatch // only sends valid IDs to our channel. - byOrder := byID[string(resp.ID)] + byOrder, found := byID[string(resp.ID)] + if !found { + utils.LavaFormatError("invalid ID returned", nil, utils.LogAttr("id", string(resp.ID))) + } elem := &b[byOrder] if resp.Error != nil { elem.Error = resp.Error @@ -416,6 +425,19 @@ func (c *Client) BatchCallContext(ctx context.Context, b []BatchElemWithId, stri } elem.Error = json.Unmarshal(resp.Result, elem.Result) } + // when timing out, return extra data on partial ids support + if err != nil && n > 0 && n < len(b) { + validIds := []json.RawMessage{} + missingIds := []json.RawMessage{} + for _, elem := range b { + if elem.Error == nil && elem.Result == nil { + missingIds = append(missingIds, elem.ID) + } else { + validIds = append(validIds, elem.ID) + } + } + return utils.LavaFormatError("partial batches response", err, utils.LogAttr("timeToProcess", timeToSend), utils.LogAttr("supported", n), utils.LogAttr("valid_ids", validIds), utils.LogAttr("missing_ids", missingIds)) + } return err } diff --git a/protocol/chainlib/chainproxy/rpcclient/handler.go b/protocol/chainlib/chainproxy/rpcclient/handler.go index 84f1a31d49..a3812e35cd 100755 --- a/protocol/chainlib/chainproxy/rpcclient/handler.go +++ b/protocol/chainlib/chainproxy/rpcclient/handler.go @@ -277,7 +277,7 @@ func (h *handler) handleSubscriptionResultTendermint(msg *JsonrpcMessage) { func (h *handler) handleResponse(msg *JsonrpcMessage) { op := h.respWait[string(msg.ID)] if op == nil { - h.log.Debug("Unsolicited RPC response", "reqid", idForLog{msg.ID}) + utils.LavaFormatWarning("Unsolicited RPC response", nil, utils.LogAttr("req-id", idForLog{msg.ID}.String())) return } delete(h.respWait, string(msg.ID)) diff --git a/scripts/init_e2e.sh b/scripts/init_e2e.sh index 8c59784adb..70c76adf2b 100755 --- a/scripts/init_e2e.sh +++ b/scripts/init_e2e.sh @@ -8,6 +8,7 @@ source $__dir/useful_commands.sh GASPRICE="0.000000001ulava" # Specs proposal +echo ---- Specs proposal ---- lavad tx gov submit-legacy-proposal spec-add ./cookbook/specs/spec_add_ethereum.json,./cookbook/specs/spec_add_ibc.json,./cookbook/specs/spec_add_cosmossdk.json,./cookbook/specs/spec_add_lava.json --lava-dev-test -y --from alice --gas-adjustment "1.5" --gas "auto" --gas-prices $GASPRICE wait_next_block lavad tx gov deposit 1 100ulava -y --from alice --gas-adjustment "1.5" --gas "auto" --gas-prices $GASPRICE @@ -17,6 +18,7 @@ lavad tx gov vote 1 yes -y --from alice --gas-adjustment "1.5" --gas "auto" --ga sleep 6 # need to sleep because plan policies need the specs when setting chain policies verifications # Plans proposal +echo ---- Plans proposal ---- wait_next_block lavad tx gov submit-legacy-proposal plans-add ./cookbook/plans/default.json,./cookbook/plans/temporary-add.json -y --from alice --gas-adjustment "1.5" --gas "auto" --gas-prices $GASPRICE wait_next_block @@ -26,6 +28,7 @@ lavad tx gov vote 2 yes -y --from alice --gas-adjustment "1.5" --gas "auto" --ga sleep 6 # Plan removal (of one) +echo ---- Plans removal ---- wait_next_block lavad tx gov submit-legacy-proposal plans-del ./cookbook/plans/temporary-del.json -y --from alice --gas-adjustment "1.5" --gas "auto" --gas-prices $GASPRICE wait_next_block diff --git a/scripts/pre_setups/init_lava_only_test_5.sh b/scripts/pre_setups/init_lava_only_test_5.sh index fbfafb09c7..93840f99bf 100755 --- a/scripts/pre_setups/init_lava_only_test_5.sh +++ b/scripts/pre_setups/init_lava_only_test_5.sh @@ -36,10 +36,10 @@ PROVIDER5_LISTENER="127.0.0.1:2225" lavad tx subscription buy DefaultPlan $(lavad keys show user1 -a) -y --from user1 --gas-adjustment "1.5" --gas "auto" --gas-prices $GASPRICE wait_next_block lavad tx pairing stake-provider "LAV1" $PROVIDERSTAKE "$PROVIDER1_LISTENER,1" 1 -y --from servicer1 --provider-moniker "dummyMoniker" --gas-adjustment "1.5" --gas "auto" --gas-prices $GASPRICE -lavad tx pairing stake-provider "LAV1" $PROVIDERSTAKE "$PROVIDER1_LISTENER,1" 1 -y --from servicer2 --provider-moniker "dummyMoniker" --gas-adjustment "1.5" --gas "auto" --gas-prices $GASPRICE -lavad tx pairing stake-provider "LAV1" $PROVIDERSTAKE "$PROVIDER1_LISTENER,1" 1 -y --from servicer3 --provider-moniker "dummyMoniker" --gas-adjustment "1.5" --gas "auto" --gas-prices $GASPRICE -lavad tx pairing stake-provider "LAV1" $PROVIDERSTAKE "$PROVIDER1_LISTENER,1" 1 -y --from servicer4 --provider-moniker "dummyMoniker" --gas-adjustment "1.5" --gas "auto" --gas-prices $GASPRICE -lavad tx pairing stake-provider "LAV1" $PROVIDERSTAKE "$PROVIDER1_LISTENER,1" 1 -y --from servicer5 --provider-moniker "dummyMoniker" --gas-adjustment "1.5" --gas "auto" --gas-prices $GASPRICE +lavad tx pairing stake-provider "LAV1" $PROVIDERSTAKE "$PROVIDER2_LISTENER,1" 1 -y --from servicer2 --provider-moniker "dummyMoniker" --gas-adjustment "1.5" --gas "auto" --gas-prices $GASPRICE +lavad tx pairing stake-provider "LAV1" $PROVIDERSTAKE "$PROVIDER3_LISTENER,1" 1 -y --from servicer3 --provider-moniker "dummyMoniker" --gas-adjustment "1.5" --gas "auto" --gas-prices $GASPRICE +lavad tx pairing stake-provider "LAV1" $PROVIDERSTAKE "$PROVIDER4_LISTENER,1" 1 -y --from servicer4 --provider-moniker "dummyMoniker" --gas-adjustment "1.5" --gas "auto" --gas-prices $GASPRICE +lavad tx pairing stake-provider "LAV1" $PROVIDERSTAKE "$PROVIDER5_LISTENER,1" 1 -y --from servicer5 --provider-moniker "dummyMoniker" --gas-adjustment "1.5" --gas "auto" --gas-prices $GASPRICE sleep_until_next_epoch diff --git a/scripts/setup_providers.sh b/scripts/setup_providers.sh index ed73317bf7..bb5b5c1d7e 100755 --- a/scripts/setup_providers.sh +++ b/scripts/setup_providers.sh @@ -11,6 +11,7 @@ screen -wipe EXTRA_PROVIDER_FLAGS="$EXTRA_PROVIDER_FLAGS --chain-id=lava" EXTRA_PORTAL_FLAGS="$EXTRA_PORTAL_FLAGS --chain-id=lava" +GEOLOCATION=2 PROVIDER1_LISTENER="127.0.0.1:2221" PROVIDER2_LISTENER="127.0.0.1:2222" @@ -61,7 +62,7 @@ $PROVIDER1_LISTENER AXELAR grpc '$AXELAR_GRPC' \ $PROVIDER1_LISTENER AVAX jsonrpc '$AVALANCH_PJRPC' \ $PROVIDER1_LISTENER FVM jsonrpc '$FVM_JRPC' \ $PROVIDER1_LISTENER NEAR jsonrpc '$NEAR_JRPC' \ -$EXTRA_PROVIDER_FLAGS --metrics-listen-address ":7780" --geolocation 1 --log_level debug --from servicer1 2>&1 | tee $LOGS_DIR/PROVIDER1.log" && sleep 0.25 +$EXTRA_PROVIDER_FLAGS --metrics-listen-address ":7780" --geolocation "$GEOLOCATION" --log_level debug --from servicer1 2>&1 | tee $LOGS_DIR/PROVIDER1.log" && sleep 0.25 # $PROVIDER1_LISTENER MANTLE jsonrpc '$MANTLE_JRPC' \ screen -d -m -S provider2 bash -c "source ~/.bashrc; lavap rpcprovider \ @@ -69,7 +70,7 @@ $PROVIDER2_LISTENER ETH1 jsonrpc '$ETH_RPC_WS' \ $PROVIDER2_LISTENER LAV1 rest '$LAVA_REST' \ $PROVIDER2_LISTENER LAV1 tendermintrpc '$LAVA_RPC,$LAVA_RPC' \ $PROVIDER2_LISTENER LAV1 grpc '$LAVA_GRPC' \ -$EXTRA_PROVIDER_FLAGS --geolocation 1 --log_level debug --from servicer2 --chain-id lava 2>&1 | tee $LOGS_DIR/PROVIDER2.log" && sleep 0.25 +$EXTRA_PROVIDER_FLAGS --geolocation "$GEOLOCATION" --log_level debug --from servicer2 --chain-id lava 2>&1 | tee $LOGS_DIR/PROVIDER2.log" && sleep 0.25 # $PROVIDER2_LISTENER MANTLE jsonrpc '$MANTLE_JRPC' \ screen -d -m -S provider3 bash -c "source ~/.bashrc; lavap rpcprovider \ @@ -77,12 +78,12 @@ $PROVIDER3_LISTENER ETH1 jsonrpc '$ETH_RPC_WS' \ $PROVIDER3_LISTENER LAV1 rest '$LAVA_REST' \ $PROVIDER3_LISTENER LAV1 tendermintrpc '$LAVA_RPC,$LAVA_RPC' \ $PROVIDER3_LISTENER LAV1 grpc '$LAVA_GRPC' \ -$EXTRA_PROVIDER_FLAGS --geolocation 1 --log_level debug --from servicer3 --chain-id lava 2>&1 | tee $LOGS_DIR/PROVIDER3.log" && sleep 0.25 +$EXTRA_PROVIDER_FLAGS --geolocation "$GEOLOCATION" --log_level debug --from servicer3 --chain-id lava 2>&1 | tee $LOGS_DIR/PROVIDER3.log" && sleep 0.25 # $PROVIDER3_LISTENER MANTLE jsonrpc '$MANTLE_JRPC' \ # Setup Portal screen -d -m -S portals bash -c "source ~/.bashrc; lavap rpcconsumer consumer_examples/full_consumer_example.yml\ -$EXTRA_PORTAL_FLAGS --cache-be "127.0.0.1:7778" --geolocation 1 --debug-relays --log_level debug --from user1 --chain-id lava --allow-insecure-provider-dialing --strategy distributed 2>&1 | tee $LOGS_DIR/PORTAL.log" && sleep 0.25 +$EXTRA_PORTAL_FLAGS --cache-be "127.0.0.1:7778" --geolocation "$GEOLOCATION" --debug-relays --log_level debug --from user1 --chain-id lava --allow-insecure-provider-dialing --strategy distributed 2>&1 | tee $LOGS_DIR/PORTAL.log" && sleep 0.25 # 127.0.0.1:3385 MANTLE jsonrpc \ echo "--- setting up screens done ---"