1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
|
---|
2 |
|
---|
3 | using pb = global::Google.ProtocolBuffers;
|
---|
4 | using pbd = global::Google.ProtocolBuffers.Descriptors;
|
---|
5 | namespace Google.ProtocolBuffers.DescriptorProtos {
|
---|
6 |
|
---|
7 | public static partial class CSharpOptions {
|
---|
8 |
|
---|
9 | #region Extension registration
|
---|
10 | public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
|
---|
11 | registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFileOptions);
|
---|
12 | registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFieldOptions);
|
---|
13 | }
|
---|
14 | #endregion
|
---|
15 | #region Extensions
|
---|
16 | public const int CSharpFileOptionsFieldNumber = 1000;
|
---|
17 | public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions> CSharpFileOptions;
|
---|
18 | public const int CSharpFieldOptionsFieldNumber = 1000;
|
---|
19 | public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions> CSharpFieldOptions;
|
---|
20 | #endregion
|
---|
21 |
|
---|
22 | #region Static variables
|
---|
23 | internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFileOptions__Descriptor;
|
---|
24 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder> internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable;
|
---|
25 | internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFieldOptions__Descriptor;
|
---|
26 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder> internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable;
|
---|
27 | #endregion
|
---|
28 | #region Descriptor
|
---|
29 | public static pbd::FileDescriptor Descriptor {
|
---|
30 | get { return descriptor; }
|
---|
31 | }
|
---|
32 | private static pbd::FileDescriptor descriptor;
|
---|
33 |
|
---|
34 | static CSharpOptions() {
|
---|
35 | byte[] descriptorData = global::System.Convert.FromBase64String(
|
---|
36 | "CiRnb29nbGUvcHJvdG9idWYvY3NoYXJwX29wdGlvbnMucHJvdG8SD2dvb2ds" +
|
---|
37 | "ZS5wcm90b2J1ZhogZ29vZ2xlL3Byb3RvYnVmL2Rlc2NyaXB0b3IucHJvdG8i" +
|
---|
38 | "zAEKEUNTaGFycEZpbGVPcHRpb25zEhEKCW5hbWVzcGFjZRgBIAEoCRIaChJ1" +
|
---|
39 | "bWJyZWxsYV9jbGFzc25hbWUYAiABKAkSHAoOcHVibGljX2NsYXNzZXMYAyAB" +
|
---|
40 | "KAg6BHRydWUSFgoObXVsdGlwbGVfZmlsZXMYBCABKAgSFAoMbmVzdF9jbGFz" +
|
---|
41 | "c2VzGAUgASgIEhYKDmNvZGVfY29udHJhY3RzGAYgASgIEiQKHGV4cGFuZF9u" +
|
---|
42 | "YW1lc3BhY2VfZGlyZWN0b3JpZXMYByABKAgiKwoSQ1NoYXJwRmllbGRPcHRp" +
|
---|
43 | "b25zEhUKDXByb3BlcnR5X25hbWUYASABKAk6XgoTY3NoYXJwX2ZpbGVfb3B0" +
|
---|
44 | "aW9ucxIcLmdvb2dsZS5wcm90b2J1Zi5GaWxlT3B0aW9ucxjoByABKAsyIi5n" +
|
---|
45 | "b29nbGUucHJvdG9idWYuQ1NoYXJwRmlsZU9wdGlvbnM6YQoUY3NoYXJwX2Zp" +
|
---|
46 | "ZWxkX29wdGlvbnMSHS5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zGOgH" +
|
---|
47 | "IAEoCzIjLmdvb2dsZS5wcm90b2J1Zi5DU2hhcnBGaWVsZE9wdGlvbnM=");
|
---|
48 | pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
|
---|
49 | descriptor = root;
|
---|
50 | internal__static_google_protobuf_CSharpFileOptions__Descriptor = Descriptor.MessageTypes[0];
|
---|
51 | internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable =
|
---|
52 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder>(internal__static_google_protobuf_CSharpFileOptions__Descriptor,
|
---|
53 | new string[] { "Namespace", "UmbrellaClassname", "PublicClasses", "MultipleFiles", "NestClasses", "CodeContracts", "ExpandNamespaceDirectories", });
|
---|
54 | internal__static_google_protobuf_CSharpFieldOptions__Descriptor = Descriptor.MessageTypes[1];
|
---|
55 | internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable =
|
---|
56 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder>(internal__static_google_protobuf_CSharpFieldOptions__Descriptor,
|
---|
57 | new string[] { "PropertyName", });
|
---|
58 | global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFileOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[0]);
|
---|
59 | global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFieldOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[1]);
|
---|
60 | return null;
|
---|
61 | };
|
---|
62 | pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
|
---|
63 | new pbd::FileDescriptor[] {
|
---|
64 | global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor,
|
---|
65 | }, assigner);
|
---|
66 | }
|
---|
67 | #endregion
|
---|
68 |
|
---|
69 | }
|
---|
70 | #region Messages
|
---|
71 | public sealed partial class CSharpFileOptions : pb::GeneratedMessage<CSharpFileOptions, CSharpFileOptions.Builder> {
|
---|
72 | private static readonly CSharpFileOptions defaultInstance = new Builder().BuildPartial();
|
---|
73 | public static CSharpFileOptions DefaultInstance {
|
---|
74 | get { return defaultInstance; }
|
---|
75 | }
|
---|
76 |
|
---|
77 | public override CSharpFileOptions DefaultInstanceForType {
|
---|
78 | get { return defaultInstance; }
|
---|
79 | }
|
---|
80 |
|
---|
81 | protected override CSharpFileOptions ThisMessage {
|
---|
82 | get { return this; }
|
---|
83 | }
|
---|
84 |
|
---|
85 | public static pbd::MessageDescriptor Descriptor {
|
---|
86 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__Descriptor; }
|
---|
87 | }
|
---|
88 |
|
---|
89 | protected override pb::FieldAccess.FieldAccessorTable<CSharpFileOptions, CSharpFileOptions.Builder> InternalFieldAccessors {
|
---|
90 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable; }
|
---|
91 | }
|
---|
92 |
|
---|
93 | public const int NamespaceFieldNumber = 1;
|
---|
94 | private bool hasNamespace;
|
---|
95 | private string namespace_ = "";
|
---|
96 | public bool HasNamespace {
|
---|
97 | get { return hasNamespace; }
|
---|
98 | }
|
---|
99 | public string Namespace {
|
---|
100 | get { return namespace_; }
|
---|
101 | }
|
---|
102 |
|
---|
103 | public const int UmbrellaClassnameFieldNumber = 2;
|
---|
104 | private bool hasUmbrellaClassname;
|
---|
105 | private string umbrellaClassname_ = "";
|
---|
106 | public bool HasUmbrellaClassname {
|
---|
107 | get { return hasUmbrellaClassname; }
|
---|
108 | }
|
---|
109 | public string UmbrellaClassname {
|
---|
110 | get { return umbrellaClassname_; }
|
---|
111 | }
|
---|
112 |
|
---|
113 | public const int PublicClassesFieldNumber = 3;
|
---|
114 | private bool hasPublicClasses;
|
---|
115 | private bool publicClasses_ = true;
|
---|
116 | public bool HasPublicClasses {
|
---|
117 | get { return hasPublicClasses; }
|
---|
118 | }
|
---|
119 | public bool PublicClasses {
|
---|
120 | get { return publicClasses_; }
|
---|
121 | }
|
---|
122 |
|
---|
123 | public const int MultipleFilesFieldNumber = 4;
|
---|
124 | private bool hasMultipleFiles;
|
---|
125 | private bool multipleFiles_ = false;
|
---|
126 | public bool HasMultipleFiles {
|
---|
127 | get { return hasMultipleFiles; }
|
---|
128 | }
|
---|
129 | public bool MultipleFiles {
|
---|
130 | get { return multipleFiles_; }
|
---|
131 | }
|
---|
132 |
|
---|
133 | public const int NestClassesFieldNumber = 5;
|
---|
134 | private bool hasNestClasses;
|
---|
135 | private bool nestClasses_ = false;
|
---|
136 | public bool HasNestClasses {
|
---|
137 | get { return hasNestClasses; }
|
---|
138 | }
|
---|
139 | public bool NestClasses {
|
---|
140 | get { return nestClasses_; }
|
---|
141 | }
|
---|
142 |
|
---|
143 | public const int CodeContractsFieldNumber = 6;
|
---|
144 | private bool hasCodeContracts;
|
---|
145 | private bool codeContracts_ = false;
|
---|
146 | public bool HasCodeContracts {
|
---|
147 | get { return hasCodeContracts; }
|
---|
148 | }
|
---|
149 | public bool CodeContracts {
|
---|
150 | get { return codeContracts_; }
|
---|
151 | }
|
---|
152 |
|
---|
153 | public const int ExpandNamespaceDirectoriesFieldNumber = 7;
|
---|
154 | private bool hasExpandNamespaceDirectories;
|
---|
155 | private bool expandNamespaceDirectories_ = false;
|
---|
156 | public bool HasExpandNamespaceDirectories {
|
---|
157 | get { return hasExpandNamespaceDirectories; }
|
---|
158 | }
|
---|
159 | public bool ExpandNamespaceDirectories {
|
---|
160 | get { return expandNamespaceDirectories_; }
|
---|
161 | }
|
---|
162 |
|
---|
163 | public override bool IsInitialized {
|
---|
164 | get {
|
---|
165 | return true;
|
---|
166 | }
|
---|
167 | }
|
---|
168 |
|
---|
169 | public override void WriteTo(pb::CodedOutputStream output) {
|
---|
170 | int size = SerializedSize;
|
---|
171 | if (HasNamespace) {
|
---|
172 | output.WriteString(1, Namespace);
|
---|
173 | }
|
---|
174 | if (HasUmbrellaClassname) {
|
---|
175 | output.WriteString(2, UmbrellaClassname);
|
---|
176 | }
|
---|
177 | if (HasPublicClasses) {
|
---|
178 | output.WriteBool(3, PublicClasses);
|
---|
179 | }
|
---|
180 | if (HasMultipleFiles) {
|
---|
181 | output.WriteBool(4, MultipleFiles);
|
---|
182 | }
|
---|
183 | if (HasNestClasses) {
|
---|
184 | output.WriteBool(5, NestClasses);
|
---|
185 | }
|
---|
186 | if (HasCodeContracts) {
|
---|
187 | output.WriteBool(6, CodeContracts);
|
---|
188 | }
|
---|
189 | if (HasExpandNamespaceDirectories) {
|
---|
190 | output.WriteBool(7, ExpandNamespaceDirectories);
|
---|
191 | }
|
---|
192 | UnknownFields.WriteTo(output);
|
---|
193 | }
|
---|
194 |
|
---|
195 | private int memoizedSerializedSize = -1;
|
---|
196 | public override int SerializedSize {
|
---|
197 | get {
|
---|
198 | int size = memoizedSerializedSize;
|
---|
199 | if (size != -1) return size;
|
---|
200 |
|
---|
201 | size = 0;
|
---|
202 | if (HasNamespace) {
|
---|
203 | size += pb::CodedOutputStream.ComputeStringSize(1, Namespace);
|
---|
204 | }
|
---|
205 | if (HasUmbrellaClassname) {
|
---|
206 | size += pb::CodedOutputStream.ComputeStringSize(2, UmbrellaClassname);
|
---|
207 | }
|
---|
208 | if (HasPublicClasses) {
|
---|
209 | size += pb::CodedOutputStream.ComputeBoolSize(3, PublicClasses);
|
---|
210 | }
|
---|
211 | if (HasMultipleFiles) {
|
---|
212 | size += pb::CodedOutputStream.ComputeBoolSize(4, MultipleFiles);
|
---|
213 | }
|
---|
214 | if (HasNestClasses) {
|
---|
215 | size += pb::CodedOutputStream.ComputeBoolSize(5, NestClasses);
|
---|
216 | }
|
---|
217 | if (HasCodeContracts) {
|
---|
218 | size += pb::CodedOutputStream.ComputeBoolSize(6, CodeContracts);
|
---|
219 | }
|
---|
220 | if (HasExpandNamespaceDirectories) {
|
---|
221 | size += pb::CodedOutputStream.ComputeBoolSize(7, ExpandNamespaceDirectories);
|
---|
222 | }
|
---|
223 | size += UnknownFields.SerializedSize;
|
---|
224 | memoizedSerializedSize = size;
|
---|
225 | return size;
|
---|
226 | }
|
---|
227 | }
|
---|
228 |
|
---|
229 | public static CSharpFileOptions ParseFrom(pb::ByteString data) {
|
---|
230 | return ((Builder)CreateBuilder().MergeFrom(data)).BuildParsed();
|
---|
231 | }
|
---|
232 | public static CSharpFileOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
---|
233 | return ((Builder)CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
---|
234 | }
|
---|
235 | public static CSharpFileOptions ParseFrom(byte[] data) {
|
---|
236 | return ((Builder)CreateBuilder().MergeFrom(data)).BuildParsed();
|
---|
237 | }
|
---|
238 | public static CSharpFileOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
---|
239 | return ((Builder)CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
---|
240 | }
|
---|
241 | public static CSharpFileOptions ParseFrom(global::System.IO.Stream input) {
|
---|
242 | return ((Builder)CreateBuilder().MergeFrom(input)).BuildParsed();
|
---|
243 | }
|
---|
244 | public static CSharpFileOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
---|
245 | return ((Builder)CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
---|
246 | }
|
---|
247 | public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input) {
|
---|
248 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
---|
249 | }
|
---|
250 | public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
---|
251 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
---|
252 | }
|
---|
253 | public static CSharpFileOptions ParseFrom(pb::CodedInputStream input) {
|
---|
254 | return ((Builder)CreateBuilder().MergeFrom(input)).BuildParsed();
|
---|
255 | }
|
---|
256 | public static CSharpFileOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
---|
257 | return ((Builder)CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
---|
258 | }
|
---|
259 | public static Builder CreateBuilder() { return new Builder(); }
|
---|
260 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
---|
261 | public override Builder CreateBuilderForType() { return new Builder(); }
|
---|
262 | public static Builder CreateBuilder(CSharpFileOptions prototype) {
|
---|
263 | return (Builder)new Builder().MergeFrom(prototype);
|
---|
264 | }
|
---|
265 |
|
---|
266 | public sealed partial class Builder : pb::GeneratedBuilder<CSharpFileOptions, Builder> {
|
---|
267 | protected override Builder ThisBuilder {
|
---|
268 | get { return this; }
|
---|
269 | }
|
---|
270 | public Builder() { }
|
---|
271 |
|
---|
272 | CSharpFileOptions result = new CSharpFileOptions();
|
---|
273 |
|
---|
274 | protected override CSharpFileOptions MessageBeingBuilt {
|
---|
275 | get { return result; }
|
---|
276 | }
|
---|
277 |
|
---|
278 | public override Builder Clear() {
|
---|
279 | result = new CSharpFileOptions();
|
---|
280 | return this;
|
---|
281 | }
|
---|
282 |
|
---|
283 | public override Builder Clone() {
|
---|
284 | return new Builder().MergeFrom(result);
|
---|
285 | }
|
---|
286 |
|
---|
287 | public override pbd::MessageDescriptor DescriptorForType {
|
---|
288 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Descriptor; }
|
---|
289 | }
|
---|
290 |
|
---|
291 | public override CSharpFileOptions DefaultInstanceForType {
|
---|
292 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance; }
|
---|
293 | }
|
---|
294 |
|
---|
295 | public override CSharpFileOptions BuildPartial() {
|
---|
296 | if (result == null) {
|
---|
297 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
---|
298 | }
|
---|
299 | CSharpFileOptions returnMe = result;
|
---|
300 | result = null;
|
---|
301 | return returnMe;
|
---|
302 | }
|
---|
303 |
|
---|
304 | public override Builder MergeFrom(pb::IMessage other) {
|
---|
305 | if (other is CSharpFileOptions) {
|
---|
306 | return MergeFrom((CSharpFileOptions)other);
|
---|
307 | } else {
|
---|
308 | base.MergeFrom(other);
|
---|
309 | return this;
|
---|
310 | }
|
---|
311 | }
|
---|
312 |
|
---|
313 | public override Builder MergeFrom(CSharpFileOptions other) {
|
---|
314 | if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance) return this;
|
---|
315 | if (other.HasNamespace) {
|
---|
316 | Namespace = other.Namespace;
|
---|
317 | }
|
---|
318 | if (other.HasUmbrellaClassname) {
|
---|
319 | UmbrellaClassname = other.UmbrellaClassname;
|
---|
320 | }
|
---|
321 | if (other.HasPublicClasses) {
|
---|
322 | PublicClasses = other.PublicClasses;
|
---|
323 | }
|
---|
324 | if (other.HasMultipleFiles) {
|
---|
325 | MultipleFiles = other.MultipleFiles;
|
---|
326 | }
|
---|
327 | if (other.HasNestClasses) {
|
---|
328 | NestClasses = other.NestClasses;
|
---|
329 | }
|
---|
330 | if (other.HasCodeContracts) {
|
---|
331 | CodeContracts = other.CodeContracts;
|
---|
332 | }
|
---|
333 | if (other.HasExpandNamespaceDirectories) {
|
---|
334 | ExpandNamespaceDirectories = other.ExpandNamespaceDirectories;
|
---|
335 | }
|
---|
336 | this.MergeUnknownFields(other.UnknownFields);
|
---|
337 | return this;
|
---|
338 | }
|
---|
339 |
|
---|
340 | public override Builder MergeFrom(pb::CodedInputStream input) {
|
---|
341 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
---|
342 | }
|
---|
343 |
|
---|
344 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
---|
345 | pb::UnknownFieldSet.Builder unknownFields = null;
|
---|
346 | while (true) {
|
---|
347 | uint tag = input.ReadTag();
|
---|
348 | switch (tag) {
|
---|
349 | case 0: {
|
---|
350 | if (unknownFields != null) {
|
---|
351 | this.UnknownFields = unknownFields.Build();
|
---|
352 | }
|
---|
353 | return this;
|
---|
354 | }
|
---|
355 | default: {
|
---|
356 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
---|
357 | if (unknownFields != null) {
|
---|
358 | this.UnknownFields = unknownFields.Build();
|
---|
359 | }
|
---|
360 | return this;
|
---|
361 | }
|
---|
362 | if (unknownFields == null) {
|
---|
363 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
---|
364 | }
|
---|
365 | ParseUnknownField(input, unknownFields, extensionRegistry, tag);
|
---|
366 | break;
|
---|
367 | }
|
---|
368 | case 10: {
|
---|
369 | Namespace = input.ReadString();
|
---|
370 | break;
|
---|
371 | }
|
---|
372 | case 18: {
|
---|
373 | UmbrellaClassname = input.ReadString();
|
---|
374 | break;
|
---|
375 | }
|
---|
376 | case 24: {
|
---|
377 | PublicClasses = input.ReadBool();
|
---|
378 | break;
|
---|
379 | }
|
---|
380 | case 32: {
|
---|
381 | MultipleFiles = input.ReadBool();
|
---|
382 | break;
|
---|
383 | }
|
---|
384 | case 40: {
|
---|
385 | NestClasses = input.ReadBool();
|
---|
386 | break;
|
---|
387 | }
|
---|
388 | case 48: {
|
---|
389 | CodeContracts = input.ReadBool();
|
---|
390 | break;
|
---|
391 | }
|
---|
392 | case 56: {
|
---|
393 | ExpandNamespaceDirectories = input.ReadBool();
|
---|
394 | break;
|
---|
395 | }
|
---|
396 | }
|
---|
397 | }
|
---|
398 | }
|
---|
399 |
|
---|
400 |
|
---|
401 | public bool HasNamespace {
|
---|
402 | get { return result.HasNamespace; }
|
---|
403 | }
|
---|
404 | public string Namespace {
|
---|
405 | get { return result.Namespace; }
|
---|
406 | set { SetNamespace(value); }
|
---|
407 | }
|
---|
408 | public Builder SetNamespace(string value) {
|
---|
409 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
---|
410 | result.hasNamespace = true;
|
---|
411 | result.namespace_ = value;
|
---|
412 | return this;
|
---|
413 | }
|
---|
414 | public Builder ClearNamespace() {
|
---|
415 | result.hasNamespace = false;
|
---|
416 | result.namespace_ = "";
|
---|
417 | return this;
|
---|
418 | }
|
---|
419 |
|
---|
420 | public bool HasUmbrellaClassname {
|
---|
421 | get { return result.HasUmbrellaClassname; }
|
---|
422 | }
|
---|
423 | public string UmbrellaClassname {
|
---|
424 | get { return result.UmbrellaClassname; }
|
---|
425 | set { SetUmbrellaClassname(value); }
|
---|
426 | }
|
---|
427 | public Builder SetUmbrellaClassname(string value) {
|
---|
428 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
---|
429 | result.hasUmbrellaClassname = true;
|
---|
430 | result.umbrellaClassname_ = value;
|
---|
431 | return this;
|
---|
432 | }
|
---|
433 | public Builder ClearUmbrellaClassname() {
|
---|
434 | result.hasUmbrellaClassname = false;
|
---|
435 | result.umbrellaClassname_ = "";
|
---|
436 | return this;
|
---|
437 | }
|
---|
438 |
|
---|
439 | public bool HasPublicClasses {
|
---|
440 | get { return result.HasPublicClasses; }
|
---|
441 | }
|
---|
442 | public bool PublicClasses {
|
---|
443 | get { return result.PublicClasses; }
|
---|
444 | set { SetPublicClasses(value); }
|
---|
445 | }
|
---|
446 | public Builder SetPublicClasses(bool value) {
|
---|
447 | result.hasPublicClasses = true;
|
---|
448 | result.publicClasses_ = value;
|
---|
449 | return this;
|
---|
450 | }
|
---|
451 | public Builder ClearPublicClasses() {
|
---|
452 | result.hasPublicClasses = false;
|
---|
453 | result.publicClasses_ = true;
|
---|
454 | return this;
|
---|
455 | }
|
---|
456 |
|
---|
457 | public bool HasMultipleFiles {
|
---|
458 | get { return result.HasMultipleFiles; }
|
---|
459 | }
|
---|
460 | public bool MultipleFiles {
|
---|
461 | get { return result.MultipleFiles; }
|
---|
462 | set { SetMultipleFiles(value); }
|
---|
463 | }
|
---|
464 | public Builder SetMultipleFiles(bool value) {
|
---|
465 | result.hasMultipleFiles = true;
|
---|
466 | result.multipleFiles_ = value;
|
---|
467 | return this;
|
---|
468 | }
|
---|
469 | public Builder ClearMultipleFiles() {
|
---|
470 | result.hasMultipleFiles = false;
|
---|
471 | result.multipleFiles_ = false;
|
---|
472 | return this;
|
---|
473 | }
|
---|
474 |
|
---|
475 | public bool HasNestClasses {
|
---|
476 | get { return result.HasNestClasses; }
|
---|
477 | }
|
---|
478 | public bool NestClasses {
|
---|
479 | get { return result.NestClasses; }
|
---|
480 | set { SetNestClasses(value); }
|
---|
481 | }
|
---|
482 | public Builder SetNestClasses(bool value) {
|
---|
483 | result.hasNestClasses = true;
|
---|
484 | result.nestClasses_ = value;
|
---|
485 | return this;
|
---|
486 | }
|
---|
487 | public Builder ClearNestClasses() {
|
---|
488 | result.hasNestClasses = false;
|
---|
489 | result.nestClasses_ = false;
|
---|
490 | return this;
|
---|
491 | }
|
---|
492 |
|
---|
493 | public bool HasCodeContracts {
|
---|
494 | get { return result.HasCodeContracts; }
|
---|
495 | }
|
---|
496 | public bool CodeContracts {
|
---|
497 | get { return result.CodeContracts; }
|
---|
498 | set { SetCodeContracts(value); }
|
---|
499 | }
|
---|
500 | public Builder SetCodeContracts(bool value) {
|
---|
501 | result.hasCodeContracts = true;
|
---|
502 | result.codeContracts_ = value;
|
---|
503 | return this;
|
---|
504 | }
|
---|
505 | public Builder ClearCodeContracts() {
|
---|
506 | result.hasCodeContracts = false;
|
---|
507 | result.codeContracts_ = false;
|
---|
508 | return this;
|
---|
509 | }
|
---|
510 |
|
---|
511 | public bool HasExpandNamespaceDirectories {
|
---|
512 | get { return result.HasExpandNamespaceDirectories; }
|
---|
513 | }
|
---|
514 | public bool ExpandNamespaceDirectories {
|
---|
515 | get { return result.ExpandNamespaceDirectories; }
|
---|
516 | set { SetExpandNamespaceDirectories(value); }
|
---|
517 | }
|
---|
518 | public Builder SetExpandNamespaceDirectories(bool value) {
|
---|
519 | result.hasExpandNamespaceDirectories = true;
|
---|
520 | result.expandNamespaceDirectories_ = value;
|
---|
521 | return this;
|
---|
522 | }
|
---|
523 | public Builder ClearExpandNamespaceDirectories() {
|
---|
524 | result.hasExpandNamespaceDirectories = false;
|
---|
525 | result.expandNamespaceDirectories_ = false;
|
---|
526 | return this;
|
---|
527 | }
|
---|
528 | }
|
---|
529 | static CSharpFileOptions() {
|
---|
530 | object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
|
---|
531 | }
|
---|
532 | }
|
---|
533 |
|
---|
534 | public sealed partial class CSharpFieldOptions : pb::GeneratedMessage<CSharpFieldOptions, CSharpFieldOptions.Builder> {
|
---|
535 | private static readonly CSharpFieldOptions defaultInstance = new Builder().BuildPartial();
|
---|
536 | public static CSharpFieldOptions DefaultInstance {
|
---|
537 | get { return defaultInstance; }
|
---|
538 | }
|
---|
539 |
|
---|
540 | public override CSharpFieldOptions DefaultInstanceForType {
|
---|
541 | get { return defaultInstance; }
|
---|
542 | }
|
---|
543 |
|
---|
544 | protected override CSharpFieldOptions ThisMessage {
|
---|
545 | get { return this; }
|
---|
546 | }
|
---|
547 |
|
---|
548 | public static pbd::MessageDescriptor Descriptor {
|
---|
549 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__Descriptor; }
|
---|
550 | }
|
---|
551 |
|
---|
552 | protected override pb::FieldAccess.FieldAccessorTable<CSharpFieldOptions, CSharpFieldOptions.Builder> InternalFieldAccessors {
|
---|
553 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable; }
|
---|
554 | }
|
---|
555 |
|
---|
556 | public const int PropertyNameFieldNumber = 1;
|
---|
557 | private bool hasPropertyName;
|
---|
558 | private string propertyName_ = "";
|
---|
559 | public bool HasPropertyName {
|
---|
560 | get { return hasPropertyName; }
|
---|
561 | }
|
---|
562 | public string PropertyName {
|
---|
563 | get { return propertyName_; }
|
---|
564 | }
|
---|
565 |
|
---|
566 | public override bool IsInitialized {
|
---|
567 | get {
|
---|
568 | return true;
|
---|
569 | }
|
---|
570 | }
|
---|
571 |
|
---|
572 | public override void WriteTo(pb::CodedOutputStream output) {
|
---|
573 | int size = SerializedSize;
|
---|
574 | if (HasPropertyName) {
|
---|
575 | output.WriteString(1, PropertyName);
|
---|
576 | }
|
---|
577 | UnknownFields.WriteTo(output);
|
---|
578 | }
|
---|
579 |
|
---|
580 | private int memoizedSerializedSize = -1;
|
---|
581 | public override int SerializedSize {
|
---|
582 | get {
|
---|
583 | int size = memoizedSerializedSize;
|
---|
584 | if (size != -1) return size;
|
---|
585 |
|
---|
586 | size = 0;
|
---|
587 | if (HasPropertyName) {
|
---|
588 | size += pb::CodedOutputStream.ComputeStringSize(1, PropertyName);
|
---|
589 | }
|
---|
590 | size += UnknownFields.SerializedSize;
|
---|
591 | memoizedSerializedSize = size;
|
---|
592 | return size;
|
---|
593 | }
|
---|
594 | }
|
---|
595 |
|
---|
596 | public static CSharpFieldOptions ParseFrom(pb::ByteString data) {
|
---|
597 | return ((Builder)CreateBuilder().MergeFrom(data)).BuildParsed();
|
---|
598 | }
|
---|
599 | public static CSharpFieldOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
---|
600 | return ((Builder)CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
---|
601 | }
|
---|
602 | public static CSharpFieldOptions ParseFrom(byte[] data) {
|
---|
603 | return ((Builder)CreateBuilder().MergeFrom(data)).BuildParsed();
|
---|
604 | }
|
---|
605 | public static CSharpFieldOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
---|
606 | return ((Builder)CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
---|
607 | }
|
---|
608 | public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input) {
|
---|
609 | return ((Builder)CreateBuilder().MergeFrom(input)).BuildParsed();
|
---|
610 | }
|
---|
611 | public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
---|
612 | return ((Builder)CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
---|
613 | }
|
---|
614 | public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input) {
|
---|
615 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
---|
616 | }
|
---|
617 | public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
---|
618 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
---|
619 | }
|
---|
620 | public static CSharpFieldOptions ParseFrom(pb::CodedInputStream input) {
|
---|
621 | return ((Builder)CreateBuilder().MergeFrom(input)).BuildParsed();
|
---|
622 | }
|
---|
623 | public static CSharpFieldOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
---|
624 | return ((Builder)CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
---|
625 | }
|
---|
626 | public static Builder CreateBuilder() { return new Builder(); }
|
---|
627 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
---|
628 | public override Builder CreateBuilderForType() { return new Builder(); }
|
---|
629 | public static Builder CreateBuilder(CSharpFieldOptions prototype) {
|
---|
630 | return (Builder)new Builder().MergeFrom(prototype);
|
---|
631 | }
|
---|
632 |
|
---|
633 | public sealed partial class Builder : pb::GeneratedBuilder<CSharpFieldOptions, Builder> {
|
---|
634 | protected override Builder ThisBuilder {
|
---|
635 | get { return this; }
|
---|
636 | }
|
---|
637 | public Builder() { }
|
---|
638 |
|
---|
639 | CSharpFieldOptions result = new CSharpFieldOptions();
|
---|
640 |
|
---|
641 | protected override CSharpFieldOptions MessageBeingBuilt {
|
---|
642 | get { return result; }
|
---|
643 | }
|
---|
644 |
|
---|
645 | public override Builder Clear() {
|
---|
646 | result = new CSharpFieldOptions();
|
---|
647 | return this;
|
---|
648 | }
|
---|
649 |
|
---|
650 | public override Builder Clone() {
|
---|
651 | return new Builder().MergeFrom(result);
|
---|
652 | }
|
---|
653 |
|
---|
654 | public override pbd::MessageDescriptor DescriptorForType {
|
---|
655 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Descriptor; }
|
---|
656 | }
|
---|
657 |
|
---|
658 | public override CSharpFieldOptions DefaultInstanceForType {
|
---|
659 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance; }
|
---|
660 | }
|
---|
661 |
|
---|
662 | public override CSharpFieldOptions BuildPartial() {
|
---|
663 | if (result == null) {
|
---|
664 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
---|
665 | }
|
---|
666 | CSharpFieldOptions returnMe = result;
|
---|
667 | result = null;
|
---|
668 | return returnMe;
|
---|
669 | }
|
---|
670 |
|
---|
671 | public override Builder MergeFrom(pb::IMessage other) {
|
---|
672 | if (other is CSharpFieldOptions) {
|
---|
673 | return MergeFrom((CSharpFieldOptions)other);
|
---|
674 | } else {
|
---|
675 | base.MergeFrom(other);
|
---|
676 | return this;
|
---|
677 | }
|
---|
678 | }
|
---|
679 |
|
---|
680 | public override Builder MergeFrom(CSharpFieldOptions other) {
|
---|
681 | if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance) return this;
|
---|
682 | if (other.HasPropertyName) {
|
---|
683 | PropertyName = other.PropertyName;
|
---|
684 | }
|
---|
685 | this.MergeUnknownFields(other.UnknownFields);
|
---|
686 | return this;
|
---|
687 | }
|
---|
688 |
|
---|
689 | public override Builder MergeFrom(pb::CodedInputStream input) {
|
---|
690 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
---|
691 | }
|
---|
692 |
|
---|
693 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
---|
694 | pb::UnknownFieldSet.Builder unknownFields = null;
|
---|
695 | while (true) {
|
---|
696 | uint tag = input.ReadTag();
|
---|
697 | switch (tag) {
|
---|
698 | case 0: {
|
---|
699 | if (unknownFields != null) {
|
---|
700 | this.UnknownFields = unknownFields.Build();
|
---|
701 | }
|
---|
702 | return this;
|
---|
703 | }
|
---|
704 | default: {
|
---|
705 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
---|
706 | if (unknownFields != null) {
|
---|
707 | this.UnknownFields = unknownFields.Build();
|
---|
708 | }
|
---|
709 | return this;
|
---|
710 | }
|
---|
711 | if (unknownFields == null) {
|
---|
712 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
---|
713 | }
|
---|
714 | ParseUnknownField(input, unknownFields, extensionRegistry, tag);
|
---|
715 | break;
|
---|
716 | }
|
---|
717 | case 10: {
|
---|
718 | PropertyName = input.ReadString();
|
---|
719 | break;
|
---|
720 | }
|
---|
721 | }
|
---|
722 | }
|
---|
723 | }
|
---|
724 |
|
---|
725 |
|
---|
726 | public bool HasPropertyName {
|
---|
727 | get { return result.HasPropertyName; }
|
---|
728 | }
|
---|
729 | public string PropertyName {
|
---|
730 | get { return result.PropertyName; }
|
---|
731 | set { SetPropertyName(value); }
|
---|
732 | }
|
---|
733 | public Builder SetPropertyName(string value) {
|
---|
734 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
---|
735 | result.hasPropertyName = true;
|
---|
736 | result.propertyName_ = value;
|
---|
737 | return this;
|
---|
738 | }
|
---|
739 | public Builder ClearPropertyName() {
|
---|
740 | result.hasPropertyName = false;
|
---|
741 | result.propertyName_ = "";
|
---|
742 | return this;
|
---|
743 | }
|
---|
744 | }
|
---|
745 | static CSharpFieldOptions() {
|
---|
746 | object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
|
---|
747 | }
|
---|
748 | }
|
---|
749 |
|
---|
750 | #endregion
|
---|
751 |
|
---|
752 | }
|
---|