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

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

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component 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 < 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);
105 void set_file_name(const char* value); 119 void set_file_name(const char* value);
106 void set_file_name(const char* value, size_t size); 120 void set_file_name(const char* value, size_t size);
107 ::std::string* mutable_file_name(); 121 ::std::string* mutable_file_name();
108 ::std::string* release_file_name(); 122 ::std::string* release_file_name();
109 void set_allocated_file_name(::std::string* file_name); 123 void set_allocated_file_name(::std::string* file_name);
110 124
111 // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext) 125 // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext)
112 private: 126 private:
113 127
114 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 128 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
115 bool _is_default_instance_;
116 ::google::protobuf::internal::ArenaStringPtr file_name_; 129 ::google::protobuf::internal::ArenaStringPtr file_name_;
117 mutable int _cached_size_; 130 mutable int _cached_size_;
118 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fsource_5fc ontext_2eproto(); 131 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fsourc e_5fcontext_2eproto_impl();
119 friend void protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2eproto() ; 132 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fsource_5fc ontext_2eproto_impl();
133 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f source_5fcontext_2eproto();
120 friend void protobuf_ShutdownFile_google_2fprotobuf_2fsource_5fcontext_2eproto (); 134 friend void protobuf_ShutdownFile_google_2fprotobuf_2fsource_5fcontext_2eproto ();
121 135
122 void InitAsDefaultInstance();
123 static SourceContext* default_instance_;
124 }; 136 };
125 // =================================================================== 137 // ===================================================================
126 138
127 139
128 // =================================================================== 140 // ===================================================================
129 141
130 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 142 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
131 // SourceContext 143 // SourceContext
132 144
133 // optional string file_name = 1; 145 // string file_name = 1;
134 inline void SourceContext::clear_file_name() { 146 inline void SourceContext::clear_file_name() {
135 file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 147 file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
136 } 148 }
137 inline const ::std::string& SourceContext::file_name() const { 149 inline const ::std::string& SourceContext::file_name() const {
138 // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name) 150 // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name)
139 return file_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 151 return file_name_.GetNoArena();
140 } 152 }
141 inline void SourceContext::set_file_name(const ::std::string& value) { 153 inline void SourceContext::set_file_name(const ::std::string& value) {
142 154
143 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value); 155 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value);
144 // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name) 156 // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name)
145 } 157 }
146 inline void SourceContext::set_file_name(const char* value) { 158 inline void SourceContext::set_file_name(const char* value) {
147 159
148 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value)); 160 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value));
149 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceContext.file_ name) 161 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceContext.file_ name)
(...skipping 21 matching lines...) Expand all
171 183
172 } 184 }
173 file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), file_name); 185 file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), file_name);
174 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext. file_name) 186 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext. file_name)
175 } 187 }
176 188
177 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 189 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
178 190
179 // @@protoc_insertion_point(namespace_scope) 191 // @@protoc_insertion_point(namespace_scope)
180 192
193
181 } // namespace protobuf 194 } // namespace protobuf
182 } // namespace google 195 } // namespace google
183 196
184 // @@protoc_insertion_point(global_scope) 197 // @@protoc_insertion_point(global_scope)
185 198
186 #endif // PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED 199 #endif // PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698