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);
|
csharptest | 68d831e | 2011-05-03 13:47:34 -0500 | [diff] [blame^] | 15 | registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpServiceOptions);
|
| 16 | registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpMethodOptions);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 17 | }
|
| 18 | #endregion
|
| 19 | #region Extensions
|
| 20 | public const int CSharpFileOptionsFieldNumber = 1000;
|
| 21 | public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions> CSharpFileOptions;
|
| 22 | public const int CSharpFieldOptionsFieldNumber = 1000;
|
| 23 | public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions> CSharpFieldOptions;
|
csharptest | 68d831e | 2011-05-03 13:47:34 -0500 | [diff] [blame^] | 24 | public const int CsharpServiceOptionsFieldNumber = 1000;
|
| 25 | public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions> CsharpServiceOptions;
|
| 26 | public const int CsharpMethodOptionsFieldNumber = 1000;
|
| 27 | public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions> CsharpMethodOptions;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 28 | #endregion
|
| 29 |
|
| 30 | #region Static variables
|
| 31 | internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFileOptions__Descriptor;
|
| 32 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder> internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable;
|
| 33 | internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFieldOptions__Descriptor;
|
| 34 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder> internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable;
|
csharptest | 68d831e | 2011-05-03 13:47:34 -0500 | [diff] [blame^] | 35 | internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpServiceOptions__Descriptor;
|
| 36 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Builder> internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable;
|
| 37 | internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpMethodOptions__Descriptor;
|
| 38 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Builder> internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 39 | #endregion
|
| 40 | #region Descriptor
|
| 41 | public static pbd::FileDescriptor Descriptor {
|
| 42 | get { return descriptor; }
|
| 43 | }
|
| 44 | private static pbd::FileDescriptor descriptor;
|
| 45 |
|
| 46 | static CSharpOptions() {
|
| 47 | byte[] descriptorData = global::System.Convert.FromBase64String(
|
| 48 | "CiRnb29nbGUvcHJvdG9idWYvY3NoYXJwX29wdGlvbnMucHJvdG8SD2dvb2ds" +
|
| 49 | "ZS5wcm90b2J1ZhogZ29vZ2xlL3Byb3RvYnVmL2Rlc2NyaXB0b3IucHJvdG8i" +
|
csharptest | 68d831e | 2011-05-03 13:47:34 -0500 | [diff] [blame^] | 50 | "uQMKEUNTaGFycEZpbGVPcHRpb25zEhEKCW5hbWVzcGFjZRgBIAEoCRIaChJ1" +
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 51 | "bWJyZWxsYV9jbGFzc25hbWUYAiABKAkSHAoOcHVibGljX2NsYXNzZXMYAyAB" +
|
| 52 | "KAg6BHRydWUSFgoObXVsdGlwbGVfZmlsZXMYBCABKAgSFAoMbmVzdF9jbGFz" +
|
| 53 | "c2VzGAUgASgIEhYKDmNvZGVfY29udHJhY3RzGAYgASgIEiQKHGV4cGFuZF9u" +
|
| 54 | "YW1lc3BhY2VfZGlyZWN0b3JpZXMYByABKAgSHAoOY2xzX2NvbXBsaWFuY2UY" +
|
| 55 | "CCABKAg6BHRydWUSHAoOZmlsZV9leHRlbnNpb24Y3QEgASgJOgMuY3MSGwoS" +
|
| 56 | "dW1icmVsbGFfbmFtZXNwYWNlGN4BIAEoCRIcChBvdXRwdXRfZGlyZWN0b3J5" +
|
| 57 | "GN8BIAEoCToBLhImChZpZ25vcmVfZ29vZ2xlX3Byb3RvYnVmGOABIAEoCDoF" +
|
csharptest | 68d831e | 2011-05-03 13:47:34 -0500 | [diff] [blame^] | 58 | "ZmFsc2USTAoWc2VydmljZV9nZW5lcmF0b3JfdHlwZRjhASABKA4yIi5nb29n" +
|
| 59 | "bGUucHJvdG9idWYuQ1NoYXJwU2VydmljZVR5cGU6B0dFTkVSSUMiKwoSQ1No" +
|
| 60 | "YXJwRmllbGRPcHRpb25zEhUKDXByb3BlcnR5X25hbWUYASABKAkiLAoUQ1No" +
|
| 61 | "YXJwU2VydmljZU9wdGlvbnMSFAoMaW50ZXJmYWNlX2lkGAEgASgJIioKE0NT" +
|
| 62 | "aGFycE1ldGhvZE9wdGlvbnMSEwoLZGlzcGF0Y2hfaWQYASABKAUqQQoRQ1No" +
|
| 63 | "YXJwU2VydmljZVR5cGUSCwoHR0VORVJJQxABEg0KCUlOVEVSRkFDRRACEhAK" +
|
| 64 | "DElSUENESVNQQVRDSBADOl4KE2NzaGFycF9maWxlX29wdGlvbnMSHC5nb29n" +
|
| 65 | "bGUucHJvdG9idWYuRmlsZU9wdGlvbnMY6AcgASgLMiIuZ29vZ2xlLnByb3Rv" +
|
| 66 | "YnVmLkNTaGFycEZpbGVPcHRpb25zOmEKFGNzaGFycF9maWVsZF9vcHRpb25z" +
|
| 67 | "Eh0uZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucxjoByABKAsyIy5nb29n" +
|
| 68 | "bGUucHJvdG9idWYuQ1NoYXJwRmllbGRPcHRpb25zOmcKFmNzaGFycF9zZXJ2" +
|
| 69 | "aWNlX29wdGlvbnMSHy5nb29nbGUucHJvdG9idWYuU2VydmljZU9wdGlvbnMY" +
|
| 70 | "6AcgASgLMiUuZ29vZ2xlLnByb3RvYnVmLkNTaGFycFNlcnZpY2VPcHRpb25z" +
|
| 71 | "OmQKFWNzaGFycF9tZXRob2Rfb3B0aW9ucxIeLmdvb2dsZS5wcm90b2J1Zi5N" +
|
| 72 | "ZXRob2RPcHRpb25zGOgHIAEoCzIkLmdvb2dsZS5wcm90b2J1Zi5DU2hhcnBN" +
|
| 73 | "ZXRob2RPcHRpb25z");
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 74 | pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
|
| 75 | descriptor = root;
|
| 76 | internal__static_google_protobuf_CSharpFileOptions__Descriptor = Descriptor.MessageTypes[0];
|
| 77 | internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable =
|
| 78 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder>(internal__static_google_protobuf_CSharpFileOptions__Descriptor,
|
csharptest | 68d831e | 2011-05-03 13:47:34 -0500 | [diff] [blame^] | 79 | new string[] { "Namespace", "UmbrellaClassname", "PublicClasses", "MultipleFiles", "NestClasses", "CodeContracts", "ExpandNamespaceDirectories", "ClsCompliance", "FileExtension", "UmbrellaNamespace", "OutputDirectory", "IgnoreGoogleProtobuf", "ServiceGeneratorType", });
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 80 | internal__static_google_protobuf_CSharpFieldOptions__Descriptor = Descriptor.MessageTypes[1];
|
| 81 | internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable =
|
| 82 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder>(internal__static_google_protobuf_CSharpFieldOptions__Descriptor,
|
| 83 | new string[] { "PropertyName", });
|
csharptest | 68d831e | 2011-05-03 13:47:34 -0500 | [diff] [blame^] | 84 | internal__static_google_protobuf_CSharpServiceOptions__Descriptor = Descriptor.MessageTypes[2];
|
| 85 | internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable =
|
| 86 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Builder>(internal__static_google_protobuf_CSharpServiceOptions__Descriptor,
|
| 87 | new string[] { "InterfaceId", });
|
| 88 | internal__static_google_protobuf_CSharpMethodOptions__Descriptor = Descriptor.MessageTypes[3];
|
| 89 | internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable =
|
| 90 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Builder>(internal__static_google_protobuf_CSharpMethodOptions__Descriptor,
|
| 91 | new string[] { "DispatchId", });
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 92 | global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFileOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[0]);
|
| 93 | global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFieldOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[1]);
|
csharptest | 68d831e | 2011-05-03 13:47:34 -0500 | [diff] [blame^] | 94 | global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpServiceOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[2]);
|
| 95 | global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpMethodOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[3]);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 96 | return null;
|
| 97 | };
|
| 98 | pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
|
| 99 | new pbd::FileDescriptor[] {
|
| 100 | global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor,
|
| 101 | }, assigner);
|
| 102 | }
|
| 103 | #endregion
|
| 104 |
|
| 105 | }
|
csharptest | 68d831e | 2011-05-03 13:47:34 -0500 | [diff] [blame^] | 106 | #region Enums
|
| 107 | public enum CSharpServiceType {
|
| 108 | GENERIC = 1,
|
| 109 | INTERFACE = 2,
|
| 110 | IRPCDISPATCH = 3,
|
| 111 | }
|
| 112 |
|
| 113 | #endregion
|
| 114 |
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 115 | #region Messages
|
| 116 | public sealed partial class CSharpFileOptions : pb::GeneratedMessage<CSharpFileOptions, CSharpFileOptions.Builder> {
|
| 117 | private static readonly CSharpFileOptions defaultInstance = new Builder().BuildPartial();
|
| 118 | public static CSharpFileOptions DefaultInstance {
|
| 119 | get { return defaultInstance; }
|
| 120 | }
|
| 121 |
|
| 122 | public override CSharpFileOptions DefaultInstanceForType {
|
| 123 | get { return defaultInstance; }
|
| 124 | }
|
| 125 |
|
| 126 | protected override CSharpFileOptions ThisMessage {
|
| 127 | get { return this; }
|
| 128 | }
|
| 129 |
|
| 130 | public static pbd::MessageDescriptor Descriptor {
|
| 131 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__Descriptor; }
|
| 132 | }
|
| 133 |
|
| 134 | protected override pb::FieldAccess.FieldAccessorTable<CSharpFileOptions, CSharpFileOptions.Builder> InternalFieldAccessors {
|
| 135 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable; }
|
| 136 | }
|
| 137 |
|
| 138 | public const int NamespaceFieldNumber = 1;
|
| 139 | private bool hasNamespace;
|
| 140 | private string namespace_ = "";
|
| 141 | public bool HasNamespace {
|
| 142 | get { return hasNamespace; }
|
| 143 | }
|
| 144 | public string Namespace {
|
| 145 | get { return namespace_; }
|
| 146 | }
|
| 147 |
|
| 148 | public const int UmbrellaClassnameFieldNumber = 2;
|
| 149 | private bool hasUmbrellaClassname;
|
| 150 | private string umbrellaClassname_ = "";
|
| 151 | public bool HasUmbrellaClassname {
|
| 152 | get { return hasUmbrellaClassname; }
|
| 153 | }
|
| 154 | public string UmbrellaClassname {
|
| 155 | get { return umbrellaClassname_; }
|
| 156 | }
|
| 157 |
|
| 158 | public const int PublicClassesFieldNumber = 3;
|
| 159 | private bool hasPublicClasses;
|
| 160 | private bool publicClasses_ = true;
|
| 161 | public bool HasPublicClasses {
|
| 162 | get { return hasPublicClasses; }
|
| 163 | }
|
| 164 | public bool PublicClasses {
|
| 165 | get { return publicClasses_; }
|
| 166 | }
|
| 167 |
|
| 168 | public const int MultipleFilesFieldNumber = 4;
|
| 169 | private bool hasMultipleFiles;
|
| 170 | private bool multipleFiles_ = false;
|
| 171 | public bool HasMultipleFiles {
|
| 172 | get { return hasMultipleFiles; }
|
| 173 | }
|
| 174 | public bool MultipleFiles {
|
| 175 | get { return multipleFiles_; }
|
| 176 | }
|
| 177 |
|
| 178 | public const int NestClassesFieldNumber = 5;
|
| 179 | private bool hasNestClasses;
|
| 180 | private bool nestClasses_ = false;
|
| 181 | public bool HasNestClasses {
|
| 182 | get { return hasNestClasses; }
|
| 183 | }
|
| 184 | public bool NestClasses {
|
| 185 | get { return nestClasses_; }
|
| 186 | }
|
| 187 |
|
| 188 | public const int CodeContractsFieldNumber = 6;
|
| 189 | private bool hasCodeContracts;
|
| 190 | private bool codeContracts_ = false;
|
| 191 | public bool HasCodeContracts {
|
| 192 | get { return hasCodeContracts; }
|
| 193 | }
|
| 194 | public bool CodeContracts {
|
| 195 | get { return codeContracts_; }
|
| 196 | }
|
| 197 |
|
| 198 | public const int ExpandNamespaceDirectoriesFieldNumber = 7;
|
| 199 | private bool hasExpandNamespaceDirectories;
|
| 200 | private bool expandNamespaceDirectories_ = false;
|
| 201 | public bool HasExpandNamespaceDirectories {
|
| 202 | get { return hasExpandNamespaceDirectories; }
|
| 203 | }
|
| 204 | public bool ExpandNamespaceDirectories {
|
| 205 | get { return expandNamespaceDirectories_; }
|
| 206 | }
|
| 207 |
|
| 208 | public const int ClsComplianceFieldNumber = 8;
|
| 209 | private bool hasClsCompliance;
|
| 210 | private bool clsCompliance_ = true;
|
| 211 | public bool HasClsCompliance {
|
| 212 | get { return hasClsCompliance; }
|
| 213 | }
|
| 214 | public bool ClsCompliance {
|
| 215 | get { return clsCompliance_; }
|
| 216 | }
|
| 217 |
|
| 218 | public const int FileExtensionFieldNumber = 221;
|
| 219 | private bool hasFileExtension;
|
| 220 | private string fileExtension_ = ".cs";
|
| 221 | public bool HasFileExtension {
|
| 222 | get { return hasFileExtension; }
|
| 223 | }
|
| 224 | public string FileExtension {
|
| 225 | get { return fileExtension_; }
|
| 226 | }
|
| 227 |
|
| 228 | public const int UmbrellaNamespaceFieldNumber = 222;
|
| 229 | private bool hasUmbrellaNamespace;
|
| 230 | private string umbrellaNamespace_ = "";
|
| 231 | public bool HasUmbrellaNamespace {
|
| 232 | get { return hasUmbrellaNamespace; }
|
| 233 | }
|
| 234 | public string UmbrellaNamespace {
|
| 235 | get { return umbrellaNamespace_; }
|
| 236 | }
|
| 237 |
|
| 238 | public const int OutputDirectoryFieldNumber = 223;
|
| 239 | private bool hasOutputDirectory;
|
| 240 | private string outputDirectory_ = ".";
|
| 241 | public bool HasOutputDirectory {
|
| 242 | get { return hasOutputDirectory; }
|
| 243 | }
|
| 244 | public string OutputDirectory {
|
| 245 | get { return outputDirectory_; }
|
| 246 | }
|
| 247 |
|
| 248 | public const int IgnoreGoogleProtobufFieldNumber = 224;
|
| 249 | private bool hasIgnoreGoogleProtobuf;
|
| 250 | private bool ignoreGoogleProtobuf_ = false;
|
| 251 | public bool HasIgnoreGoogleProtobuf {
|
| 252 | get { return hasIgnoreGoogleProtobuf; }
|
| 253 | }
|
| 254 | public bool IgnoreGoogleProtobuf {
|
| 255 | get { return ignoreGoogleProtobuf_; }
|
| 256 | }
|
| 257 |
|
csharptest | 68d831e | 2011-05-03 13:47:34 -0500 | [diff] [blame^] | 258 | public const int ServiceGeneratorTypeFieldNumber = 225;
|
| 259 | private bool hasServiceGeneratorType;
|
| 260 | private global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.GENERIC;
|
| 261 | public bool HasServiceGeneratorType {
|
| 262 | get { return hasServiceGeneratorType; }
|
| 263 | }
|
| 264 | public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
|
| 265 | get { return serviceGeneratorType_; }
|
| 266 | }
|
| 267 |
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 268 | public override bool IsInitialized {
|
| 269 | get {
|
| 270 | return true;
|
| 271 | }
|
| 272 | }
|
| 273 |
|
| 274 | public override void WriteTo(pb::CodedOutputStream output) {
|
| 275 | int size = SerializedSize;
|
| 276 | if (HasNamespace) {
|
| 277 | output.WriteString(1, Namespace);
|
| 278 | }
|
| 279 | if (HasUmbrellaClassname) {
|
| 280 | output.WriteString(2, UmbrellaClassname);
|
| 281 | }
|
| 282 | if (HasPublicClasses) {
|
| 283 | output.WriteBool(3, PublicClasses);
|
| 284 | }
|
| 285 | if (HasMultipleFiles) {
|
| 286 | output.WriteBool(4, MultipleFiles);
|
| 287 | }
|
| 288 | if (HasNestClasses) {
|
| 289 | output.WriteBool(5, NestClasses);
|
| 290 | }
|
| 291 | if (HasCodeContracts) {
|
| 292 | output.WriteBool(6, CodeContracts);
|
| 293 | }
|
| 294 | if (HasExpandNamespaceDirectories) {
|
| 295 | output.WriteBool(7, ExpandNamespaceDirectories);
|
| 296 | }
|
| 297 | if (HasClsCompliance) {
|
| 298 | output.WriteBool(8, ClsCompliance);
|
| 299 | }
|
| 300 | if (HasFileExtension) {
|
| 301 | output.WriteString(221, FileExtension);
|
| 302 | }
|
| 303 | if (HasUmbrellaNamespace) {
|
| 304 | output.WriteString(222, UmbrellaNamespace);
|
| 305 | }
|
| 306 | if (HasOutputDirectory) {
|
| 307 | output.WriteString(223, OutputDirectory);
|
| 308 | }
|
| 309 | if (HasIgnoreGoogleProtobuf) {
|
| 310 | output.WriteBool(224, IgnoreGoogleProtobuf);
|
| 311 | }
|
csharptest | 68d831e | 2011-05-03 13:47:34 -0500 | [diff] [blame^] | 312 | if (HasServiceGeneratorType) {
|
| 313 | output.WriteEnum(225, (int) ServiceGeneratorType);
|
| 314 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 315 | UnknownFields.WriteTo(output);
|
| 316 | }
|
| 317 |
|
| 318 | private int memoizedSerializedSize = -1;
|
| 319 | public override int SerializedSize {
|
| 320 | get {
|
| 321 | int size = memoizedSerializedSize;
|
| 322 | if (size != -1) return size;
|
| 323 |
|
| 324 | size = 0;
|
| 325 | if (HasNamespace) {
|
| 326 | size += pb::CodedOutputStream.ComputeStringSize(1, Namespace);
|
| 327 | }
|
| 328 | if (HasUmbrellaClassname) {
|
| 329 | size += pb::CodedOutputStream.ComputeStringSize(2, UmbrellaClassname);
|
| 330 | }
|
| 331 | if (HasPublicClasses) {
|
| 332 | size += pb::CodedOutputStream.ComputeBoolSize(3, PublicClasses);
|
| 333 | }
|
| 334 | if (HasMultipleFiles) {
|
| 335 | size += pb::CodedOutputStream.ComputeBoolSize(4, MultipleFiles);
|
| 336 | }
|
| 337 | if (HasNestClasses) {
|
| 338 | size += pb::CodedOutputStream.ComputeBoolSize(5, NestClasses);
|
| 339 | }
|
| 340 | if (HasCodeContracts) {
|
| 341 | size += pb::CodedOutputStream.ComputeBoolSize(6, CodeContracts);
|
| 342 | }
|
| 343 | if (HasExpandNamespaceDirectories) {
|
| 344 | size += pb::CodedOutputStream.ComputeBoolSize(7, ExpandNamespaceDirectories);
|
| 345 | }
|
| 346 | if (HasClsCompliance) {
|
| 347 | size += pb::CodedOutputStream.ComputeBoolSize(8, ClsCompliance);
|
| 348 | }
|
| 349 | if (HasFileExtension) {
|
| 350 | size += pb::CodedOutputStream.ComputeStringSize(221, FileExtension);
|
| 351 | }
|
| 352 | if (HasUmbrellaNamespace) {
|
| 353 | size += pb::CodedOutputStream.ComputeStringSize(222, UmbrellaNamespace);
|
| 354 | }
|
| 355 | if (HasOutputDirectory) {
|
| 356 | size += pb::CodedOutputStream.ComputeStringSize(223, OutputDirectory);
|
| 357 | }
|
| 358 | if (HasIgnoreGoogleProtobuf) {
|
| 359 | size += pb::CodedOutputStream.ComputeBoolSize(224, IgnoreGoogleProtobuf);
|
| 360 | }
|
csharptest | 68d831e | 2011-05-03 13:47:34 -0500 | [diff] [blame^] | 361 | if (HasServiceGeneratorType) {
|
| 362 | size += pb::CodedOutputStream.ComputeEnumSize(225, (int) ServiceGeneratorType);
|
| 363 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 364 | size += UnknownFields.SerializedSize;
|
| 365 | memoizedSerializedSize = size;
|
| 366 | return size;
|
| 367 | }
|
| 368 | }
|
| 369 |
|
| 370 | public static CSharpFileOptions ParseFrom(pb::ByteString data) {
|
| 371 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 372 | }
|
| 373 | public static CSharpFileOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 374 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 375 | }
|
| 376 | public static CSharpFileOptions ParseFrom(byte[] data) {
|
| 377 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 378 | }
|
| 379 | public static CSharpFileOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 380 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 381 | }
|
| 382 | public static CSharpFileOptions ParseFrom(global::System.IO.Stream input) {
|
| 383 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 384 | }
|
| 385 | public static CSharpFileOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 386 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 387 | }
|
| 388 | public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 389 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 390 | }
|
| 391 | public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 392 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 393 | }
|
| 394 | public static CSharpFileOptions ParseFrom(pb::CodedInputStream input) {
|
| 395 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 396 | }
|
| 397 | public static CSharpFileOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 398 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 399 | }
|
| 400 | public static Builder CreateBuilder() { return new Builder(); }
|
| 401 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 402 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 403 | public static Builder CreateBuilder(CSharpFileOptions prototype) {
|
| 404 | return (Builder) new Builder().MergeFrom(prototype);
|
| 405 | }
|
| 406 |
|
| 407 | public sealed partial class Builder : pb::GeneratedBuilder<CSharpFileOptions, Builder> {
|
| 408 | protected override Builder ThisBuilder {
|
| 409 | get { return this; }
|
| 410 | }
|
| 411 | public Builder() {}
|
| 412 |
|
| 413 | CSharpFileOptions result = new CSharpFileOptions();
|
| 414 |
|
| 415 | protected override CSharpFileOptions MessageBeingBuilt {
|
| 416 | get { return result; }
|
| 417 | }
|
| 418 |
|
| 419 | public override Builder Clear() {
|
| 420 | result = new CSharpFileOptions();
|
| 421 | return this;
|
| 422 | }
|
| 423 |
|
| 424 | public override Builder Clone() {
|
| 425 | return new Builder().MergeFrom(result);
|
| 426 | }
|
| 427 |
|
| 428 | public override pbd::MessageDescriptor DescriptorForType {
|
| 429 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Descriptor; }
|
| 430 | }
|
| 431 |
|
| 432 | public override CSharpFileOptions DefaultInstanceForType {
|
| 433 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance; }
|
| 434 | }
|
| 435 |
|
| 436 | public override CSharpFileOptions BuildPartial() {
|
| 437 | if (result == null) {
|
| 438 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 439 | }
|
| 440 | CSharpFileOptions returnMe = result;
|
| 441 | result = null;
|
| 442 | return returnMe;
|
| 443 | }
|
| 444 |
|
| 445 | public override Builder MergeFrom(pb::IMessage other) {
|
| 446 | if (other is CSharpFileOptions) {
|
| 447 | return MergeFrom((CSharpFileOptions) other);
|
| 448 | } else {
|
| 449 | base.MergeFrom(other);
|
| 450 | return this;
|
| 451 | }
|
| 452 | }
|
| 453 |
|
| 454 | public override Builder MergeFrom(CSharpFileOptions other) {
|
| 455 | if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance) return this;
|
| 456 | if (other.HasNamespace) {
|
| 457 | Namespace = other.Namespace;
|
| 458 | }
|
| 459 | if (other.HasUmbrellaClassname) {
|
| 460 | UmbrellaClassname = other.UmbrellaClassname;
|
| 461 | }
|
| 462 | if (other.HasPublicClasses) {
|
| 463 | PublicClasses = other.PublicClasses;
|
| 464 | }
|
| 465 | if (other.HasMultipleFiles) {
|
| 466 | MultipleFiles = other.MultipleFiles;
|
| 467 | }
|
| 468 | if (other.HasNestClasses) {
|
| 469 | NestClasses = other.NestClasses;
|
| 470 | }
|
| 471 | if (other.HasCodeContracts) {
|
| 472 | CodeContracts = other.CodeContracts;
|
| 473 | }
|
| 474 | if (other.HasExpandNamespaceDirectories) {
|
| 475 | ExpandNamespaceDirectories = other.ExpandNamespaceDirectories;
|
| 476 | }
|
| 477 | if (other.HasClsCompliance) {
|
| 478 | ClsCompliance = other.ClsCompliance;
|
| 479 | }
|
| 480 | if (other.HasFileExtension) {
|
| 481 | FileExtension = other.FileExtension;
|
| 482 | }
|
| 483 | if (other.HasUmbrellaNamespace) {
|
| 484 | UmbrellaNamespace = other.UmbrellaNamespace;
|
| 485 | }
|
| 486 | if (other.HasOutputDirectory) {
|
| 487 | OutputDirectory = other.OutputDirectory;
|
| 488 | }
|
| 489 | if (other.HasIgnoreGoogleProtobuf) {
|
| 490 | IgnoreGoogleProtobuf = other.IgnoreGoogleProtobuf;
|
| 491 | }
|
csharptest | 68d831e | 2011-05-03 13:47:34 -0500 | [diff] [blame^] | 492 | if (other.HasServiceGeneratorType) {
|
| 493 | ServiceGeneratorType = other.ServiceGeneratorType;
|
| 494 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 495 | this.MergeUnknownFields(other.UnknownFields);
|
| 496 | return this;
|
| 497 | }
|
| 498 |
|
| 499 | public override Builder MergeFrom(pb::CodedInputStream input) {
|
| 500 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 501 | }
|
| 502 |
|
| 503 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 504 | pb::UnknownFieldSet.Builder unknownFields = null;
|
| 505 | while (true) {
|
| 506 | uint tag = input.ReadTag();
|
| 507 | switch (tag) {
|
| 508 | case 0: {
|
| 509 | if (unknownFields != null) {
|
| 510 | this.UnknownFields = unknownFields.Build();
|
| 511 | }
|
| 512 | return this;
|
| 513 | }
|
| 514 | default: {
|
| 515 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 516 | if (unknownFields != null) {
|
| 517 | this.UnknownFields = unknownFields.Build();
|
| 518 | }
|
| 519 | return this;
|
| 520 | }
|
| 521 | if (unknownFields == null) {
|
| 522 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 523 | }
|
| 524 | ParseUnknownField(input, unknownFields, extensionRegistry, tag);
|
| 525 | break;
|
| 526 | }
|
| 527 | case 10: {
|
| 528 | Namespace = input.ReadString();
|
| 529 | break;
|
| 530 | }
|
| 531 | case 18: {
|
| 532 | UmbrellaClassname = input.ReadString();
|
| 533 | break;
|
| 534 | }
|
| 535 | case 24: {
|
| 536 | PublicClasses = input.ReadBool();
|
| 537 | break;
|
| 538 | }
|
| 539 | case 32: {
|
| 540 | MultipleFiles = input.ReadBool();
|
| 541 | break;
|
| 542 | }
|
| 543 | case 40: {
|
| 544 | NestClasses = input.ReadBool();
|
| 545 | break;
|
| 546 | }
|
| 547 | case 48: {
|
| 548 | CodeContracts = input.ReadBool();
|
| 549 | break;
|
| 550 | }
|
| 551 | case 56: {
|
| 552 | ExpandNamespaceDirectories = input.ReadBool();
|
| 553 | break;
|
| 554 | }
|
| 555 | case 64: {
|
| 556 | ClsCompliance = input.ReadBool();
|
| 557 | break;
|
| 558 | }
|
| 559 | case 1770: {
|
| 560 | FileExtension = input.ReadString();
|
| 561 | break;
|
| 562 | }
|
| 563 | case 1778: {
|
| 564 | UmbrellaNamespace = input.ReadString();
|
| 565 | break;
|
| 566 | }
|
| 567 | case 1786: {
|
| 568 | OutputDirectory = input.ReadString();
|
| 569 | break;
|
| 570 | }
|
| 571 | case 1792: {
|
| 572 | IgnoreGoogleProtobuf = input.ReadBool();
|
| 573 | break;
|
| 574 | }
|
csharptest | 68d831e | 2011-05-03 13:47:34 -0500 | [diff] [blame^] | 575 | case 1800: {
|
| 576 | int rawValue = input.ReadEnum();
|
| 577 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType), rawValue)) {
|
| 578 | if (unknownFields == null) {
|
| 579 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 580 | }
|
| 581 | unknownFields.MergeVarintField(225, (ulong) rawValue);
|
| 582 | } else {
|
| 583 | ServiceGeneratorType = (global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType) rawValue;
|
| 584 | }
|
| 585 | break;
|
| 586 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 587 | }
|
| 588 | }
|
| 589 | }
|
| 590 |
|
| 591 |
|
| 592 | public bool HasNamespace {
|
| 593 | get { return result.HasNamespace; }
|
| 594 | }
|
| 595 | public string Namespace {
|
| 596 | get { return result.Namespace; }
|
| 597 | set { SetNamespace(value); }
|
| 598 | }
|
| 599 | public Builder SetNamespace(string value) {
|
| 600 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 601 | result.hasNamespace = true;
|
| 602 | result.namespace_ = value;
|
| 603 | return this;
|
| 604 | }
|
| 605 | public Builder ClearNamespace() {
|
| 606 | result.hasNamespace = false;
|
| 607 | result.namespace_ = "";
|
| 608 | return this;
|
| 609 | }
|
| 610 |
|
| 611 | public bool HasUmbrellaClassname {
|
| 612 | get { return result.HasUmbrellaClassname; }
|
| 613 | }
|
| 614 | public string UmbrellaClassname {
|
| 615 | get { return result.UmbrellaClassname; }
|
| 616 | set { SetUmbrellaClassname(value); }
|
| 617 | }
|
| 618 | public Builder SetUmbrellaClassname(string value) {
|
| 619 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 620 | result.hasUmbrellaClassname = true;
|
| 621 | result.umbrellaClassname_ = value;
|
| 622 | return this;
|
| 623 | }
|
| 624 | public Builder ClearUmbrellaClassname() {
|
| 625 | result.hasUmbrellaClassname = false;
|
| 626 | result.umbrellaClassname_ = "";
|
| 627 | return this;
|
| 628 | }
|
| 629 |
|
| 630 | public bool HasPublicClasses {
|
| 631 | get { return result.HasPublicClasses; }
|
| 632 | }
|
| 633 | public bool PublicClasses {
|
| 634 | get { return result.PublicClasses; }
|
| 635 | set { SetPublicClasses(value); }
|
| 636 | }
|
| 637 | public Builder SetPublicClasses(bool value) {
|
| 638 | result.hasPublicClasses = true;
|
| 639 | result.publicClasses_ = value;
|
| 640 | return this;
|
| 641 | }
|
| 642 | public Builder ClearPublicClasses() {
|
| 643 | result.hasPublicClasses = false;
|
| 644 | result.publicClasses_ = true;
|
| 645 | return this;
|
| 646 | }
|
| 647 |
|
| 648 | public bool HasMultipleFiles {
|
| 649 | get { return result.HasMultipleFiles; }
|
| 650 | }
|
| 651 | public bool MultipleFiles {
|
| 652 | get { return result.MultipleFiles; }
|
| 653 | set { SetMultipleFiles(value); }
|
| 654 | }
|
| 655 | public Builder SetMultipleFiles(bool value) {
|
| 656 | result.hasMultipleFiles = true;
|
| 657 | result.multipleFiles_ = value;
|
| 658 | return this;
|
| 659 | }
|
| 660 | public Builder ClearMultipleFiles() {
|
| 661 | result.hasMultipleFiles = false;
|
| 662 | result.multipleFiles_ = false;
|
| 663 | return this;
|
| 664 | }
|
| 665 |
|
| 666 | public bool HasNestClasses {
|
| 667 | get { return result.HasNestClasses; }
|
| 668 | }
|
| 669 | public bool NestClasses {
|
| 670 | get { return result.NestClasses; }
|
| 671 | set { SetNestClasses(value); }
|
| 672 | }
|
| 673 | public Builder SetNestClasses(bool value) {
|
| 674 | result.hasNestClasses = true;
|
| 675 | result.nestClasses_ = value;
|
| 676 | return this;
|
| 677 | }
|
| 678 | public Builder ClearNestClasses() {
|
| 679 | result.hasNestClasses = false;
|
| 680 | result.nestClasses_ = false;
|
| 681 | return this;
|
| 682 | }
|
| 683 |
|
| 684 | public bool HasCodeContracts {
|
| 685 | get { return result.HasCodeContracts; }
|
| 686 | }
|
| 687 | public bool CodeContracts {
|
| 688 | get { return result.CodeContracts; }
|
| 689 | set { SetCodeContracts(value); }
|
| 690 | }
|
| 691 | public Builder SetCodeContracts(bool value) {
|
| 692 | result.hasCodeContracts = true;
|
| 693 | result.codeContracts_ = value;
|
| 694 | return this;
|
| 695 | }
|
| 696 | public Builder ClearCodeContracts() {
|
| 697 | result.hasCodeContracts = false;
|
| 698 | result.codeContracts_ = false;
|
| 699 | return this;
|
| 700 | }
|
| 701 |
|
| 702 | public bool HasExpandNamespaceDirectories {
|
| 703 | get { return result.HasExpandNamespaceDirectories; }
|
| 704 | }
|
| 705 | public bool ExpandNamespaceDirectories {
|
| 706 | get { return result.ExpandNamespaceDirectories; }
|
| 707 | set { SetExpandNamespaceDirectories(value); }
|
| 708 | }
|
| 709 | public Builder SetExpandNamespaceDirectories(bool value) {
|
| 710 | result.hasExpandNamespaceDirectories = true;
|
| 711 | result.expandNamespaceDirectories_ = value;
|
| 712 | return this;
|
| 713 | }
|
| 714 | public Builder ClearExpandNamespaceDirectories() {
|
| 715 | result.hasExpandNamespaceDirectories = false;
|
| 716 | result.expandNamespaceDirectories_ = false;
|
| 717 | return this;
|
| 718 | }
|
| 719 |
|
| 720 | public bool HasClsCompliance {
|
| 721 | get { return result.HasClsCompliance; }
|
| 722 | }
|
| 723 | public bool ClsCompliance {
|
| 724 | get { return result.ClsCompliance; }
|
| 725 | set { SetClsCompliance(value); }
|
| 726 | }
|
| 727 | public Builder SetClsCompliance(bool value) {
|
| 728 | result.hasClsCompliance = true;
|
| 729 | result.clsCompliance_ = value;
|
| 730 | return this;
|
| 731 | }
|
| 732 | public Builder ClearClsCompliance() {
|
| 733 | result.hasClsCompliance = false;
|
| 734 | result.clsCompliance_ = true;
|
| 735 | return this;
|
| 736 | }
|
| 737 |
|
| 738 | public bool HasFileExtension {
|
| 739 | get { return result.HasFileExtension; }
|
| 740 | }
|
| 741 | public string FileExtension {
|
| 742 | get { return result.FileExtension; }
|
| 743 | set { SetFileExtension(value); }
|
| 744 | }
|
| 745 | public Builder SetFileExtension(string value) {
|
| 746 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 747 | result.hasFileExtension = true;
|
| 748 | result.fileExtension_ = value;
|
| 749 | return this;
|
| 750 | }
|
| 751 | public Builder ClearFileExtension() {
|
| 752 | result.hasFileExtension = false;
|
| 753 | result.fileExtension_ = ".cs";
|
| 754 | return this;
|
| 755 | }
|
| 756 |
|
| 757 | public bool HasUmbrellaNamespace {
|
| 758 | get { return result.HasUmbrellaNamespace; }
|
| 759 | }
|
| 760 | public string UmbrellaNamespace {
|
| 761 | get { return result.UmbrellaNamespace; }
|
| 762 | set { SetUmbrellaNamespace(value); }
|
| 763 | }
|
| 764 | public Builder SetUmbrellaNamespace(string value) {
|
| 765 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 766 | result.hasUmbrellaNamespace = true;
|
| 767 | result.umbrellaNamespace_ = value;
|
| 768 | return this;
|
| 769 | }
|
| 770 | public Builder ClearUmbrellaNamespace() {
|
| 771 | result.hasUmbrellaNamespace = false;
|
| 772 | result.umbrellaNamespace_ = "";
|
| 773 | return this;
|
| 774 | }
|
| 775 |
|
| 776 | public bool HasOutputDirectory {
|
| 777 | get { return result.HasOutputDirectory; }
|
| 778 | }
|
| 779 | public string OutputDirectory {
|
| 780 | get { return result.OutputDirectory; }
|
| 781 | set { SetOutputDirectory(value); }
|
| 782 | }
|
| 783 | public Builder SetOutputDirectory(string value) {
|
| 784 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 785 | result.hasOutputDirectory = true;
|
| 786 | result.outputDirectory_ = value;
|
| 787 | return this;
|
| 788 | }
|
| 789 | public Builder ClearOutputDirectory() {
|
| 790 | result.hasOutputDirectory = false;
|
| 791 | result.outputDirectory_ = ".";
|
| 792 | return this;
|
| 793 | }
|
| 794 |
|
| 795 | public bool HasIgnoreGoogleProtobuf {
|
| 796 | get { return result.HasIgnoreGoogleProtobuf; }
|
| 797 | }
|
| 798 | public bool IgnoreGoogleProtobuf {
|
| 799 | get { return result.IgnoreGoogleProtobuf; }
|
| 800 | set { SetIgnoreGoogleProtobuf(value); }
|
| 801 | }
|
| 802 | public Builder SetIgnoreGoogleProtobuf(bool value) {
|
| 803 | result.hasIgnoreGoogleProtobuf = true;
|
| 804 | result.ignoreGoogleProtobuf_ = value;
|
| 805 | return this;
|
| 806 | }
|
| 807 | public Builder ClearIgnoreGoogleProtobuf() {
|
| 808 | result.hasIgnoreGoogleProtobuf = false;
|
| 809 | result.ignoreGoogleProtobuf_ = false;
|
| 810 | return this;
|
| 811 | }
|
csharptest | 68d831e | 2011-05-03 13:47:34 -0500 | [diff] [blame^] | 812 |
|
| 813 | public bool HasServiceGeneratorType {
|
| 814 | get { return result.HasServiceGeneratorType; }
|
| 815 | }
|
| 816 | public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
|
| 817 | get { return result.ServiceGeneratorType; }
|
| 818 | set { SetServiceGeneratorType(value); }
|
| 819 | }
|
| 820 | public Builder SetServiceGeneratorType(global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType value) {
|
| 821 | result.hasServiceGeneratorType = true;
|
| 822 | result.serviceGeneratorType_ = value;
|
| 823 | return this;
|
| 824 | }
|
| 825 | public Builder ClearServiceGeneratorType() {
|
| 826 | result.hasServiceGeneratorType = false;
|
| 827 | result.serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.GENERIC;
|
| 828 | return this;
|
| 829 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 830 | }
|
| 831 | static CSharpFileOptions() {
|
| 832 | object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
|
| 833 | }
|
| 834 | }
|
| 835 |
|
| 836 | public sealed partial class CSharpFieldOptions : pb::GeneratedMessage<CSharpFieldOptions, CSharpFieldOptions.Builder> {
|
| 837 | private static readonly CSharpFieldOptions defaultInstance = new Builder().BuildPartial();
|
| 838 | public static CSharpFieldOptions DefaultInstance {
|
| 839 | get { return defaultInstance; }
|
| 840 | }
|
| 841 |
|
| 842 | public override CSharpFieldOptions DefaultInstanceForType {
|
| 843 | get { return defaultInstance; }
|
| 844 | }
|
| 845 |
|
| 846 | protected override CSharpFieldOptions ThisMessage {
|
| 847 | get { return this; }
|
| 848 | }
|
| 849 |
|
| 850 | public static pbd::MessageDescriptor Descriptor {
|
| 851 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__Descriptor; }
|
| 852 | }
|
| 853 |
|
| 854 | protected override pb::FieldAccess.FieldAccessorTable<CSharpFieldOptions, CSharpFieldOptions.Builder> InternalFieldAccessors {
|
| 855 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable; }
|
| 856 | }
|
| 857 |
|
| 858 | public const int PropertyNameFieldNumber = 1;
|
| 859 | private bool hasPropertyName;
|
| 860 | private string propertyName_ = "";
|
| 861 | public bool HasPropertyName {
|
| 862 | get { return hasPropertyName; }
|
| 863 | }
|
| 864 | public string PropertyName {
|
| 865 | get { return propertyName_; }
|
| 866 | }
|
| 867 |
|
| 868 | public override bool IsInitialized {
|
| 869 | get {
|
| 870 | return true;
|
| 871 | }
|
| 872 | }
|
| 873 |
|
| 874 | public override void WriteTo(pb::CodedOutputStream output) {
|
| 875 | int size = SerializedSize;
|
| 876 | if (HasPropertyName) {
|
| 877 | output.WriteString(1, PropertyName);
|
| 878 | }
|
| 879 | UnknownFields.WriteTo(output);
|
| 880 | }
|
| 881 |
|
| 882 | private int memoizedSerializedSize = -1;
|
| 883 | public override int SerializedSize {
|
| 884 | get {
|
| 885 | int size = memoizedSerializedSize;
|
| 886 | if (size != -1) return size;
|
| 887 |
|
| 888 | size = 0;
|
| 889 | if (HasPropertyName) {
|
| 890 | size += pb::CodedOutputStream.ComputeStringSize(1, PropertyName);
|
| 891 | }
|
| 892 | size += UnknownFields.SerializedSize;
|
| 893 | memoizedSerializedSize = size;
|
| 894 | return size;
|
| 895 | }
|
| 896 | }
|
| 897 |
|
| 898 | public static CSharpFieldOptions ParseFrom(pb::ByteString data) {
|
| 899 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 900 | }
|
| 901 | public static CSharpFieldOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 902 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 903 | }
|
| 904 | public static CSharpFieldOptions ParseFrom(byte[] data) {
|
| 905 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 906 | }
|
| 907 | public static CSharpFieldOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 908 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 909 | }
|
| 910 | public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input) {
|
| 911 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 912 | }
|
| 913 | public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 914 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 915 | }
|
| 916 | public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 917 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 918 | }
|
| 919 | public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 920 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 921 | }
|
| 922 | public static CSharpFieldOptions ParseFrom(pb::CodedInputStream input) {
|
| 923 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 924 | }
|
| 925 | public static CSharpFieldOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 926 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 927 | }
|
| 928 | public static Builder CreateBuilder() { return new Builder(); }
|
| 929 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 930 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 931 | public static Builder CreateBuilder(CSharpFieldOptions prototype) {
|
| 932 | return (Builder) new Builder().MergeFrom(prototype);
|
| 933 | }
|
| 934 |
|
| 935 | public sealed partial class Builder : pb::GeneratedBuilder<CSharpFieldOptions, Builder> {
|
| 936 | protected override Builder ThisBuilder {
|
| 937 | get { return this; }
|
| 938 | }
|
| 939 | public Builder() {}
|
| 940 |
|
| 941 | CSharpFieldOptions result = new CSharpFieldOptions();
|
| 942 |
|
| 943 | protected override CSharpFieldOptions MessageBeingBuilt {
|
| 944 | get { return result; }
|
| 945 | }
|
| 946 |
|
| 947 | public override Builder Clear() {
|
| 948 | result = new CSharpFieldOptions();
|
| 949 | return this;
|
| 950 | }
|
| 951 |
|
| 952 | public override Builder Clone() {
|
| 953 | return new Builder().MergeFrom(result);
|
| 954 | }
|
| 955 |
|
| 956 | public override pbd::MessageDescriptor DescriptorForType {
|
| 957 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Descriptor; }
|
| 958 | }
|
| 959 |
|
| 960 | public override CSharpFieldOptions DefaultInstanceForType {
|
| 961 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance; }
|
| 962 | }
|
| 963 |
|
| 964 | public override CSharpFieldOptions BuildPartial() {
|
| 965 | if (result == null) {
|
| 966 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 967 | }
|
| 968 | CSharpFieldOptions returnMe = result;
|
| 969 | result = null;
|
| 970 | return returnMe;
|
| 971 | }
|
| 972 |
|
| 973 | public override Builder MergeFrom(pb::IMessage other) {
|
| 974 | if (other is CSharpFieldOptions) {
|
| 975 | return MergeFrom((CSharpFieldOptions) other);
|
| 976 | } else {
|
| 977 | base.MergeFrom(other);
|
| 978 | return this;
|
| 979 | }
|
| 980 | }
|
| 981 |
|
| 982 | public override Builder MergeFrom(CSharpFieldOptions other) {
|
| 983 | if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance) return this;
|
| 984 | if (other.HasPropertyName) {
|
| 985 | PropertyName = other.PropertyName;
|
| 986 | }
|
| 987 | this.MergeUnknownFields(other.UnknownFields);
|
| 988 | return this;
|
| 989 | }
|
| 990 |
|
| 991 | public override Builder MergeFrom(pb::CodedInputStream input) {
|
| 992 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 993 | }
|
| 994 |
|
| 995 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 996 | pb::UnknownFieldSet.Builder unknownFields = null;
|
| 997 | while (true) {
|
| 998 | uint tag = input.ReadTag();
|
| 999 | switch (tag) {
|
| 1000 | case 0: {
|
| 1001 | if (unknownFields != null) {
|
| 1002 | this.UnknownFields = unknownFields.Build();
|
| 1003 | }
|
| 1004 | return this;
|
| 1005 | }
|
| 1006 | default: {
|
| 1007 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1008 | if (unknownFields != null) {
|
| 1009 | this.UnknownFields = unknownFields.Build();
|
| 1010 | }
|
| 1011 | return this;
|
| 1012 | }
|
| 1013 | if (unknownFields == null) {
|
| 1014 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 1015 | }
|
| 1016 | ParseUnknownField(input, unknownFields, extensionRegistry, tag);
|
| 1017 | break;
|
| 1018 | }
|
| 1019 | case 10: {
|
| 1020 | PropertyName = input.ReadString();
|
| 1021 | break;
|
| 1022 | }
|
| 1023 | }
|
| 1024 | }
|
| 1025 | }
|
| 1026 |
|
| 1027 |
|
| 1028 | public bool HasPropertyName {
|
| 1029 | get { return result.HasPropertyName; }
|
| 1030 | }
|
| 1031 | public string PropertyName {
|
| 1032 | get { return result.PropertyName; }
|
| 1033 | set { SetPropertyName(value); }
|
| 1034 | }
|
| 1035 | public Builder SetPropertyName(string value) {
|
| 1036 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 1037 | result.hasPropertyName = true;
|
| 1038 | result.propertyName_ = value;
|
| 1039 | return this;
|
| 1040 | }
|
| 1041 | public Builder ClearPropertyName() {
|
| 1042 | result.hasPropertyName = false;
|
| 1043 | result.propertyName_ = "";
|
| 1044 | return this;
|
| 1045 | }
|
| 1046 | }
|
| 1047 | static CSharpFieldOptions() {
|
| 1048 | object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
|
| 1049 | }
|
| 1050 | }
|
| 1051 |
|
csharptest | 68d831e | 2011-05-03 13:47:34 -0500 | [diff] [blame^] | 1052 | public sealed partial class CSharpServiceOptions : pb::GeneratedMessage<CSharpServiceOptions, CSharpServiceOptions.Builder> {
|
| 1053 | private static readonly CSharpServiceOptions defaultInstance = new Builder().BuildPartial();
|
| 1054 | public static CSharpServiceOptions DefaultInstance {
|
| 1055 | get { return defaultInstance; }
|
| 1056 | }
|
| 1057 |
|
| 1058 | public override CSharpServiceOptions DefaultInstanceForType {
|
| 1059 | get { return defaultInstance; }
|
| 1060 | }
|
| 1061 |
|
| 1062 | protected override CSharpServiceOptions ThisMessage {
|
| 1063 | get { return this; }
|
| 1064 | }
|
| 1065 |
|
| 1066 | public static pbd::MessageDescriptor Descriptor {
|
| 1067 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpServiceOptions__Descriptor; }
|
| 1068 | }
|
| 1069 |
|
| 1070 | protected override pb::FieldAccess.FieldAccessorTable<CSharpServiceOptions, CSharpServiceOptions.Builder> InternalFieldAccessors {
|
| 1071 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable; }
|
| 1072 | }
|
| 1073 |
|
| 1074 | public const int InterfaceIdFieldNumber = 1;
|
| 1075 | private bool hasInterfaceId;
|
| 1076 | private string interfaceId_ = "";
|
| 1077 | public bool HasInterfaceId {
|
| 1078 | get { return hasInterfaceId; }
|
| 1079 | }
|
| 1080 | public string InterfaceId {
|
| 1081 | get { return interfaceId_; }
|
| 1082 | }
|
| 1083 |
|
| 1084 | public override bool IsInitialized {
|
| 1085 | get {
|
| 1086 | return true;
|
| 1087 | }
|
| 1088 | }
|
| 1089 |
|
| 1090 | public override void WriteTo(pb::CodedOutputStream output) {
|
| 1091 | int size = SerializedSize;
|
| 1092 | if (HasInterfaceId) {
|
| 1093 | output.WriteString(1, InterfaceId);
|
| 1094 | }
|
| 1095 | UnknownFields.WriteTo(output);
|
| 1096 | }
|
| 1097 |
|
| 1098 | private int memoizedSerializedSize = -1;
|
| 1099 | public override int SerializedSize {
|
| 1100 | get {
|
| 1101 | int size = memoizedSerializedSize;
|
| 1102 | if (size != -1) return size;
|
| 1103 |
|
| 1104 | size = 0;
|
| 1105 | if (HasInterfaceId) {
|
| 1106 | size += pb::CodedOutputStream.ComputeStringSize(1, InterfaceId);
|
| 1107 | }
|
| 1108 | size += UnknownFields.SerializedSize;
|
| 1109 | memoizedSerializedSize = size;
|
| 1110 | return size;
|
| 1111 | }
|
| 1112 | }
|
| 1113 |
|
| 1114 | public static CSharpServiceOptions ParseFrom(pb::ByteString data) {
|
| 1115 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1116 | }
|
| 1117 | public static CSharpServiceOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 1118 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1119 | }
|
| 1120 | public static CSharpServiceOptions ParseFrom(byte[] data) {
|
| 1121 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1122 | }
|
| 1123 | public static CSharpServiceOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 1124 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1125 | }
|
| 1126 | public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input) {
|
| 1127 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1128 | }
|
| 1129 | public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1130 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1131 | }
|
| 1132 | public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 1133 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 1134 | }
|
| 1135 | public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1136 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 1137 | }
|
| 1138 | public static CSharpServiceOptions ParseFrom(pb::CodedInputStream input) {
|
| 1139 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1140 | }
|
| 1141 | public static CSharpServiceOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1142 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1143 | }
|
| 1144 | public static Builder CreateBuilder() { return new Builder(); }
|
| 1145 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 1146 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 1147 | public static Builder CreateBuilder(CSharpServiceOptions prototype) {
|
| 1148 | return (Builder) new Builder().MergeFrom(prototype);
|
| 1149 | }
|
| 1150 |
|
| 1151 | public sealed partial class Builder : pb::GeneratedBuilder<CSharpServiceOptions, Builder> {
|
| 1152 | protected override Builder ThisBuilder {
|
| 1153 | get { return this; }
|
| 1154 | }
|
| 1155 | public Builder() {}
|
| 1156 |
|
| 1157 | CSharpServiceOptions result = new CSharpServiceOptions();
|
| 1158 |
|
| 1159 | protected override CSharpServiceOptions MessageBeingBuilt {
|
| 1160 | get { return result; }
|
| 1161 | }
|
| 1162 |
|
| 1163 | public override Builder Clear() {
|
| 1164 | result = new CSharpServiceOptions();
|
| 1165 | return this;
|
| 1166 | }
|
| 1167 |
|
| 1168 | public override Builder Clone() {
|
| 1169 | return new Builder().MergeFrom(result);
|
| 1170 | }
|
| 1171 |
|
| 1172 | public override pbd::MessageDescriptor DescriptorForType {
|
| 1173 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Descriptor; }
|
| 1174 | }
|
| 1175 |
|
| 1176 | public override CSharpServiceOptions DefaultInstanceForType {
|
| 1177 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance; }
|
| 1178 | }
|
| 1179 |
|
| 1180 | public override CSharpServiceOptions BuildPartial() {
|
| 1181 | if (result == null) {
|
| 1182 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 1183 | }
|
| 1184 | CSharpServiceOptions returnMe = result;
|
| 1185 | result = null;
|
| 1186 | return returnMe;
|
| 1187 | }
|
| 1188 |
|
| 1189 | public override Builder MergeFrom(pb::IMessage other) {
|
| 1190 | if (other is CSharpServiceOptions) {
|
| 1191 | return MergeFrom((CSharpServiceOptions) other);
|
| 1192 | } else {
|
| 1193 | base.MergeFrom(other);
|
| 1194 | return this;
|
| 1195 | }
|
| 1196 | }
|
| 1197 |
|
| 1198 | public override Builder MergeFrom(CSharpServiceOptions other) {
|
| 1199 | if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance) return this;
|
| 1200 | if (other.HasInterfaceId) {
|
| 1201 | InterfaceId = other.InterfaceId;
|
| 1202 | }
|
| 1203 | this.MergeUnknownFields(other.UnknownFields);
|
| 1204 | return this;
|
| 1205 | }
|
| 1206 |
|
| 1207 | public override Builder MergeFrom(pb::CodedInputStream input) {
|
| 1208 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 1209 | }
|
| 1210 |
|
| 1211 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1212 | pb::UnknownFieldSet.Builder unknownFields = null;
|
| 1213 | while (true) {
|
| 1214 | uint tag = input.ReadTag();
|
| 1215 | switch (tag) {
|
| 1216 | case 0: {
|
| 1217 | if (unknownFields != null) {
|
| 1218 | this.UnknownFields = unknownFields.Build();
|
| 1219 | }
|
| 1220 | return this;
|
| 1221 | }
|
| 1222 | default: {
|
| 1223 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1224 | if (unknownFields != null) {
|
| 1225 | this.UnknownFields = unknownFields.Build();
|
| 1226 | }
|
| 1227 | return this;
|
| 1228 | }
|
| 1229 | if (unknownFields == null) {
|
| 1230 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 1231 | }
|
| 1232 | ParseUnknownField(input, unknownFields, extensionRegistry, tag);
|
| 1233 | break;
|
| 1234 | }
|
| 1235 | case 10: {
|
| 1236 | InterfaceId = input.ReadString();
|
| 1237 | break;
|
| 1238 | }
|
| 1239 | }
|
| 1240 | }
|
| 1241 | }
|
| 1242 |
|
| 1243 |
|
| 1244 | public bool HasInterfaceId {
|
| 1245 | get { return result.HasInterfaceId; }
|
| 1246 | }
|
| 1247 | public string InterfaceId {
|
| 1248 | get { return result.InterfaceId; }
|
| 1249 | set { SetInterfaceId(value); }
|
| 1250 | }
|
| 1251 | public Builder SetInterfaceId(string value) {
|
| 1252 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 1253 | result.hasInterfaceId = true;
|
| 1254 | result.interfaceId_ = value;
|
| 1255 | return this;
|
| 1256 | }
|
| 1257 | public Builder ClearInterfaceId() {
|
| 1258 | result.hasInterfaceId = false;
|
| 1259 | result.interfaceId_ = "";
|
| 1260 | return this;
|
| 1261 | }
|
| 1262 | }
|
| 1263 | static CSharpServiceOptions() {
|
| 1264 | object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
|
| 1265 | }
|
| 1266 | }
|
| 1267 |
|
| 1268 | public sealed partial class CSharpMethodOptions : pb::GeneratedMessage<CSharpMethodOptions, CSharpMethodOptions.Builder> {
|
| 1269 | private static readonly CSharpMethodOptions defaultInstance = new Builder().BuildPartial();
|
| 1270 | public static CSharpMethodOptions DefaultInstance {
|
| 1271 | get { return defaultInstance; }
|
| 1272 | }
|
| 1273 |
|
| 1274 | public override CSharpMethodOptions DefaultInstanceForType {
|
| 1275 | get { return defaultInstance; }
|
| 1276 | }
|
| 1277 |
|
| 1278 | protected override CSharpMethodOptions ThisMessage {
|
| 1279 | get { return this; }
|
| 1280 | }
|
| 1281 |
|
| 1282 | public static pbd::MessageDescriptor Descriptor {
|
| 1283 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpMethodOptions__Descriptor; }
|
| 1284 | }
|
| 1285 |
|
| 1286 | protected override pb::FieldAccess.FieldAccessorTable<CSharpMethodOptions, CSharpMethodOptions.Builder> InternalFieldAccessors {
|
| 1287 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable; }
|
| 1288 | }
|
| 1289 |
|
| 1290 | public const int DispatchIdFieldNumber = 1;
|
| 1291 | private bool hasDispatchId;
|
| 1292 | private int dispatchId_ = 0;
|
| 1293 | public bool HasDispatchId {
|
| 1294 | get { return hasDispatchId; }
|
| 1295 | }
|
| 1296 | public int DispatchId {
|
| 1297 | get { return dispatchId_; }
|
| 1298 | }
|
| 1299 |
|
| 1300 | public override bool IsInitialized {
|
| 1301 | get {
|
| 1302 | return true;
|
| 1303 | }
|
| 1304 | }
|
| 1305 |
|
| 1306 | public override void WriteTo(pb::CodedOutputStream output) {
|
| 1307 | int size = SerializedSize;
|
| 1308 | if (HasDispatchId) {
|
| 1309 | output.WriteInt32(1, DispatchId);
|
| 1310 | }
|
| 1311 | UnknownFields.WriteTo(output);
|
| 1312 | }
|
| 1313 |
|
| 1314 | private int memoizedSerializedSize = -1;
|
| 1315 | public override int SerializedSize {
|
| 1316 | get {
|
| 1317 | int size = memoizedSerializedSize;
|
| 1318 | if (size != -1) return size;
|
| 1319 |
|
| 1320 | size = 0;
|
| 1321 | if (HasDispatchId) {
|
| 1322 | size += pb::CodedOutputStream.ComputeInt32Size(1, DispatchId);
|
| 1323 | }
|
| 1324 | size += UnknownFields.SerializedSize;
|
| 1325 | memoizedSerializedSize = size;
|
| 1326 | return size;
|
| 1327 | }
|
| 1328 | }
|
| 1329 |
|
| 1330 | public static CSharpMethodOptions ParseFrom(pb::ByteString data) {
|
| 1331 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1332 | }
|
| 1333 | public static CSharpMethodOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 1334 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1335 | }
|
| 1336 | public static CSharpMethodOptions ParseFrom(byte[] data) {
|
| 1337 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1338 | }
|
| 1339 | public static CSharpMethodOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 1340 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1341 | }
|
| 1342 | public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input) {
|
| 1343 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1344 | }
|
| 1345 | public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1346 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1347 | }
|
| 1348 | public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 1349 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 1350 | }
|
| 1351 | public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1352 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 1353 | }
|
| 1354 | public static CSharpMethodOptions ParseFrom(pb::CodedInputStream input) {
|
| 1355 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1356 | }
|
| 1357 | public static CSharpMethodOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1358 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1359 | }
|
| 1360 | public static Builder CreateBuilder() { return new Builder(); }
|
| 1361 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 1362 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 1363 | public static Builder CreateBuilder(CSharpMethodOptions prototype) {
|
| 1364 | return (Builder) new Builder().MergeFrom(prototype);
|
| 1365 | }
|
| 1366 |
|
| 1367 | public sealed partial class Builder : pb::GeneratedBuilder<CSharpMethodOptions, Builder> {
|
| 1368 | protected override Builder ThisBuilder {
|
| 1369 | get { return this; }
|
| 1370 | }
|
| 1371 | public Builder() {}
|
| 1372 |
|
| 1373 | CSharpMethodOptions result = new CSharpMethodOptions();
|
| 1374 |
|
| 1375 | protected override CSharpMethodOptions MessageBeingBuilt {
|
| 1376 | get { return result; }
|
| 1377 | }
|
| 1378 |
|
| 1379 | public override Builder Clear() {
|
| 1380 | result = new CSharpMethodOptions();
|
| 1381 | return this;
|
| 1382 | }
|
| 1383 |
|
| 1384 | public override Builder Clone() {
|
| 1385 | return new Builder().MergeFrom(result);
|
| 1386 | }
|
| 1387 |
|
| 1388 | public override pbd::MessageDescriptor DescriptorForType {
|
| 1389 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Descriptor; }
|
| 1390 | }
|
| 1391 |
|
| 1392 | public override CSharpMethodOptions DefaultInstanceForType {
|
| 1393 | get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance; }
|
| 1394 | }
|
| 1395 |
|
| 1396 | public override CSharpMethodOptions BuildPartial() {
|
| 1397 | if (result == null) {
|
| 1398 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 1399 | }
|
| 1400 | CSharpMethodOptions returnMe = result;
|
| 1401 | result = null;
|
| 1402 | return returnMe;
|
| 1403 | }
|
| 1404 |
|
| 1405 | public override Builder MergeFrom(pb::IMessage other) {
|
| 1406 | if (other is CSharpMethodOptions) {
|
| 1407 | return MergeFrom((CSharpMethodOptions) other);
|
| 1408 | } else {
|
| 1409 | base.MergeFrom(other);
|
| 1410 | return this;
|
| 1411 | }
|
| 1412 | }
|
| 1413 |
|
| 1414 | public override Builder MergeFrom(CSharpMethodOptions other) {
|
| 1415 | if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance) return this;
|
| 1416 | if (other.HasDispatchId) {
|
| 1417 | DispatchId = other.DispatchId;
|
| 1418 | }
|
| 1419 | this.MergeUnknownFields(other.UnknownFields);
|
| 1420 | return this;
|
| 1421 | }
|
| 1422 |
|
| 1423 | public override Builder MergeFrom(pb::CodedInputStream input) {
|
| 1424 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 1425 | }
|
| 1426 |
|
| 1427 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1428 | pb::UnknownFieldSet.Builder unknownFields = null;
|
| 1429 | while (true) {
|
| 1430 | uint tag = input.ReadTag();
|
| 1431 | switch (tag) {
|
| 1432 | case 0: {
|
| 1433 | if (unknownFields != null) {
|
| 1434 | this.UnknownFields = unknownFields.Build();
|
| 1435 | }
|
| 1436 | return this;
|
| 1437 | }
|
| 1438 | default: {
|
| 1439 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1440 | if (unknownFields != null) {
|
| 1441 | this.UnknownFields = unknownFields.Build();
|
| 1442 | }
|
| 1443 | return this;
|
| 1444 | }
|
| 1445 | if (unknownFields == null) {
|
| 1446 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 1447 | }
|
| 1448 | ParseUnknownField(input, unknownFields, extensionRegistry, tag);
|
| 1449 | break;
|
| 1450 | }
|
| 1451 | case 8: {
|
| 1452 | DispatchId = input.ReadInt32();
|
| 1453 | break;
|
| 1454 | }
|
| 1455 | }
|
| 1456 | }
|
| 1457 | }
|
| 1458 |
|
| 1459 |
|
| 1460 | public bool HasDispatchId {
|
| 1461 | get { return result.HasDispatchId; }
|
| 1462 | }
|
| 1463 | public int DispatchId {
|
| 1464 | get { return result.DispatchId; }
|
| 1465 | set { SetDispatchId(value); }
|
| 1466 | }
|
| 1467 | public Builder SetDispatchId(int value) {
|
| 1468 | result.hasDispatchId = true;
|
| 1469 | result.dispatchId_ = value;
|
| 1470 | return this;
|
| 1471 | }
|
| 1472 | public Builder ClearDispatchId() {
|
| 1473 | result.hasDispatchId = false;
|
| 1474 | result.dispatchId_ = 0;
|
| 1475 | return this;
|
| 1476 | }
|
| 1477 | }
|
| 1478 | static CSharpMethodOptions() {
|
| 1479 | object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
|
| 1480 | }
|
| 1481 | }
|
| 1482 |
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1483 | #endregion
|
| 1484 |
|
| 1485 | }
|