Commit 0cb84ee3 authored by Jon Skeet's avatar Jon Skeet

Merge pull request #720 from jtattermusch/csharp_fixes

C# fix for TypeInitializer exception.
parents 5c370cc5 fa2fe35d
...@@ -244,7 +244,6 @@ namespace Google.Protobuf ...@@ -244,7 +244,6 @@ namespace Google.Protobuf
[TestCase(null, "{ }")] [TestCase(null, "{ }")]
[TestCase("x", "{ 'fooString': 'x' }")] [TestCase("x", "{ 'fooString': 'x' }")]
[TestCase("", "{ 'fooString': '' }")] [TestCase("", "{ 'fooString': '' }")]
[TestCase(null, "{ }")]
public void Oneof(string fooStringValue, string expectedJson) public void Oneof(string fooStringValue, string expectedJson)
{ {
var message = new TestOneof(); var message = new TestOneof();
......
...@@ -251,5 +251,12 @@ namespace Google.Protobuf.Reflection ...@@ -251,5 +251,12 @@ namespace Google.Protobuf.Reflection
Assert.AreEqual(new[] { 11, 1, 101, 200 }, fields.InDeclarationOrder().Select(x => x.FieldNumber)); Assert.AreEqual(new[] { 11, 1, 101, 200 }, fields.InDeclarationOrder().Select(x => x.FieldNumber));
Assert.AreEqual(new[] { 1, 11, 101, 200 }, fields.InFieldNumberOrder().Select(x => x.FieldNumber)); Assert.AreEqual(new[] { 1, 11, 101, 200 }, fields.InFieldNumberOrder().Select(x => x.FieldNumber));
} }
[Test]
public void DescriptorProtoFileDescriptor()
{
var descriptor = Google.Protobuf.Reflection.FileDescriptor.DescriptorProtoFileDescriptor;
}
} }
} }
...@@ -77,7 +77,7 @@ namespace Google.Protobuf.Reflection { ...@@ -77,7 +77,7 @@ namespace Google.Protobuf.Reflection {
"b3RvEgwKBG5hbWUYASABKAkSEgoKaW5wdXRfdHlwZRgCIAEoCRITCgtvdXRw", "b3RvEgwKBG5hbWUYASABKAkSEgoKaW5wdXRfdHlwZRgCIAEoCRITCgtvdXRw",
"dXRfdHlwZRgDIAEoCRIvCgdvcHRpb25zGAQgASgLMh4uZ29vZ2xlLnByb3Rv", "dXRfdHlwZRgDIAEoCRIvCgdvcHRpb25zGAQgASgLMh4uZ29vZ2xlLnByb3Rv",
"YnVmLk1ldGhvZE9wdGlvbnMSHwoQY2xpZW50X3N0cmVhbWluZxgFIAEoCDoF", "YnVmLk1ldGhvZE9wdGlvbnMSHwoQY2xpZW50X3N0cmVhbWluZxgFIAEoCDoF",
"ZmFsc2USHwoQc2VydmVyX3N0cmVhbWluZxgGIAEoCDoFZmFsc2UigQUKC0Zp", "ZmFsc2USHwoQc2VydmVyX3N0cmVhbWluZxgGIAEoCDoFZmFsc2UiqgUKC0Zp",
"bGVPcHRpb25zEhQKDGphdmFfcGFja2FnZRgBIAEoCRIcChRqYXZhX291dGVy", "bGVPcHRpb25zEhQKDGphdmFfcGFja2FnZRgBIAEoCRIcChRqYXZhX291dGVy",
"X2NsYXNzbmFtZRgIIAEoCRIiChNqYXZhX211bHRpcGxlX2ZpbGVzGAogASgI", "X2NsYXNzbmFtZRgIIAEoCRIiChNqYXZhX211bHRpcGxlX2ZpbGVzGAogASgI",
"OgVmYWxzZRIsCh1qYXZhX2dlbmVyYXRlX2VxdWFsc19hbmRfaGFzaBgUIAEo", "OgVmYWxzZRIsCh1qYXZhX2dlbmVyYXRlX2VxdWFsc19hbmRfaGFzaBgUIAEo",
...@@ -89,49 +89,50 @@ namespace Google.Protobuf.Reflection { ...@@ -89,49 +89,50 @@ namespace Google.Protobuf.Reflection {
"aWNfc2VydmljZXMYEiABKAg6BWZhbHNlEhkKCmRlcHJlY2F0ZWQYFyABKAg6", "aWNfc2VydmljZXMYEiABKAg6BWZhbHNlEhkKCmRlcHJlY2F0ZWQYFyABKAg6",
"BWZhbHNlEh8KEGNjX2VuYWJsZV9hcmVuYXMYHyABKAg6BWZhbHNlEhkKEW9i", "BWZhbHNlEh8KEGNjX2VuYWJsZV9hcmVuYXMYHyABKAg6BWZhbHNlEhkKEW9i",
"amNfY2xhc3NfcHJlZml4GCQgASgJEhgKEGNzaGFycF9uYW1lc3BhY2UYJSAB", "amNfY2xhc3NfcHJlZml4GCQgASgJEhgKEGNz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ternalBuildGeneratedFileFrom(descriptorData, descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
new pbr::FileDescriptor[] { }, new pbr::FileDescriptor[] { },
new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] { new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] {
...@@ -145,7 +146,7 @@ namespace Google.Protobuf.Reflection { ...@@ -145,7 +146,7 @@ namespace Google.Protobuf.Reflection {
new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueDescriptorProto), new[]{ "Name", "Number", "Options" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueDescriptorProto), new[]{ "Name", "Number", "Options" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.ServiceDescriptorProto), new[]{ "Name", "Method", "Options" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.ServiceDescriptorProto), new[]{ "Name", "Method", "Options" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.MethodDescriptorProto), new[]{ "Name", "InputType", "OutputType", "Options", "ClientStreaming", "ServerStreaming" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.MethodDescriptorProto), new[]{ "Name", "InputType", "OutputType", "Options", "ClientStreaming", "ServerStreaming" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.FileOptions), new[]{ "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "Deprecated", "CcEnableArenas", "ObjcClassPrefix", "CsharpNamespace", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) }, null), new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.FileOptions), new[]{ "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "Deprecated", "CcEnableArenas", "ObjcClassPrefix", "CsharpNamespace", "JavananoUseDeprecatedPackage", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) }, null),
new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.MessageOptions), new[]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "MapEntry", "UninterpretedOption" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.MessageOptions), new[]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "MapEntry", "UninterpretedOption" }, null, null, null),
new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.FieldOptions), new[]{ "Ctype", "Packed", "Jstype", "Lazy", "Deprecated", "Weak", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.CType), typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) }, null), new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.FieldOptions), new[]{ "Ctype", "Packed", "Jstype", "Lazy", "Deprecated", "Weak", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.CType), typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) }, null),
new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.EnumOptions), new[]{ "AllowAlias", "Deprecated", "UninterpretedOption" }, null, null, null), new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.EnumOptions), new[]{ "AllowAlias", "Deprecated", "UninterpretedOption" }, null, null, null),
...@@ -191,7 +192,7 @@ namespace Google.Protobuf.Reflection { ...@@ -191,7 +192,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FileDescriptorProto> _repeated_file_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FileDescriptorProto> _repeated_file_codec
= pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.FileDescriptorProto.Parser); = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.FileDescriptorProto.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> file_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> file_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> File { public pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> File {
get { return file_; } get { return file_; }
} }
...@@ -294,7 +295,7 @@ namespace Google.Protobuf.Reflection { ...@@ -294,7 +295,7 @@ namespace Google.Protobuf.Reflection {
public const int NameFieldNumber = 1; public const int NameFieldNumber = 1;
private string name_ = ""; private string name_ = "";
internal string Name { public string Name {
get { return name_; } get { return name_; }
set { set {
name_ = pb::Preconditions.CheckNotNull(value, "value"); name_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -303,7 +304,7 @@ namespace Google.Protobuf.Reflection { ...@@ -303,7 +304,7 @@ namespace Google.Protobuf.Reflection {
public const int PackageFieldNumber = 2; public const int PackageFieldNumber = 2;
private string package_ = ""; private string package_ = "";
internal string Package { public string Package {
get { return package_; } get { return package_; }
set { set {
package_ = pb::Preconditions.CheckNotNull(value, "value"); package_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -314,7 +315,7 @@ namespace Google.Protobuf.Reflection { ...@@ -314,7 +315,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<string> _repeated_dependency_codec private static readonly pb::FieldCodec<string> _repeated_dependency_codec
= pb::FieldCodec.ForString(26); = pb::FieldCodec.ForString(26);
private readonly pbc::RepeatedField<string> dependency_ = new pbc::RepeatedField<string>(); private readonly pbc::RepeatedField<string> dependency_ = new pbc::RepeatedField<string>();
internal pbc::RepeatedField<string> Dependency { public pbc::RepeatedField<string> Dependency {
get { return dependency_; } get { return dependency_; }
} }
...@@ -322,7 +323,7 @@ namespace Google.Protobuf.Reflection { ...@@ -322,7 +323,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<int> _repeated_publicDependency_codec private static readonly pb::FieldCodec<int> _repeated_publicDependency_codec
= pb::FieldCodec.ForInt32(80); = pb::FieldCodec.ForInt32(80);
private readonly pbc::RepeatedField<int> publicDependency_ = new pbc::RepeatedField<int>(); private readonly pbc::RepeatedField<int> publicDependency_ = new pbc::RepeatedField<int>();
internal pbc::RepeatedField<int> PublicDependency { public pbc::RepeatedField<int> PublicDependency {
get { return publicDependency_; } get { return publicDependency_; }
} }
...@@ -330,7 +331,7 @@ namespace Google.Protobuf.Reflection { ...@@ -330,7 +331,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<int> _repeated_weakDependency_codec private static readonly pb::FieldCodec<int> _repeated_weakDependency_codec
= pb::FieldCodec.ForInt32(88); = pb::FieldCodec.ForInt32(88);
private readonly pbc::RepeatedField<int> weakDependency_ = new pbc::RepeatedField<int>(); private readonly pbc::RepeatedField<int> weakDependency_ = new pbc::RepeatedField<int>();
internal pbc::RepeatedField<int> WeakDependency { public pbc::RepeatedField<int> WeakDependency {
get { return weakDependency_; } get { return weakDependency_; }
} }
...@@ -338,7 +339,7 @@ namespace Google.Protobuf.Reflection { ...@@ -338,7 +339,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_messageType_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_messageType_codec
= pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.DescriptorProto.Parser); = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> messageType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> messageType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> MessageType { public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> MessageType {
get { return messageType_; } get { return messageType_; }
} }
...@@ -346,7 +347,7 @@ namespace Google.Protobuf.Reflection { ...@@ -346,7 +347,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
= pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser); = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType { public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
get { return enumType_; } get { return enumType_; }
} }
...@@ -354,7 +355,7 @@ namespace Google.Protobuf.Reflection { ...@@ -354,7 +355,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.ServiceDescriptorProto> _repeated_service_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.ServiceDescriptorProto> _repeated_service_codec
= pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser); = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> service_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> service_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> Service { public pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> Service {
get { return service_; } get { return service_; }
} }
...@@ -362,13 +363,13 @@ namespace Google.Protobuf.Reflection { ...@@ -362,13 +363,13 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
= pb::FieldCodec.ForMessage(58, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser); = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension { public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
get { return extension_; } get { return extension_; }
} }
public const int OptionsFieldNumber = 8; public const int OptionsFieldNumber = 8;
private global::Google.Protobuf.Reflection.FileOptions options_; private global::Google.Protobuf.Reflection.FileOptions options_;
internal global::Google.Protobuf.Reflection.FileOptions Options { public global::Google.Protobuf.Reflection.FileOptions Options {
get { return options_; } get { return options_; }
set { set {
options_ = value; options_ = value;
...@@ -377,7 +378,7 @@ namespace Google.Protobuf.Reflection { ...@@ -377,7 +378,7 @@ namespace Google.Protobuf.Reflection {
public const int SourceCodeInfoFieldNumber = 9; public const int SourceCodeInfoFieldNumber = 9;
private global::Google.Protobuf.Reflection.SourceCodeInfo sourceCodeInfo_; private global::Google.Protobuf.Reflection.SourceCodeInfo sourceCodeInfo_;
internal global::Google.Protobuf.Reflection.SourceCodeInfo SourceCodeInfo { public global::Google.Protobuf.Reflection.SourceCodeInfo SourceCodeInfo {
get { return sourceCodeInfo_; } get { return sourceCodeInfo_; }
set { set {
sourceCodeInfo_ = value; sourceCodeInfo_ = value;
...@@ -386,7 +387,7 @@ namespace Google.Protobuf.Reflection { ...@@ -386,7 +387,7 @@ namespace Google.Protobuf.Reflection {
public const int SyntaxFieldNumber = 12; public const int SyntaxFieldNumber = 12;
private string syntax_ = ""; private string syntax_ = "";
internal string Syntax { public string Syntax {
get { return syntax_; } get { return syntax_; }
set { set {
syntax_ = pb::Preconditions.CheckNotNull(value, "value"); syntax_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -638,7 +639,7 @@ namespace Google.Protobuf.Reflection { ...@@ -638,7 +639,7 @@ namespace Google.Protobuf.Reflection {
public const int NameFieldNumber = 1; public const int NameFieldNumber = 1;
private string name_ = ""; private string name_ = "";
internal string Name { public string Name {
get { return name_; } get { return name_; }
set { set {
name_ = pb::Preconditions.CheckNotNull(value, "value"); name_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -649,7 +650,7 @@ namespace Google.Protobuf.Reflection { ...@@ -649,7 +650,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_field_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_field_codec
= pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser); = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Field { public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Field {
get { return field_; } get { return field_; }
} }
...@@ -657,7 +658,7 @@ namespace Google.Protobuf.Reflection { ...@@ -657,7 +658,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
= pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser); = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension { public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
get { return extension_; } get { return extension_; }
} }
...@@ -665,7 +666,7 @@ namespace Google.Protobuf.Reflection { ...@@ -665,7 +666,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_nestedType_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_nestedType_codec
= pb::FieldCodec.ForMessage(26, global::Google.Protobuf.Reflection.DescriptorProto.Parser); = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> nestedType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> nestedType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> NestedType { public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> NestedType {
get { return nestedType_; } get { return nestedType_; }
} }
...@@ -673,7 +674,7 @@ namespace Google.Protobuf.Reflection { ...@@ -673,7 +674,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
= pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser); = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType { public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
get { return enumType_; } get { return enumType_; }
} }
...@@ -681,7 +682,7 @@ namespace Google.Protobuf.Reflection { ...@@ -681,7 +682,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> _repeated_extensionRange_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> _repeated_extensionRange_codec
= pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser); = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> extensionRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> extensionRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> ExtensionRange { public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> ExtensionRange {
get { return extensionRange_; } get { return extensionRange_; }
} }
...@@ -689,13 +690,13 @@ namespace Google.Protobuf.Reflection { ...@@ -689,13 +690,13 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.OneofDescriptorProto> _repeated_oneofDecl_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.OneofDescriptorProto> _repeated_oneofDecl_codec
= pb::FieldCodec.ForMessage(66, global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser); = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> oneofDecl_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> oneofDecl_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> OneofDecl { public pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> OneofDecl {
get { return oneofDecl_; } get { return oneofDecl_; }
} }
public const int OptionsFieldNumber = 7; public const int OptionsFieldNumber = 7;
private global::Google.Protobuf.Reflection.MessageOptions options_; private global::Google.Protobuf.Reflection.MessageOptions options_;
internal global::Google.Protobuf.Reflection.MessageOptions Options { public global::Google.Protobuf.Reflection.MessageOptions Options {
get { return options_; } get { return options_; }
set { set {
options_ = value; options_ = value;
...@@ -706,7 +707,7 @@ namespace Google.Protobuf.Reflection { ...@@ -706,7 +707,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> _repeated_reservedRange_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> _repeated_reservedRange_codec
= pb::FieldCodec.ForMessage(74, global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange.Parser); = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> reservedRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> reservedRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> ReservedRange { public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> ReservedRange {
get { return reservedRange_; } get { return reservedRange_; }
} }
...@@ -714,7 +715,7 @@ namespace Google.Protobuf.Reflection { ...@@ -714,7 +715,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<string> _repeated_reservedName_codec private static readonly pb::FieldCodec<string> _repeated_reservedName_codec
= pb::FieldCodec.ForString(82); = pb::FieldCodec.ForString(82);
private readonly pbc::RepeatedField<string> reservedName_ = new pbc::RepeatedField<string>(); private readonly pbc::RepeatedField<string> reservedName_ = new pbc::RepeatedField<string>();
internal pbc::RepeatedField<string> ReservedName { public pbc::RepeatedField<string> ReservedName {
get { return reservedName_; } get { return reservedName_; }
} }
...@@ -909,7 +910,7 @@ namespace Google.Protobuf.Reflection { ...@@ -909,7 +910,7 @@ namespace Google.Protobuf.Reflection {
public const int StartFieldNumber = 1; public const int StartFieldNumber = 1;
private int start_; private int start_;
internal int Start { public int Start {
get { return start_; } get { return start_; }
set { set {
start_ = value; start_ = value;
...@@ -918,7 +919,7 @@ namespace Google.Protobuf.Reflection { ...@@ -918,7 +919,7 @@ namespace Google.Protobuf.Reflection {
public const int EndFieldNumber = 2; public const int EndFieldNumber = 2;
private int end_; private int end_;
internal int End { public int End {
get { return end_; } get { return end_; }
set { set {
end_ = value; end_ = value;
...@@ -1037,7 +1038,7 @@ namespace Google.Protobuf.Reflection { ...@@ -1037,7 +1038,7 @@ namespace Google.Protobuf.Reflection {
public const int StartFieldNumber = 1; public const int StartFieldNumber = 1;
private int start_; private int start_;
internal int Start { public int Start {
get { return start_; } get { return start_; }
set { set {
start_ = value; start_ = value;
...@@ -1046,7 +1047,7 @@ namespace Google.Protobuf.Reflection { ...@@ -1046,7 +1047,7 @@ namespace Google.Protobuf.Reflection {
public const int EndFieldNumber = 2; public const int EndFieldNumber = 2;
private int end_; private int end_;
internal int End { public int End {
get { return end_; } get { return end_; }
set { set {
end_ = value; end_ = value;
...@@ -1177,7 +1178,7 @@ namespace Google.Protobuf.Reflection { ...@@ -1177,7 +1178,7 @@ namespace Google.Protobuf.Reflection {
public const int NameFieldNumber = 1; public const int NameFieldNumber = 1;
private string name_ = ""; private string name_ = "";
internal string Name { public string Name {
get { return name_; } get { return name_; }
set { set {
name_ = pb::Preconditions.CheckNotNull(value, "value"); name_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -1186,7 +1187,7 @@ namespace Google.Protobuf.Reflection { ...@@ -1186,7 +1187,7 @@ namespace Google.Protobuf.Reflection {
public const int NumberFieldNumber = 3; public const int NumberFieldNumber = 3;
private int number_; private int number_;
internal int Number { public int Number {
get { return number_; } get { return number_; }
set { set {
number_ = value; number_ = value;
...@@ -1195,7 +1196,7 @@ namespace Google.Protobuf.Reflection { ...@@ -1195,7 +1196,7 @@ namespace Google.Protobuf.Reflection {
public const int LabelFieldNumber = 4; public const int LabelFieldNumber = 4;
private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label label_ = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL; private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label label_ = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL;
internal global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label Label { public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label Label {
get { return label_; } get { return label_; }
set { set {
label_ = value; label_ = value;
...@@ -1204,7 +1205,7 @@ namespace Google.Protobuf.Reflection { ...@@ -1204,7 +1205,7 @@ namespace Google.Protobuf.Reflection {
public const int TypeFieldNumber = 5; public const int TypeFieldNumber = 5;
private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type type_ = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.TYPE_DOUBLE; private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type type_ = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.TYPE_DOUBLE;
internal global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type Type { public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type Type {
get { return type_; } get { return type_; }
set { set {
type_ = value; type_ = value;
...@@ -1213,7 +1214,7 @@ namespace Google.Protobuf.Reflection { ...@@ -1213,7 +1214,7 @@ namespace Google.Protobuf.Reflection {
public const int TypeNameFieldNumber = 6; public const int TypeNameFieldNumber = 6;
private string typeName_ = ""; private string typeName_ = "";
internal string TypeName { public string TypeName {
get { return typeName_; } get { return typeName_; }
set { set {
typeName_ = pb::Preconditions.CheckNotNull(value, "value"); typeName_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -1222,7 +1223,7 @@ namespace Google.Protobuf.Reflection { ...@@ -1222,7 +1223,7 @@ namespace Google.Protobuf.Reflection {
public const int ExtendeeFieldNumber = 2; public const int ExtendeeFieldNumber = 2;
private string extendee_ = ""; private string extendee_ = "";
internal string Extendee { public string Extendee {
get { return extendee_; } get { return extendee_; }
set { set {
extendee_ = pb::Preconditions.CheckNotNull(value, "value"); extendee_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -1231,7 +1232,7 @@ namespace Google.Protobuf.Reflection { ...@@ -1231,7 +1232,7 @@ namespace Google.Protobuf.Reflection {
public const int DefaultValueFieldNumber = 7; public const int DefaultValueFieldNumber = 7;
private string defaultValue_ = ""; private string defaultValue_ = "";
internal string DefaultValue { public string DefaultValue {
get { return defaultValue_; } get { return defaultValue_; }
set { set {
defaultValue_ = pb::Preconditions.CheckNotNull(value, "value"); defaultValue_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -1240,7 +1241,7 @@ namespace Google.Protobuf.Reflection { ...@@ -1240,7 +1241,7 @@ namespace Google.Protobuf.Reflection {
public const int OneofIndexFieldNumber = 9; public const int OneofIndexFieldNumber = 9;
private int oneofIndex_; private int oneofIndex_;
internal int OneofIndex { public int OneofIndex {
get { return oneofIndex_; } get { return oneofIndex_; }
set { set {
oneofIndex_ = value; oneofIndex_ = value;
...@@ -1249,7 +1250,7 @@ namespace Google.Protobuf.Reflection { ...@@ -1249,7 +1250,7 @@ namespace Google.Protobuf.Reflection {
public const int OptionsFieldNumber = 8; public const int OptionsFieldNumber = 8;
private global::Google.Protobuf.Reflection.FieldOptions options_; private global::Google.Protobuf.Reflection.FieldOptions options_;
internal global::Google.Protobuf.Reflection.FieldOptions Options { public global::Google.Protobuf.Reflection.FieldOptions Options {
get { return options_; } get { return options_; }
set { set {
options_ = value; options_ = value;
...@@ -1518,7 +1519,7 @@ namespace Google.Protobuf.Reflection { ...@@ -1518,7 +1519,7 @@ namespace Google.Protobuf.Reflection {
public const int NameFieldNumber = 1; public const int NameFieldNumber = 1;
private string name_ = ""; private string name_ = "";
internal string Name { public string Name {
get { return name_; } get { return name_; }
set { set {
name_ = pb::Preconditions.CheckNotNull(value, "value"); name_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -1622,7 +1623,7 @@ namespace Google.Protobuf.Reflection { ...@@ -1622,7 +1623,7 @@ namespace Google.Protobuf.Reflection {
public const int NameFieldNumber = 1; public const int NameFieldNumber = 1;
private string name_ = ""; private string name_ = "";
internal string Name { public string Name {
get { return name_; } get { return name_; }
set { set {
name_ = pb::Preconditions.CheckNotNull(value, "value"); name_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -1633,13 +1634,13 @@ namespace Google.Protobuf.Reflection { ...@@ -1633,13 +1634,13 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> _repeated_value_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> _repeated_value_codec
= pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser); = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> value_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> value_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> Value { public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> Value {
get { return value_; } get { return value_; }
} }
public const int OptionsFieldNumber = 3; public const int OptionsFieldNumber = 3;
private global::Google.Protobuf.Reflection.EnumOptions options_; private global::Google.Protobuf.Reflection.EnumOptions options_;
internal global::Google.Protobuf.Reflection.EnumOptions Options { public global::Google.Protobuf.Reflection.EnumOptions Options {
get { return options_; } get { return options_; }
set { set {
options_ = value; options_ = value;
...@@ -1774,7 +1775,7 @@ namespace Google.Protobuf.Reflection { ...@@ -1774,7 +1775,7 @@ namespace Google.Protobuf.Reflection {
public const int NameFieldNumber = 1; public const int NameFieldNumber = 1;
private string name_ = ""; private string name_ = "";
internal string Name { public string Name {
get { return name_; } get { return name_; }
set { set {
name_ = pb::Preconditions.CheckNotNull(value, "value"); name_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -1783,7 +1784,7 @@ namespace Google.Protobuf.Reflection { ...@@ -1783,7 +1784,7 @@ namespace Google.Protobuf.Reflection {
public const int NumberFieldNumber = 2; public const int NumberFieldNumber = 2;
private int number_; private int number_;
internal int Number { public int Number {
get { return number_; } get { return number_; }
set { set {
number_ = value; number_ = value;
...@@ -1792,7 +1793,7 @@ namespace Google.Protobuf.Reflection { ...@@ -1792,7 +1793,7 @@ namespace Google.Protobuf.Reflection {
public const int OptionsFieldNumber = 3; public const int OptionsFieldNumber = 3;
private global::Google.Protobuf.Reflection.EnumValueOptions options_; private global::Google.Protobuf.Reflection.EnumValueOptions options_;
internal global::Google.Protobuf.Reflection.EnumValueOptions Options { public global::Google.Protobuf.Reflection.EnumValueOptions Options {
get { return options_; } get { return options_; }
set { set {
options_ = value; options_ = value;
...@@ -1934,7 +1935,7 @@ namespace Google.Protobuf.Reflection { ...@@ -1934,7 +1935,7 @@ namespace Google.Protobuf.Reflection {
public const int NameFieldNumber = 1; public const int NameFieldNumber = 1;
private string name_ = ""; private string name_ = "";
internal string Name { public string Name {
get { return name_; } get { return name_; }
set { set {
name_ = pb::Preconditions.CheckNotNull(value, "value"); name_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -1945,13 +1946,13 @@ namespace Google.Protobuf.Reflection { ...@@ -1945,13 +1946,13 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.MethodDescriptorProto> _repeated_method_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.MethodDescriptorProto> _repeated_method_codec
= pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.MethodDescriptorProto.Parser); = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.MethodDescriptorProto.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> method_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> method_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> Method { public pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> Method {
get { return method_; } get { return method_; }
} }
public const int OptionsFieldNumber = 3; public const int OptionsFieldNumber = 3;
private global::Google.Protobuf.Reflection.ServiceOptions options_; private global::Google.Protobuf.Reflection.ServiceOptions options_;
internal global::Google.Protobuf.Reflection.ServiceOptions Options { public global::Google.Protobuf.Reflection.ServiceOptions Options {
get { return options_; } get { return options_; }
set { set {
options_ = value; options_ = value;
...@@ -2089,7 +2090,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2089,7 +2090,7 @@ namespace Google.Protobuf.Reflection {
public const int NameFieldNumber = 1; public const int NameFieldNumber = 1;
private string name_ = ""; private string name_ = "";
internal string Name { public string Name {
get { return name_; } get { return name_; }
set { set {
name_ = pb::Preconditions.CheckNotNull(value, "value"); name_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -2098,7 +2099,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2098,7 +2099,7 @@ namespace Google.Protobuf.Reflection {
public const int InputTypeFieldNumber = 2; public const int InputTypeFieldNumber = 2;
private string inputType_ = ""; private string inputType_ = "";
internal string InputType { public string InputType {
get { return inputType_; } get { return inputType_; }
set { set {
inputType_ = pb::Preconditions.CheckNotNull(value, "value"); inputType_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -2107,7 +2108,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2107,7 +2108,7 @@ namespace Google.Protobuf.Reflection {
public const int OutputTypeFieldNumber = 3; public const int OutputTypeFieldNumber = 3;
private string outputType_ = ""; private string outputType_ = "";
internal string OutputType { public string OutputType {
get { return outputType_; } get { return outputType_; }
set { set {
outputType_ = pb::Preconditions.CheckNotNull(value, "value"); outputType_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -2116,7 +2117,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2116,7 +2117,7 @@ namespace Google.Protobuf.Reflection {
public const int OptionsFieldNumber = 4; public const int OptionsFieldNumber = 4;
private global::Google.Protobuf.Reflection.MethodOptions options_; private global::Google.Protobuf.Reflection.MethodOptions options_;
internal global::Google.Protobuf.Reflection.MethodOptions Options { public global::Google.Protobuf.Reflection.MethodOptions Options {
get { return options_; } get { return options_; }
set { set {
options_ = value; options_ = value;
...@@ -2125,7 +2126,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2125,7 +2126,7 @@ namespace Google.Protobuf.Reflection {
public const int ClientStreamingFieldNumber = 5; public const int ClientStreamingFieldNumber = 5;
private bool clientStreaming_; private bool clientStreaming_;
internal bool ClientStreaming { public bool ClientStreaming {
get { return clientStreaming_; } get { return clientStreaming_; }
set { set {
clientStreaming_ = value; clientStreaming_ = value;
...@@ -2134,7 +2135,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2134,7 +2135,7 @@ namespace Google.Protobuf.Reflection {
public const int ServerStreamingFieldNumber = 6; public const int ServerStreamingFieldNumber = 6;
private bool serverStreaming_; private bool serverStreaming_;
internal bool ServerStreaming { public bool ServerStreaming {
get { return serverStreaming_; } get { return serverStreaming_; }
set { set {
serverStreaming_ = value; serverStreaming_ = value;
...@@ -2327,6 +2328,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2327,6 +2328,7 @@ namespace Google.Protobuf.Reflection {
ccEnableArenas_ = other.ccEnableArenas_; ccEnableArenas_ = other.ccEnableArenas_;
objcClassPrefix_ = other.objcClassPrefix_; objcClassPrefix_ = other.objcClassPrefix_;
csharpNamespace_ = other.csharpNamespace_; csharpNamespace_ = other.csharpNamespace_;
javananoUseDeprecatedPackage_ = other.javananoUseDeprecatedPackage_;
uninterpretedOption_ = other.uninterpretedOption_.Clone(); uninterpretedOption_ = other.uninterpretedOption_.Clone();
} }
...@@ -2336,7 +2338,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2336,7 +2338,7 @@ namespace Google.Protobuf.Reflection {
public const int JavaPackageFieldNumber = 1; public const int JavaPackageFieldNumber = 1;
private string javaPackage_ = ""; private string javaPackage_ = "";
internal string JavaPackage { public string JavaPackage {
get { return javaPackage_; } get { return javaPackage_; }
set { set {
javaPackage_ = pb::Preconditions.CheckNotNull(value, "value"); javaPackage_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -2345,7 +2347,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2345,7 +2347,7 @@ namespace Google.Protobuf.Reflection {
public const int JavaOuterClassnameFieldNumber = 8; public const int JavaOuterClassnameFieldNumber = 8;
private string javaOuterClassname_ = ""; private string javaOuterClassname_ = "";
internal string JavaOuterClassname { public string JavaOuterClassname {
get { return javaOuterClassname_; } get { return javaOuterClassname_; }
set { set {
javaOuterClassname_ = pb::Preconditions.CheckNotNull(value, "value"); javaOuterClassname_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -2354,7 +2356,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2354,7 +2356,7 @@ namespace Google.Protobuf.Reflection {
public const int JavaMultipleFilesFieldNumber = 10; public const int JavaMultipleFilesFieldNumber = 10;
private bool javaMultipleFiles_; private bool javaMultipleFiles_;
internal bool JavaMultipleFiles { public bool JavaMultipleFiles {
get { return javaMultipleFiles_; } get { return javaMultipleFiles_; }
set { set {
javaMultipleFiles_ = value; javaMultipleFiles_ = value;
...@@ -2363,7 +2365,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2363,7 +2365,7 @@ namespace Google.Protobuf.Reflection {
public const int JavaGenerateEqualsAndHashFieldNumber = 20; public const int JavaGenerateEqualsAndHashFieldNumber = 20;
private bool javaGenerateEqualsAndHash_; private bool javaGenerateEqualsAndHash_;
internal bool JavaGenerateEqualsAndHash { public bool JavaGenerateEqualsAndHash {
get { return javaGenerateEqualsAndHash_; } get { return javaGenerateEqualsAndHash_; }
set { set {
javaGenerateEqualsAndHash_ = value; javaGenerateEqualsAndHash_ = value;
...@@ -2372,7 +2374,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2372,7 +2374,7 @@ namespace Google.Protobuf.Reflection {
public const int JavaStringCheckUtf8FieldNumber = 27; public const int JavaStringCheckUtf8FieldNumber = 27;
private bool javaStringCheckUtf8_; private bool javaStringCheckUtf8_;
internal bool JavaStringCheckUtf8 { public bool JavaStringCheckUtf8 {
get { return javaStringCheckUtf8_; } get { return javaStringCheckUtf8_; }
set { set {
javaStringCheckUtf8_ = value; javaStringCheckUtf8_ = value;
...@@ -2381,7 +2383,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2381,7 +2383,7 @@ namespace Google.Protobuf.Reflection {
public const int OptimizeForFieldNumber = 9; public const int OptimizeForFieldNumber = 9;
private global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode optimizeFor_ = global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.SPEED; private global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode optimizeFor_ = global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.SPEED;
internal global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode OptimizeFor { public global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode OptimizeFor {
get { return optimizeFor_; } get { return optimizeFor_; }
set { set {
optimizeFor_ = value; optimizeFor_ = value;
...@@ -2390,7 +2392,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2390,7 +2392,7 @@ namespace Google.Protobuf.Reflection {
public const int GoPackageFieldNumber = 11; public const int GoPackageFieldNumber = 11;
private string goPackage_ = ""; private string goPackage_ = "";
internal string GoPackage { public string GoPackage {
get { return goPackage_; } get { return goPackage_; }
set { set {
goPackage_ = pb::Preconditions.CheckNotNull(value, "value"); goPackage_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -2399,7 +2401,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2399,7 +2401,7 @@ namespace Google.Protobuf.Reflection {
public const int CcGenericServicesFieldNumber = 16; public const int CcGenericServicesFieldNumber = 16;
private bool ccGenericServices_; private bool ccGenericServices_;
internal bool CcGenericServices { public bool CcGenericServices {
get { return ccGenericServices_; } get { return ccGenericServices_; }
set { set {
ccGenericServices_ = value; ccGenericServices_ = value;
...@@ -2408,7 +2410,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2408,7 +2410,7 @@ namespace Google.Protobuf.Reflection {
public const int JavaGenericServicesFieldNumber = 17; public const int JavaGenericServicesFieldNumber = 17;
private bool javaGenericServices_; private bool javaGenericServices_;
internal bool JavaGenericServices { public bool JavaGenericServices {
get { return javaGenericServices_; } get { return javaGenericServices_; }
set { set {
javaGenericServices_ = value; javaGenericServices_ = value;
...@@ -2417,7 +2419,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2417,7 +2419,7 @@ namespace Google.Protobuf.Reflection {
public const int PyGenericServicesFieldNumber = 18; public const int PyGenericServicesFieldNumber = 18;
private bool pyGenericServices_; private bool pyGenericServices_;
internal bool PyGenericServices { public bool PyGenericServices {
get { return pyGenericServices_; } get { return pyGenericServices_; }
set { set {
pyGenericServices_ = value; pyGenericServices_ = value;
...@@ -2426,7 +2428,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2426,7 +2428,7 @@ namespace Google.Protobuf.Reflection {
public const int DeprecatedFieldNumber = 23; public const int DeprecatedFieldNumber = 23;
private bool deprecated_; private bool deprecated_;
internal bool Deprecated { public bool Deprecated {
get { return deprecated_; } get { return deprecated_; }
set { set {
deprecated_ = value; deprecated_ = value;
...@@ -2435,7 +2437,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2435,7 +2437,7 @@ namespace Google.Protobuf.Reflection {
public const int CcEnableArenasFieldNumber = 31; public const int CcEnableArenasFieldNumber = 31;
private bool ccEnableArenas_; private bool ccEnableArenas_;
internal bool CcEnableArenas { public bool CcEnableArenas {
get { return ccEnableArenas_; } get { return ccEnableArenas_; }
set { set {
ccEnableArenas_ = value; ccEnableArenas_ = value;
...@@ -2444,7 +2446,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2444,7 +2446,7 @@ namespace Google.Protobuf.Reflection {
public const int ObjcClassPrefixFieldNumber = 36; public const int ObjcClassPrefixFieldNumber = 36;
private string objcClassPrefix_ = ""; private string objcClassPrefix_ = "";
internal string ObjcClassPrefix { public string ObjcClassPrefix {
get { return objcClassPrefix_; } get { return objcClassPrefix_; }
set { set {
objcClassPrefix_ = pb::Preconditions.CheckNotNull(value, "value"); objcClassPrefix_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -2453,18 +2455,27 @@ namespace Google.Protobuf.Reflection { ...@@ -2453,18 +2455,27 @@ namespace Google.Protobuf.Reflection {
public const int CsharpNamespaceFieldNumber = 37; public const int CsharpNamespaceFieldNumber = 37;
private string csharpNamespace_ = ""; private string csharpNamespace_ = "";
internal string CsharpNamespace { public string CsharpNamespace {
get { return csharpNamespace_; } get { return csharpNamespace_; }
set { set {
csharpNamespace_ = pb::Preconditions.CheckNotNull(value, "value"); csharpNamespace_ = pb::Preconditions.CheckNotNull(value, "value");
} }
} }
public const int JavananoUseDeprecatedPackageFieldNumber = 38;
private bool javananoUseDeprecatedPackage_;
public bool JavananoUseDeprecatedPackage {
get { return javananoUseDeprecatedPackage_; }
set {
javananoUseDeprecatedPackage_ = value;
}
}
public const int UninterpretedOptionFieldNumber = 999; public const int UninterpretedOptionFieldNumber = 999;
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
= pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser); = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption { public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
get { return uninterpretedOption_; } get { return uninterpretedOption_; }
} }
...@@ -2493,6 +2504,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2493,6 +2504,7 @@ namespace Google.Protobuf.Reflection {
if (CcEnableArenas != other.CcEnableArenas) return false; if (CcEnableArenas != other.CcEnableArenas) return false;
if (ObjcClassPrefix != other.ObjcClassPrefix) return false; if (ObjcClassPrefix != other.ObjcClassPrefix) return false;
if (CsharpNamespace != other.CsharpNamespace) return false; if (CsharpNamespace != other.CsharpNamespace) return false;
if (JavananoUseDeprecatedPackage != other.JavananoUseDeprecatedPackage) return false;
if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
return true; return true;
} }
...@@ -2513,6 +2525,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2513,6 +2525,7 @@ namespace Google.Protobuf.Reflection {
if (CcEnableArenas != false) hash ^= CcEnableArenas.GetHashCode(); if (CcEnableArenas != false) hash ^= CcEnableArenas.GetHashCode();
if (ObjcClassPrefix.Length != 0) hash ^= ObjcClassPrefix.GetHashCode(); if (ObjcClassPrefix.Length != 0) hash ^= ObjcClassPrefix.GetHashCode();
if (CsharpNamespace.Length != 0) hash ^= CsharpNamespace.GetHashCode(); if (CsharpNamespace.Length != 0) hash ^= CsharpNamespace.GetHashCode();
if (JavananoUseDeprecatedPackage != false) hash ^= JavananoUseDeprecatedPackage.GetHashCode();
hash ^= uninterpretedOption_.GetHashCode(); hash ^= uninterpretedOption_.GetHashCode();
return hash; return hash;
} }
...@@ -2578,6 +2591,10 @@ namespace Google.Protobuf.Reflection { ...@@ -2578,6 +2591,10 @@ namespace Google.Protobuf.Reflection {
output.WriteRawTag(170, 2); output.WriteRawTag(170, 2);
output.WriteString(CsharpNamespace); output.WriteString(CsharpNamespace);
} }
if (JavananoUseDeprecatedPackage != false) {
output.WriteRawTag(176, 2);
output.WriteBool(JavananoUseDeprecatedPackage);
}
uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
} }
...@@ -2625,6 +2642,9 @@ namespace Google.Protobuf.Reflection { ...@@ -2625,6 +2642,9 @@ namespace Google.Protobuf.Reflection {
if (CsharpNamespace.Length != 0) { if (CsharpNamespace.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(CsharpNamespace); size += 2 + pb::CodedOutputStream.ComputeStringSize(CsharpNamespace);
} }
if (JavananoUseDeprecatedPackage != false) {
size += 2 + 1;
}
size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec); size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
return size; return size;
} }
...@@ -2675,6 +2695,9 @@ namespace Google.Protobuf.Reflection { ...@@ -2675,6 +2695,9 @@ namespace Google.Protobuf.Reflection {
if (other.CsharpNamespace.Length != 0) { if (other.CsharpNamespace.Length != 0) {
CsharpNamespace = other.CsharpNamespace; CsharpNamespace = other.CsharpNamespace;
} }
if (other.JavananoUseDeprecatedPackage != false) {
JavananoUseDeprecatedPackage = other.JavananoUseDeprecatedPackage;
}
uninterpretedOption_.Add(other.uninterpretedOption_); uninterpretedOption_.Add(other.uninterpretedOption_);
} }
...@@ -2741,6 +2764,10 @@ namespace Google.Protobuf.Reflection { ...@@ -2741,6 +2764,10 @@ namespace Google.Protobuf.Reflection {
CsharpNamespace = input.ReadString(); CsharpNamespace = input.ReadString();
break; break;
} }
case 304: {
JavananoUseDeprecatedPackage = input.ReadBool();
break;
}
case 7994: { case 7994: {
uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec); uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
break; break;
...@@ -2796,7 +2823,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2796,7 +2823,7 @@ namespace Google.Protobuf.Reflection {
public const int MessageSetWireFormatFieldNumber = 1; public const int MessageSetWireFormatFieldNumber = 1;
private bool messageSetWireFormat_; private bool messageSetWireFormat_;
internal bool MessageSetWireFormat { public bool MessageSetWireFormat {
get { return messageSetWireFormat_; } get { return messageSetWireFormat_; }
set { set {
messageSetWireFormat_ = value; messageSetWireFormat_ = value;
...@@ -2805,7 +2832,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2805,7 +2832,7 @@ namespace Google.Protobuf.Reflection {
public const int NoStandardDescriptorAccessorFieldNumber = 2; public const int NoStandardDescriptorAccessorFieldNumber = 2;
private bool noStandardDescriptorAccessor_; private bool noStandardDescriptorAccessor_;
internal bool NoStandardDescriptorAccessor { public bool NoStandardDescriptorAccessor {
get { return noStandardDescriptorAccessor_; } get { return noStandardDescriptorAccessor_; }
set { set {
noStandardDescriptorAccessor_ = value; noStandardDescriptorAccessor_ = value;
...@@ -2814,7 +2841,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2814,7 +2841,7 @@ namespace Google.Protobuf.Reflection {
public const int DeprecatedFieldNumber = 3; public const int DeprecatedFieldNumber = 3;
private bool deprecated_; private bool deprecated_;
internal bool Deprecated { public bool Deprecated {
get { return deprecated_; } get { return deprecated_; }
set { set {
deprecated_ = value; deprecated_ = value;
...@@ -2823,7 +2850,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2823,7 +2850,7 @@ namespace Google.Protobuf.Reflection {
public const int MapEntryFieldNumber = 7; public const int MapEntryFieldNumber = 7;
private bool mapEntry_; private bool mapEntry_;
internal bool MapEntry { public bool MapEntry {
get { return mapEntry_; } get { return mapEntry_; }
set { set {
mapEntry_ = value; mapEntry_ = value;
...@@ -2834,7 +2861,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2834,7 +2861,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
= pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser); = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption { public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
get { return uninterpretedOption_; } get { return uninterpretedOption_; }
} }
...@@ -2996,7 +3023,7 @@ namespace Google.Protobuf.Reflection { ...@@ -2996,7 +3023,7 @@ namespace Google.Protobuf.Reflection {
public const int CtypeFieldNumber = 1; public const int CtypeFieldNumber = 1;
private global::Google.Protobuf.Reflection.FieldOptions.Types.CType ctype_ = global::Google.Protobuf.Reflection.FieldOptions.Types.CType.STRING; private global::Google.Protobuf.Reflection.FieldOptions.Types.CType ctype_ = global::Google.Protobuf.Reflection.FieldOptions.Types.CType.STRING;
internal global::Google.Protobuf.Reflection.FieldOptions.Types.CType Ctype { public global::Google.Protobuf.Reflection.FieldOptions.Types.CType Ctype {
get { return ctype_; } get { return ctype_; }
set { set {
ctype_ = value; ctype_ = value;
...@@ -3005,7 +3032,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3005,7 +3032,7 @@ namespace Google.Protobuf.Reflection {
public const int PackedFieldNumber = 2; public const int PackedFieldNumber = 2;
private bool packed_; private bool packed_;
internal bool Packed { public bool Packed {
get { return packed_; } get { return packed_; }
set { set {
packed_ = value; packed_ = value;
...@@ -3014,7 +3041,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3014,7 +3041,7 @@ namespace Google.Protobuf.Reflection {
public const int JstypeFieldNumber = 6; public const int JstypeFieldNumber = 6;
private global::Google.Protobuf.Reflection.FieldOptions.Types.JSType jstype_ = global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JS_NORMAL; private global::Google.Protobuf.Reflection.FieldOptions.Types.JSType jstype_ = global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JS_NORMAL;
internal global::Google.Protobuf.Reflection.FieldOptions.Types.JSType Jstype { public global::Google.Protobuf.Reflection.FieldOptions.Types.JSType Jstype {
get { return jstype_; } get { return jstype_; }
set { set {
jstype_ = value; jstype_ = value;
...@@ -3023,7 +3050,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3023,7 +3050,7 @@ namespace Google.Protobuf.Reflection {
public const int LazyFieldNumber = 5; public const int LazyFieldNumber = 5;
private bool lazy_; private bool lazy_;
internal bool Lazy { public bool Lazy {
get { return lazy_; } get { return lazy_; }
set { set {
lazy_ = value; lazy_ = value;
...@@ -3032,7 +3059,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3032,7 +3059,7 @@ namespace Google.Protobuf.Reflection {
public const int DeprecatedFieldNumber = 3; public const int DeprecatedFieldNumber = 3;
private bool deprecated_; private bool deprecated_;
internal bool Deprecated { public bool Deprecated {
get { return deprecated_; } get { return deprecated_; }
set { set {
deprecated_ = value; deprecated_ = value;
...@@ -3041,7 +3068,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3041,7 +3068,7 @@ namespace Google.Protobuf.Reflection {
public const int WeakFieldNumber = 10; public const int WeakFieldNumber = 10;
private bool weak_; private bool weak_;
internal bool Weak { public bool Weak {
get { return weak_; } get { return weak_; }
set { set {
weak_ = value; weak_ = value;
...@@ -3052,7 +3079,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3052,7 +3079,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
= pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser); = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption { public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
get { return uninterpretedOption_; } get { return uninterpretedOption_; }
} }
...@@ -3260,7 +3287,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3260,7 +3287,7 @@ namespace Google.Protobuf.Reflection {
public const int AllowAliasFieldNumber = 2; public const int AllowAliasFieldNumber = 2;
private bool allowAlias_; private bool allowAlias_;
internal bool AllowAlias { public bool AllowAlias {
get { return allowAlias_; } get { return allowAlias_; }
set { set {
allowAlias_ = value; allowAlias_ = value;
...@@ -3269,7 +3296,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3269,7 +3296,7 @@ namespace Google.Protobuf.Reflection {
public const int DeprecatedFieldNumber = 3; public const int DeprecatedFieldNumber = 3;
private bool deprecated_; private bool deprecated_;
internal bool Deprecated { public bool Deprecated {
get { return deprecated_; } get { return deprecated_; }
set { set {
deprecated_ = value; deprecated_ = value;
...@@ -3280,7 +3307,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3280,7 +3307,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
= pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser); = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption { public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
get { return uninterpretedOption_; } get { return uninterpretedOption_; }
} }
...@@ -3405,7 +3432,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3405,7 +3432,7 @@ namespace Google.Protobuf.Reflection {
public const int DeprecatedFieldNumber = 1; public const int DeprecatedFieldNumber = 1;
private bool deprecated_; private bool deprecated_;
internal bool Deprecated { public bool Deprecated {
get { return deprecated_; } get { return deprecated_; }
set { set {
deprecated_ = value; deprecated_ = value;
...@@ -3416,7 +3443,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3416,7 +3443,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
= pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser); = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption { public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
get { return uninterpretedOption_; } get { return uninterpretedOption_; }
} }
...@@ -3525,7 +3552,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3525,7 +3552,7 @@ namespace Google.Protobuf.Reflection {
public const int DeprecatedFieldNumber = 33; public const int DeprecatedFieldNumber = 33;
private bool deprecated_; private bool deprecated_;
internal bool Deprecated { public bool Deprecated {
get { return deprecated_; } get { return deprecated_; }
set { set {
deprecated_ = value; deprecated_ = value;
...@@ -3536,7 +3563,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3536,7 +3563,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
= pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser); = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption { public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
get { return uninterpretedOption_; } get { return uninterpretedOption_; }
} }
...@@ -3645,7 +3672,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3645,7 +3672,7 @@ namespace Google.Protobuf.Reflection {
public const int DeprecatedFieldNumber = 33; public const int DeprecatedFieldNumber = 33;
private bool deprecated_; private bool deprecated_;
internal bool Deprecated { public bool Deprecated {
get { return deprecated_; } get { return deprecated_; }
set { set {
deprecated_ = value; deprecated_ = value;
...@@ -3656,7 +3683,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3656,7 +3683,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
= pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser); = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption { public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
get { return uninterpretedOption_; } get { return uninterpretedOption_; }
} }
...@@ -3772,13 +3799,13 @@ namespace Google.Protobuf.Reflection { ...@@ -3772,13 +3799,13 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> _repeated_name_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> _repeated_name_codec
= pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart.Parser); = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> name_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> name_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> Name { public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> Name {
get { return name_; } get { return name_; }
} }
public const int IdentifierValueFieldNumber = 3; public const int IdentifierValueFieldNumber = 3;
private string identifierValue_ = ""; private string identifierValue_ = "";
internal string IdentifierValue { public string IdentifierValue {
get { return identifierValue_; } get { return identifierValue_; }
set { set {
identifierValue_ = pb::Preconditions.CheckNotNull(value, "value"); identifierValue_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -3787,7 +3814,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3787,7 +3814,7 @@ namespace Google.Protobuf.Reflection {
public const int PositiveIntValueFieldNumber = 4; public const int PositiveIntValueFieldNumber = 4;
private ulong positiveIntValue_; private ulong positiveIntValue_;
internal ulong PositiveIntValue { public ulong PositiveIntValue {
get { return positiveIntValue_; } get { return positiveIntValue_; }
set { set {
positiveIntValue_ = value; positiveIntValue_ = value;
...@@ -3796,7 +3823,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3796,7 +3823,7 @@ namespace Google.Protobuf.Reflection {
public const int NegativeIntValueFieldNumber = 5; public const int NegativeIntValueFieldNumber = 5;
private long negativeIntValue_; private long negativeIntValue_;
internal long NegativeIntValue { public long NegativeIntValue {
get { return negativeIntValue_; } get { return negativeIntValue_; }
set { set {
negativeIntValue_ = value; negativeIntValue_ = value;
...@@ -3805,7 +3832,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3805,7 +3832,7 @@ namespace Google.Protobuf.Reflection {
public const int DoubleValueFieldNumber = 6; public const int DoubleValueFieldNumber = 6;
private double doubleValue_; private double doubleValue_;
internal double DoubleValue { public double DoubleValue {
get { return doubleValue_; } get { return doubleValue_; }
set { set {
doubleValue_ = value; doubleValue_ = value;
...@@ -3814,7 +3841,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3814,7 +3841,7 @@ namespace Google.Protobuf.Reflection {
public const int StringValueFieldNumber = 7; public const int StringValueFieldNumber = 7;
private pb::ByteString stringValue_ = pb::ByteString.Empty; private pb::ByteString stringValue_ = pb::ByteString.Empty;
internal pb::ByteString StringValue { public pb::ByteString StringValue {
get { return stringValue_; } get { return stringValue_; }
set { set {
stringValue_ = pb::Preconditions.CheckNotNull(value, "value"); stringValue_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -3823,7 +3850,7 @@ namespace Google.Protobuf.Reflection { ...@@ -3823,7 +3850,7 @@ namespace Google.Protobuf.Reflection {
public const int AggregateValueFieldNumber = 8; public const int AggregateValueFieldNumber = 8;
private string aggregateValue_ = ""; private string aggregateValue_ = "";
internal string AggregateValue { public string AggregateValue {
get { return aggregateValue_; } get { return aggregateValue_; }
set { set {
aggregateValue_ = pb::Preconditions.CheckNotNull(value, "value"); aggregateValue_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -4016,7 +4043,7 @@ namespace Google.Protobuf.Reflection { ...@@ -4016,7 +4043,7 @@ namespace Google.Protobuf.Reflection {
public const int NamePart_FieldNumber = 1; public const int NamePart_FieldNumber = 1;
private string namePart_ = ""; private string namePart_ = "";
internal string NamePart_ { public string NamePart_ {
get { return namePart_; } get { return namePart_; }
set { set {
namePart_ = pb::Preconditions.CheckNotNull(value, "value"); namePart_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -4025,7 +4052,7 @@ namespace Google.Protobuf.Reflection { ...@@ -4025,7 +4052,7 @@ namespace Google.Protobuf.Reflection {
public const int IsExtensionFieldNumber = 2; public const int IsExtensionFieldNumber = 2;
private bool isExtension_; private bool isExtension_;
internal bool IsExtension { public bool IsExtension {
get { return isExtension_; } get { return isExtension_; }
set { set {
isExtension_ = value; isExtension_ = value;
...@@ -4150,7 +4177,7 @@ namespace Google.Protobuf.Reflection { ...@@ -4150,7 +4177,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> _repeated_location_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> _repeated_location_codec
= pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser); = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> location_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> location_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location>();
internal pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> Location { public pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> Location {
get { return location_; } get { return location_; }
} }
...@@ -4249,7 +4276,7 @@ namespace Google.Protobuf.Reflection { ...@@ -4249,7 +4276,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<int> _repeated_path_codec private static readonly pb::FieldCodec<int> _repeated_path_codec
= pb::FieldCodec.ForInt32(10); = pb::FieldCodec.ForInt32(10);
private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>(); private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>();
internal pbc::RepeatedField<int> Path { public pbc::RepeatedField<int> Path {
get { return path_; } get { return path_; }
} }
...@@ -4257,13 +4284,13 @@ namespace Google.Protobuf.Reflection { ...@@ -4257,13 +4284,13 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<int> _repeated_span_codec private static readonly pb::FieldCodec<int> _repeated_span_codec
= pb::FieldCodec.ForInt32(18); = pb::FieldCodec.ForInt32(18);
private readonly pbc::RepeatedField<int> span_ = new pbc::RepeatedField<int>(); private readonly pbc::RepeatedField<int> span_ = new pbc::RepeatedField<int>();
internal pbc::RepeatedField<int> Span { public pbc::RepeatedField<int> Span {
get { return span_; } get { return span_; }
} }
public const int LeadingCommentsFieldNumber = 3; public const int LeadingCommentsFieldNumber = 3;
private string leadingComments_ = ""; private string leadingComments_ = "";
internal string LeadingComments { public string LeadingComments {
get { return leadingComments_; } get { return leadingComments_; }
set { set {
leadingComments_ = pb::Preconditions.CheckNotNull(value, "value"); leadingComments_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -4272,7 +4299,7 @@ namespace Google.Protobuf.Reflection { ...@@ -4272,7 +4299,7 @@ namespace Google.Protobuf.Reflection {
public const int TrailingCommentsFieldNumber = 4; public const int TrailingCommentsFieldNumber = 4;
private string trailingComments_ = ""; private string trailingComments_ = "";
internal string TrailingComments { public string TrailingComments {
get { return trailingComments_; } get { return trailingComments_; }
set { set {
trailingComments_ = pb::Preconditions.CheckNotNull(value, "value"); trailingComments_ = pb::Preconditions.CheckNotNull(value, "value");
...@@ -4283,7 +4310,7 @@ namespace Google.Protobuf.Reflection { ...@@ -4283,7 +4310,7 @@ namespace Google.Protobuf.Reflection {
private static readonly pb::FieldCodec<string> _repeated_leadingDetachedComments_codec private static readonly pb::FieldCodec<string> _repeated_leadingDetachedComments_codec
= pb::FieldCodec.ForString(50); = pb::FieldCodec.ForString(50);
private readonly pbc::RepeatedField<string> leadingDetachedComments_ = new pbc::RepeatedField<string>(); private readonly pbc::RepeatedField<string> leadingDetachedComments_ = new pbc::RepeatedField<string>();
internal pbc::RepeatedField<string> LeadingDetachedComments { public pbc::RepeatedField<string> LeadingDetachedComments {
get { return leadingDetachedComments_; } get { return leadingDetachedComments_; }
} }
......
...@@ -67,7 +67,7 @@ void FieldGeneratorBase::SetCommonFieldVariables( ...@@ -67,7 +67,7 @@ void FieldGeneratorBase::SetCommonFieldVariables(
tag_bytes += ", " + SimpleItoa(tag_array[i]); tag_bytes += ", " + SimpleItoa(tag_array[i]);
} }
(*variables)["access_level"] = class_access_level(); (*variables)["access_level"] = "public";
(*variables)["tag"] = SimpleItoa(tag); (*variables)["tag"] = SimpleItoa(tag);
(*variables)["tag_size"] = SimpleItoa(tag_size); (*variables)["tag_size"] = SimpleItoa(tag_size);
(*variables)["tag_bytes"] = tag_bytes; (*variables)["tag_bytes"] = tag_bytes;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment