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