Source release 17.1.0
This commit is contained in:
4
third_party/protobuf/examples/AddPerson.java
vendored
4
third_party/protobuf/examples/AddPerson.java
vendored
@@ -1,7 +1,7 @@
|
||||
// See README.txt for information and build instructions.
|
||||
|
||||
import com.example.tutorial.AddressBookProtos.AddressBook;
|
||||
import com.example.tutorial.AddressBookProtos.Person;
|
||||
import com.example.tutorial.protos.AddressBook;
|
||||
import com.example.tutorial.protos.Person;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
|
||||
2
third_party/protobuf/examples/CMakeLists.txt
vendored
2
third_party/protobuf/examples/CMakeLists.txt
vendored
@@ -8,7 +8,7 @@ project(protobuf-examples)
|
||||
find_package(protobuf CONFIG REQUIRED)
|
||||
|
||||
if(protobuf_VERBOSE)
|
||||
message(STATUS "Using Protocol Buffers ${Protobuf_VERSION}")
|
||||
message(STATUS "Using Protocol Buffers ${protobuf_VERSION}")
|
||||
endif()
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR TRUE)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// See README.txt for information and build instructions.
|
||||
|
||||
import com.example.tutorial.AddressBookProtos.AddressBook;
|
||||
import com.example.tutorial.AddressBookProtos.Person;
|
||||
import com.example.tutorial.protos.AddressBook;
|
||||
import com.example.tutorial.protos.Person;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.PrintStream;
|
||||
|
||||
@@ -14,7 +14,8 @@ import "google/protobuf/timestamp.proto";
|
||||
// [END declaration]
|
||||
|
||||
// [START java_declaration]
|
||||
option java_package = "com.example.tutorial";
|
||||
option java_multiple_files = true;
|
||||
option java_package = "com.example.tutorial.protos";
|
||||
option java_outer_classname = "AddressBookProtos";
|
||||
// [END java_declaration]
|
||||
|
||||
@@ -22,6 +23,10 @@ option java_outer_classname = "AddressBookProtos";
|
||||
option csharp_namespace = "Google.Protobuf.Examples.AddressBook";
|
||||
// [END csharp_declaration]
|
||||
|
||||
// [START go_declaration]
|
||||
option go_package = "../tutorial";
|
||||
// [END go_declaration]
|
||||
|
||||
// [START messages]
|
||||
message Person {
|
||||
string name = 1;
|
||||
|
||||
Reference in New Issue
Block a user