-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* samples: create, delete, get, list samples * add publish and subscribe with avro schema samples * add publish and subscribe with proto schema samples * add protoc compiled class * address leah's and peter's comments * avoid using google.auth.default() for testing * use choice in argparse * update python to python3 in readme
- Loading branch information
1 parent
e2678d4
commit 4080b0a
Showing
7 changed files
with
899 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
google-cloud-pubsub==2.4.0 | ||
avro==1.10.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"type":"record", | ||
"name":"State", | ||
"namespace":"utilities", | ||
"doc":"A list of states in the United States of America.", | ||
"fields":[ | ||
{ | ||
"name":"name", | ||
"type":"string", | ||
"doc":"The common name of the state." | ||
}, | ||
{ | ||
"name":"post_abbr", | ||
"type":"string", | ||
"doc":"The postal code abbreviation of the state." | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto3"; | ||
|
||
package utilities; | ||
|
||
message StateProto { | ||
string name = 1; | ||
string post_abbr = 2; | ||
} |
Oops, something went wrong.