protobuf 2.2.5-java
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.travis.yml +9 -0
- data/.yardopts +5 -0
- data/Gemfile +3 -0
- data/README.md +316 -0
- data/Rakefile +29 -0
- data/UPGRADING.md +60 -0
- data/bin/rpc_server +5 -0
- data/bin/rprotoc +62 -0
- data/examples/addressbook.pb.rb +55 -0
- data/examples/addressbook.proto +24 -0
- data/examples/reading_a_message.rb +32 -0
- data/examples/writing_a_message.rb +46 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/code_generator.h +142 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/command_line_interface.h +318 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_enum.h +99 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_enum_field.h +103 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_extension.h +85 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_field.h +167 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_file.h +98 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_generator.h +72 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_helpers.h +159 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_message.h +170 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_message_field.h +102 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_primitive_field.h +103 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_service.h +118 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_string_field.h +104 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.h +2721 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/importer.h +303 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_enum.h +84 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_enum_field.h +121 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_extension.h +77 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_field.h +108 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_file.h +101 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_generator.h +72 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_helpers.h +213 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_message.h +109 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_message_field.h +134 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_primitive_field.h +121 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_service.h +113 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_string_field.h +120 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/mock_code_generator.h +113 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/package_info.h +64 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/parser.h +434 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/plugin.h +73 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/plugin.pb.h +790 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/python/python_generator.h +156 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/subprocess.h +108 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/zip_writer.h +93 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/descriptor.h +1367 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/descriptor.pb.h +5223 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/descriptor_database.h +366 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/dynamic_message.h +136 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/extension_set.h +904 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/generated_message_reflection.h +424 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/generated_message_util.h +82 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/io/coded_stream.h +1102 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/io/coded_stream_inl.h +64 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/io/gzip_stream.h +207 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/io/package_info.h +54 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/io/printer.h +136 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/io/tokenizer.h +313 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/io/zero_copy_stream.h +238 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/io/zero_copy_stream_impl.h +357 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/io/zero_copy_stream_impl_lite.h +340 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/message.h +692 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/message_lite.h +239 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/package_info.h +64 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/reflection_ops.h +80 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/repeated_field.h +1295 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/service.h +291 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/stubs/common.h +1211 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/stubs/hash.h +220 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/stubs/map-util.h +119 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/stubs/once.h +123 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/stubs/stl_util-inl.h +121 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/stubs/strutil.h +457 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/stubs/substitute.h +170 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/test_util.h +174 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/test_util_lite.h +101 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/testing/file.h +83 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/testing/googletest.h +98 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/text_format.h +285 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest.pb.h +11915 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_custom_options.pb.h +2895 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_embed_optimize_for.pb.h +211 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_empty.pb.h +56 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_import.pb.h +188 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_import_lite.pb.h +151 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_lite.pb.h +4752 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_lite_imports_nonlite.pb.h +150 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_mset.pb.h +816 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_no_generic_services.pb.h +197 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_optimize_for.pb.h +403 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unknown_field_set.h +268 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/wire_format.h +304 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/wire_format_lite.h +620 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/wire_format_lite_inl.h +774 -0
- data/ext/ruby_generator/Makefile +10 -0
- data/ext/ruby_generator/RubyGenerator.cpp +450 -0
- data/ext/ruby_generator/RubyGenerator.h +199 -0
- data/ext/ruby_generator/extconf.rb +36 -0
- data/ext/ruby_generator/protoc-ruby +0 -0
- data/lib/protobuf/cli.rb +188 -0
- data/lib/protobuf/enum.rb +58 -0
- data/lib/protobuf/enum_value.rb +59 -0
- data/lib/protobuf/evented.rb +22 -0
- data/lib/protobuf/exceptions.rb +11 -0
- data/lib/protobuf/ext/eventmachine.rb +14 -0
- data/lib/protobuf/field/base_field.rb +240 -0
- data/lib/protobuf/field/bool_field.rb +36 -0
- data/lib/protobuf/field/bytes_field.rb +38 -0
- data/lib/protobuf/field/double_field.rb +19 -0
- data/lib/protobuf/field/enum_field.rb +50 -0
- data/lib/protobuf/field/extension_fields.rb +32 -0
- data/lib/protobuf/field/field_array.rb +65 -0
- data/lib/protobuf/field/fixed32_field.rb +19 -0
- data/lib/protobuf/field/fixed64_field.rb +22 -0
- data/lib/protobuf/field/float_field.rb +31 -0
- data/lib/protobuf/field/int32_field.rb +12 -0
- data/lib/protobuf/field/int64_field.rb +12 -0
- data/lib/protobuf/field/integer_field.rb +19 -0
- data/lib/protobuf/field/message_field.rb +53 -0
- data/lib/protobuf/field/sfixed32_field.rb +21 -0
- data/lib/protobuf/field/sfixed64_field.rb +24 -0
- data/lib/protobuf/field/signed_integer_field.rb +23 -0
- data/lib/protobuf/field/sint32_field.rb +12 -0
- data/lib/protobuf/field/sint64_field.rb +12 -0
- data/lib/protobuf/field/string_field.rb +14 -0
- data/lib/protobuf/field/uint32_field.rb +12 -0
- data/lib/protobuf/field/uint64_field.rb +12 -0
- data/lib/protobuf/field/varint_field.rb +61 -0
- data/lib/protobuf/field.rb +57 -0
- data/lib/protobuf/logger.rb +86 -0
- data/lib/protobuf/message/decoder.rb +83 -0
- data/lib/protobuf/message/encoder.rb +48 -0
- data/lib/protobuf/message/extend.rb +8 -0
- data/lib/protobuf/message/message.rb +1 -0
- data/lib/protobuf/message.rb +320 -0
- data/lib/protobuf/rpc/buffer.rb +79 -0
- data/lib/protobuf/rpc/client.rb +166 -0
- data/lib/protobuf/rpc/connector.rb +19 -0
- data/lib/protobuf/rpc/connectors/base.rb +38 -0
- data/lib/protobuf/rpc/connectors/common.rb +156 -0
- data/lib/protobuf/rpc/connectors/em_client.rb +84 -0
- data/lib/protobuf/rpc/connectors/eventmachine.rb +87 -0
- data/lib/protobuf/rpc/connectors/socket.rb +73 -0
- data/lib/protobuf/rpc/connectors/zmq.rb +69 -0
- data/lib/protobuf/rpc/error/client_error.rb +31 -0
- data/lib/protobuf/rpc/error/server_error.rb +43 -0
- data/lib/protobuf/rpc/error.rb +25 -0
- data/lib/protobuf/rpc/rpc.pb.rb +118 -0
- data/lib/protobuf/rpc/server.rb +89 -0
- data/lib/protobuf/rpc/servers/evented/server.rb +41 -0
- data/lib/protobuf/rpc/servers/evented_runner.rb +21 -0
- data/lib/protobuf/rpc/servers/socket/server.rb +111 -0
- data/lib/protobuf/rpc/servers/socket/worker.rb +66 -0
- data/lib/protobuf/rpc/servers/socket_runner.rb +27 -0
- data/lib/protobuf/rpc/servers/zmq/broker.rb +87 -0
- data/lib/protobuf/rpc/servers/zmq/server.rb +50 -0
- data/lib/protobuf/rpc/servers/zmq/util.rb +27 -0
- data/lib/protobuf/rpc/servers/zmq/worker.rb +60 -0
- data/lib/protobuf/rpc/servers/zmq_runner.rb +25 -0
- data/lib/protobuf/rpc/service.rb +173 -0
- data/lib/protobuf/rpc/service_dispatcher.rb +130 -0
- data/lib/protobuf/rpc/service_filters.rb +267 -0
- data/lib/protobuf/rpc/stat.rb +83 -0
- data/lib/protobuf/socket.rb +22 -0
- data/lib/protobuf/version.rb +4 -0
- data/lib/protobuf/wire_type.rb +10 -0
- data/lib/protobuf/zmq.rb +21 -0
- data/lib/protobuf.rb +86 -0
- data/proto/rpc.pb.rb +48 -0
- data/proto/rpc.proto +73 -0
- data/protobuf.gemspec +44 -0
- data/spec/benchmark/tasks.rb +179 -0
- data/spec/functional/embedded_service_spec.rb +7 -0
- data/spec/functional/evented_server_spec.rb +64 -0
- data/spec/functional/socket_server_spec.rb +58 -0
- data/spec/functional/zmq_server_spec.rb +58 -0
- data/spec/lib/protobuf/cli_spec.rb +212 -0
- data/spec/lib/protobuf/enum_spec.rb +98 -0
- data/spec/lib/protobuf/enum_value_spec.rb +15 -0
- data/spec/lib/protobuf/logger_spec.rb +131 -0
- data/spec/lib/protobuf/message/encoder_spec.rb +19 -0
- data/spec/lib/protobuf/message_spec.rb +209 -0
- data/spec/lib/protobuf/rpc/client_spec.rb +158 -0
- data/spec/lib/protobuf/rpc/connector_spec.rb +32 -0
- data/spec/lib/protobuf/rpc/connectors/base_spec.rb +50 -0
- data/spec/lib/protobuf/rpc/connectors/common_spec.rb +128 -0
- data/spec/lib/protobuf/rpc/connectors/socket_spec.rb +36 -0
- data/spec/lib/protobuf/rpc/connectors/zmq_spec.rb +22 -0
- data/spec/lib/protobuf/rpc/servers/evented_server_spec.rb +18 -0
- data/spec/lib/protobuf/rpc/servers/socket_server_spec.rb +43 -0
- data/spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb +35 -0
- data/spec/lib/protobuf/rpc/servers/zmq/server_spec.rb +41 -0
- data/spec/lib/protobuf/rpc/servers/zmq/util_spec.rb +45 -0
- data/spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb +44 -0
- data/spec/lib/protobuf/rpc/service_dispatcher_spec.rb +116 -0
- data/spec/lib/protobuf/rpc/service_filters_spec.rb +451 -0
- data/spec/lib/protobuf/rpc/service_spec.rb +165 -0
- data/spec/lib/protobuf_spec.rb +62 -0
- data/spec/spec_helper.rb +51 -0
- data/spec/support/all.rb +6 -0
- data/spec/support/server.rb +101 -0
- data/spec/support/test/enum.pb.rb +34 -0
- data/spec/support/test/enum.proto +12 -0
- data/spec/support/test/resource.pb.rb +58 -0
- data/spec/support/test/resource.proto +31 -0
- data/spec/support/test/resource_service.rb +14 -0
- data/spec/support/test_app_file.rb +2 -0
- data/spec/support/tolerance_matcher.rb +40 -0
- data/test/data/data.bin +3 -0
- data/test/data/data_source.py +14 -0
- data/test/data/types.bin +0 -0
- data/test/data/types_source.py +22 -0
- data/test/data/unk.png +0 -0
- data/test/proto/addressbook.pb.rb +66 -0
- data/test/proto/addressbook.proto +33 -0
- data/test/proto/addressbook_base.pb.rb +58 -0
- data/test/proto/addressbook_base.proto +26 -0
- data/test/proto/addressbook_ext.pb.rb +20 -0
- data/test/proto/addressbook_ext.proto +6 -0
- data/test/proto/collision.pb.rb +17 -0
- data/test/proto/collision.proto +5 -0
- data/test/proto/ext_collision.pb.rb +24 -0
- data/test/proto/ext_collision.proto +8 -0
- data/test/proto/ext_range.pb.rb +22 -0
- data/test/proto/ext_range.proto +7 -0
- data/test/proto/float_default.proto +10 -0
- data/test/proto/lowercase.pb.rb +30 -0
- data/test/proto/lowercase.proto +9 -0
- data/test/proto/merge.pb.rb +39 -0
- data/test/proto/merge.proto +15 -0
- data/test/proto/nested.pb.rb +30 -0
- data/test/proto/nested.proto +9 -0
- data/test/proto/optional_field.pb.rb +35 -0
- data/test/proto/optional_field.proto +12 -0
- data/test/proto/packed.pb.rb +22 -0
- data/test/proto/packed.proto +6 -0
- data/test/proto/rpc.proto +6 -0
- data/test/proto/types.pb.rb +84 -0
- data/test/proto/types.proto +37 -0
- data/test/test_addressbook.rb +56 -0
- data/test/test_enum_value.rb +41 -0
- data/test/test_extension.rb +36 -0
- data/test/test_lowercase.rb +11 -0
- data/test/test_message.rb +128 -0
- data/test/test_optional_field.rb +103 -0
- data/test/test_packed_field.rb +40 -0
- data/test/test_parse.rb +15 -0
- data/test/test_repeated_types.rb +132 -0
- data/test/test_serialize.rb +61 -0
- data/test/test_standard_message.rb +96 -0
- data/test/test_types.rb +226 -0
- metadata +461 -0
@@ -0,0 +1,790 @@
|
|
1
|
+
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
// source: google/protobuf/compiler/plugin.proto
|
3
|
+
|
4
|
+
#ifndef PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED
|
5
|
+
#define PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED
|
6
|
+
|
7
|
+
#include <string>
|
8
|
+
|
9
|
+
#include <google/protobuf/stubs/common.h>
|
10
|
+
|
11
|
+
#if GOOGLE_PROTOBUF_VERSION < 2004000
|
12
|
+
#error This file was generated by a newer version of protoc which is
|
13
|
+
#error incompatible with your Protocol Buffer headers. Please update
|
14
|
+
#error your headers.
|
15
|
+
#endif
|
16
|
+
#if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
17
|
+
#error This file was generated by an older version of protoc which is
|
18
|
+
#error incompatible with your Protocol Buffer headers. Please
|
19
|
+
#error regenerate this file with a newer version of protoc.
|
20
|
+
#endif
|
21
|
+
|
22
|
+
#include <google/protobuf/generated_message_util.h>
|
23
|
+
#include <google/protobuf/repeated_field.h>
|
24
|
+
#include <google/protobuf/extension_set.h>
|
25
|
+
#include <google/protobuf/generated_message_reflection.h>
|
26
|
+
#include "google/protobuf/descriptor.pb.h"
|
27
|
+
// @@protoc_insertion_point(includes)
|
28
|
+
|
29
|
+
namespace google {
|
30
|
+
namespace protobuf {
|
31
|
+
namespace compiler {
|
32
|
+
|
33
|
+
// Internal implementation detail -- do not call these.
|
34
|
+
void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
|
35
|
+
void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
|
36
|
+
void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
|
37
|
+
|
38
|
+
class CodeGeneratorRequest;
|
39
|
+
class CodeGeneratorResponse;
|
40
|
+
class CodeGeneratorResponse_File;
|
41
|
+
|
42
|
+
// ===================================================================
|
43
|
+
|
44
|
+
class LIBPROTOC_EXPORT CodeGeneratorRequest : public ::google::protobuf::Message {
|
45
|
+
public:
|
46
|
+
CodeGeneratorRequest();
|
47
|
+
virtual ~CodeGeneratorRequest();
|
48
|
+
|
49
|
+
CodeGeneratorRequest(const CodeGeneratorRequest& from);
|
50
|
+
|
51
|
+
inline CodeGeneratorRequest& operator=(const CodeGeneratorRequest& from) {
|
52
|
+
CopyFrom(from);
|
53
|
+
return *this;
|
54
|
+
}
|
55
|
+
|
56
|
+
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
|
57
|
+
return _unknown_fields_;
|
58
|
+
}
|
59
|
+
|
60
|
+
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
|
61
|
+
return &_unknown_fields_;
|
62
|
+
}
|
63
|
+
|
64
|
+
static const ::google::protobuf::Descriptor* descriptor();
|
65
|
+
static const CodeGeneratorRequest& default_instance();
|
66
|
+
|
67
|
+
void Swap(CodeGeneratorRequest* other);
|
68
|
+
|
69
|
+
// implements Message ----------------------------------------------
|
70
|
+
|
71
|
+
CodeGeneratorRequest* New() const;
|
72
|
+
void CopyFrom(const ::google::protobuf::Message& from);
|
73
|
+
void MergeFrom(const ::google::protobuf::Message& from);
|
74
|
+
void CopyFrom(const CodeGeneratorRequest& from);
|
75
|
+
void MergeFrom(const CodeGeneratorRequest& from);
|
76
|
+
void Clear();
|
77
|
+
bool IsInitialized() const;
|
78
|
+
|
79
|
+
int ByteSize() const;
|
80
|
+
bool MergePartialFromCodedStream(
|
81
|
+
::google::protobuf::io::CodedInputStream* input);
|
82
|
+
void SerializeWithCachedSizes(
|
83
|
+
::google::protobuf::io::CodedOutputStream* output) const;
|
84
|
+
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
|
85
|
+
int GetCachedSize() const { return _cached_size_; }
|
86
|
+
private:
|
87
|
+
void SharedCtor();
|
88
|
+
void SharedDtor();
|
89
|
+
void SetCachedSize(int size) const;
|
90
|
+
public:
|
91
|
+
|
92
|
+
::google::protobuf::Metadata GetMetadata() const;
|
93
|
+
|
94
|
+
// nested types ----------------------------------------------------
|
95
|
+
|
96
|
+
// accessors -------------------------------------------------------
|
97
|
+
|
98
|
+
// repeated string file_to_generate = 1;
|
99
|
+
inline int file_to_generate_size() const;
|
100
|
+
inline void clear_file_to_generate();
|
101
|
+
static const int kFileToGenerateFieldNumber = 1;
|
102
|
+
inline const ::std::string& file_to_generate(int index) const;
|
103
|
+
inline ::std::string* mutable_file_to_generate(int index);
|
104
|
+
inline void set_file_to_generate(int index, const ::std::string& value);
|
105
|
+
inline void set_file_to_generate(int index, const char* value);
|
106
|
+
inline void set_file_to_generate(int index, const char* value, size_t size);
|
107
|
+
inline ::std::string* add_file_to_generate();
|
108
|
+
inline void add_file_to_generate(const ::std::string& value);
|
109
|
+
inline void add_file_to_generate(const char* value);
|
110
|
+
inline void add_file_to_generate(const char* value, size_t size);
|
111
|
+
inline const ::google::protobuf::RepeatedPtrField< ::std::string>& file_to_generate() const;
|
112
|
+
inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_file_to_generate();
|
113
|
+
|
114
|
+
// optional string parameter = 2;
|
115
|
+
inline bool has_parameter() const;
|
116
|
+
inline void clear_parameter();
|
117
|
+
static const int kParameterFieldNumber = 2;
|
118
|
+
inline const ::std::string& parameter() const;
|
119
|
+
inline void set_parameter(const ::std::string& value);
|
120
|
+
inline void set_parameter(const char* value);
|
121
|
+
inline void set_parameter(const char* value, size_t size);
|
122
|
+
inline ::std::string* mutable_parameter();
|
123
|
+
inline ::std::string* release_parameter();
|
124
|
+
|
125
|
+
// repeated .google.protobuf.FileDescriptorProto proto_file = 15;
|
126
|
+
inline int proto_file_size() const;
|
127
|
+
inline void clear_proto_file();
|
128
|
+
static const int kProtoFileFieldNumber = 15;
|
129
|
+
inline const ::google::protobuf::FileDescriptorProto& proto_file(int index) const;
|
130
|
+
inline ::google::protobuf::FileDescriptorProto* mutable_proto_file(int index);
|
131
|
+
inline ::google::protobuf::FileDescriptorProto* add_proto_file();
|
132
|
+
inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
|
133
|
+
proto_file() const;
|
134
|
+
inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
|
135
|
+
mutable_proto_file();
|
136
|
+
|
137
|
+
// @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorRequest)
|
138
|
+
private:
|
139
|
+
inline void set_has_parameter();
|
140
|
+
inline void clear_has_parameter();
|
141
|
+
|
142
|
+
::google::protobuf::UnknownFieldSet _unknown_fields_;
|
143
|
+
|
144
|
+
::google::protobuf::RepeatedPtrField< ::std::string> file_to_generate_;
|
145
|
+
::std::string* parameter_;
|
146
|
+
::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > proto_file_;
|
147
|
+
|
148
|
+
mutable int _cached_size_;
|
149
|
+
::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
|
150
|
+
|
151
|
+
friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
|
152
|
+
friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
|
153
|
+
friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
|
154
|
+
|
155
|
+
void InitAsDefaultInstance();
|
156
|
+
static CodeGeneratorRequest* default_instance_;
|
157
|
+
};
|
158
|
+
// -------------------------------------------------------------------
|
159
|
+
|
160
|
+
class LIBPROTOC_EXPORT CodeGeneratorResponse_File : public ::google::protobuf::Message {
|
161
|
+
public:
|
162
|
+
CodeGeneratorResponse_File();
|
163
|
+
virtual ~CodeGeneratorResponse_File();
|
164
|
+
|
165
|
+
CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from);
|
166
|
+
|
167
|
+
inline CodeGeneratorResponse_File& operator=(const CodeGeneratorResponse_File& from) {
|
168
|
+
CopyFrom(from);
|
169
|
+
return *this;
|
170
|
+
}
|
171
|
+
|
172
|
+
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
|
173
|
+
return _unknown_fields_;
|
174
|
+
}
|
175
|
+
|
176
|
+
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
|
177
|
+
return &_unknown_fields_;
|
178
|
+
}
|
179
|
+
|
180
|
+
static const ::google::protobuf::Descriptor* descriptor();
|
181
|
+
static const CodeGeneratorResponse_File& default_instance();
|
182
|
+
|
183
|
+
void Swap(CodeGeneratorResponse_File* other);
|
184
|
+
|
185
|
+
// implements Message ----------------------------------------------
|
186
|
+
|
187
|
+
CodeGeneratorResponse_File* New() const;
|
188
|
+
void CopyFrom(const ::google::protobuf::Message& from);
|
189
|
+
void MergeFrom(const ::google::protobuf::Message& from);
|
190
|
+
void CopyFrom(const CodeGeneratorResponse_File& from);
|
191
|
+
void MergeFrom(const CodeGeneratorResponse_File& from);
|
192
|
+
void Clear();
|
193
|
+
bool IsInitialized() const;
|
194
|
+
|
195
|
+
int ByteSize() const;
|
196
|
+
bool MergePartialFromCodedStream(
|
197
|
+
::google::protobuf::io::CodedInputStream* input);
|
198
|
+
void SerializeWithCachedSizes(
|
199
|
+
::google::protobuf::io::CodedOutputStream* output) const;
|
200
|
+
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
|
201
|
+
int GetCachedSize() const { return _cached_size_; }
|
202
|
+
private:
|
203
|
+
void SharedCtor();
|
204
|
+
void SharedDtor();
|
205
|
+
void SetCachedSize(int size) const;
|
206
|
+
public:
|
207
|
+
|
208
|
+
::google::protobuf::Metadata GetMetadata() const;
|
209
|
+
|
210
|
+
// nested types ----------------------------------------------------
|
211
|
+
|
212
|
+
// accessors -------------------------------------------------------
|
213
|
+
|
214
|
+
// optional string name = 1;
|
215
|
+
inline bool has_name() const;
|
216
|
+
inline void clear_name();
|
217
|
+
static const int kNameFieldNumber = 1;
|
218
|
+
inline const ::std::string& name() const;
|
219
|
+
inline void set_name(const ::std::string& value);
|
220
|
+
inline void set_name(const char* value);
|
221
|
+
inline void set_name(const char* value, size_t size);
|
222
|
+
inline ::std::string* mutable_name();
|
223
|
+
inline ::std::string* release_name();
|
224
|
+
|
225
|
+
// optional string insertion_point = 2;
|
226
|
+
inline bool has_insertion_point() const;
|
227
|
+
inline void clear_insertion_point();
|
228
|
+
static const int kInsertionPointFieldNumber = 2;
|
229
|
+
inline const ::std::string& insertion_point() const;
|
230
|
+
inline void set_insertion_point(const ::std::string& value);
|
231
|
+
inline void set_insertion_point(const char* value);
|
232
|
+
inline void set_insertion_point(const char* value, size_t size);
|
233
|
+
inline ::std::string* mutable_insertion_point();
|
234
|
+
inline ::std::string* release_insertion_point();
|
235
|
+
|
236
|
+
// optional string content = 15;
|
237
|
+
inline bool has_content() const;
|
238
|
+
inline void clear_content();
|
239
|
+
static const int kContentFieldNumber = 15;
|
240
|
+
inline const ::std::string& content() const;
|
241
|
+
inline void set_content(const ::std::string& value);
|
242
|
+
inline void set_content(const char* value);
|
243
|
+
inline void set_content(const char* value, size_t size);
|
244
|
+
inline ::std::string* mutable_content();
|
245
|
+
inline ::std::string* release_content();
|
246
|
+
|
247
|
+
// @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse.File)
|
248
|
+
private:
|
249
|
+
inline void set_has_name();
|
250
|
+
inline void clear_has_name();
|
251
|
+
inline void set_has_insertion_point();
|
252
|
+
inline void clear_has_insertion_point();
|
253
|
+
inline void set_has_content();
|
254
|
+
inline void clear_has_content();
|
255
|
+
|
256
|
+
::google::protobuf::UnknownFieldSet _unknown_fields_;
|
257
|
+
|
258
|
+
::std::string* name_;
|
259
|
+
::std::string* insertion_point_;
|
260
|
+
::std::string* content_;
|
261
|
+
|
262
|
+
mutable int _cached_size_;
|
263
|
+
::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
|
264
|
+
|
265
|
+
friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
|
266
|
+
friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
|
267
|
+
friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
|
268
|
+
|
269
|
+
void InitAsDefaultInstance();
|
270
|
+
static CodeGeneratorResponse_File* default_instance_;
|
271
|
+
};
|
272
|
+
// -------------------------------------------------------------------
|
273
|
+
|
274
|
+
class LIBPROTOC_EXPORT CodeGeneratorResponse : public ::google::protobuf::Message {
|
275
|
+
public:
|
276
|
+
CodeGeneratorResponse();
|
277
|
+
virtual ~CodeGeneratorResponse();
|
278
|
+
|
279
|
+
CodeGeneratorResponse(const CodeGeneratorResponse& from);
|
280
|
+
|
281
|
+
inline CodeGeneratorResponse& operator=(const CodeGeneratorResponse& from) {
|
282
|
+
CopyFrom(from);
|
283
|
+
return *this;
|
284
|
+
}
|
285
|
+
|
286
|
+
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
|
287
|
+
return _unknown_fields_;
|
288
|
+
}
|
289
|
+
|
290
|
+
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
|
291
|
+
return &_unknown_fields_;
|
292
|
+
}
|
293
|
+
|
294
|
+
static const ::google::protobuf::Descriptor* descriptor();
|
295
|
+
static const CodeGeneratorResponse& default_instance();
|
296
|
+
|
297
|
+
void Swap(CodeGeneratorResponse* other);
|
298
|
+
|
299
|
+
// implements Message ----------------------------------------------
|
300
|
+
|
301
|
+
CodeGeneratorResponse* New() const;
|
302
|
+
void CopyFrom(const ::google::protobuf::Message& from);
|
303
|
+
void MergeFrom(const ::google::protobuf::Message& from);
|
304
|
+
void CopyFrom(const CodeGeneratorResponse& from);
|
305
|
+
void MergeFrom(const CodeGeneratorResponse& from);
|
306
|
+
void Clear();
|
307
|
+
bool IsInitialized() const;
|
308
|
+
|
309
|
+
int ByteSize() const;
|
310
|
+
bool MergePartialFromCodedStream(
|
311
|
+
::google::protobuf::io::CodedInputStream* input);
|
312
|
+
void SerializeWithCachedSizes(
|
313
|
+
::google::protobuf::io::CodedOutputStream* output) const;
|
314
|
+
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
|
315
|
+
int GetCachedSize() const { return _cached_size_; }
|
316
|
+
private:
|
317
|
+
void SharedCtor();
|
318
|
+
void SharedDtor();
|
319
|
+
void SetCachedSize(int size) const;
|
320
|
+
public:
|
321
|
+
|
322
|
+
::google::protobuf::Metadata GetMetadata() const;
|
323
|
+
|
324
|
+
// nested types ----------------------------------------------------
|
325
|
+
|
326
|
+
typedef CodeGeneratorResponse_File File;
|
327
|
+
|
328
|
+
// accessors -------------------------------------------------------
|
329
|
+
|
330
|
+
// optional string error = 1;
|
331
|
+
inline bool has_error() const;
|
332
|
+
inline void clear_error();
|
333
|
+
static const int kErrorFieldNumber = 1;
|
334
|
+
inline const ::std::string& error() const;
|
335
|
+
inline void set_error(const ::std::string& value);
|
336
|
+
inline void set_error(const char* value);
|
337
|
+
inline void set_error(const char* value, size_t size);
|
338
|
+
inline ::std::string* mutable_error();
|
339
|
+
inline ::std::string* release_error();
|
340
|
+
|
341
|
+
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
|
342
|
+
inline int file_size() const;
|
343
|
+
inline void clear_file();
|
344
|
+
static const int kFileFieldNumber = 15;
|
345
|
+
inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& file(int index) const;
|
346
|
+
inline ::google::protobuf::compiler::CodeGeneratorResponse_File* mutable_file(int index);
|
347
|
+
inline ::google::protobuf::compiler::CodeGeneratorResponse_File* add_file();
|
348
|
+
inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >&
|
349
|
+
file() const;
|
350
|
+
inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >*
|
351
|
+
mutable_file();
|
352
|
+
|
353
|
+
// @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse)
|
354
|
+
private:
|
355
|
+
inline void set_has_error();
|
356
|
+
inline void clear_has_error();
|
357
|
+
|
358
|
+
::google::protobuf::UnknownFieldSet _unknown_fields_;
|
359
|
+
|
360
|
+
::std::string* error_;
|
361
|
+
::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File > file_;
|
362
|
+
|
363
|
+
mutable int _cached_size_;
|
364
|
+
::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
|
365
|
+
|
366
|
+
friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
|
367
|
+
friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
|
368
|
+
friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
|
369
|
+
|
370
|
+
void InitAsDefaultInstance();
|
371
|
+
static CodeGeneratorResponse* default_instance_;
|
372
|
+
};
|
373
|
+
// ===================================================================
|
374
|
+
|
375
|
+
|
376
|
+
// ===================================================================
|
377
|
+
|
378
|
+
// CodeGeneratorRequest
|
379
|
+
|
380
|
+
// repeated string file_to_generate = 1;
|
381
|
+
inline int CodeGeneratorRequest::file_to_generate_size() const {
|
382
|
+
return file_to_generate_.size();
|
383
|
+
}
|
384
|
+
inline void CodeGeneratorRequest::clear_file_to_generate() {
|
385
|
+
file_to_generate_.Clear();
|
386
|
+
}
|
387
|
+
inline const ::std::string& CodeGeneratorRequest::file_to_generate(int index) const {
|
388
|
+
return file_to_generate_.Get(index);
|
389
|
+
}
|
390
|
+
inline ::std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) {
|
391
|
+
return file_to_generate_.Mutable(index);
|
392
|
+
}
|
393
|
+
inline void CodeGeneratorRequest::set_file_to_generate(int index, const ::std::string& value) {
|
394
|
+
file_to_generate_.Mutable(index)->assign(value);
|
395
|
+
}
|
396
|
+
inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* value) {
|
397
|
+
file_to_generate_.Mutable(index)->assign(value);
|
398
|
+
}
|
399
|
+
inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* value, size_t size) {
|
400
|
+
file_to_generate_.Mutable(index)->assign(
|
401
|
+
reinterpret_cast<const char*>(value), size);
|
402
|
+
}
|
403
|
+
inline ::std::string* CodeGeneratorRequest::add_file_to_generate() {
|
404
|
+
return file_to_generate_.Add();
|
405
|
+
}
|
406
|
+
inline void CodeGeneratorRequest::add_file_to_generate(const ::std::string& value) {
|
407
|
+
file_to_generate_.Add()->assign(value);
|
408
|
+
}
|
409
|
+
inline void CodeGeneratorRequest::add_file_to_generate(const char* value) {
|
410
|
+
file_to_generate_.Add()->assign(value);
|
411
|
+
}
|
412
|
+
inline void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t size) {
|
413
|
+
file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size);
|
414
|
+
}
|
415
|
+
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
|
416
|
+
CodeGeneratorRequest::file_to_generate() const {
|
417
|
+
return file_to_generate_;
|
418
|
+
}
|
419
|
+
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
|
420
|
+
CodeGeneratorRequest::mutable_file_to_generate() {
|
421
|
+
return &file_to_generate_;
|
422
|
+
}
|
423
|
+
|
424
|
+
// optional string parameter = 2;
|
425
|
+
inline bool CodeGeneratorRequest::has_parameter() const {
|
426
|
+
return (_has_bits_[0] & 0x00000002u) != 0;
|
427
|
+
}
|
428
|
+
inline void CodeGeneratorRequest::set_has_parameter() {
|
429
|
+
_has_bits_[0] |= 0x00000002u;
|
430
|
+
}
|
431
|
+
inline void CodeGeneratorRequest::clear_has_parameter() {
|
432
|
+
_has_bits_[0] &= ~0x00000002u;
|
433
|
+
}
|
434
|
+
inline void CodeGeneratorRequest::clear_parameter() {
|
435
|
+
if (parameter_ != &::google::protobuf::internal::kEmptyString) {
|
436
|
+
parameter_->clear();
|
437
|
+
}
|
438
|
+
clear_has_parameter();
|
439
|
+
}
|
440
|
+
inline const ::std::string& CodeGeneratorRequest::parameter() const {
|
441
|
+
return *parameter_;
|
442
|
+
}
|
443
|
+
inline void CodeGeneratorRequest::set_parameter(const ::std::string& value) {
|
444
|
+
set_has_parameter();
|
445
|
+
if (parameter_ == &::google::protobuf::internal::kEmptyString) {
|
446
|
+
parameter_ = new ::std::string;
|
447
|
+
}
|
448
|
+
parameter_->assign(value);
|
449
|
+
}
|
450
|
+
inline void CodeGeneratorRequest::set_parameter(const char* value) {
|
451
|
+
set_has_parameter();
|
452
|
+
if (parameter_ == &::google::protobuf::internal::kEmptyString) {
|
453
|
+
parameter_ = new ::std::string;
|
454
|
+
}
|
455
|
+
parameter_->assign(value);
|
456
|
+
}
|
457
|
+
inline void CodeGeneratorRequest::set_parameter(const char* value, size_t size) {
|
458
|
+
set_has_parameter();
|
459
|
+
if (parameter_ == &::google::protobuf::internal::kEmptyString) {
|
460
|
+
parameter_ = new ::std::string;
|
461
|
+
}
|
462
|
+
parameter_->assign(reinterpret_cast<const char*>(value), size);
|
463
|
+
}
|
464
|
+
inline ::std::string* CodeGeneratorRequest::mutable_parameter() {
|
465
|
+
set_has_parameter();
|
466
|
+
if (parameter_ == &::google::protobuf::internal::kEmptyString) {
|
467
|
+
parameter_ = new ::std::string;
|
468
|
+
}
|
469
|
+
return parameter_;
|
470
|
+
}
|
471
|
+
inline ::std::string* CodeGeneratorRequest::release_parameter() {
|
472
|
+
clear_has_parameter();
|
473
|
+
if (parameter_ == &::google::protobuf::internal::kEmptyString) {
|
474
|
+
return NULL;
|
475
|
+
} else {
|
476
|
+
::std::string* temp = parameter_;
|
477
|
+
parameter_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
478
|
+
return temp;
|
479
|
+
}
|
480
|
+
}
|
481
|
+
|
482
|
+
// repeated .google.protobuf.FileDescriptorProto proto_file = 15;
|
483
|
+
inline int CodeGeneratorRequest::proto_file_size() const {
|
484
|
+
return proto_file_.size();
|
485
|
+
}
|
486
|
+
inline void CodeGeneratorRequest::clear_proto_file() {
|
487
|
+
proto_file_.Clear();
|
488
|
+
}
|
489
|
+
inline const ::google::protobuf::FileDescriptorProto& CodeGeneratorRequest::proto_file(int index) const {
|
490
|
+
return proto_file_.Get(index);
|
491
|
+
}
|
492
|
+
inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::mutable_proto_file(int index) {
|
493
|
+
return proto_file_.Mutable(index);
|
494
|
+
}
|
495
|
+
inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::add_proto_file() {
|
496
|
+
return proto_file_.Add();
|
497
|
+
}
|
498
|
+
inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
|
499
|
+
CodeGeneratorRequest::proto_file() const {
|
500
|
+
return proto_file_;
|
501
|
+
}
|
502
|
+
inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
|
503
|
+
CodeGeneratorRequest::mutable_proto_file() {
|
504
|
+
return &proto_file_;
|
505
|
+
}
|
506
|
+
|
507
|
+
// -------------------------------------------------------------------
|
508
|
+
|
509
|
+
// CodeGeneratorResponse_File
|
510
|
+
|
511
|
+
// optional string name = 1;
|
512
|
+
inline bool CodeGeneratorResponse_File::has_name() const {
|
513
|
+
return (_has_bits_[0] & 0x00000001u) != 0;
|
514
|
+
}
|
515
|
+
inline void CodeGeneratorResponse_File::set_has_name() {
|
516
|
+
_has_bits_[0] |= 0x00000001u;
|
517
|
+
}
|
518
|
+
inline void CodeGeneratorResponse_File::clear_has_name() {
|
519
|
+
_has_bits_[0] &= ~0x00000001u;
|
520
|
+
}
|
521
|
+
inline void CodeGeneratorResponse_File::clear_name() {
|
522
|
+
if (name_ != &::google::protobuf::internal::kEmptyString) {
|
523
|
+
name_->clear();
|
524
|
+
}
|
525
|
+
clear_has_name();
|
526
|
+
}
|
527
|
+
inline const ::std::string& CodeGeneratorResponse_File::name() const {
|
528
|
+
return *name_;
|
529
|
+
}
|
530
|
+
inline void CodeGeneratorResponse_File::set_name(const ::std::string& value) {
|
531
|
+
set_has_name();
|
532
|
+
if (name_ == &::google::protobuf::internal::kEmptyString) {
|
533
|
+
name_ = new ::std::string;
|
534
|
+
}
|
535
|
+
name_->assign(value);
|
536
|
+
}
|
537
|
+
inline void CodeGeneratorResponse_File::set_name(const char* value) {
|
538
|
+
set_has_name();
|
539
|
+
if (name_ == &::google::protobuf::internal::kEmptyString) {
|
540
|
+
name_ = new ::std::string;
|
541
|
+
}
|
542
|
+
name_->assign(value);
|
543
|
+
}
|
544
|
+
inline void CodeGeneratorResponse_File::set_name(const char* value, size_t size) {
|
545
|
+
set_has_name();
|
546
|
+
if (name_ == &::google::protobuf::internal::kEmptyString) {
|
547
|
+
name_ = new ::std::string;
|
548
|
+
}
|
549
|
+
name_->assign(reinterpret_cast<const char*>(value), size);
|
550
|
+
}
|
551
|
+
inline ::std::string* CodeGeneratorResponse_File::mutable_name() {
|
552
|
+
set_has_name();
|
553
|
+
if (name_ == &::google::protobuf::internal::kEmptyString) {
|
554
|
+
name_ = new ::std::string;
|
555
|
+
}
|
556
|
+
return name_;
|
557
|
+
}
|
558
|
+
inline ::std::string* CodeGeneratorResponse_File::release_name() {
|
559
|
+
clear_has_name();
|
560
|
+
if (name_ == &::google::protobuf::internal::kEmptyString) {
|
561
|
+
return NULL;
|
562
|
+
} else {
|
563
|
+
::std::string* temp = name_;
|
564
|
+
name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
565
|
+
return temp;
|
566
|
+
}
|
567
|
+
}
|
568
|
+
|
569
|
+
// optional string insertion_point = 2;
|
570
|
+
inline bool CodeGeneratorResponse_File::has_insertion_point() const {
|
571
|
+
return (_has_bits_[0] & 0x00000002u) != 0;
|
572
|
+
}
|
573
|
+
inline void CodeGeneratorResponse_File::set_has_insertion_point() {
|
574
|
+
_has_bits_[0] |= 0x00000002u;
|
575
|
+
}
|
576
|
+
inline void CodeGeneratorResponse_File::clear_has_insertion_point() {
|
577
|
+
_has_bits_[0] &= ~0x00000002u;
|
578
|
+
}
|
579
|
+
inline void CodeGeneratorResponse_File::clear_insertion_point() {
|
580
|
+
if (insertion_point_ != &::google::protobuf::internal::kEmptyString) {
|
581
|
+
insertion_point_->clear();
|
582
|
+
}
|
583
|
+
clear_has_insertion_point();
|
584
|
+
}
|
585
|
+
inline const ::std::string& CodeGeneratorResponse_File::insertion_point() const {
|
586
|
+
return *insertion_point_;
|
587
|
+
}
|
588
|
+
inline void CodeGeneratorResponse_File::set_insertion_point(const ::std::string& value) {
|
589
|
+
set_has_insertion_point();
|
590
|
+
if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
|
591
|
+
insertion_point_ = new ::std::string;
|
592
|
+
}
|
593
|
+
insertion_point_->assign(value);
|
594
|
+
}
|
595
|
+
inline void CodeGeneratorResponse_File::set_insertion_point(const char* value) {
|
596
|
+
set_has_insertion_point();
|
597
|
+
if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
|
598
|
+
insertion_point_ = new ::std::string;
|
599
|
+
}
|
600
|
+
insertion_point_->assign(value);
|
601
|
+
}
|
602
|
+
inline void CodeGeneratorResponse_File::set_insertion_point(const char* value, size_t size) {
|
603
|
+
set_has_insertion_point();
|
604
|
+
if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
|
605
|
+
insertion_point_ = new ::std::string;
|
606
|
+
}
|
607
|
+
insertion_point_->assign(reinterpret_cast<const char*>(value), size);
|
608
|
+
}
|
609
|
+
inline ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() {
|
610
|
+
set_has_insertion_point();
|
611
|
+
if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
|
612
|
+
insertion_point_ = new ::std::string;
|
613
|
+
}
|
614
|
+
return insertion_point_;
|
615
|
+
}
|
616
|
+
inline ::std::string* CodeGeneratorResponse_File::release_insertion_point() {
|
617
|
+
clear_has_insertion_point();
|
618
|
+
if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
|
619
|
+
return NULL;
|
620
|
+
} else {
|
621
|
+
::std::string* temp = insertion_point_;
|
622
|
+
insertion_point_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
623
|
+
return temp;
|
624
|
+
}
|
625
|
+
}
|
626
|
+
|
627
|
+
// optional string content = 15;
|
628
|
+
inline bool CodeGeneratorResponse_File::has_content() const {
|
629
|
+
return (_has_bits_[0] & 0x00000004u) != 0;
|
630
|
+
}
|
631
|
+
inline void CodeGeneratorResponse_File::set_has_content() {
|
632
|
+
_has_bits_[0] |= 0x00000004u;
|
633
|
+
}
|
634
|
+
inline void CodeGeneratorResponse_File::clear_has_content() {
|
635
|
+
_has_bits_[0] &= ~0x00000004u;
|
636
|
+
}
|
637
|
+
inline void CodeGeneratorResponse_File::clear_content() {
|
638
|
+
if (content_ != &::google::protobuf::internal::kEmptyString) {
|
639
|
+
content_->clear();
|
640
|
+
}
|
641
|
+
clear_has_content();
|
642
|
+
}
|
643
|
+
inline const ::std::string& CodeGeneratorResponse_File::content() const {
|
644
|
+
return *content_;
|
645
|
+
}
|
646
|
+
inline void CodeGeneratorResponse_File::set_content(const ::std::string& value) {
|
647
|
+
set_has_content();
|
648
|
+
if (content_ == &::google::protobuf::internal::kEmptyString) {
|
649
|
+
content_ = new ::std::string;
|
650
|
+
}
|
651
|
+
content_->assign(value);
|
652
|
+
}
|
653
|
+
inline void CodeGeneratorResponse_File::set_content(const char* value) {
|
654
|
+
set_has_content();
|
655
|
+
if (content_ == &::google::protobuf::internal::kEmptyString) {
|
656
|
+
content_ = new ::std::string;
|
657
|
+
}
|
658
|
+
content_->assign(value);
|
659
|
+
}
|
660
|
+
inline void CodeGeneratorResponse_File::set_content(const char* value, size_t size) {
|
661
|
+
set_has_content();
|
662
|
+
if (content_ == &::google::protobuf::internal::kEmptyString) {
|
663
|
+
content_ = new ::std::string;
|
664
|
+
}
|
665
|
+
content_->assign(reinterpret_cast<const char*>(value), size);
|
666
|
+
}
|
667
|
+
inline ::std::string* CodeGeneratorResponse_File::mutable_content() {
|
668
|
+
set_has_content();
|
669
|
+
if (content_ == &::google::protobuf::internal::kEmptyString) {
|
670
|
+
content_ = new ::std::string;
|
671
|
+
}
|
672
|
+
return content_;
|
673
|
+
}
|
674
|
+
inline ::std::string* CodeGeneratorResponse_File::release_content() {
|
675
|
+
clear_has_content();
|
676
|
+
if (content_ == &::google::protobuf::internal::kEmptyString) {
|
677
|
+
return NULL;
|
678
|
+
} else {
|
679
|
+
::std::string* temp = content_;
|
680
|
+
content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
681
|
+
return temp;
|
682
|
+
}
|
683
|
+
}
|
684
|
+
|
685
|
+
// -------------------------------------------------------------------
|
686
|
+
|
687
|
+
// CodeGeneratorResponse
|
688
|
+
|
689
|
+
// optional string error = 1;
|
690
|
+
inline bool CodeGeneratorResponse::has_error() const {
|
691
|
+
return (_has_bits_[0] & 0x00000001u) != 0;
|
692
|
+
}
|
693
|
+
inline void CodeGeneratorResponse::set_has_error() {
|
694
|
+
_has_bits_[0] |= 0x00000001u;
|
695
|
+
}
|
696
|
+
inline void CodeGeneratorResponse::clear_has_error() {
|
697
|
+
_has_bits_[0] &= ~0x00000001u;
|
698
|
+
}
|
699
|
+
inline void CodeGeneratorResponse::clear_error() {
|
700
|
+
if (error_ != &::google::protobuf::internal::kEmptyString) {
|
701
|
+
error_->clear();
|
702
|
+
}
|
703
|
+
clear_has_error();
|
704
|
+
}
|
705
|
+
inline const ::std::string& CodeGeneratorResponse::error() const {
|
706
|
+
return *error_;
|
707
|
+
}
|
708
|
+
inline void CodeGeneratorResponse::set_error(const ::std::string& value) {
|
709
|
+
set_has_error();
|
710
|
+
if (error_ == &::google::protobuf::internal::kEmptyString) {
|
711
|
+
error_ = new ::std::string;
|
712
|
+
}
|
713
|
+
error_->assign(value);
|
714
|
+
}
|
715
|
+
inline void CodeGeneratorResponse::set_error(const char* value) {
|
716
|
+
set_has_error();
|
717
|
+
if (error_ == &::google::protobuf::internal::kEmptyString) {
|
718
|
+
error_ = new ::std::string;
|
719
|
+
}
|
720
|
+
error_->assign(value);
|
721
|
+
}
|
722
|
+
inline void CodeGeneratorResponse::set_error(const char* value, size_t size) {
|
723
|
+
set_has_error();
|
724
|
+
if (error_ == &::google::protobuf::internal::kEmptyString) {
|
725
|
+
error_ = new ::std::string;
|
726
|
+
}
|
727
|
+
error_->assign(reinterpret_cast<const char*>(value), size);
|
728
|
+
}
|
729
|
+
inline ::std::string* CodeGeneratorResponse::mutable_error() {
|
730
|
+
set_has_error();
|
731
|
+
if (error_ == &::google::protobuf::internal::kEmptyString) {
|
732
|
+
error_ = new ::std::string;
|
733
|
+
}
|
734
|
+
return error_;
|
735
|
+
}
|
736
|
+
inline ::std::string* CodeGeneratorResponse::release_error() {
|
737
|
+
clear_has_error();
|
738
|
+
if (error_ == &::google::protobuf::internal::kEmptyString) {
|
739
|
+
return NULL;
|
740
|
+
} else {
|
741
|
+
::std::string* temp = error_;
|
742
|
+
error_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
743
|
+
return temp;
|
744
|
+
}
|
745
|
+
}
|
746
|
+
|
747
|
+
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
|
748
|
+
inline int CodeGeneratorResponse::file_size() const {
|
749
|
+
return file_.size();
|
750
|
+
}
|
751
|
+
inline void CodeGeneratorResponse::clear_file() {
|
752
|
+
file_.Clear();
|
753
|
+
}
|
754
|
+
inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::file(int index) const {
|
755
|
+
return file_.Get(index);
|
756
|
+
}
|
757
|
+
inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::mutable_file(int index) {
|
758
|
+
return file_.Mutable(index);
|
759
|
+
}
|
760
|
+
inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::add_file() {
|
761
|
+
return file_.Add();
|
762
|
+
}
|
763
|
+
inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >&
|
764
|
+
CodeGeneratorResponse::file() const {
|
765
|
+
return file_;
|
766
|
+
}
|
767
|
+
inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >*
|
768
|
+
CodeGeneratorResponse::mutable_file() {
|
769
|
+
return &file_;
|
770
|
+
}
|
771
|
+
|
772
|
+
|
773
|
+
// @@protoc_insertion_point(namespace_scope)
|
774
|
+
|
775
|
+
} // namespace compiler
|
776
|
+
} // namespace protobuf
|
777
|
+
} // namespace google
|
778
|
+
|
779
|
+
#ifndef SWIG
|
780
|
+
namespace google {
|
781
|
+
namespace protobuf {
|
782
|
+
|
783
|
+
|
784
|
+
} // namespace google
|
785
|
+
} // namespace protobuf
|
786
|
+
#endif // SWIG
|
787
|
+
|
788
|
+
// @@protoc_insertion_point(global_scope)
|
789
|
+
|
790
|
+
#endif // PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED
|