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