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