Commit 96cffaa8 authored by Jon Skeet's avatar Jon Skeet

Generated code changes following previous commit.

parent 53c399a1
...@@ -12,11 +12,6 @@ namespace Google.Protobuf.Examples.AddressBook { ...@@ -12,11 +12,6 @@ namespace Google.Protobuf.Examples.AddressBook {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class Addressbook { public static partial class Addressbook {
#region Static variables
internal static pbr::FieldAccessorTable internal__static_tutorial_Person__FieldAccessorTable;
internal static pbr::FieldAccessorTable internal__static_tutorial_Person_PhoneNumber__FieldAccessorTable;
internal static pbr::FieldAccessorTable internal__static_tutorial_AddressBook__FieldAccessorTable;
#endregion
#region Descriptor #region Descriptor
public static pbr::FileDescriptor Descriptor { public static pbr::FileDescriptor Descriptor {
get { return descriptor; } get { return descriptor; }
...@@ -36,17 +31,8 @@ namespace Google.Protobuf.Examples.AddressBook { ...@@ -36,17 +31,8 @@ namespace Google.Protobuf.Examples.AddressBook {
"aWFsQhFBZGRyZXNzQm9va1Byb3Rvc6oCJEdvb2dsZS5Qcm90b2J1Zi5FeGFt", "aWFsQhFBZGRyZXNzQm9va1Byb3Rvc6oCJEdvb2dsZS5Qcm90b2J1Zi5FeGFt",
"cGxlcy5BZGRyZXNzQm9va2IGcHJvdG8z")); "cGxlcy5BZGRyZXNzQm9va2IGcHJvdG8z"));
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
new pbr::FileDescriptor[] { new pbr::FileDescriptor[] { },
}); new global::System.Type[] { typeof(global::Google.Protobuf.Examples.AddressBook.Person), typeof(global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber), typeof(global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType), typeof(global::Google.Protobuf.Examples.AddressBook.AddressBook), });
internal__static_tutorial_Person__FieldAccessorTable =
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.Examples.AddressBook.Person), descriptor.MessageTypes[0],
new string[] { "Name", "Id", "Email", "Phones", }, new string[] { });
internal__static_tutorial_Person_PhoneNumber__FieldAccessorTable =
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber), descriptor.MessageTypes[0].NestedTypes[0],
new string[] { "Number", "Type", }, new string[] { });
internal__static_tutorial_AddressBook__FieldAccessorTable =
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.Examples.AddressBook.AddressBook), descriptor.MessageTypes[1],
new string[] { "People", }, new string[] { });
} }
#endregion #endregion
...@@ -63,8 +49,8 @@ namespace Google.Protobuf.Examples.AddressBook { ...@@ -63,8 +49,8 @@ namespace Google.Protobuf.Examples.AddressBook {
get { return global::Google.Protobuf.Examples.AddressBook.Addressbook.Descriptor.MessageTypes[0]; } get { return global::Google.Protobuf.Examples.AddressBook.Addressbook.Descriptor.MessageTypes[0]; }
} }
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return global::Google.Protobuf.Examples.AddressBook.Addressbook.internal__static_tutorial_Person__FieldAccessorTable; } get { return Descriptor; }
} }
private bool _frozen = false; private bool _frozen = false;
...@@ -97,6 +83,7 @@ namespace Google.Protobuf.Examples.AddressBook { ...@@ -97,6 +83,7 @@ namespace Google.Protobuf.Examples.AddressBook {
public const int NameFieldNumber = 1; public const int NameFieldNumber = 1;
private string name_ = ""; private string name_ = "";
[pbr::ProtobufField(1, "name")]
public string Name { public string Name {
get { return name_; } get { return name_; }
set { set {
...@@ -107,6 +94,7 @@ namespace Google.Protobuf.Examples.AddressBook { ...@@ -107,6 +94,7 @@ namespace Google.Protobuf.Examples.AddressBook {
public const int IdFieldNumber = 2; public const int IdFieldNumber = 2;
private int id_; private int id_;
[pbr::ProtobufField(2, "id")]
public int Id { public int Id {
get { return id_; } get { return id_; }
set { set {
...@@ -117,6 +105,7 @@ namespace Google.Protobuf.Examples.AddressBook { ...@@ -117,6 +105,7 @@ namespace Google.Protobuf.Examples.AddressBook {
public const int EmailFieldNumber = 3; public const int EmailFieldNumber = 3;
private string email_ = ""; private string email_ = "";
[pbr::ProtobufField(3, "email")]
public string Email { public string Email {
get { return email_; } get { return email_; }
set { set {
...@@ -129,6 +118,7 @@ namespace Google.Protobuf.Examples.AddressBook { ...@@ -129,6 +118,7 @@ namespace Google.Protobuf.Examples.AddressBook {
private static readonly pb::FieldCodec<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber> _repeated_phones_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber> _repeated_phones_codec
= pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber.Parser); = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber> phones_ = new pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber> phones_ = new pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber>();
[pbr::ProtobufField(4, "phones")]
public pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber> Phones { public pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber> Phones {
get { return phones_; } get { return phones_; }
} }
...@@ -262,8 +252,8 @@ namespace Google.Protobuf.Examples.AddressBook { ...@@ -262,8 +252,8 @@ namespace Google.Protobuf.Examples.AddressBook {
get { return global::Google.Protobuf.Examples.AddressBook.Person.Descriptor.NestedTypes[0]; } get { return global::Google.Protobuf.Examples.AddressBook.Person.Descriptor.NestedTypes[0]; }
} }
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return global::Google.Protobuf.Examples.AddressBook.Addressbook.internal__static_tutorial_Person_PhoneNumber__FieldAccessorTable; } get { return Descriptor; }
} }
private bool _frozen = false; private bool _frozen = false;
...@@ -293,6 +283,7 @@ namespace Google.Protobuf.Examples.AddressBook { ...@@ -293,6 +283,7 @@ namespace Google.Protobuf.Examples.AddressBook {
public const int NumberFieldNumber = 1; public const int NumberFieldNumber = 1;
private string number_ = ""; private string number_ = "";
[pbr::ProtobufField(1, "number")]
public string Number { public string Number {
get { return number_; } get { return number_; }
set { set {
...@@ -303,6 +294,7 @@ namespace Google.Protobuf.Examples.AddressBook { ...@@ -303,6 +294,7 @@ namespace Google.Protobuf.Examples.AddressBook {
public const int TypeFieldNumber = 2; public const int TypeFieldNumber = 2;
private global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType type_ = global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType.MOBILE; private global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType type_ = global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType.MOBILE;
[pbr::ProtobufField(2, "type")]
public global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType Type { public global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType Type {
get { return type_; } get { return type_; }
set { set {
...@@ -413,8 +405,8 @@ namespace Google.Protobuf.Examples.AddressBook { ...@@ -413,8 +405,8 @@ namespace Google.Protobuf.Examples.AddressBook {
get { return global::Google.Protobuf.Examples.AddressBook.Addressbook.Descriptor.MessageTypes[1]; } get { return global::Google.Protobuf.Examples.AddressBook.Addressbook.Descriptor.MessageTypes[1]; }
} }
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return global::Google.Protobuf.Examples.AddressBook.Addressbook.internal__static_tutorial_AddressBook__FieldAccessorTable; } get { return Descriptor; }
} }
private bool _frozen = false; private bool _frozen = false;
...@@ -446,6 +438,7 @@ namespace Google.Protobuf.Examples.AddressBook { ...@@ -446,6 +438,7 @@ namespace Google.Protobuf.Examples.AddressBook {
private static readonly pb::FieldCodec<global::Google.Protobuf.Examples.AddressBook.Person> _repeated_people_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Examples.AddressBook.Person> _repeated_people_codec
= pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Examples.AddressBook.Person.Parser); = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Examples.AddressBook.Person.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person> people_ = new pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person>(); private readonly pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person> people_ = new pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person>();
[pbr::ProtobufField(1, "people")]
public pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person> People { public pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person> People {
get { return people_; } get { return people_; }
} }
......
...@@ -12,9 +12,6 @@ namespace Google.Protobuf.TestProtos { ...@@ -12,9 +12,6 @@ namespace Google.Protobuf.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class UnittestImportProto3 { public static partial class UnittestImportProto3 {
#region Static variables
internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_import_ImportMessage__FieldAccessorTable;
#endregion
#region Descriptor #region Descriptor
public static pbr::FileDescriptor Descriptor { public static pbr::FileDescriptor Descriptor {
get { return descriptor; } get { return descriptor; }
...@@ -33,12 +30,8 @@ namespace Google.Protobuf.TestProtos { ...@@ -33,12 +30,8 @@ namespace Google.Protobuf.TestProtos {
"c3RIAfgBAaoCGkdvb2dsZS5Qcm90b2J1Zi5UZXN0UHJvdG9zUABiBnByb3Rv", "c3RIAfgBAaoCGkdvb2dsZS5Qcm90b2J1Zi5UZXN0UHJvdG9zUABiBnByb3Rv",
"Mw==")); "Mw=="));
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
new pbr::FileDescriptor[] { new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.UnittestImportPublicProto3.Descriptor, },
global::Google.Protobuf.TestProtos.UnittestImportPublicProto3.Descriptor, new global::System.Type[] { typeof(global::Google.Protobuf.TestProtos.ImportMessage), typeof(global::Google.Protobuf.TestProtos.ImportEnum), });
});
internal__static_protobuf_unittest_import_ImportMessage__FieldAccessorTable =
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.ImportMessage), descriptor.MessageTypes[0],
new string[] { "D", }, new string[] { });
} }
#endregion #endregion
...@@ -65,8 +58,8 @@ namespace Google.Protobuf.TestProtos { ...@@ -65,8 +58,8 @@ namespace Google.Protobuf.TestProtos {
get { return global::Google.Protobuf.TestProtos.UnittestImportProto3.Descriptor.MessageTypes[0]; } get { return global::Google.Protobuf.TestProtos.UnittestImportProto3.Descriptor.MessageTypes[0]; }
} }
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestImportProto3.internal__static_protobuf_unittest_import_ImportMessage__FieldAccessorTable; } get { return Descriptor; }
} }
private bool _frozen = false; private bool _frozen = false;
...@@ -95,6 +88,7 @@ namespace Google.Protobuf.TestProtos { ...@@ -95,6 +88,7 @@ namespace Google.Protobuf.TestProtos {
public const int DFieldNumber = 1; public const int DFieldNumber = 1;
private int d_; private int d_;
[pbr::ProtobufField(1, "d")]
public int D { public int D {
get { return d_; } get { return d_; }
set { set {
......
...@@ -12,9 +12,6 @@ namespace Google.Protobuf.TestProtos { ...@@ -12,9 +12,6 @@ namespace Google.Protobuf.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class UnittestImportPublicProto3 { public static partial class UnittestImportPublicProto3 {
#region Static variables
internal static pbr::FieldAccessorTable internal__static_protobuf_unittest_import_PublicImportMessage__FieldAccessorTable;
#endregion
#region Descriptor #region Descriptor
public static pbr::FileDescriptor Descriptor { public static pbr::FileDescriptor Descriptor {
get { return descriptor; } get { return descriptor; }
...@@ -29,11 +26,8 @@ namespace Google.Protobuf.TestProtos { ...@@ -29,11 +26,8 @@ namespace Google.Protobuf.TestProtos {
"bXBvcnRNZXNzYWdlEgkKAWUYASABKAVCNwoYY29tLmdvb2dsZS5wcm90b2J1", "bXBvcnRNZXNzYWdlEgkKAWUYASABKAVCNwoYY29tLmdvb2dsZS5wcm90b2J1",
"Zi50ZXN0qgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw==")); "Zi50ZXN0qgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
new pbr::FileDescriptor[] { new pbr::FileDescriptor[] { },
}); new global::System.Type[] { typeof(global::Google.Protobuf.TestProtos.PublicImportMessage), });
internal__static_protobuf_unittest_import_PublicImportMessage__FieldAccessorTable =
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.PublicImportMessage), descriptor.MessageTypes[0],
new string[] { "E", }, new string[] { });
} }
#endregion #endregion
...@@ -50,8 +44,8 @@ namespace Google.Protobuf.TestProtos { ...@@ -50,8 +44,8 @@ namespace Google.Protobuf.TestProtos {
get { return global::Google.Protobuf.TestProtos.UnittestImportPublicProto3.Descriptor.MessageTypes[0]; } get { return global::Google.Protobuf.TestProtos.UnittestImportPublicProto3.Descriptor.MessageTypes[0]; }
} }
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestImportPublicProto3.internal__static_protobuf_unittest_import_PublicImportMessage__FieldAccessorTable; } get { return Descriptor; }
} }
private bool _frozen = false; private bool _frozen = false;
...@@ -80,6 +74,7 @@ namespace Google.Protobuf.TestProtos { ...@@ -80,6 +74,7 @@ namespace Google.Protobuf.TestProtos {
public const int EFieldNumber = 1; public const int EFieldNumber = 1;
private int e_; private int e_;
[pbr::ProtobufField(1, "e")]
public int E { public int E {
get { return e_; } get { return e_; }
set { set {
......
...@@ -14,9 +14,6 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -14,9 +14,6 @@ namespace Google.Protobuf.WellKnownTypes {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class Any { public static partial class Any {
#region Static variables
internal static pbr::FieldAccessorTable internal__static_google_protobuf_Any__FieldAccessorTable;
#endregion
#region Descriptor #region Descriptor
public static pbr::FileDescriptor Descriptor { public static pbr::FileDescriptor Descriptor {
get { return descriptor; } get { return descriptor; }
...@@ -31,11 +28,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -31,11 +28,8 @@ namespace Google.Protobuf.WellKnownTypes {
"bS5nb29nbGUucHJvdG9idWZCCEFueVByb3RvUAGgAQGiAgNHUEKqAh5Hb29n", "bS5nb29nbGUucHJvdG9idWZCCEFueVByb3RvUAGgAQGiAgNHUEKqAh5Hb29n",
"bGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw==")); "bGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
new pbr::FileDescriptor[] { new pbr::FileDescriptor[] { },
}); new global::System.Type[] { typeof(global::Google.Protobuf.WellKnownTypes.Any), });
internal__static_google_protobuf_Any__FieldAccessorTable =
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.WellKnownTypes.Any), descriptor.MessageTypes[0],
new string[] { "TypeUrl", "Value", }, new string[] { });
} }
#endregion #endregion
...@@ -53,8 +47,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -53,8 +47,8 @@ namespace Google.Protobuf.WellKnownTypes {
get { return global::Google.Protobuf.WellKnownTypes.Proto.Any.Descriptor.MessageTypes[0]; } get { return global::Google.Protobuf.WellKnownTypes.Proto.Any.Descriptor.MessageTypes[0]; }
} }
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return global::Google.Protobuf.WellKnownTypes.Proto.Any.internal__static_google_protobuf_Any__FieldAccessorTable; } get { return Descriptor; }
} }
private bool _frozen = false; private bool _frozen = false;
...@@ -84,6 +78,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -84,6 +78,7 @@ namespace Google.Protobuf.WellKnownTypes {
public const int TypeUrlFieldNumber = 1; public const int TypeUrlFieldNumber = 1;
private string typeUrl_ = ""; private string typeUrl_ = "";
[pbr::ProtobufField(1, "type_url")]
public string TypeUrl { public string TypeUrl {
get { return typeUrl_; } get { return typeUrl_; }
set { set {
...@@ -94,6 +89,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -94,6 +89,7 @@ namespace Google.Protobuf.WellKnownTypes {
public const int ValueFieldNumber = 2; public const int ValueFieldNumber = 2;
private pb::ByteString value_ = pb::ByteString.Empty; private pb::ByteString value_ = pb::ByteString.Empty;
[pbr::ProtobufField(2, "value")]
public pb::ByteString Value { public pb::ByteString Value {
get { return value_; } get { return value_; }
set { set {
......
...@@ -14,10 +14,6 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -14,10 +14,6 @@ namespace Google.Protobuf.WellKnownTypes {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class Api { public static partial class Api {
#region Static variables
internal static pbr::FieldAccessorTable internal__static_google_protobuf_Api__FieldAccessorTable;
internal static pbr::FieldAccessorTable internal__static_google_protobuf_Method__FieldAccessorTable;
#endregion
#region Descriptor #region Descriptor
public static pbr::FileDescriptor Descriptor { public static pbr::FileDescriptor Descriptor {
get { return descriptor; } get { return descriptor; }
...@@ -41,16 +37,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -41,16 +37,8 @@ namespace Google.Protobuf.WellKnownTypes {
"dG9QAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IG", "dG9QAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IG",
"cHJvdG8z")); "cHJvdG8z"));
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
new pbr::FileDescriptor[] { new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.Proto.SourceContext.Descriptor, global::Google.Protobuf.WellKnownTypes.Proto.Type.Descriptor, },
global::Google.Protobuf.WellKnownTypes.Proto.SourceContext.Descriptor, new global::System.Type[] { typeof(global::Google.Protobuf.WellKnownTypes.Api), typeof(global::Google.Protobuf.WellKnownTypes.Method), });
global::Google.Protobuf.WellKnownTypes.Proto.Type.Descriptor,
});
internal__static_google_protobuf_Api__FieldAccessorTable =
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.WellKnownTypes.Api), descriptor.MessageTypes[0],
new string[] { "Name", "Methods", "Options", "Version", "SourceContext", }, new string[] { });
internal__static_google_protobuf_Method__FieldAccessorTable =
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.WellKnownTypes.Method), descriptor.MessageTypes[1],
new string[] { "Name", "RequestTypeUrl", "RequestStreaming", "ResponseTypeUrl", "ResponseStreaming", "Options", }, new string[] { });
} }
#endregion #endregion
...@@ -68,8 +56,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -68,8 +56,8 @@ namespace Google.Protobuf.WellKnownTypes {
get { return global::Google.Protobuf.WellKnownTypes.Proto.Api.Descriptor.MessageTypes[0]; } get { return global::Google.Protobuf.WellKnownTypes.Proto.Api.Descriptor.MessageTypes[0]; }
} }
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return global::Google.Protobuf.WellKnownTypes.Proto.Api.internal__static_google_protobuf_Api__FieldAccessorTable; } get { return Descriptor; }
} }
private bool _frozen = false; private bool _frozen = false;
...@@ -105,6 +93,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -105,6 +93,7 @@ namespace Google.Protobuf.WellKnownTypes {
public const int NameFieldNumber = 1; public const int NameFieldNumber = 1;
private string name_ = ""; private string name_ = "";
[pbr::ProtobufField(1, "name")]
public string Name { public string Name {
get { return name_; } get { return name_; }
set { set {
...@@ -117,6 +106,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -117,6 +106,7 @@ namespace Google.Protobuf.WellKnownTypes {
private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Method> _repeated_methods_codec private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Method> _repeated_methods_codec
= pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Method.Parser); = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Method.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Method> methods_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Method>(); private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Method> methods_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Method>();
[pbr::ProtobufField(2, "methods")]
public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Method> Methods { public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Method> Methods {
get { return methods_; } get { return methods_; }
} }
...@@ -125,12 +115,14 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -125,12 +115,14 @@ namespace Google.Protobuf.WellKnownTypes {
private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Option> _repeated_options_codec private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Option> _repeated_options_codec
= pb::FieldCodec.ForMessage(26, global::Google.Protobuf.WellKnownTypes.Option.Parser); = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.WellKnownTypes.Option.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> options_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option>(); private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> options_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option>();
[pbr::ProtobufField(3, "options")]
public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> Options { public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> Options {
get { return options_; } get { return options_; }
} }
public const int VersionFieldNumber = 4; public const int VersionFieldNumber = 4;
private string version_ = ""; private string version_ = "";
[pbr::ProtobufField(4, "version")]
public string Version { public string Version {
get { return version_; } get { return version_; }
set { set {
...@@ -141,6 +133,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -141,6 +133,7 @@ namespace Google.Protobuf.WellKnownTypes {
public const int SourceContextFieldNumber = 5; public const int SourceContextFieldNumber = 5;
private global::Google.Protobuf.WellKnownTypes.SourceContext sourceContext_; private global::Google.Protobuf.WellKnownTypes.SourceContext sourceContext_;
[pbr::ProtobufField(5, "source_context")]
public global::Google.Protobuf.WellKnownTypes.SourceContext SourceContext { public global::Google.Protobuf.WellKnownTypes.SourceContext SourceContext {
get { return sourceContext_; } get { return sourceContext_; }
set { set {
...@@ -286,8 +279,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -286,8 +279,8 @@ namespace Google.Protobuf.WellKnownTypes {
get { return global::Google.Protobuf.WellKnownTypes.Proto.Api.Descriptor.MessageTypes[1]; } get { return global::Google.Protobuf.WellKnownTypes.Proto.Api.Descriptor.MessageTypes[1]; }
} }
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return global::Google.Protobuf.WellKnownTypes.Proto.Api.internal__static_google_protobuf_Method__FieldAccessorTable; } get { return Descriptor; }
} }
private bool _frozen = false; private bool _frozen = false;
...@@ -322,6 +315,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -322,6 +315,7 @@ namespace Google.Protobuf.WellKnownTypes {
public const int NameFieldNumber = 1; public const int NameFieldNumber = 1;
private string name_ = ""; private string name_ = "";
[pbr::ProtobufField(1, "name")]
public string Name { public string Name {
get { return name_; } get { return name_; }
set { set {
...@@ -332,6 +326,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -332,6 +326,7 @@ namespace Google.Protobuf.WellKnownTypes {
public const int RequestTypeUrlFieldNumber = 2; public const int RequestTypeUrlFieldNumber = 2;
private string requestTypeUrl_ = ""; private string requestTypeUrl_ = "";
[pbr::ProtobufField(2, "request_type_url")]
public string RequestTypeUrl { public string RequestTypeUrl {
get { return requestTypeUrl_; } get { return requestTypeUrl_; }
set { set {
...@@ -342,6 +337,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -342,6 +337,7 @@ namespace Google.Protobuf.WellKnownTypes {
public const int RequestStreamingFieldNumber = 3; public const int RequestStreamingFieldNumber = 3;
private bool requestStreaming_; private bool requestStreaming_;
[pbr::ProtobufField(3, "request_streaming")]
public bool RequestStreaming { public bool RequestStreaming {
get { return requestStreaming_; } get { return requestStreaming_; }
set { set {
...@@ -352,6 +348,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -352,6 +348,7 @@ namespace Google.Protobuf.WellKnownTypes {
public const int ResponseTypeUrlFieldNumber = 4; public const int ResponseTypeUrlFieldNumber = 4;
private string responseTypeUrl_ = ""; private string responseTypeUrl_ = "";
[pbr::ProtobufField(4, "response_type_url")]
public string ResponseTypeUrl { public string ResponseTypeUrl {
get { return responseTypeUrl_; } get { return responseTypeUrl_; }
set { set {
...@@ -362,6 +359,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -362,6 +359,7 @@ namespace Google.Protobuf.WellKnownTypes {
public const int ResponseStreamingFieldNumber = 5; public const int ResponseStreamingFieldNumber = 5;
private bool responseStreaming_; private bool responseStreaming_;
[pbr::ProtobufField(5, "response_streaming")]
public bool ResponseStreaming { public bool ResponseStreaming {
get { return responseStreaming_; } get { return responseStreaming_; }
set { set {
...@@ -374,6 +372,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -374,6 +372,7 @@ namespace Google.Protobuf.WellKnownTypes {
private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Option> _repeated_options_codec private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Option> _repeated_options_codec
= pb::FieldCodec.ForMessage(50, global::Google.Protobuf.WellKnownTypes.Option.Parser); = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.WellKnownTypes.Option.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> options_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option>(); private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> options_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option>();
[pbr::ProtobufField(6, "options")]
public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> Options { public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> Options {
get { return options_; } get { return options_; }
} }
......
...@@ -14,9 +14,6 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -14,9 +14,6 @@ namespace Google.Protobuf.WellKnownTypes {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class Duration { public static partial class Duration {
#region Static variables
internal static pbr::FieldAccessorTable internal__static_google_protobuf_Duration__FieldAccessorTable;
#endregion
#region Descriptor #region Descriptor
public static pbr::FileDescriptor Descriptor { public static pbr::FileDescriptor Descriptor {
get { return descriptor; } get { return descriptor; }
...@@ -32,11 +29,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -32,11 +29,8 @@ namespace Google.Protobuf.WellKnownTypes {
"AaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJv", "AaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJv",
"dG8z")); "dG8z"));
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
new pbr::FileDescriptor[] { new pbr::FileDescriptor[] { },
}); new global::System.Type[] { typeof(global::Google.Protobuf.WellKnownTypes.Duration), });
internal__static_google_protobuf_Duration__FieldAccessorTable =
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.WellKnownTypes.Duration), descriptor.MessageTypes[0],
new string[] { "Seconds", "Nanos", }, new string[] { });
} }
#endregion #endregion
...@@ -54,8 +48,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -54,8 +48,8 @@ namespace Google.Protobuf.WellKnownTypes {
get { return global::Google.Protobuf.WellKnownTypes.Proto.Duration.Descriptor.MessageTypes[0]; } get { return global::Google.Protobuf.WellKnownTypes.Proto.Duration.Descriptor.MessageTypes[0]; }
} }
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return global::Google.Protobuf.WellKnownTypes.Proto.Duration.internal__static_google_protobuf_Duration__FieldAccessorTable; } get { return Descriptor; }
} }
private bool _frozen = false; private bool _frozen = false;
...@@ -85,6 +79,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -85,6 +79,7 @@ namespace Google.Protobuf.WellKnownTypes {
public const int SecondsFieldNumber = 1; public const int SecondsFieldNumber = 1;
private long seconds_; private long seconds_;
[pbr::ProtobufField(1, "seconds")]
public long Seconds { public long Seconds {
get { return seconds_; } get { return seconds_; }
set { set {
...@@ -95,6 +90,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -95,6 +90,7 @@ namespace Google.Protobuf.WellKnownTypes {
public const int NanosFieldNumber = 2; public const int NanosFieldNumber = 2;
private int nanos_; private int nanos_;
[pbr::ProtobufField(2, "nanos")]
public int Nanos { public int Nanos {
get { return nanos_; } get { return nanos_; }
set { set {
......
...@@ -14,9 +14,6 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -14,9 +14,6 @@ namespace Google.Protobuf.WellKnownTypes {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class Empty { public static partial class Empty {
#region Static variables
internal static pbr::FieldAccessorTable internal__static_google_protobuf_Empty__FieldAccessorTable;
#endregion
#region Descriptor #region Descriptor
public static pbr::FileDescriptor Descriptor { public static pbr::FileDescriptor Descriptor {
get { return descriptor; } get { return descriptor; }
...@@ -31,11 +28,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -31,11 +28,8 @@ namespace Google.Protobuf.WellKnownTypes {
"UAGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnBy", "UAGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnBy",
"b3RvMw==")); "b3RvMw=="));
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
new pbr::FileDescriptor[] { new pbr::FileDescriptor[] { },
}); new global::System.Type[] { typeof(global::Google.Protobuf.WellKnownTypes.Empty), });
internal__static_google_protobuf_Empty__FieldAccessorTable =
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.WellKnownTypes.Empty), descriptor.MessageTypes[0],
new string[] { }, new string[] { });
} }
#endregion #endregion
...@@ -53,8 +47,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -53,8 +47,8 @@ namespace Google.Protobuf.WellKnownTypes {
get { return global::Google.Protobuf.WellKnownTypes.Proto.Empty.Descriptor.MessageTypes[0]; } get { return global::Google.Protobuf.WellKnownTypes.Proto.Empty.Descriptor.MessageTypes[0]; }
} }
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return global::Google.Protobuf.WellKnownTypes.Proto.Empty.internal__static_google_protobuf_Empty__FieldAccessorTable; } get { return Descriptor; }
} }
private bool _frozen = false; private bool _frozen = false;
......
...@@ -14,9 +14,6 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -14,9 +14,6 @@ namespace Google.Protobuf.WellKnownTypes {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class FieldMask { public static partial class FieldMask {
#region Static variables
internal static pbr::FieldAccessorTable internal__static_google_protobuf_FieldMask__FieldAccessorTable;
#endregion
#region Descriptor #region Descriptor
public static pbr::FileDescriptor Descriptor { public static pbr::FileDescriptor Descriptor {
get { return descriptor; } get { return descriptor; }
...@@ -31,11 +28,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -31,11 +28,8 @@ namespace Google.Protobuf.WellKnownTypes {
"Z2xlLnByb3RvYnVmQg5GaWVsZE1hc2tQcm90b1ABogIDR1BCqgIeR29vZ2xl", "Z2xlLnByb3RvYnVmQg5GaWVsZE1hc2tQcm90b1ABogIDR1BCqgIeR29vZ2xl",
"LlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM=")); "LlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
new pbr::FileDescriptor[] { new pbr::FileDescriptor[] { },
}); new global::System.Type[] { typeof(global::Google.Protobuf.WellKnownTypes.FieldMask), });
internal__static_google_protobuf_FieldMask__FieldAccessorTable =
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.WellKnownTypes.FieldMask), descriptor.MessageTypes[0],
new string[] { "Paths", }, new string[] { });
} }
#endregion #endregion
...@@ -53,8 +47,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -53,8 +47,8 @@ namespace Google.Protobuf.WellKnownTypes {
get { return global::Google.Protobuf.WellKnownTypes.Proto.FieldMask.Descriptor.MessageTypes[0]; } get { return global::Google.Protobuf.WellKnownTypes.Proto.FieldMask.Descriptor.MessageTypes[0]; }
} }
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return global::Google.Protobuf.WellKnownTypes.Proto.FieldMask.internal__static_google_protobuf_FieldMask__FieldAccessorTable; } get { return Descriptor; }
} }
private bool _frozen = false; private bool _frozen = false;
...@@ -86,6 +80,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -86,6 +80,7 @@ namespace Google.Protobuf.WellKnownTypes {
private static readonly pb::FieldCodec<string> _repeated_paths_codec private static readonly pb::FieldCodec<string> _repeated_paths_codec
= pb::FieldCodec.ForString(10); = pb::FieldCodec.ForString(10);
private readonly pbc::RepeatedField<string> paths_ = new pbc::RepeatedField<string>(); private readonly pbc::RepeatedField<string> paths_ = new pbc::RepeatedField<string>();
[pbr::ProtobufField(1, "paths")]
public pbc::RepeatedField<string> Paths { public pbc::RepeatedField<string> Paths {
get { return paths_; } get { return paths_; }
} }
......
...@@ -14,9 +14,6 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -14,9 +14,6 @@ namespace Google.Protobuf.WellKnownTypes {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class SourceContext { public static partial class SourceContext {
#region Static variables
internal static pbr::FieldAccessorTable internal__static_google_protobuf_SourceContext__FieldAccessorTable;
#endregion
#region Descriptor #region Descriptor
public static pbr::FileDescriptor Descriptor { public static pbr::FileDescriptor Descriptor {
get { return descriptor; } get { return descriptor; }
...@@ -32,11 +29,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -32,11 +29,8 @@ namespace Google.Protobuf.WellKnownTypes {
"AaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJv", "AaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJv",
"dG8z")); "dG8z"));
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
new pbr::FileDescriptor[] { new pbr::FileDescriptor[] { },
}); new global::System.Type[] { typeof(global::Google.Protobuf.WellKnownTypes.SourceContext), });
internal__static_google_protobuf_SourceContext__FieldAccessorTable =
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.WellKnownTypes.SourceContext), descriptor.MessageTypes[0],
new string[] { "FileName", }, new string[] { });
} }
#endregion #endregion
...@@ -54,8 +48,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -54,8 +48,8 @@ namespace Google.Protobuf.WellKnownTypes {
get { return global::Google.Protobuf.WellKnownTypes.Proto.SourceContext.Descriptor.MessageTypes[0]; } get { return global::Google.Protobuf.WellKnownTypes.Proto.SourceContext.Descriptor.MessageTypes[0]; }
} }
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return global::Google.Protobuf.WellKnownTypes.Proto.SourceContext.internal__static_google_protobuf_SourceContext__FieldAccessorTable; } get { return Descriptor; }
} }
private bool _frozen = false; private bool _frozen = false;
...@@ -84,6 +78,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -84,6 +78,7 @@ namespace Google.Protobuf.WellKnownTypes {
public const int FileNameFieldNumber = 1; public const int FileNameFieldNumber = 1;
private string fileName_ = ""; private string fileName_ = "";
[pbr::ProtobufField(1, "file_name")]
public string FileName { public string FileName {
get { return fileName_; } get { return fileName_; }
set { set {
......
...@@ -14,11 +14,6 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -14,11 +14,6 @@ namespace Google.Protobuf.WellKnownTypes {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class Struct { public static partial class Struct {
#region Static variables
internal static pbr::FieldAccessorTable internal__static_google_protobuf_Struct__FieldAccessorTable;
internal static pbr::FieldAccessorTable internal__static_google_protobuf_Value__FieldAccessorTable;
internal static pbr::FieldAccessorTable internal__static_google_protobuf_ListValue__FieldAccessorTable;
#endregion
#region Descriptor #region Descriptor
public static pbr::FileDescriptor Descriptor { public static pbr::FileDescriptor Descriptor {
get { return descriptor; } get { return descriptor; }
...@@ -43,17 +38,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -43,17 +38,8 @@ namespace Google.Protobuf.WellKnownTypes {
"AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnBy", "AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnBy",
"b3RvMw==")); "b3RvMw=="));
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
new pbr::FileDescriptor[] { new pbr::FileDescriptor[] { },
}); new global::System.Type[] { typeof(global::Google.Protobuf.WellKnownTypes.Struct), null, typeof(global::Google.Protobuf.WellKnownTypes.Value), typeof(global::Google.Protobuf.WellKnownTypes.ListValue), typeof(global::Google.Protobuf.WellKnownTypes.NullValue), });
internal__static_google_protobuf_Struct__FieldAccessorTable =
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.WellKnownTypes.Struct), descriptor.MessageTypes[0],
new string[] { "Fields", }, new string[] { });
internal__static_google_protobuf_Value__FieldAccessorTable =
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.WellKnownTypes.Value), descriptor.MessageTypes[1],
new string[] { "NullValue", "NumberValue", "StringValue", "BoolValue", "StructValue", "ListValue", }, new string[] { "Kind", });
internal__static_google_protobuf_ListValue__FieldAccessorTable =
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.WellKnownTypes.ListValue), descriptor.MessageTypes[2],
new string[] { "Values", }, new string[] { });
} }
#endregion #endregion
...@@ -78,8 +64,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -78,8 +64,8 @@ namespace Google.Protobuf.WellKnownTypes {
get { return global::Google.Protobuf.WellKnownTypes.Proto.Struct.Descriptor.MessageTypes[0]; } get { return global::Google.Protobuf.WellKnownTypes.Proto.Struct.Descriptor.MessageTypes[0]; }
} }
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return global::Google.Protobuf.WellKnownTypes.Proto.Struct.internal__static_google_protobuf_Struct__FieldAccessorTable; } get { return Descriptor; }
} }
private bool _frozen = false; private bool _frozen = false;
...@@ -111,6 +97,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -111,6 +97,7 @@ namespace Google.Protobuf.WellKnownTypes {
private static readonly pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value>.Codec _map_fields_codec private static readonly pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value>.Codec _map_fields_codec
= new pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Value.Parser), 10); = new pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Value.Parser), 10);
private readonly pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value> fields_ = new pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value>(); private readonly pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value> fields_ = new pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value>();
[pbr::ProtobufField(1, "fields")]
public pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value> Fields { public pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value> Fields {
get { return fields_; } get { return fields_; }
} }
...@@ -189,8 +176,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -189,8 +176,8 @@ namespace Google.Protobuf.WellKnownTypes {
get { return global::Google.Protobuf.WellKnownTypes.Proto.Struct.Descriptor.MessageTypes[1]; } get { return global::Google.Protobuf.WellKnownTypes.Proto.Struct.Descriptor.MessageTypes[1]; }
} }
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return global::Google.Protobuf.WellKnownTypes.Proto.Struct.internal__static_google_protobuf_Value__FieldAccessorTable; } get { return Descriptor; }
} }
private bool _frozen = false; private bool _frozen = false;
...@@ -239,6 +226,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -239,6 +226,7 @@ namespace Google.Protobuf.WellKnownTypes {
} }
public const int NullValueFieldNumber = 1; public const int NullValueFieldNumber = 1;
[pbr::ProtobufField(1, "null_value")]
public global::Google.Protobuf.WellKnownTypes.NullValue NullValue { public global::Google.Protobuf.WellKnownTypes.NullValue NullValue {
get { return kindCase_ == KindOneofCase.NullValue ? (global::Google.Protobuf.WellKnownTypes.NullValue) kind_ : global::Google.Protobuf.WellKnownTypes.NullValue.NULL_VALUE; } get { return kindCase_ == KindOneofCase.NullValue ? (global::Google.Protobuf.WellKnownTypes.NullValue) kind_ : global::Google.Protobuf.WellKnownTypes.NullValue.NULL_VALUE; }
set { set {
...@@ -249,6 +237,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -249,6 +237,7 @@ namespace Google.Protobuf.WellKnownTypes {
} }
public const int NumberValueFieldNumber = 2; public const int NumberValueFieldNumber = 2;
[pbr::ProtobufField(2, "number_value")]
public double NumberValue { public double NumberValue {
get { return kindCase_ == KindOneofCase.NumberValue ? (double) kind_ : 0D; } get { return kindCase_ == KindOneofCase.NumberValue ? (double) kind_ : 0D; }
set { set {
...@@ -259,6 +248,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -259,6 +248,7 @@ namespace Google.Protobuf.WellKnownTypes {
} }
public const int StringValueFieldNumber = 3; public const int StringValueFieldNumber = 3;
[pbr::ProtobufField(3, "string_value")]
public string StringValue { public string StringValue {
get { return kindCase_ == KindOneofCase.StringValue ? (string) kind_ : ""; } get { return kindCase_ == KindOneofCase.StringValue ? (string) kind_ : ""; }
set { set {
...@@ -269,6 +259,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -269,6 +259,7 @@ namespace Google.Protobuf.WellKnownTypes {
} }
public const int BoolValueFieldNumber = 4; public const int BoolValueFieldNumber = 4;
[pbr::ProtobufField(4, "bool_value")]
public bool BoolValue { public bool BoolValue {
get { return kindCase_ == KindOneofCase.BoolValue ? (bool) kind_ : false; } get { return kindCase_ == KindOneofCase.BoolValue ? (bool) kind_ : false; }
set { set {
...@@ -279,6 +270,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -279,6 +270,7 @@ namespace Google.Protobuf.WellKnownTypes {
} }
public const int StructValueFieldNumber = 5; public const int StructValueFieldNumber = 5;
[pbr::ProtobufField(5, "struct_value")]
public global::Google.Protobuf.WellKnownTypes.Struct StructValue { public global::Google.Protobuf.WellKnownTypes.Struct StructValue {
get { return kindCase_ == KindOneofCase.StructValue ? (global::Google.Protobuf.WellKnownTypes.Struct) kind_ : null; } get { return kindCase_ == KindOneofCase.StructValue ? (global::Google.Protobuf.WellKnownTypes.Struct) kind_ : null; }
set { set {
...@@ -289,6 +281,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -289,6 +281,7 @@ namespace Google.Protobuf.WellKnownTypes {
} }
public const int ListValueFieldNumber = 6; public const int ListValueFieldNumber = 6;
[pbr::ProtobufField(6, "list_value")]
public global::Google.Protobuf.WellKnownTypes.ListValue ListValue { public global::Google.Protobuf.WellKnownTypes.ListValue ListValue {
get { return kindCase_ == KindOneofCase.ListValue ? (global::Google.Protobuf.WellKnownTypes.ListValue) kind_ : null; } get { return kindCase_ == KindOneofCase.ListValue ? (global::Google.Protobuf.WellKnownTypes.ListValue) kind_ : null; }
set { set {
...@@ -309,10 +302,12 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -309,10 +302,12 @@ namespace Google.Protobuf.WellKnownTypes {
ListValue = 6, ListValue = 6,
} }
private KindOneofCase kindCase_ = KindOneofCase.None; private KindOneofCase kindCase_ = KindOneofCase.None;
[pbr::ProtobufOneof("kind")]
public KindOneofCase KindCase { public KindOneofCase KindCase {
get { return kindCase_; } get { return kindCase_; }
} }
[pbr::ProtobufOneof("kind")]
public void ClearKind() { public void ClearKind() {
pb::Freezable.CheckMutable(this); pb::Freezable.CheckMutable(this);
kindCase_ = KindOneofCase.None; kindCase_ = KindOneofCase.None;
...@@ -494,8 +489,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -494,8 +489,8 @@ namespace Google.Protobuf.WellKnownTypes {
get { return global::Google.Protobuf.WellKnownTypes.Proto.Struct.Descriptor.MessageTypes[2]; } get { return global::Google.Protobuf.WellKnownTypes.Proto.Struct.Descriptor.MessageTypes[2]; }
} }
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return global::Google.Protobuf.WellKnownTypes.Proto.Struct.internal__static_google_protobuf_ListValue__FieldAccessorTable; } get { return Descriptor; }
} }
private bool _frozen = false; private bool _frozen = false;
...@@ -527,6 +522,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -527,6 +522,7 @@ namespace Google.Protobuf.WellKnownTypes {
private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Value> _repeated_values_codec private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Value> _repeated_values_codec
= pb::FieldCodec.ForMessage(10, global::Google.Protobuf.WellKnownTypes.Value.Parser); = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.WellKnownTypes.Value.Parser);
private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value> values_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value>(); private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value> values_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value>();
[pbr::ProtobufField(1, "values")]
public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value> Values { public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value> Values {
get { return values_; } get { return values_; }
} }
......
...@@ -14,9 +14,6 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -14,9 +14,6 @@ namespace Google.Protobuf.WellKnownTypes {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class Timestamp { public static partial class Timestamp {
#region Static variables
internal static pbr::FieldAccessorTable internal__static_google_protobuf_Timestamp__FieldAccessorTable;
#endregion
#region Descriptor #region Descriptor
public static pbr::FileDescriptor Descriptor { public static pbr::FileDescriptor Descriptor {
get { return descriptor; } get { return descriptor; }
...@@ -32,11 +29,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -32,11 +29,8 @@ namespace Google.Protobuf.WellKnownTypes {
"AaABAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IG", "AaABAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IG",
"cHJvdG8z")); "cHJvdG8z"));
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
new pbr::FileDescriptor[] { new pbr::FileDescriptor[] { },
}); new global::System.Type[] { typeof(global::Google.Protobuf.WellKnownTypes.Timestamp), });
internal__static_google_protobuf_Timestamp__FieldAccessorTable =
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.WellKnownTypes.Timestamp), descriptor.MessageTypes[0],
new string[] { "Seconds", "Nanos", }, new string[] { });
} }
#endregion #endregion
...@@ -54,8 +48,8 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -54,8 +48,8 @@ namespace Google.Protobuf.WellKnownTypes {
get { return global::Google.Protobuf.WellKnownTypes.Proto.Timestamp.Descriptor.MessageTypes[0]; } get { return global::Google.Protobuf.WellKnownTypes.Proto.Timestamp.Descriptor.MessageTypes[0]; }
} }
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return global::Google.Protobuf.WellKnownTypes.Proto.Timestamp.internal__static_google_protobuf_Timestamp__FieldAccessorTable; } get { return Descriptor; }
} }
private bool _frozen = false; private bool _frozen = false;
...@@ -85,6 +79,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -85,6 +79,7 @@ namespace Google.Protobuf.WellKnownTypes {
public const int SecondsFieldNumber = 1; public const int SecondsFieldNumber = 1;
private long seconds_; private long seconds_;
[pbr::ProtobufField(1, "seconds")]
public long Seconds { public long Seconds {
get { return seconds_; } get { return seconds_; }
set { set {
...@@ -95,6 +90,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -95,6 +90,7 @@ namespace Google.Protobuf.WellKnownTypes {
public const int NanosFieldNumber = 2; public const int NanosFieldNumber = 2;
private int nanos_; private int nanos_;
[pbr::ProtobufField(2, "nanos")]
public int Nanos { public int Nanos {
get { return nanos_; } get { return nanos_; }
set { set {
......
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