@vocdoni/proto 1.15.2 → 1.15.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/build/js/client-store/index.d.ts +3 -0
  2. package/build/js/client-store/index.js +2904 -0
  3. package/build/js/client-store/index.mjs +2891 -0
  4. package/build/js/entity-e8dfcd83.d.ts +1804 -0
  5. package/build/js/index-05df597a.d.ts +1972 -0
  6. package/build/js/index-5d7943a4.d.ts +10656 -0
  7. package/build/js/index-d457aeb5.d.ts +1924 -0
  8. package/build/js/index.d.ts +5 -0
  9. package/build/js/index.js +406 -588
  10. package/build/js/index.mjs +10682 -0
  11. package/build/js/metadata/index.d.ts +3 -0
  12. package/build/js/metadata/index.js +4314 -0
  13. package/build/js/metadata/index.mjs +4271 -0
  14. package/build/js/vochain/index.d.ts +2 -0
  15. package/build/js/vochain/index.js +6489 -0
  16. package/build/js/vochain/index.mjs +6414 -0
  17. package/package.json +7 -3
  18. package/.github/workflows/on-release.yml +0 -19
  19. package/.github/workflows/post-merge.yml +0 -30
  20. package/AUTHORS +0 -7
  21. package/DEVELOPING.md +0 -86
  22. package/Makefile +0 -140
  23. package/bin/protoc +0 -0
  24. package/code-of-conduct.md +0 -77
  25. package/go.mod +0 -8
  26. package/go.sum +0 -69
  27. package/include/google/protobuf/any.proto +0 -158
  28. package/include/google/protobuf/api.proto +0 -208
  29. package/include/google/protobuf/compiler/plugin.proto +0 -183
  30. package/include/google/protobuf/descriptor.proto +0 -909
  31. package/include/google/protobuf/duration.proto +0 -116
  32. package/include/google/protobuf/empty.proto +0 -52
  33. package/include/google/protobuf/field_mask.proto +0 -245
  34. package/include/google/protobuf/source_context.proto +0 -48
  35. package/include/google/protobuf/struct.proto +0 -95
  36. package/include/google/protobuf/timestamp.proto +0 -147
  37. package/include/google/protobuf/type.proto +0 -187
  38. package/include/google/protobuf/wrappers.proto +0 -123
  39. package/src/client-store/account.proto +0 -54
  40. package/src/client-store/backup.proto +0 -65
  41. package/src/client-store/gateway.proto +0 -35
  42. package/src/client-store/wallet.proto +0 -19
  43. package/src/ipfsSync/ipfssync.proto +0 -26
  44. package/src/metadata/entity.proto +0 -75
  45. package/src/metadata/feed.proto +0 -51
  46. package/src/metadata/process.proto +0 -38
  47. package/src/vocdoni-node/statedb.proto +0 -35
  48. package/src/vochain/vochain.proto +0 -493
  49. package/tsconfig.json +0 -15
  50. package/tsup.config.ts +0 -15
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@vocdoni/proto",
3
- "version": "1.15.2",
3
+ "version": "1.15.4",
4
+ "license": "GPL-3.0-or-later",
4
5
  "devDependencies": {
5
6
  "ts-node": "^9.1.1",
6
- "ts-proto": "^1.156.2",
7
+ "ts-proto": "^1.162.1",
7
8
  "tsup": "^6.5.0",
8
9
  "typescript": "^4.2.4"
9
10
  },
@@ -40,5 +41,8 @@
40
41
  "scripts": {
41
42
  "build": "make ts && tsup --dts --out-dir ./build/js",
42
43
  "clean": "rm -Rf build/ts build/js"
43
- }
44
+ },
45
+ "files": [
46
+ "build/js"
47
+ ]
44
48
  }
