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

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

Issue 2599263002: third_party/protobuf: Update to HEAD (f52e188fe4) (Closed)
Patch Set: Address comments Created 3 years, 12 months 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 < 3000000 11 #if GOOGLE_PROTOBUF_VERSION < 3001000
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 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 16 #if 3001000 < 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> 27 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
28 #include <google/protobuf/extension_set.h> 28 #include <google/protobuf/extension_set.h> // IWYU pragma: export
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
31 38
32 namespace google { 39 namespace google {
33 namespace protobuf { 40 namespace protobuf {
34 41
35 // Internal implementation detail -- do not call these. 42 // Internal implementation detail -- do not call these.
36 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2e proto(); 43 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2e proto();
37 void protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2eproto(); 44 void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fsource_5fconte xt_2eproto();
38 void protobuf_ShutdownFile_google_2fprotobuf_2fsource_5fcontext_2eproto();
39
40 class SourceContext;
41 45
42 // =================================================================== 46 // ===================================================================
43 47
44 class LIBPROTOBUF_EXPORT SourceContext : public ::google::protobuf::Message { 48 class LIBPROTOBUF_EXPORT SourceContext : public ::google::protobuf::Message /* @ @protoc_insertion_point(class_definition:google.protobuf.SourceContext) */ {
45 public: 49 public:
46 SourceContext(); 50 SourceContext();
47 virtual ~SourceContext(); 51 virtual ~SourceContext();
48 52
49 SourceContext(const SourceContext& from); 53 SourceContext(const SourceContext& from);
50 54
51 inline SourceContext& operator=(const SourceContext& from) { 55 inline SourceContext& operator=(const SourceContext& from) {
52 CopyFrom(from); 56 CopyFrom(from);
53 return *this; 57 return *this;
54 } 58 }
55 59
56 static const ::google::protobuf::Descriptor* descriptor(); 60 static const ::google::protobuf::Descriptor* descriptor();
57 static const SourceContext& default_instance(); 61 static const SourceContext& default_instance();
58 62
63 static inline const SourceContext* internal_default_instance() {
64 return reinterpret_cast<const SourceContext*>(
65 &_SourceContext_default_instance_);
66 }
67
59 void Swap(SourceContext* other); 68 void Swap(SourceContext* other);
60 69
61 // implements Message ---------------------------------------------- 70 // implements Message ----------------------------------------------
62 71
63 inline SourceContext* New() const { return New(NULL); } 72 inline SourceContext* New() const PROTOBUF_FINAL { return New(NULL); }
64 73
65 SourceContext* New(::google::protobuf::Arena* arena) const; 74 SourceContext* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
66 void CopyFrom(const ::google::protobuf::Message& from); 75 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
67 void MergeFrom(const ::google::protobuf::Message& from); 76 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
68 void CopyFrom(const SourceContext& from); 77 void CopyFrom(const SourceContext& from);
69 void MergeFrom(const SourceContext& from); 78 void MergeFrom(const SourceContext& from);
70 void Clear(); 79 void Clear() PROTOBUF_FINAL;
71 bool IsInitialized() const; 80 bool IsInitialized() const PROTOBUF_FINAL;
72 81
73 int ByteSize() const; 82 size_t ByteSizeLong() const PROTOBUF_FINAL;
74 bool MergePartialFromCodedStream( 83 bool MergePartialFromCodedStream(
75 ::google::protobuf::io::CodedInputStream* input); 84 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
76 void SerializeWithCachedSizes( 85 void SerializeWithCachedSizes(
77 ::google::protobuf::io::CodedOutputStream* output) const; 86 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
78 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output) const; 87 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
79 int GetCachedSize() const { return _cached_size_; } 88 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA L;
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_; }
80 private: 94 private:
81 void SharedCtor(); 95 void SharedCtor();
82 void SharedDtor(); 96 void SharedDtor();
83 void SetCachedSize(int size) const; 97 void SetCachedSize(int size) const PROTOBUF_FINAL;
84 void InternalSwap(SourceContext* other); 98 void InternalSwap(SourceContext* other);
85 private: 99 private:
86 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 100 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
87 return _internal_metadata_.arena(); 101 return NULL;
88 } 102 }
89 inline void* MaybeArenaPtr() const { 103 inline void* MaybeArenaPtr() const {
90 return _internal_metadata_.raw_arena_ptr(); 104 return NULL;
91 } 105 }
92 public: 106 public:
93 107
94 ::google::protobuf::Metadata GetMetadata() const; 108 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
95 109
96 // nested types ---------------------------------------------------- 110 // nested types ----------------------------------------------------
97 111
98 // accessors ------------------------------------------------------- 112 // accessors -------------------------------------------------------
99 113
100 // optional string file_name = 1; 114 // string file_name = 1;
101 void clear_file_name(); 115 void clear_file_name();
102 static const int kFileNameFieldNumber = 1; 116 static const int kFileNameFieldNumber = 1;
103 const ::std::string& file_name() const; 117 const ::std::string& file_name() const;
104 void set_file_name(const ::std::string& value); 118 void set_file_name(const ::std::string& value);
119 #if LANG_CXX11
120 void set_file_name(::std::string&& value);
121 #endif
105 void set_file_name(const char* value); 122 void set_file_name(const char* value);
106 void set_file_name(const char* value, size_t size); 123 void set_file_name(const char* value, size_t size);
107 ::std::string* mutable_file_name(); 124 ::std::string* mutable_file_name();
108 ::std::string* release_file_name(); 125 ::std::string* release_file_name();
109 void set_allocated_file_name(::std::string* file_name); 126 void set_allocated_file_name(::std::string* file_name);
110 127
111 // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext) 128 // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext)
112 private: 129 private:
113 130
114 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 131 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
115 bool _is_default_instance_;
116 ::google::protobuf::internal::ArenaStringPtr file_name_; 132 ::google::protobuf::internal::ArenaStringPtr file_name_;
117 mutable int _cached_size_; 133 mutable int _cached_size_;
118 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fsource_5fc ontext_2eproto(); 134 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fsourc e_5fcontext_2eproto_impl();
119 friend void protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2eproto() ; 135 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fsource_5fc ontext_2eproto_impl();
136 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f source_5fcontext_2eproto();
120 friend void protobuf_ShutdownFile_google_2fprotobuf_2fsource_5fcontext_2eproto (); 137 friend void protobuf_ShutdownFile_google_2fprotobuf_2fsource_5fcontext_2eproto ();
121 138
122 void InitAsDefaultInstance();
123 static SourceContext* default_instance_;
124 }; 139 };
125 // =================================================================== 140 // ===================================================================
126 141
127 142
128 // =================================================================== 143 // ===================================================================
129 144
130 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 145 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
131 // SourceContext 146 // SourceContext
132 147
133 // optional string file_name = 1; 148 // string file_name = 1;
134 inline void SourceContext::clear_file_name() { 149 inline void SourceContext::clear_file_name() {
135 file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 150 file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
136 } 151 }
137 inline const ::std::string& SourceContext::file_name() const { 152 inline const ::std::string& SourceContext::file_name() const {
138 // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name) 153 // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name)
139 return file_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 154 return file_name_.GetNoArena();
140 } 155 }
141 inline void SourceContext::set_file_name(const ::std::string& value) { 156 inline void SourceContext::set_file_name(const ::std::string& value) {
142 157
143 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value); 158 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value);
144 // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name) 159 // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name)
145 } 160 }
161 #if LANG_CXX11
162 inline void SourceContext::set_file_name(::std::string&& value) {
163
164 file_name_.SetNoArena(
165 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va lue));
166 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.SourceContext.fil e_name)
167 }
168 #endif
146 inline void SourceContext::set_file_name(const char* value) { 169 inline void SourceContext::set_file_name(const char* value) {
147 170
148 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value)); 171 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value));
149 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceContext.file_ name) 172 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceContext.file_ name)
150 } 173 }
151 inline void SourceContext::set_file_name(const char* value, size_t size) { 174 inline void SourceContext::set_file_name(const char* value, size_t size) {
152 175
153 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), 176 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(),
154 ::std::string(reinterpret_cast<const char*>(value), size)); 177 ::std::string(reinterpret_cast<const char*>(value), size));
155 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceContext.fi le_name) 178 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceContext.fi le_name)
(...skipping 15 matching lines...) Expand all
171 194
172 } 195 }
173 file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), file_name); 196 file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), file_name);
174 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext. file_name) 197 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext. file_name)
175 } 198 }
176 199
177 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 200 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
178 201
179 // @@protoc_insertion_point(namespace_scope) 202 // @@protoc_insertion_point(namespace_scope)
180 203
204
181 } // namespace protobuf 205 } // namespace protobuf
182 } // namespace google 206 } // namespace google
183 207
184 // @@protoc_insertion_point(global_scope) 208 // @@protoc_insertion_point(global_scope)
185 209
186 #endif // PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED 210 #endif // PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698