aboutsummaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Replace repo links.Feng Xiao2018-08-225-8/+8
|
* fix golang kokoro linux buildYilun Chong2018-07-121-1/+1
|
* Fix bazel build of examples.Feng Xiao2018-07-031-2/+10
|
* Add script for run and upload the benchmark result to bqYilun Chong2018-04-101-2/+2
|
* Add a check_protobuf_required_bazel_version() for use in WORKSPACEsFahrzin Hemmati2017-12-041-0/+2
|
* Fix go example test.Feng Xiao2017-09-131-3/+3
| | | | It needs "-I" flag to find imported file google/protobuf/timestamp.proto
* Add bazel support for examples.Feng Xiao2017-09-089-64/+286
| | | | | | | | The example utilizes native bazel rules (proto_library, cc_proto_library, java_proto_library, java_lite_proto_library) to show how easy it is to build protobuf with bazel's native support. It also makes use of well known types which was not possible until the latest bazel 0.5.4 release and https://github.com/google/protobuf/pull/3594 .
* from __future__ import print_functioncclauss2017-08-181-8/+11
| | | The future import is required to support the print(x, end=" ") parameter in Python 2.
* print() function & define raw_input() for Python 3cclauss2017-08-181-3/+10
|
* Add classpath for java example Makefileking6cong2017-07-312-1/+8
|
* add protobuf_generate function, allows use of target_sources where availableWalter Gray2017-06-021-16/+1
|
* Integrate from internal code base.Feng Xiao2016-07-131-63/+63
|
* Use ExternalProject_Add to build the examples in a stand-alone fashion.Walter Gray2016-06-061-60/+44
|
* CMake project updatesKonstantin Podsvirov2016-06-041-0/+79
| | | | | | | | | A series of improvements: - Improved Protobuf module compatibility (disabled by default); - Hide advanced settings; - Added build tree configuration; - Added build of examples.
* Merge pull request #1144 from dongjoon-hyun/remove_redundant_theJoshua Haberman2016-02-111-1/+1
|\ | | | | Remove redundant `the`.
| * Remove redundant `the` in comments.Dongjoon Hyun2016-02-031-1/+1
| |
* | Updated python examples to use with.Parth Kolekar2016-01-262-9/+6
|/
* Merge pull request #1052 from tswast/masterFeng Xiao2015-12-173-22/+53
|\ | | | | Add region tags to the Go protobuf examples.
| * Improves readability of Go example test.Tim Swast2015-12-161-25/+5
| |
| * Add region tags to the Go protobuf examples.Tim Swast2015-12-153-22/+73
| | | | | | | | | | | | | | | | | | | | | | This will allow us to like to specific snippets of code in the documentation. I plan to create a tutorial similar to the C# tutorial https://developers.google.com/protocol-buffers/docs/csharptutorial Since that tutorial has sections for populating a proto, parsing, and serializing, I made a region for each of these for Go. To make the populating sample more self-contained, I refactor the listing example slightly.
* | Add region tags for protocol buffers tutorials.Tim Swast2015-12-011-3/+17
|/ | | | | | | | | Since these tags might be confusing, added a note that these are not part of the normal protocol buffers syntax. I also linked to the main tutorials page that uses these examples https://developers.google.com/protocol-buffers/docs/tutorials so that anyone who arrived here without going through that info first can get more explanation if they want.
* Add a Go language example.Tim Swast2015-11-256-0/+387
| | | | | | | | | | | | | | | | | | This follows the other examples so that it can be used as a tutorial, such as the ones at: https://developers.google.com/protocol-buffers/docs/tutorials Even though Go generally does not use Makefiles, I added targets for the Go examples to be consistent with the other languages. Edit: Fix Travis run. Change to use $HOME instead of ~. Add protoc to path. GOPATH entry cannot start with shell metacharacter '~': "~/gocode" Edit(2): Fix Go code style to address comments.
* rename persons to peopleJan Tattermusch2015-07-207-8/+8
|
* use Google.Protobuf namespace for C#Jan Tattermusch2015-07-201-1/+1
|
* fixed java exampleJan Tattermusch2015-07-202-5/+5
|
* fix python exampleJan Tattermusch2015-07-202-5/+5
|
* fix C++ exampleJan Tattermusch2015-07-202-7/+7
|
* update addressbook.proto to proto3Jan Tattermusch2015-07-201-8/+8
|
* Make generate_protos.sh Windows-friendly.Jon Skeet2015-05-141-0/+3
| | | | | | | | | | To my surprise, executing generate_protos.sh used the version of Bash installed with Git for Windows by default. After a few modifications to detect the most appropriate protoc to use, this worked pretty simply. This change also: - adds generation of the address book tutorial proto, - fixes the addressbook.proto to specify proto2 explicitly (to avoid a warning from protoc; I don't think we want warnings...) - fixes the addressbook.proto C# namespace (which I thought I'd done before, but apparently hadn't) - includes the regenerated UnittestCustomOptions.cs apart from the DescriptorProtoFIle => Descriptor change
* Don't hard-code the python pathTamir Duberstein2015-05-062-2/+2
|
* Down-integrate from internal branch.Feng Xiao2014-10-031-1/+0
|
* Replace links to code.google.com/protobuf with ↵Feng Xiao2014-10-011-1/+1
| | | | developers.google.com/protocol-buffers
* merge tags/2.6.0 into trunkjieluo@google.com2014-08-251-0/+1
|
* change java compiler to only produce one java filejieluo@google.com2014-08-071-1/+1
|
* down integrate to svnjieluo@google.com2014-07-181-1/+1
|
* Close resources properly for java tests and examples.liujisi@google.com2011-06-071-4/+10
|
* Allow dependents to use pkg-config to figure out what flags to pass to link ↵kenton@google.com2009-08-031-2/+4
| | | | against protobuf.
* Down-integrate some code from an internal branch. (More to come.)kenton@google.com2009-07-242-0/+6
|
* Make sure examples link properly.kenton@google.com2009-05-062-3/+7
|
* Make Python example output identical to C++ and Java by removing redundantkenton@google.com2008-10-071-3/+3
| | | | | spaces.
* Initial checkin.temporal2008-07-109-0/+503