Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: third_party/protobuf/src/google/protobuf/source_context.pb.h

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Generated by the protocol buffer compiler. DO NOT EDIT! 1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/source_context.proto 2 // source: google/protobuf/source_context.proto
3 3
4 #ifndef PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED 4 #ifndef PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED
5 #define PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED 5 #define PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED
6 6
7 #include <string> 7 #include <string>
8 8
9 #include <google/protobuf/stubs/common.h> 9 #include <google/protobuf/stubs/common.h>
10 10
11 #if GOOGLE_PROTOBUF_VERSION < 3001000 11 #if GOOGLE_PROTOBUF_VERSION < 3000000
12 #error This file was generated by a newer version of protoc which is 12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update 13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers. 14 #error your headers.
15 #endif 15 #endif
16 #if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 16 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is 17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please 18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc. 19 #error regenerate this file with a newer version of protoc.
20 #endif 20 #endif
21 21
22 #include <google/protobuf/arena.h> 22 #include <google/protobuf/arena.h>
23 #include <google/protobuf/arenastring.h> 23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h> 24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h> 25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h> 26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h> // IWYU pragma: export 27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h> // IWYU pragma: export 28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h> 29 #include <google/protobuf/unknown_field_set.h>
30 // @@protoc_insertion_point(includes) 30 // @@protoc_insertion_point(includes)
31 namespace google {
32 namespace protobuf {
33 class SourceContext;
34 class SourceContextDefaultTypeInternal;
35 LIBPROTOBUF_EXPORT extern SourceContextDefaultTypeInternal _SourceContext_defaul t_instance_;
36 } // namespace protobuf
37 } // namespace google
38 31
39 namespace google { 32 namespace google {
40 namespace protobuf { 33 namespace protobuf {
41 34
42 // Internal implementation detail -- do not call these. 35 // Internal implementation detail -- do not call these.
43 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2e proto(); 36 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2e proto();
44 void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fsource_5fconte xt_2eproto(); 37 void protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2eproto();
38 void protobuf_ShutdownFile_google_2fprotobuf_2fsource_5fcontext_2eproto();
39
40 class SourceContext;
45 41
46 // =================================================================== 42 // ===================================================================
47 43
48 class LIBPROTOBUF_EXPORT SourceContext : public ::google::protobuf::Message /* @ @protoc_insertion_point(class_definition:google.protobuf.SourceContext) */ { 44 class LIBPROTOBUF_EXPORT SourceContext : public ::google::protobuf::Message {
49 public: 45 public:
50 SourceContext(); 46 SourceContext();
51 virtual ~SourceContext(); 47 virtual ~SourceContext();
52 48
53 SourceContext(const SourceContext& from); 49 SourceContext(const SourceContext& from);
54 50
55 inline SourceContext& operator=(const SourceContext& from) { 51 inline SourceContext& operator=(const SourceContext& from) {
56 CopyFrom(from); 52 CopyFrom(from);
57 return *this; 53 return *this;
58 } 54 }
59 55
60 static const ::google::protobuf::Descriptor* descriptor(); 56 static const ::google::protobuf::Descriptor* descriptor();
61 static const SourceContext& default_instance(); 57 static const SourceContext& default_instance();
62 58
63 static inline const SourceContext* internal_default_instance() {
64 return reinterpret_cast<const SourceContext*>(
65 &_SourceContext_default_instance_);
66 }
67
68 void Swap(SourceContext* other); 59 void Swap(SourceContext* other);
69 60
70 // implements Message ---------------------------------------------- 61 // implements Message ----------------------------------------------
71 62
72 inline SourceContext* New() const PROTOBUF_FINAL { return New(NULL); } 63 inline SourceContext* New() const { return New(NULL); }
73 64
74 SourceContext* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; 65 SourceContext* New(::google::protobuf::Arena* arena) const;
75 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; 66 void CopyFrom(const ::google::protobuf::Message& from);
76 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; 67 void MergeFrom(const ::google::protobuf::Message& from);
77 void CopyFrom(const SourceContext& from); 68 void CopyFrom(const SourceContext& from);
78 void MergeFrom(const SourceContext& from); 69 void MergeFrom(const SourceContext& from);
79 void Clear() PROTOBUF_FINAL; 70 void Clear();
80 bool IsInitialized() const PROTOBUF_FINAL; 71 bool IsInitialized() const;
81 72
82 size_t ByteSizeLong() const PROTOBUF_FINAL; 73 int ByteSize() const;
83 bool MergePartialFromCodedStream( 74 bool MergePartialFromCodedStream(
84 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; 75 ::google::protobuf::io::CodedInputStream* input);
85 void SerializeWithCachedSizes( 76 void SerializeWithCachedSizes(
86 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; 77 ::google::protobuf::io::CodedOutputStream* output) const;
87 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( 78 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output) const;
88 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA L; 79 int GetCachedSize() const { return _cached_size_; }
89 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output)
90 const PROTOBUF_FINAL {
91 return InternalSerializeWithCachedSizesToArray(false, output);
92 }
93 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
94 private: 80 private:
95 void SharedCtor(); 81 void SharedCtor();
96 void SharedDtor(); 82 void SharedDtor();
97 void SetCachedSize(int size) const PROTOBUF_FINAL; 83 void SetCachedSize(int size) const;
98 void InternalSwap(SourceContext* other); 84 void InternalSwap(SourceContext* other);
99 private: 85 private:
100 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 86 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
101 return NULL; 87 return _internal_metadata_.arena();
102 } 88 }
103 inline void* MaybeArenaPtr() const { 89 inline void* MaybeArenaPtr() const {
104 return NULL; 90 return _internal_metadata_.raw_arena_ptr();
105 } 91 }
106 public: 92 public:
107 93
108 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; 94 ::google::protobuf::Metadata GetMetadata() const;
109 95
110 // nested types ---------------------------------------------------- 96 // nested types ----------------------------------------------------
111 97
112 // accessors ------------------------------------------------------- 98 // accessors -------------------------------------------------------
113 99
114 // string file_name = 1; 100 // optional string file_name = 1;
115 void clear_file_name(); 101 void clear_file_name();
116 static const int kFileNameFieldNumber = 1; 102 static const int kFileNameFieldNumber = 1;
117 const ::std::string& file_name() const; 103 const ::std::string& file_name() const;
118 void set_file_name(const ::std::string& value); 104 void set_file_name(const ::std::string& value);
119 void set_file_name(const char* value); 105 void set_file_name(const char* value);
120 void set_file_name(const char* value, size_t size); 106 void set_file_name(const char* value, size_t size);
121 ::std::string* mutable_file_name(); 107 ::std::string* mutable_file_name();
122 ::std::string* release_file_name(); 108 ::std::string* release_file_name();
123 void set_allocated_file_name(::std::string* file_name); 109 void set_allocated_file_name(::std::string* file_name);
124 110
125 // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext) 111 // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext)
126 private: 112 private:
127 113
128 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 114 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
115 bool _is_default_instance_;
129 ::google::protobuf::internal::ArenaStringPtr file_name_; 116 ::google::protobuf::internal::ArenaStringPtr file_name_;
130 mutable int _cached_size_; 117 mutable int _cached_size_;
131 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fsourc e_5fcontext_2eproto_impl(); 118 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fsource_5fc ontext_2eproto();
132 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fsource_5fc ontext_2eproto_impl(); 119 friend void protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2eproto() ;
133 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f source_5fcontext_2eproto();
134 friend void protobuf_ShutdownFile_google_2fprotobuf_2fsource_5fcontext_2eproto (); 120 friend void protobuf_ShutdownFile_google_2fprotobuf_2fsource_5fcontext_2eproto ();
135 121
122 void InitAsDefaultInstance();
123 static SourceContext* default_instance_;
136 }; 124 };
137 // =================================================================== 125 // ===================================================================
138 126
139 127
140 // =================================================================== 128 // ===================================================================
141 129
142 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 130 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
143 // SourceContext 131 // SourceContext
144 132
145 // string file_name = 1; 133 // optional string file_name = 1;
146 inline void SourceContext::clear_file_name() { 134 inline void SourceContext::clear_file_name() {
147 file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 135 file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
148 } 136 }
149 inline const ::std::string& SourceContext::file_name() const { 137 inline const ::std::string& SourceContext::file_name() const {
150 // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name) 138 // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name)
151 return file_name_.GetNoArena(); 139 return file_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
152 } 140 }
153 inline void SourceContext::set_file_name(const ::std::string& value) { 141 inline void SourceContext::set_file_name(const ::std::string& value) {
154 142
155 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value); 143 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value);
156 // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name) 144 // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name)
157 } 145 }
158 inline void SourceContext::set_file_name(const char* value) { 146 inline void SourceContext::set_file_name(const char* value) {
159 147
160 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value)); 148 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value));
161 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceContext.file_ name) 149 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceContext.file_ name)
(...skipping 21 matching lines...) Expand all
183 171
184 } 172 }
185 file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), file_name); 173 file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), file_name);
186 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext. file_name) 174 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext. file_name)
187 } 175 }
188 176
189 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 177 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
190 178
191 // @@protoc_insertion_point(namespace_scope) 179 // @@protoc_insertion_point(namespace_scope)
192 180
193
194 } // namespace protobuf 181 } // namespace protobuf
195 } // namespace google 182 } // namespace google
196 183
197 // @@protoc_insertion_point(global_scope) 184 // @@protoc_insertion_point(global_scope)
198 185
199 #endif // PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED 186 #endif // PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698