I tried to convert a proto file that contains fields beginning with
underscores to a c# file, but it cannot be converted to the correct CS file
example:
msg.proto
syntax = "proto2";
message Msg {
optional string _400Url = 1;
}
Msg.cs
/// <summary>Field number for the "_400Url" field.</summary>
public const int 400UrlFieldNumber = 1;
private readonly static string 400UrlDefaultValue = "";
private string 400Url_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string 400Url {
get { return 400Url_ ?? 400UrlDefaultValue; }
set {
400Url_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
Unable to compile because of 400Url
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/protobuf/e1b47ef8-5cc0-413e-af9c-d1e322904668n%40googlegroups.com.