@@ -1,19 +0,0 @@
1
- name: Publish Package to npmjs
2
- on:
3
- release:
4
- types: [created]
5
- jobs:
6
- build:
7
- runs-on: ubuntu-latest
8
- steps:
9
- - uses: actions/checkout@v3
10
- - uses: actions/setup-node@v3
11
- with:
12
- node-version: '18.x'
13
- registry-url: 'https://registry.npmjs.org'
14
- scope: '@vocdoni'
15
- - run: yarn
16
- - run: yarn build
17
- - run: yarn publish
18
- env:
19
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -1,30 +0,0 @@
1
- ---
2
- name: Post merge build step
3
-
4
- on:
5
- push:
6
- branches:
7
- - master
8
- pull_request:
9
-
10
- jobs:
11
- protobuf-build:
12
- runs-on: ubuntu-latest
13
- steps:
14
- - name: Checkout code
15
- uses: actions/checkout@v3
16
- - uses: actions/setup-node@v3
17
- with:
18
- node-version: "18"
19
- - uses: actions/setup-go@v3
20
- - name: Build
21
- run: |
22
- make clean
23
- make init
24
- make all
25
- - name: Commit changes
26
- uses: stefanzweifel/git-auto-commit-action@v4
27
- with:
28
- commit_message: auto build commit
29
- env:
30
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package/AUTHORS DELETED
@@ -1,7 +0,0 @@
1
- # Below is a list of people and organizations that have contributed
2
- # to the Flutter project. Names should be added to the list like so:
3
- #
4
- # Name/Organization <email address>
5
-
6
- Vocdoni Roots MTU
7
- The Vocdoni Team
package/DEVELOPING.md DELETED
@@ -1,86 +0,0 @@
1
- # Developing
2
-
3
- ## Introduce changes in dvote-protobuf
4
-
5
- Do whatever changes you need to do in the `src/**/*.proto` files, and commit them.
6
-
7
- For example:
8
-
9
- ```sh
10
- git clone git@github.com:vocdoni/dvote-protobuf.git && cd dvote-protobuf
11
- git checkout -b feat-add-DummyMessage # don't use slashes (/)
12
- cat >> src/vochain/vochain.proto << EOF
13
- message DummyMessage {
14
- bytes payload = 1;
15
- }
16
- EOF
17
- git commit . -m "add DummyMessage"
18
- git push --set-upstream origin feat-add-DummyMessage
19
- ```
20
-
21
- if you use slashes in the branch name (say, `example/branch-name`), you won't be able to `go get go.vocdoni.io/proto@example/branch-name` in the next step due to https://github.com/golang/go/issues/32955
22
-
23
- You don't need to `make all`, just open a PR (see next step) and a github action will do the `make all` for you and autocommit the changes in your PR branch.
24
-
25
- ## Stage them in a PR of dvote-protobuf
26
-
27
- Now create a PR:
28
-
29
- https://github.com/vocdoni/dvote-protobuf/pull/new/feat-add-DummyMessage
30
-
31
- and wait a minute for the CI to run, it will auto commit the build changes
32
- ("auto build commit" is pushed to the PR automatically)
33
-
34
- Don't merge the PR, leave it "staged" (open) because you might want to introduce more changes while developing the other components.
35
-
36
- ## Use that "staged" dvote-protobuf in vocdoni-node
37
-
38
- ```sh
39
- git clone git@github.com:vocdoni/vocdoni-node.git && cd vocdoni-node
40
- git checkout -b wonderful-feature # here it doesn't matter if you use slashes (/)
41
- go get go.vocdoni.io/proto@feat-add-DummyMessage # this will pull the code from your PR
42
- go mod tidy
43
- git add go.mod go.sum
44
- git commit -m "bump go.vocdoni.io/proto@feat-add-DummyMessage"
45
- git push --set-upstream origin wonderful-feature
46
- ```
47
-
48
- Now if you create a PR in vocdoni-node with your `wonderful-feature` branch, you'll see the CI of vocdoni-node pulls the dvote-protobuf from `feat-add-DummyMessage`
49
-
50
- ## Use that "staged" dvote-protobuf in vocdoni-sdk
51
-
52
- ```sh
53
- git clone git@github.com:vocdoni/vocdoni-sdk.git && cd vocdoni-sdk
54
- git checkout -b wonderful-feature # here it doesn't matter if you use slashes (/)
55
- # edit package.json, so that @vocdoni/proto is pulled from github repo
56
- # "@vocdoni/proto": "vocdoni/dvote-protobuf#feat-add-DummyMessage"
57
- git add package.json
58
- git commit -m "pull @vocdoni/proto from branch feat-add-DummyMessage"
59
- git push --set-upstream origin wonderful-feature
60
- ```
61
-
62
- Now if you create a PR in vocdoni-sdk with your `wonderful-feature` branch, you'll see the CI of vocdoni-sdk pulls the dvote-protobuf from `feat-add-DummyMessage`
63
-
64
- # Merging
65
-
66
- When the feature is ready to be merged in all 3 repos (dvote-protobuf, vocdoni-node and vocdoni-sdk), you will:
67
-
68
- * First, merge the PR in dvote-protobuf, bump the version (say, `1.2.3`) and publish a release (see next step)
69
- * Then, in vocdoni-node: `go get go.vocdoni.io/proto@v1.2.3` and `go mod tidy`, commit those changes and squash them in the `wonderful-feature` PR, before merging.
70
- * Then, in vocdoni-sdk, edit `package.json` to point to the release `"@vocdoni/proto": "1.2.3"`, commit those changes an squash them in the `wonderful-feature` PR, before merging.
71
-
72
- # Release
73
-
74
- For publishing a new release, a github action has been created in
75
- order to minimize the work. Just follow these steps:
76
-
77
- - Checkout `master` branch: `git checkout master`
78
- - Update the version (say, `1.2.3`) in the `package.json` file
79
- - Commit the changes: `git commit package.json -m "@vocdoni/proto 1.2.3"`
80
- - Tag the commit: `git tag v1.2.3`
81
- - Push the ref and the tag: `git push origin master v1.2.3`
82
- - Create a new github release: https://github.com/vocdoni/dvote-protobuf/releases/new?tag=v1.2.3
83
-
84
- As soon as the github release is done, the github action will take care of the rest automatically: build the npm package and publish it on https://www.npmjs.com/package/@vocdoni/proto
85
-
86
- TODO(gui): automate the release creation step, using the github action, triggered by the push of a tag
package/Makefile DELETED
@@ -1,140 +0,0 @@
1
- SHELL := /bin/bash
2
- PATH := $(PATH):$(HOME)/.pub-cache/bin:$(PWD)/bin:$(HOME)/go/bin
3
- .DEFAULT_GOAL := help
4
-
5
- PROJECT_NAME=$(shell basename "$(PWD)")
6
- CLIENT_STORE_SOURCES=$(wildcard src/client-store/*.proto)
7
- METADATA_SOURCES=$(wildcard src/metadata/*.proto)
8
- VOCHAIN_SOURCES=$(wildcard src/vochain/*.proto)
9
- IPFSSYNC_SOURCES=$(wildcard src/ipfsSync/*.proto)
10
- VOCDONI_NODE_SOURCES=$(wildcard src/vocdoni-node/*.proto)
11
-
12
- PROTOC?=$(shell which protoc)
13
- $(if $(PROTOC),,$(eval PROTOC=bin/protoc))
14
- PROTOC_TS_PLUGIN := ./node_modules/.bin/protoc-gen-ts_proto
15
-
16
- define install_protoc
17
- @if [ "$(PROTOC)" == "bin/protoc" -a ! -x bin/protoc ]; then \
18
- case "$$(uname)" in \
19
- linux|Linux) \
20
- curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip > protoc.zip \
21
- ;;\
22
- darwin|Darwin) \
23
- curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.15.8/protoc-3.15.8-osx-x86_64.zip > protoc.zip \
24
- ;;\
25
- *) \
26
- echo "Unsupported platform: $$(uname)" ;\
27
- exit 1 ;\
28
- esac ;\
29
- unzip -d . protoc.zip ;\
30
- rm protoc.zip readme.txt;\
31
- fi
32
- endef
33
-
34
- define install_protoc_go
35
- @if [ "$(PROTOC)" == "bin/protoc" -a ! -x bin/protoc-gen-go ]; then \
36
- if [ ! -d "$$GOPATH" ] ; then \
37
- export GOPATH="$$HOME/go" ;\
38
- fi ; \
39
- go install google.golang.org/protobuf/cmd/protoc-gen-go ;\
40
- fi
41
- endef
42
-
43
- #-----------------------------------------------------------------------
44
- # HELP
45
- #-----------------------------------------------------------------------
46
-
47
- ## help: Display this message
48
-
49
- .PHONY: help
50
- help:
51
- @echo
52
- @echo " Available actions in "$(PROJECT_NAME)":"
53
- @echo
54
- @sed -n 's/^##//p' Makefile | column -t -s ':' | sed -e 's/^/ /'
55
- @echo
56
-
57
- ## :
58
-
59
- ## init: Install external dependencies
60
- init: protoc $(PROTOC_TS_PLUGIN) protoc-go-plugin
61
-
62
- ## clean: Remove the build artifacts
63
- clean:
64
- rm -Rf build include
65
-
66
- ## :
67
-
68
- #-----------------------------------------------------------------------
69
- # RECIPES
70
- #-----------------------------------------------------------------------
71
-
72
-
73
- ## all: Generate the source code for all supported languages
74
- all: golang js
75
-
76
- ## golang: Generate the Golang protobuf artifacts
77
- golang: protoc protoc-go-plugin build/go/models
78
-
79
- build/go/models: $(VOCHAIN_SOURCES) $(VOCDONI_NODE_SOURCES) $(IPFSSYNC_SOURCES)
80
- rm -rf $@
81
- mkdir -p $@
82
- for f in $^ ; do \
83
- $(PROTOC) --go_opt=paths=source_relative --experimental_allow_proto3_optional -I=$(PWD)/src --go_out=$@ $(PWD)/$$f ; \
84
- done
85
- find $@ -iname "*.go" -type f -exec mv {} $@ \;
86
- find $@ -type d -empty -delete
87
- @touch $@
88
-
89
-
90
- ## dart: Generate the Dart protobuf artifacts
91
- dart: protoc protoc-dart-plugin build/dart
92
-
93
- build/dart: $(CLIENT_STORE_SOURCES) $(METADATA_SOURCES) $(VOCHAIN_SOURCES)
94
- mkdir -p $@
95
- for f in $^ ; do \
96
- $(PROTOC) --experimental_allow_proto3_optional -I=$(PWD)/src --dart_out=$(PWD)/$@ $(PWD)/$$f ; \
97
- done
98
- @touch $@
99
-
100
- ## ts: Generate the TypeScript protobuf artifacts
101
- ts: protoc $(PROTOC_TS_PLUGIN) build/ts
102
-
103
- build/ts: $(VOCHAIN_SOURCES) $(CLIENT_STORE_SOURCES) $(METADATA_SOURCES)
104
- mkdir -p build
105
- cp -r typescript build/ts
106
- mkdir -p $@
107
- for f in $^ ; do \
108
- $(PROTOC) -I=$(PWD)/src --plugin=$(PROTOC_TS_PLUGIN) --experimental_allow_proto3_optional --ts_proto_opt=esModuleInterop=true --ts_proto_opt=exportCommonSymbols=false --ts_proto_opt=oneof=unions --ts_proto_out=$@ $(PWD)/$$f ; \
109
- done
110
- @touch $@
111
- npm i --no-package-lock
112
-
113
- ## js: Generate the JavaScript bundle
114
- js: ts build/js
115
-
116
- build/js:
117
- yarn
118
- yarn build
119
-
120
- #-----------------------------------------------------------------------
121
- # COMPILERS
122
- #-----------------------------------------------------------------------
123
-
124
- .PHONY: protoc
125
- protoc:
126
- $(call install_protoc)
127
-
128
- # DART
129
- .PHONY: protoc-dart-plugin
130
- protoc-dart-plugin:
131
- dart pub global activate protoc_plugin
132
-
133
- # TS
134
- $(PROTOC_TS_PLUGIN):
135
- @npm install ts-proto --no-package-lock
136
-
137
- # GO
138
- .PHONY: protoc-go-plugin
139
- protoc-go-plugin:
140
- $(call install_protoc_go)
package/bin/protoc DELETED
Binary file
@@ -1,77 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, sex characteristics, gender identity and expression,
9
- level of experience, education, socio-economic status, nationality, personal
10
- appearance, race, religion, or sexual identity and orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies within all project spaces, and it also applies when
49
- an individual is representing the project or its community in public spaces.
50
- Examples of representing a project or community include using an official
51
- project e-mail address, posting via an official social media account, or acting
52
- as an appointed representative at an online or offline event. Representation of
53
- a project may be further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
-
73
- [homepage]: https://www.contributor-covenant.org
74
-
75
- For answers to common questions about this code of conduct, see
76
- https://www.contributor-covenant.org/faq
77
-
package/go.mod DELETED
@@ -1,8 +0,0 @@
1
- module go.vocdoni.io/proto
2
-
3
- go 1.16
4
-
5
- require (
6
- google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 // indirect
7
- google.golang.org/protobuf v1.27.1
8
- )
package/go.sum DELETED
@@ -1,69 +0,0 @@
1
- cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
2
- github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
3
- github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
4
- github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
5
- github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
6
- github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
7
- github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
8
- github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
9
- github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
10
- github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
11
- github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
12
- github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
13
- github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
14
- github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
15
- github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
16
- github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
17
- github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
18
- github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
19
- github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
20
- github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
21
- github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
22
- github.com/google/go-cmp v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w=
23
- github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
24
- github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
25
- github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
26
- golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
27
- golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
28
- golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
29
- golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
30
- golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
31
- golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
32
- golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
33
- golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
34
- golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
35
- golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
36
- golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
37
- golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
38
- golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
39
- golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
40
- golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
41
- golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
42
- golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
43
- golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
44
- golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
45
- golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
46
- golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
47
- golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
48
- google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
49
- google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
50
- google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
51
- google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
52
- google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
53
- google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
54
- google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
55
- google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
56
- google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
57
- google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
58
- google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
59
- google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
60
- google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
61
- google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
62
- google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
63
- google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c=
64
- google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
65
- google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
66
- google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ=
67
- google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
68
- honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
69
- honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
@@ -1,158 +0,0 @@
1
- // Protocol Buffers - Google's data interchange format
2
- // Copyright 2008 Google Inc. All rights reserved.
3
- // https://developers.google.com/protocol-buffers/
4
- //
5
- // Redistribution and use in source and binary forms, with or without
6
- // modification, are permitted provided that the following conditions are
7
- // met:
8
- //
9
- // * Redistributions of source code must retain the above copyright
10
- // notice, this list of conditions and the following disclaimer.
11
- // * Redistributions in binary form must reproduce the above
12
- // copyright notice, this list of conditions and the following disclaimer
13
- // in the documentation and/or other materials provided with the
14
- // distribution.
15
- // * Neither the name of Google Inc. nor the names of its
16
- // contributors may be used to endorse or promote products derived from
17
- // this software without specific prior written permission.
18
- //
19
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
- // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23
- // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
- // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
- // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
- // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
- // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
- // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
- // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
-
31
- syntax = "proto3";
32
-
33
- package google.protobuf;
34
-
35
- option csharp_namespace = "Google.Protobuf.WellKnownTypes";
36
- option go_package = "google.golang.org/protobuf/types/known/anypb";
37
- option java_package = "com.google.protobuf";
38
- option java_outer_classname = "AnyProto";
39
- option java_multiple_files = true;
40
- option objc_class_prefix = "GPB";
41
-
42
- // `Any` contains an arbitrary serialized protocol buffer message along with a
43
- // URL that describes the type of the serialized message.
44
- //
45
- // Protobuf library provides support to pack/unpack Any values in the form
46
- // of utility functions or additional generated methods of the Any type.
47
- //
48
- // Example 1: Pack and unpack a message in C++.
49
- //
50
- // Foo foo = ...;
51
- // Any any;
52
- // any.PackFrom(foo);
53
- // ...
54
- // if (any.UnpackTo(&foo)) {
55
- // ...
56
- // }
57
- //
58
- // Example 2: Pack and unpack a message in Java.
59
- //
60
- // Foo foo = ...;
61
- // Any any = Any.pack(foo);
62
- // ...
63
- // if (any.is(Foo.class)) {
64
- // foo = any.unpack(Foo.class);
65
- // }
66
- //
67
- // Example 3: Pack and unpack a message in Python.
68
- //
69
- // foo = Foo(...)
70
- // any = Any()
71
- // any.Pack(foo)
72
- // ...
73
- // if any.Is(Foo.DESCRIPTOR):
74
- // any.Unpack(foo)
75
- // ...
76
- //
77
- // Example 4: Pack and unpack a message in Go
78
- //
79
- // foo := &pb.Foo{...}
80
- // any, err := anypb.New(foo)
81
- // if err != nil {
82
- // ...
83
- // }
84
- // ...
85
- // foo := &pb.Foo{}
86
- // if err := any.UnmarshalTo(foo); err != nil {
87
- // ...
88
- // }
89
- //
90
- // The pack methods provided by protobuf library will by default use
91
- // 'type.googleapis.com/full.type.name' as the type URL and the unpack
92
- // methods only use the fully qualified type name after the last '/'
93
- // in the type URL, for example "foo.bar.com/x/y.z" will yield type
94
- // name "y.z".
95
- //
96
- //
97
- // JSON
98
- // ====
99
- // The JSON representation of an `Any` value uses the regular
100
- // representation of the deserialized, embedded message, with an
101
- // additional field `@type` which contains the type URL. Example:
102
- //
103
- // package google.profile;
104
- // message Person {
105
- // string first_name = 1;
106
- // string last_name = 2;
107
- // }
108
- //
109
- // {
110
- // "@type": "type.googleapis.com/google.profile.Person",
111
- // "firstName": <string>,
112
- // "lastName": <string>
113
- // }
114
- //
115
- // If the embedded message type is well-known and has a custom JSON
116
- // representation, that representation will be embedded adding a field
117
- // `value` which holds the custom JSON in addition to the `@type`
118
- // field. Example (for message [google.protobuf.Duration][]):
119
- //
120
- // {
121
- // "@type": "type.googleapis.com/google.protobuf.Duration",
122
- // "value": "1.212s"
123
- // }
124
- //
125
- message Any {
126
- // A URL/resource name that uniquely identifies the type of the serialized
127
- // protocol buffer message. This string must contain at least
128
- // one "/" character. The last segment of the URL's path must represent
129
- // the fully qualified name of the type (as in
130
- // `path/google.protobuf.Duration`). The name should be in a canonical form
131
- // (e.g., leading "." is not accepted).
132
- //
133
- // In practice, teams usually precompile into the binary all types that they
134
- // expect it to use in the context of Any. However, for URLs which use the
135
- // scheme `http`, `https`, or no scheme, one can optionally set up a type
136
- // server that maps type URLs to message definitions as follows:
137
- //
138
- // * If no scheme is provided, `https` is assumed.
139
- // * An HTTP GET on the URL must yield a [google.protobuf.Type][]
140
- // value in binary format, or produce an error.
141
- // * Applications are allowed to cache lookup results based on the
142
- // URL, or have them precompiled into a binary to avoid any
143
- // lookup. Therefore, binary compatibility needs to be preserved
144
- // on changes to types. (Use versioned type names to manage
145
- // breaking changes.)
146
- //
147
- // Note: this functionality is not currently available in the official
148
- // protobuf release, and it is not used for type URLs beginning with
149
- // type.googleapis.com.
150
- //
151
- // Schemes other than `http`, `https` (or the empty scheme) might be
152
- // used with implementation specific semantics.
153
- //
154
- string type_url = 1;
155
-
156
- // Must be a valid serialized protocol buffer of the above specified type.
157
- bytes value = 2;
158
- }