Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame^] | 1 | // Generated by ProtoGen, Version=0.9.0.0, Culture=neutral, PublicKeyToken=8fd7408b07f8d2cd. 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 |
|
| 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
|
| 30 | #region Descriptor
|
| 31 | public static pbd::FileDescriptor Descriptor {
|
| 32 | get { return descriptor; }
|
| 33 | }
|
| 34 | private static pbd::FileDescriptor descriptor;
|
| 35 |
|
| 36 | static CSharpOptions() {
|
| 37 | byte[] descriptorData = global::System.Convert.FromBase64String(
|
| 38 | "CiRnb29nbGUvcHJvdG9idWYvY3NoYXJwX29wdGlvbnMucHJvdG8SD2dvb2ds" +
|
| 39 | "ZS5wcm90b2J1ZhogZ29vZ2xlL3Byb3RvYnVmL2Rlc2NyaXB0b3IucHJvdG8i" +
|
| 40 | "6wIKEUNTaGFycEZpbGVPcHRpb25zEhEKCW5hbWVzcGFjZRgBIAEoCRIaChJ1" +
|
| 41 | "bWJyZWxsYV9jbGFzc25hbWUYAiABKAkSHAoOcHVibGljX2NsYXNzZXMYAyAB" +
|
| 42 | "KAg6BHRydWUSFgoObXVsdGlwbGVfZmlsZXMYBCABKAgSFAoMbmVzdF9jbGFz" +
|
| 43 | "c2VzGAUgASgIEhYKDmNvZGVfY29udHJhY3RzGAYgASgIEiQKHGV4cGFuZF9u" +
|
| 44 | "YW1lc3BhY2VfZGlyZWN0b3JpZXMYByABKAgSHAoOY2xzX2NvbXBsaWFuY2UY" +
|
| 45 | "CCABKAg6BHRydWUSHAoOZmlsZV9leHRlbnNpb24Y3QEgASgJOgMuY3MSGwoS" +
|
| 46 | "dW1icmVsbGFfbmFtZXNwYWNlGN4BIAEoCRIcChBvdXRwdXRfZGlyZWN0b3J5" +
|
| 47 | "GN8BIAEoCToBLhImChZpZ25vcmVfZ29vZ2xlX3Byb3RvYnVmGOABIAEoCDoF" +
|
| 48 | "ZmFsc2UiKwoSQ1NoYXJwRmllbGRPcHRpb25zEhUKDXByb3BlcnR5X25hbWUY" +
|
| 49 | "ASABKAk6XgoTY3NoYXJwX2ZpbGVfb3B0aW9ucxIcLmdvb2dsZS5wcm90b2J1" +
|
| 50 | "Zi5GaWxlT3B0aW9ucxjoByABKAsyIi5nb29nbGUucHJvdG9idWYuQ1NoYXJw" +
|
| 51 | "RmlsZU9wdGlvbnM6YQoUY3NoYXJwX2ZpZWxkX29wdGlvbnMSHS5nb29nbGUu" +
|
| 52 | "cHJvdG9idWYuRmllbGRPcHRpb25zGOgHIAEoCzIjLmdvb2dsZS5wcm90b2J1" +
|
| 53 | "Zi5DU2hhcnBGaWVsZE9wdGlvbnM=");
|
| 54 | pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
|
| 55 | descriptor = root;
|
| 56 | internal__static_google_protobuf_CSharpFileOptions__Descriptor = Descriptor.MessageTypes[0];
|
| 57 | internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable =
|
| 58 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder>(internal__static_google_protobuf_CSharpFileOptions__Descriptor,
|
| 59 | new string[] { "Namespace", "UmbrellaClassname", "PublicClasses", "MultipleFiles", "NestClasses", "CodeContracts", "ExpandNamespaceDirectories", "ClsCompliance", "FileExtension", "UmbrellaNamespace", "OutputDirectory", "IgnoreGoogleProtobuf", });
|
| 60 | internal__static_google_protobuf_CSharpFieldOptions__Descriptor = Descriptor.MessageTypes[1];
|
| 61 | internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable =
|
| 62 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder>(internal__static_google_protobuf_CSharpFieldOptions__Descriptor,
|
| 63 | new string[] { "PropertyName", });
|
| 64 | global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFileOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[0]);
|
| 65 | global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFieldOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[1]);
|
| 66 | return null;
|
| 67 | };
|
| 68 | pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
|
| 69 | new pbd::FileDescriptor[] {
|
| 70 | global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor,
|
| 71 | }, assigner);
|
| 72 | }
|
| 73 | #endregion
|
| 74 |
|
| 75 | }
|
| 76 | #region Messages
|
| 77 | public sealed partial class CSharpFileOptions : pb::GeneratedMessage<CSharpFileOptions, CSharpFileOptions.Builder> {
|
| 78 | private static readonly CSharpFileOptions defaultInstance = new Builder().BuildPartial();
|
| 79 | public static CSharpFileOptions DefaultInstance {
|
| 80 | get { return defaultInstance; }
|
| 81 | }
|
| 82 |
|
| 83 | public override CSharpFileOptions DefaultInstanceForType {
|
| 84 | get { return defaultInstance; }
|
| 85 | }
|
| 86 |
|
| 87 | protected override CSharpFileOptions ThisMessage {
|
| 88 | get { return this; }
|
| 89 | }
|
| 90 |
|
| 91 | public static pbd::MessageDescriptor Descriptor {
|
| 92 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__Descriptor; }
|
| 93 | }
|
| 94 |
|
| 95 | protected override pb::FieldAccess.FieldAccessorTable<CSharpFileOptions, CSharpFileOptions.Builder> InternalFieldAccessors {
|
| 96 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable; }
|
| 97 | }
|
| 98 |
|
| 99 | public const int NamespaceFieldNumber = 1;
|
| 100 | private bool hasNamespace;
|
| 101 | private string namespace_ = "";
|
| 102 | public bool HasNamespace {
|
| 103 | get { return hasNamespace; }
|
| 104 | }
|
| 105 | public string Namespace {
|
| 106 | get { return namespace_; }
|
| 107 | }
|
| 108 |
|
| 109 | public const int UmbrellaClassnameFieldNumber = 2;
|
| 110 | private bool hasUmbrellaClassname;
|
| 111 | private string umbrellaClassname_ = "";
|
| 112 | public bool HasUmbrellaClassname {
|
| 113 | get { return hasUmbrellaClassname; }
|
| 114 | }
|
| 115 | public string UmbrellaClassname {
|
| 116 | get { return umbrellaClassname_; }
|
| 117 | }
|
| 118 |
|
| 119 | public const int PublicClassesFieldNumber = 3;
|
| 120 | private bool hasPublicClasses;
|
| 121 | private bool publicClasses_ = true;
|
| 122 | public bool HasPublicClasses {
|
| 123 | get { return hasPublicClasses; }
|
| 124 | }
|
| 125 | public bool PublicClasses {
|
| 126 | get { return publicClasses_; }
|
| 127 | }
|
| 128 |
|
| 129 | public const int MultipleFilesFieldNumber = 4;
|
| 130 | private bool hasMultipleFiles;
|
| 131 | private bool multipleFiles_ = false;
|
| 132 | public bool HasMultipleFiles {
|
| 133 | get { return hasMultipleFiles; }
|
| 134 | }
|
| 135 | public bool MultipleFiles {
|
| 136 | get { return multipleFiles_; }
|
| 137 | }
|
| 138 |
|
| 139 | public const int NestClassesFieldNumber = 5;
|
| 140 | private bool hasNestClasses;
|
| 141 | private bool nestClasses_ = false;
|
| 142 | public bool HasNestClasses {
|
| 143 | get { return hasNestClasses; }
|
| 144 | }
|
| 145 | public bool NestClasses {
|
| 146 | get { return nestClasses_; }
|
| 147 | }
|
| 148 |
|
| 149 | public const int CodeContractsFieldNumber = 6;
|
| 150 | private bool hasCodeContracts;
|
| 151 | private bool codeContracts_ = false;
|
| 152 | public bool HasCodeContracts {
|
| 153 | get { return hasCodeContracts; }
|
| 154 | }
|
| 155 | public bool CodeContracts {
|
| 156 | get { return codeContracts_; }
|
| 157 | }
|
| 158 |
|
| 159 | public const int ExpandNamespaceDirectoriesFieldNumber = 7;
|
| 160 | private bool hasExpandNamespaceDirectories;
|
| 161 | private bool expandNamespaceDirectories_ = false;
|
| 162 | public bool HasExpandNamespaceDirectories {
|
| 163 | get { return hasExpandNamespaceDirectories; }
|
| 164 | }
|
| 165 | public bool ExpandNamespaceDirectories {
|
| 166 | get { return expandNamespaceDirectories_; }
|
| 167 | }
|
| 168 |
|
| 169 | public const int ClsComplianceFieldNumber = 8;
|
| 170 | private bool hasClsCompliance;
|
| 171 | private bool clsCompliance_ = true;
|
| 172 | public bool HasClsCompliance {
|
| 173 | get { return hasClsCompliance; }
|
| 174 | }
|
| 175 | public bool ClsCompliance {
|
| 176 | get { return clsCompliance_; }
|
| 177 | }
|
| 178 |
|
| 179 | public const int FileExtensionFieldNumber = 221;
|
| 180 | private bool hasFileExtension;
|
| 181 | private string fileExtension_ = ".cs";
|
| 182 | public bool HasFileExtension {
|
| 183 | get { return hasFileExtension; }
|
| 184 | }
|
| 185 | public string FileExtension {
|
| 186 | get { return fileExtension_; }
|
| 187 | }
|
| 188 |
|
| 189 | public const int UmbrellaNamespaceFieldNumber = 222;
|
| 190 | private bool hasUmbrellaNamespace;
|
| 191 | private string umbrellaNamespace_ = "";
|
| 192 | public bool HasUmbrellaNamespace {
|
| 193 | get { return hasUmbrellaNamespace; }
|
| 194 | }
|
| 195 | public string UmbrellaNamespace {
|
| 196 | get { return umbrellaNamespace_; }
|
| 197 | }
|
| 198 |
|
| 199 | public const int OutputDirectoryFieldNumber = 223;
|
| 200 | private bool hasOutputDirectory;
|
| 201 | private string outputDirectory_ = ".";
|
| 202 | public bool HasOutputDirectory {
|
| 203 | get { return hasOutputDirectory; }
|
| 204 | }
|
| 205 | public string OutputDirectory {
|
| 206 | get { return outputDirectory_; }
|
| 207 | }
|
| 208 |
|
| 209 | public const int IgnoreGoogleProtobufFieldNumber = 224;
|
| 210 | private bool hasIgnoreGoogleProtobuf;
|
| 211 | private bool ignoreGoogleProtobuf_ = false;
|
| 212 | public bool HasIgnoreGoogleProtobuf {
|
| 213 | get { return hasIgnoreGoogleProtobuf; }
|
| 214 | }
|
| 215 | public bool IgnoreGoogleProtobuf {
|
| 216 | get { return ignoreGoogleProtobuf_; }
|
| 217 | }
|
| 218 |
|
| 219 | public override bool IsInitialized {
|
| 220 | get {
|
| 221 | return true;
|
| 222 | }
|
| 223 | }
|
| 224 |
|
| 225 | public override void WriteTo(pb::CodedOutputStream output) {
|
| 226 | int size = SerializedSize;
|
| 227 | if (HasNamespace) {
|
| 228 | output.WriteString(1, Namespace);
|
| 229 | }
|
| 230 | if (HasUmbrellaClassname) {
|
| 231 | output.WriteString(2, UmbrellaClassname);
|
| 232 | }
|
| 233 | if (HasPublicClasses) {
|
| 234 | output.WriteBool(3, PublicClasses);
|
| 235 | }
|
| 236 | if (HasMultipleFiles) {
|
| 237 | output.WriteBool(4, MultipleFiles);
|
| 238 | }
|
| 239 | if (HasNestClasses) {
|
| 240 | output.WriteBool(5, NestClasses);
|
| 241 | }
|
| 242 | if (HasCodeContracts) {
|
| 243 | output.WriteBool(6, CodeContracts);
|
| 244 | }
|
| 245 | if (HasExpandNamespaceDirectories) {
|
| 246 | output.WriteBool(7, ExpandNamespaceDirectories);
|
| 247 | }
|
| 248 | if (HasClsCompliance) {
|
| 249 | output.WriteBool(8, ClsCompliance);
|
| 250 | }
|
| 251 | if (HasFileExtension) {
|
| 252 | output.WriteString(221, FileExtension);
|
| 253 | }
|
| 254 | if (HasUmbrellaNamespace) {
|
| 255 | output.WriteString(222, UmbrellaNamespace);
|
| 256 | }
|
| 257 | if (HasOutputDirectory) {
|
| 258 | output.WriteString(223, OutputDirectory);
|
| 259 | }
|
| 260 | if (HasIgnoreGoogleProtobuf) {
|
| 261 | output.WriteBool(224, IgnoreGoogleProtobuf);
|
| 262 | }
|
| 263 | UnknownFields.WriteTo(output);
|
| 264 | }
|
| 265 |
|
| 266 | private int memoizedSerializedSize = -1;
|
| 267 | public override int SerializedSize {
|
| 268 | get {
|
| 269 | int size = memoizedSerializedSize;
|
| 270 | if (size != -1) return size;
|
| 271 |
|
| 272 | size = 0;
|
| 273 | if (HasNamespace) {
|
| 274 | size += pb::CodedOutputStream.ComputeStringSize(1, Namespace);
|
| 275 | }
|
| 276 | if (HasUmbrellaClassname) {
|
| 277 | size += pb::CodedOutputStream.ComputeStringSize(2, UmbrellaClassname);
|
| 278 | }
|
| 279 | if (HasPublicClasses) {
|
| 280 | size += pb::CodedOutputStream.ComputeBoolSize(3, PublicClasses);
|
| 281 | }
|
| 282 | if (HasMultipleFiles) {
|
| 283 | size += pb::CodedOutputStream.ComputeBoolSize(4, MultipleFiles);
|
| 284 | }
|
| 285 | if (HasNestClasses) {
|
| 286 | size += pb::CodedOutputStream.ComputeBoolSize(5, NestClasses);
|
| 287 | }
|
| 288 | if (HasCodeContracts) {
|
| 289 | size += pb::CodedOutputStream.ComputeBoolSize(6, CodeContracts);
|
| 290 | }
|
| 291 | if (HasExpandNamespaceDirectories) {
|
| 292 | size += pb::CodedOutputStream.ComputeBoolSize(7, ExpandNamespaceDirectories);
|
| 293 | }
|
| 294 | if (HasClsCompliance) {
|
| 295 | size += pb::CodedOutputStream.ComputeBoolSize(8, ClsCompliance);
|
| 296 | }
|
| 297 | if (HasFileExtension) {
|
| 298 | size += pb::CodedOutputStream.ComputeStringSize(221, FileExtension);
|
| 299 | }
|
| 300 | if (HasUmbrellaNamespace) {
|
| 301 | size += pb::CodedOutputStream.ComputeStringSize(222, UmbrellaNamespace);
|
| 302 | }
|
| 303 | if (HasOutputDirectory) {
|
| 304 | size += pb::CodedOutputStream.ComputeStringSize(223, OutputDirectory);
|
| 305 | }
|
| 306 | if (HasIgnoreGoogleProtobuf) {
|
| 307 | size += pb::CodedOutputStream.ComputeBoolSize(224, IgnoreGoogleProtobuf);
|
| 308 | }
|
| 309 | size += UnknownFields.SerializedSize;
|
| 310 | memoizedSerializedSize = size;
|
| 311 | return size;
|
| 312 | }
|
| 313 | }
|
| 314 |
|
| 315 | public static CSharpFileOptions ParseFrom(pb::ByteString data) {
|
| 316 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 317 | }
|
| 318 | public static CSharpFileOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 319 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 320 | }
|
| 321 | public static CSharpFileOptions ParseFrom(byte[] data) {
|
| 322 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 323 | }
|
| 324 | public static CSharpFileOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 325 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 326 | }
|
| 327 | public static CSharpFileOptions ParseFrom(global::System.IO.Stream input) {
|
| 328 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 329 | }
|
| 330 | public static CSharpFileOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 331 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 332 | }
|
| 333 | public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 334 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 335 | }
|
| 336 | public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 337 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 338 | }
|
| 339 | public static CSharpFileOptions ParseFrom(pb::CodedInputStream input) {
|
| 340 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 341 | }
|
| 342 | public static CSharpFileOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 343 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 344 | }
|
| 345 | public static Builder CreateBuilder() { return new Builder(); }
|
| 346 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 347 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 348 | public static Builder CreateBuilder(CSharpFileOptions prototype) {
|
| 349 | return (Builder) new Builder().MergeFrom(prototype);
|
| 350 | }
|
| 351 |
|
| 352 | public sealed partial class Builder : pb::GeneratedBuilder<CSharpFileOptions, Builder> {
|
| 353 | protected override Builder ThisBuilder {
|
| 354 | get { return this; }
|
| 355 | }
|
| 356 | public Builder() {}
|
| 357 |
|
| 358 | CSharpFileOptions result = new CSharpFileOptions();
|
| 359 |
|
| 360 | protected override CSharpFileOptions MessageBeingBuilt {
|
| 361 | get { return result; }
|
| 362 | }
|
| 363 |
|
| 364 | public override Builder Clear() {
|
| 365 | result = new CSharpFileOptions();
|
| 366 | return this;
|
| 367 | }
|
| 368 |
|
| 369 | public override Builder Clone() {
|
| 370 | return new Builder().MergeFrom(result);
|
| 371 | }
|
| 372 |
|
| 373 | public override pbd::MessageDescriptor DescriptorForType {
|
| 374 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Descriptor; }
|
| 375 | }
|
| 376 |
|
| 377 | public override CSharpFileOptions DefaultInstanceForType {
|
| 378 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance; }
|
| 379 | }
|
| 380 |
|
| 381 | public override CSharpFileOptions BuildPartial() {
|
| 382 | if (result == null) {
|
| 383 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 384 | }
|
| 385 | CSharpFileOptions returnMe = result;
|
| 386 | result = null;
|
| 387 | return returnMe;
|
| 388 | }
|
| 389 |
|
| 390 | public override Builder MergeFrom(pb::IMessage other) {
|
| 391 | if (other is CSharpFileOptions) {
|
| 392 | return MergeFrom((CSharpFileOptions) other);
|
| 393 | } else {
|
| 394 | base.MergeFrom(other);
|
| 395 | return this;
|
| 396 | }
|
| 397 | }
|
| 398 |
|
| 399 | public override Builder MergeFrom(CSharpFileOptions other) {
|
| 400 | if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance) return this;
|
| 401 | if (other.HasNamespace) {
|
| 402 | Namespace = other.Namespace;
|
| 403 | }
|
| 404 | if (other.HasUmbrellaClassname) {
|
| 405 | UmbrellaClassname = other.UmbrellaClassname;
|
| 406 | }
|
| 407 | if (other.HasPublicClasses) {
|
| 408 | PublicClasses = other.PublicClasses;
|
| 409 | }
|
| 410 | if (other.HasMultipleFiles) {
|
| 411 | MultipleFiles = other.MultipleFiles;
|
| 412 | }
|
| 413 | if (other.HasNestClasses) {
|
| 414 | NestClasses = other.NestClasses;
|
| 415 | }
|
| 416 | if (other.HasCodeContracts) {
|
| 417 | CodeContracts = other.CodeContracts;
|
| 418 | }
|
| 419 | if (other.HasExpandNamespaceDirectories) {
|
| 420 | ExpandNamespaceDirectories = other.ExpandNamespaceDirectories;
|
| 421 | }
|
| 422 | if (other.HasClsCompliance) {
|
| 423 | ClsCompliance = other.ClsCompliance;
|
| 424 | }
|
| 425 | if (other.HasFileExtension) {
|
| 426 | FileExtension = other.FileExtension;
|
| 427 | }
|
| 428 | if (other.HasUmbrellaNamespace) {
|
| 429 | UmbrellaNamespace = other.UmbrellaNamespace;
|
| 430 | }
|
| 431 | if (other.HasOutputDirectory) {
|
| 432 | OutputDirectory = other.OutputDirectory;
|
| 433 | }
|
| 434 | if (other.HasIgnoreGoogleProtobuf) {
|
| 435 | IgnoreGoogleProtobuf = other.IgnoreGoogleProtobuf;
|
| 436 | }
|
| 437 | this.MergeUnknownFields(other.UnknownFields);
|
| 438 | return this;
|
| 439 | }
|
| 440 |
|
| 441 | public override Builder MergeFrom(pb::CodedInputStream input) {
|
| 442 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 443 | }
|
| 444 |
|
| 445 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 446 | pb::UnknownFieldSet.Builder unknownFields = null;
|
| 447 | while (true) {
|
| 448 | uint tag = input.ReadTag();
|
| 449 | switch (tag) {
|
| 450 | case 0: {
|
| 451 | if (unknownFields != null) {
|
| 452 | this.UnknownFields = unknownFields.Build();
|
| 453 | }
|
| 454 | return this;
|
| 455 | }
|
| 456 | default: {
|
| 457 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 458 | if (unknownFields != null) {
|
| 459 | this.UnknownFields = unknownFields.Build();
|
| 460 | }
|
| 461 | return this;
|
| 462 | }
|
| 463 | if (unknownFields == null) {
|
| 464 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 465 | }
|
| 466 | ParseUnknownField(input, unknownFields, extensionRegistry, tag);
|
| 467 | break;
|
| 468 | }
|
| 469 | case 10: {
|
| 470 | Namespace = input.ReadString();
|
| 471 | break;
|
| 472 | }
|
| 473 | case 18: {
|
| 474 | UmbrellaClassname = input.ReadString();
|
| 475 | break;
|
| 476 | }
|
| 477 | case 24: {
|
| 478 | PublicClasses = input.ReadBool();
|
| 479 | break;
|
| 480 | }
|
| 481 | case 32: {
|
| 482 | MultipleFiles = input.ReadBool();
|
| 483 | break;
|
| 484 | }
|
| 485 | case 40: {
|
| 486 | NestClasses = input.ReadBool();
|
| 487 | break;
|
| 488 | }
|
| 489 | case 48: {
|
| 490 | CodeContracts = input.ReadBool();
|
| 491 | break;
|
| 492 | }
|
| 493 | case 56: {
|
| 494 | ExpandNamespaceDirectories = input.ReadBool();
|
| 495 | break;
|
| 496 | }
|
| 497 | case 64: {
|
| 498 | ClsCompliance = input.ReadBool();
|
| 499 | break;
|
| 500 | }
|
| 501 | case 1770: {
|
| 502 | FileExtension = input.ReadString();
|
| 503 | break;
|
| 504 | }
|
| 505 | case 1778: {
|
| 506 | UmbrellaNamespace = input.ReadString();
|
| 507 | break;
|
| 508 | }
|
| 509 | case 1786: {
|
| 510 | OutputDirectory = input.ReadString();
|
| 511 | break;
|
| 512 | }
|
| 513 | case 1792: {
|
| 514 | IgnoreGoogleProtobuf = input.ReadBool();
|
| 515 | break;
|
| 516 | }
|
| 517 | }
|
| 518 | }
|
| 519 | }
|
| 520 |
|
| 521 |
|
| 522 | public bool HasNamespace {
|
| 523 | get { return result.HasNamespace; }
|
| 524 | }
|
| 525 | public string Namespace {
|
| 526 | get { return result.Namespace; }
|
| 527 | set { SetNamespace(value); }
|
| 528 | }
|
| 529 | public Builder SetNamespace(string value) {
|
| 530 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 531 | result.hasNamespace = true;
|
| 532 | result.namespace_ = value;
|
| 533 | return this;
|
| 534 | }
|
| 535 | public Builder ClearNamespace() {
|
| 536 | result.hasNamespace = false;
|
| 537 | result.namespace_ = "";
|
| 538 | return this;
|
| 539 | }
|
| 540 |
|
| 541 | public bool HasUmbrellaClassname {
|
| 542 | get { return result.HasUmbrellaClassname; }
|
| 543 | }
|
| 544 | public string UmbrellaClassname {
|
| 545 | get { return result.UmbrellaClassname; }
|
| 546 | set { SetUmbrellaClassname(value); }
|
| 547 | }
|
| 548 | public Builder SetUmbrellaClassname(string value) {
|
| 549 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 550 | result.hasUmbrellaClassname = true;
|
| 551 | result.umbrellaClassname_ = value;
|
| 552 | return this;
|
| 553 | }
|
| 554 | public Builder ClearUmbrellaClassname() {
|
| 555 | result.hasUmbrellaClassname = false;
|
| 556 | result.umbrellaClassname_ = "";
|
| 557 | return this;
|
| 558 | }
|
| 559 |
|
| 560 | public bool HasPublicClasses {
|
| 561 | get { return result.HasPublicClasses; }
|
| 562 | }
|
| 563 | public bool PublicClasses {
|
| 564 | get { return result.PublicClasses; }
|
| 565 | set { SetPublicClasses(value); }
|
| 566 | }
|
| 567 | public Builder SetPublicClasses(bool value) {
|
| 568 | result.hasPublicClasses = true;
|
| 569 | result.publicClasses_ = value;
|
| 570 | return this;
|
| 571 | }
|
| 572 | public Builder ClearPublicClasses() {
|
| 573 | result.hasPublicClasses = false;
|
| 574 | result.publicClasses_ = true;
|
| 575 | return this;
|
| 576 | }
|
| 577 |
|
| 578 | public bool HasMultipleFiles {
|
| 579 | get { return result.HasMultipleFiles; }
|
| 580 | }
|
| 581 | public bool MultipleFiles {
|
| 582 | get { return result.MultipleFiles; }
|
| 583 | set { SetMultipleFiles(value); }
|
| 584 | }
|
| 585 | public Builder SetMultipleFiles(bool value) {
|
| 586 | result.hasMultipleFiles = true;
|
| 587 | result.multipleFiles_ = value;
|
| 588 | return this;
|
| 589 | }
|
| 590 | public Builder ClearMultipleFiles() {
|
| 591 | result.hasMultipleFiles = false;
|
| 592 | result.multipleFiles_ = false;
|
| 593 | return this;
|
| 594 | }
|
| 595 |
|
| 596 | public bool HasNestClasses {
|
| 597 | get { return result.HasNestClasses; }
|
| 598 | }
|
| 599 | public bool NestClasses {
|
| 600 | get { return result.NestClasses; }
|
| 601 | set { SetNestClasses(value); }
|
| 602 | }
|
| 603 | public Builder SetNestClasses(bool value) {
|
| 604 | result.hasNestClasses = true;
|
| 605 | result.nestClasses_ = value;
|
| 606 | return this;
|
| 607 | }
|
| 608 | public Builder ClearNestClasses() {
|
| 609 | result.hasNestClasses = false;
|
| 610 | result.nestClasses_ = false;
|
| 611 | return this;
|
| 612 | }
|
| 613 |
|
| 614 | public bool HasCodeContracts {
|
| 615 | get { return result.HasCodeContracts; }
|
| 616 | }
|
| 617 | public bool CodeContracts {
|
| 618 | get { return result.CodeContracts; }
|
| 619 | set { SetCodeContracts(value); }
|
| 620 | }
|
| 621 | public Builder SetCodeContracts(bool value) {
|
| 622 | result.hasCodeContracts = true;
|
| 623 | result.codeContracts_ = value;
|
| 624 | return this;
|
| 625 | }
|
| 626 | public Builder ClearCodeContracts() {
|
| 627 | result.hasCodeContracts = false;
|
| 628 | result.codeContracts_ = false;
|
| 629 | return this;
|
| 630 | }
|
| 631 |
|
| 632 | public bool HasExpandNamespaceDirectories {
|
| 633 | get { return result.HasExpandNamespaceDirectories; }
|
| 634 | }
|
| 635 | public bool ExpandNamespaceDirectories {
|
| 636 | get { return result.ExpandNamespaceDirectories; }
|
| 637 | set { SetExpandNamespaceDirectories(value); }
|
| 638 | }
|
| 639 | public Builder SetExpandNamespaceDirectories(bool value) {
|
| 640 | result.hasExpandNamespaceDirectories = true;
|
| 641 | result.expandNamespaceDirectories_ = value;
|
| 642 | return this;
|
| 643 | }
|
| 644 | public Builder ClearExpandNamespaceDirectories() {
|
| 645 | result.hasExpandNamespaceDirectories = false;
|
| 646 | result.expandNamespaceDirectories_ = false;
|
| 647 | return this;
|
| 648 | }
|
| 649 |
|
| 650 | public bool HasClsCompliance {
|
| 651 | get { return result.HasClsCompliance; }
|
| 652 | }
|
| 653 | public bool ClsCompliance {
|
| 654 | get { return result.ClsCompliance; }
|
| 655 | set { SetClsCompliance(value); }
|
| 656 | }
|
| 657 | public Builder SetClsCompliance(bool value) {
|
| 658 | result.hasClsCompliance = true;
|
| 659 | result.clsCompliance_ = value;
|
| 660 | return this;
|
| 661 | }
|
| 662 | public Builder ClearClsCompliance() {
|
| 663 | result.hasClsCompliance = false;
|
| 664 | result.clsCompliance_ = true;
|
| 665 | return this;
|
| 666 | }
|
| 667 |
|
| 668 | public bool HasFileExtension {
|
| 669 | get { return result.HasFileExtension; }
|
| 670 | }
|
| 671 | public string FileExtension {
|
| 672 | get { return result.FileExtension; }
|
| 673 | set { SetFileExtension(value); }
|
| 674 | }
|
| 675 | public Builder SetFileExtension(string value) {
|
| 676 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 677 | result.hasFileExtension = true;
|
| 678 | result.fileExtension_ = value;
|
| 679 | return this;
|
| 680 | }
|
| 681 | public Builder ClearFileExtension() {
|
| 682 | result.hasFileExtension = false;
|
| 683 | result.fileExtension_ = ".cs";
|
| 684 | return this;
|
| 685 | }
|
| 686 |
|
| 687 | public bool HasUmbrellaNamespace {
|
| 688 | get { return result.HasUmbrellaNamespace; }
|
| 689 | }
|
| 690 | public string UmbrellaNamespace {
|
| 691 | get { return result.UmbrellaNamespace; }
|
| 692 | set { SetUmbrellaNamespace(value); }
|
| 693 | }
|
| 694 | public Builder SetUmbrellaNamespace(string value) {
|
| 695 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 696 | result.hasUmbrellaNamespace = true;
|
| 697 | result.umbrellaNamespace_ = value;
|
| 698 | return this;
|
| 699 | }
|
| 700 | public Builder ClearUmbrellaNamespace() {
|
| 701 | result.hasUmbrellaNamespace = false;
|
| 702 | result.umbrellaNamespace_ = "";
|
| 703 | return this;
|
| 704 | }
|
| 705 |
|
| 706 | public bool HasOutputDirectory {
|
| 707 | get { return result.HasOutputDirectory; }
|
| 708 | }
|
| 709 | public string OutputDirectory {
|
| 710 | get { return result.OutputDirectory; }
|
| 711 | set { SetOutputDirectory(value); }
|
| 712 | }
|
| 713 | public Builder SetOutputDirectory(string value) {
|
| 714 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 715 | result.hasOutputDirectory = true;
|
| 716 | result.outputDirectory_ = value;
|
| 717 | return this;
|
| 718 | }
|
| 719 | public Builder ClearOutputDirectory() {
|
| 720 | result.hasOutputDirectory = false;
|
| 721 | result.outputDirectory_ = ".";
|
| 722 | return this;
|
| 723 | }
|
| 724 |
|
| 725 | public bool HasIgnoreGoogleProtobuf {
|
| 726 | get { return result.HasIgnoreGoogleProtobuf; }
|
| 727 | }
|
| 728 | public bool IgnoreGoogleProtobuf {
|
| 729 | get { return result.IgnoreGoogleProtobuf; }
|
| 730 | set { SetIgnoreGoogleProtobuf(value); }
|
| 731 | }
|
| 732 | public Builder SetIgnoreGoogleProtobuf(bool value) {
|
| 733 | result.hasIgnoreGoogleProtobuf = true;
|
| 734 | result.ignoreGoogleProtobuf_ = value;
|
| 735 | return this;
|
| 736 | }
|
| 737 | public Builder ClearIgnoreGoogleProtobuf() {
|
| 738 | result.hasIgnoreGoogleProtobuf = false;
|
| 739 | result.ignoreGoogleProtobuf_ = false;
|
| 740 | return this;
|
| 741 | }
|
| 742 | }
|
| 743 | static CSharpFileOptions() {
|
| 744 | object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
|
| 745 | }
|
| 746 | }
|
| 747 |
|
| 748 | public sealed partial class CSharpFieldOptions : pb::GeneratedMessage<CSharpFieldOptions, CSharpFieldOptions.Builder> {
|
| 749 | private static readonly CSharpFieldOptions defaultInstance = new Builder().BuildPartial();
|
| 750 | public static CSharpFieldOptions DefaultInstance {
|
| 751 | get { return defaultInstance; }
|
| 752 | }
|
| 753 |
|
| 754 | public override CSharpFieldOptions DefaultInstanceForType {
|
| 755 | get { return defaultInstance; }
|
| 756 | }
|
| 757 |
|
| 758 | protected override CSharpFieldOptions ThisMessage {
|
| 759 | get { return this; }
|
| 760 | }
|
| 761 |
|
| 762 | public static pbd::MessageDescriptor Descriptor {
|
| 763 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__Descriptor; }
|
| 764 | }
|
| 765 |
|
| 766 | protected override pb::FieldAccess.FieldAccessorTable<CSharpFieldOptions, CSharpFieldOptions.Builder> InternalFieldAccessors {
|
| 767 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable; }
|
| 768 | }
|
| 769 |
|
| 770 | public const int PropertyNameFieldNumber = 1;
|
| 771 | private bool hasPropertyName;
|
| 772 | private string propertyName_ = "";
|
| 773 | public bool HasPropertyName {
|
| 774 | get { return hasPropertyName; }
|
| 775 | }
|
| 776 | public string PropertyName {
|
| 777 | get { return propertyName_; }
|
| 778 | }
|
| 779 |
|
| 780 | public override bool IsInitialized {
|
| 781 | get {
|
| 782 | return true;
|
| 783 | }
|
| 784 | }
|
| 785 |
|
| 786 | public override void WriteTo(pb::CodedOutputStream output) {
|
| 787 | int size = SerializedSize;
|
| 788 | if (HasPropertyName) {
|
| 789 | output.WriteString(1, PropertyName);
|
| 790 | }
|
| 791 | UnknownFields.WriteTo(output);
|
| 792 | }
|
| 793 |
|
| 794 | private int memoizedSerializedSize = -1;
|
| 795 | public override int SerializedSize {
|
| 796 | get {
|
| 797 | int size = memoizedSerializedSize;
|
| 798 | if (size != -1) return size;
|
| 799 |
|
| 800 | size = 0;
|
| 801 | if (HasPropertyName) {
|
| 802 | size += pb::CodedOutputStream.ComputeStringSize(1, PropertyName);
|
| 803 | }
|
| 804 | size += UnknownFields.SerializedSize;
|
| 805 | memoizedSerializedSize = size;
|
| 806 | return size;
|
| 807 | }
|
| 808 | }
|
| 809 |
|
| 810 | public static CSharpFieldOptions ParseFrom(pb::ByteString data) {
|
| 811 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 812 | }
|
| 813 | public static CSharpFieldOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 814 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 815 | }
|
| 816 | public static CSharpFieldOptions ParseFrom(byte[] data) {
|
| 817 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 818 | }
|
| 819 | public static CSharpFieldOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 820 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 821 | }
|
| 822 | public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input) {
|
| 823 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 824 | }
|
| 825 | public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 826 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 827 | }
|
| 828 | public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 829 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 830 | }
|
| 831 | public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 832 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 833 | }
|
| 834 | public static CSharpFieldOptions ParseFrom(pb::CodedInputStream input) {
|
| 835 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 836 | }
|
| 837 | public static CSharpFieldOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 838 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 839 | }
|
| 840 | public static Builder CreateBuilder() { return new Builder(); }
|
| 841 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 842 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 843 | public static Builder CreateBuilder(CSharpFieldOptions prototype) {
|
| 844 | return (Builder) new Builder().MergeFrom(prototype);
|
| 845 | }
|
| 846 |
|
| 847 | public sealed partial class Builder : pb::GeneratedBuilder<CSharpFieldOptions, Builder> {
|
| 848 | protected override Builder ThisBuilder {
|
| 849 | get { return this; }
|
| 850 | }
|
| 851 | public Builder() {}
|
| 852 |
|
| 853 | CSharpFieldOptions result = new CSharpFieldOptions();
|
| 854 |
|
| 855 | protected override CSharpFieldOptions MessageBeingBuilt {
|
| 856 | get { return result; }
|
| 857 | }
|
| 858 |
|
| 859 | public override Builder Clear() {
|
| 860 | result = new CSharpFieldOptions();
|
| 861 | return this;
|
| 862 | }
|
| 863 |
|
| 864 | public override Builder Clone() {
|
| 865 | return new Builder().MergeFrom(result);
|
| 866 | }
|
| 867 |
|
| 868 | public override pbd::MessageDescriptor DescriptorForType {
|
| 869 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Descriptor; }
|
| 870 | }
|
| 871 |
|
| 872 | public override CSharpFieldOptions DefaultInstanceForType {
|
| 873 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance; }
|
| 874 | }
|
| 875 |
|
| 876 | public override CSharpFieldOptions BuildPartial() {
|
| 877 | if (result == null) {
|
| 878 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 879 | }
|
| 880 | CSharpFieldOptions returnMe = result;
|
| 881 | result = null;
|
| 882 | return returnMe;
|
| 883 | }
|
| 884 |
|
| 885 | public override Builder MergeFrom(pb::IMessage other) {
|
| 886 | if (other is CSharpFieldOptions) {
|
| 887 | return MergeFrom((CSharpFieldOptions) other);
|
| 888 | } else {
|
| 889 | base.MergeFrom(other);
|
| 890 | return this;
|
| 891 | }
|
| 892 | }
|
| 893 |
|
| 894 | public override Builder MergeFrom(CSharpFieldOptions other) {
|
| 895 | if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance) return this;
|
| 896 | if (other.HasPropertyName) {
|
| 897 | PropertyName = other.PropertyName;
|
| 898 | }
|
| 899 | this.MergeUnknownFields(other.UnknownFields);
|
| 900 | return this;
|
| 901 | }
|
| 902 |
|
| 903 | public override Builder MergeFrom(pb::CodedInputStream input) {
|
| 904 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 905 | }
|
| 906 |
|
| 907 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 908 | pb::UnknownFieldSet.Builder unknownFields = null;
|
| 909 | while (true) {
|
| 910 | uint tag = input.ReadTag();
|
| 911 | switch (tag) {
|
| 912 | case 0: {
|
| 913 | if (unknownFields != null) {
|
| 914 | this.UnknownFields = unknownFields.Build();
|
| 915 | }
|
| 916 | return this;
|
| 917 | }
|
| 918 | default: {
|
| 919 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 920 | if (unknownFields != null) {
|
| 921 | this.UnknownFields = unknownFields.Build();
|
| 922 | }
|
| 923 | return this;
|
| 924 | }
|
| 925 | if (unknownFields == null) {
|
| 926 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 927 | }
|
| 928 | ParseUnknownField(input, unknownFields, extensionRegistry, tag);
|
| 929 | break;
|
| 930 | }
|
| 931 | case 10: {
|
| 932 | PropertyName = input.ReadString();
|
| 933 | break;
|
| 934 | }
|
| 935 | }
|
| 936 | }
|
| 937 | }
|
| 938 |
|
| 939 |
|
| 940 | public bool HasPropertyName {
|
| 941 | get { return result.HasPropertyName; }
|
| 942 | }
|
| 943 | public string PropertyName {
|
| 944 | get { return result.PropertyName; }
|
| 945 | set { SetPropertyName(value); }
|
| 946 | }
|
| 947 | public Builder SetPropertyName(string value) {
|
| 948 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 949 | result.hasPropertyName = true;
|
| 950 | result.propertyName_ = value;
|
| 951 | return this;
|
| 952 | }
|
| 953 | public Builder ClearPropertyName() {
|
| 954 | result.hasPropertyName = false;
|
| 955 | result.propertyName_ = "";
|
| 956 | return this;
|
| 957 | }
|
| 958 | }
|
| 959 | static CSharpFieldOptions() {
|
| 960 | object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
|
| 961 | }
|
| 962 | }
|
| 963 |
|
| 964 | #endregion
|
| 965 |
|
| 966 | }
|