parent
739d13d5d1
commit
62a4aa56d4
17 changed files with 4763 additions and 113 deletions
@ -0,0 +1,195 @@ |
||||
// Generated by the protocol buffer compiler. DO NOT EDIT! |
||||
// source: google/protobuf/any.proto |
||||
#pragma warning disable 1591, 0612, 3021 |
||||
#region Designer generated code |
||||
|
||||
using pb = global::Google.Protobuf; |
||||
using pbc = global::Google.Protobuf.Collections; |
||||
using pbr = global::Google.Protobuf.Reflection; |
||||
using scg = global::System.Collections.Generic; |
||||
namespace Google.Protobuf.WellKnownTypes { |
||||
|
||||
namespace Proto { |
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public static partial class Any { |
||||
|
||||
#region Static variables |
||||
internal static pbr::FieldAccessorTable internal__static_google_protobuf_Any__FieldAccessorTable; |
||||
#endregion |
||||
#region Descriptor |
||||
public static pbr::FileDescriptor Descriptor { |
||||
get { return descriptor; } |
||||
} |
||||
private static pbr::FileDescriptor descriptor; |
||||
|
||||
static Any() { |
||||
byte[] descriptorData = global::System.Convert.FromBase64String( |
||||
string.Concat( |
||||
"Chlnb29nbGUvcHJvdG9idWYvYW55LnByb3RvEg9nb29nbGUucHJvdG9idWYi", |
||||
"JgoDQW55EhAKCHR5cGVfdXJsGAEgASgJEg0KBXZhbHVlGAIgASgMQksKE2Nv", |
||||
"bS5nb29nbGUucHJvdG9idWZCCEFueVByb3RvUAGgAQGiAgNHUEKqAh5Hb29n", |
||||
"bGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw==")); |
||||
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, |
||||
new pbr::FileDescriptor[] { |
||||
}); |
||||
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 |
||||
|
||||
} |
||||
} |
||||
#region Messages |
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public sealed partial class Any : pb::IMessage<Any> { |
||||
private static readonly pb::MessageParser<Any> _parser = new pb::MessageParser<Any>(() => new Any()); |
||||
public static pb::MessageParser<Any> Parser { get { return _parser; } } |
||||
|
||||
private static readonly string[] _fieldNames = new string[] { "type_url", "value" }; |
||||
private static readonly uint[] _fieldTags = new uint[] { 10, 18 }; |
||||
public static pbr::MessageDescriptor Descriptor { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Any.Descriptor.MessageTypes[0]; } |
||||
} |
||||
|
||||
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Any.internal__static_google_protobuf_Any__FieldAccessorTable; } |
||||
} |
||||
|
||||
private bool _frozen = false; |
||||
public bool IsFrozen { get { return _frozen; } } |
||||
|
||||
public Any() { |
||||
OnConstruction(); |
||||
} |
||||
|
||||
partial void OnConstruction(); |
||||
|
||||
public Any(Any other) : this() { |
||||
typeUrl_ = other.typeUrl_; |
||||
value_ = other.value_; |
||||
} |
||||
|
||||
public Any Clone() { |
||||
return new Any(this); |
||||
} |
||||
|
||||
public void Freeze() { |
||||
if (IsFrozen) { |
||||
return; |
||||
} |
||||
_frozen = true; |
||||
} |
||||
|
||||
public const int TypeUrlFieldNumber = 1; |
||||
private string typeUrl_ = ""; |
||||
public string TypeUrl { |
||||
get { return typeUrl_; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
typeUrl_ = value ?? ""; |
||||
} |
||||
} |
||||
|
||||
public const int ValueFieldNumber = 2; |
||||
private pb::ByteString value_ = pb::ByteString.Empty; |
||||
public pb::ByteString Value { |
||||
get { return value_; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
value_ = value ?? pb::ByteString.Empty; |
||||
} |
||||
} |
||||
|
||||
public override bool Equals(object other) { |
||||
return Equals(other as Any); |
||||
} |
||||
|
||||
public bool Equals(Any other) { |
||||
if (ReferenceEquals(other, null)) { |
||||
return false; |
||||
} |
||||
if (ReferenceEquals(other, this)) { |
||||
return true; |
||||
} |
||||
if (TypeUrl != other.TypeUrl) return false; |
||||
if (Value != other.Value) return false; |
||||
return true; |
||||
} |
||||
|
||||
public override int GetHashCode() { |
||||
int hash = 1; |
||||
if (TypeUrl.Length != 0) hash ^= TypeUrl.GetHashCode(); |
||||
if (Value.Length != 0) hash ^= Value.GetHashCode(); |
||||
return hash; |
||||
} |
||||
|
||||
public override string ToString() { |
||||
return pb::JsonFormatter.Default.Format(this); |
||||
} |
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) { |
||||
if (TypeUrl.Length != 0) { |
||||
output.WriteRawTag(10); |
||||
output.WriteString(TypeUrl); |
||||
} |
||||
if (Value.Length != 0) { |
||||
output.WriteRawTag(18); |
||||
output.WriteBytes(Value); |
||||
} |
||||
} |
||||
|
||||
public int CalculateSize() { |
||||
int size = 0; |
||||
if (TypeUrl.Length != 0) { |
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeUrl); |
||||
} |
||||
if (Value.Length != 0) { |
||||
size += 1 + pb::CodedOutputStream.ComputeBytesSize(Value); |
||||
} |
||||
return size; |
||||
} |
||||
|
||||
public void MergeFrom(Any other) { |
||||
if (other == null) { |
||||
return; |
||||
} |
||||
if (other.TypeUrl.Length != 0) { |
||||
TypeUrl = other.TypeUrl; |
||||
} |
||||
if (other.Value.Length != 0) { |
||||
Value = other.Value; |
||||
} |
||||
} |
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) { |
||||
uint tag; |
||||
while (input.ReadTag(out tag)) { |
||||
switch(tag) { |
||||
case 0: |
||||
throw pb::InvalidProtocolBufferException.InvalidTag(); |
||||
default: |
||||
if (pb::WireFormat.IsEndGroupTag(tag)) { |
||||
return; |
||||
} |
||||
break; |
||||
case 10: { |
||||
TypeUrl = input.ReadString(); |
||||
break; |
||||
} |
||||
case 18: { |
||||
Value = input.ReadBytes(); |
||||
break; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
#endregion |
||||
|
||||
} |
||||
|
||||
#endregion Designer generated code |
@ -0,0 +1,528 @@ |
||||
// Generated by the protocol buffer compiler. DO NOT EDIT! |
||||
// source: google/protobuf/api.proto |
||||
#pragma warning disable 1591, 0612, 3021 |
||||
#region Designer generated code |
||||
|
||||
using pb = global::Google.Protobuf; |
||||
using pbc = global::Google.Protobuf.Collections; |
||||
using pbr = global::Google.Protobuf.Reflection; |
||||
using scg = global::System.Collections.Generic; |
||||
namespace Google.Protobuf.WellKnownTypes { |
||||
|
||||
namespace Proto { |
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
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 |
||||
public static pbr::FileDescriptor Descriptor { |
||||
get { return descriptor; } |
||||
} |
||||
private static pbr::FileDescriptor descriptor; |
||||
|
||||
static Api() { |
||||
byte[] descriptorData = global::System.Convert.FromBase64String( |
||||
string.Concat( |
||||
"Chlnb29nbGUvcHJvdG9idWYvYXBpLnByb3RvEg9nb29nbGUucHJvdG9idWYa", |
||||
"JGdvb2dsZS9wcm90b2J1Zi9zb3VyY2VfY29udGV4dC5wcm90bxoaZ29vZ2xl", |
||||
"L3Byb3RvYnVmL3R5cGUucHJvdG8isAEKA0FwaRIMCgRuYW1lGAEgASgJEigK", |
||||
"B21ldGhvZHMYAiADKAsyFy5nb29nbGUucHJvdG9idWYuTWV0aG9kEigKB29w", |
||||
"dGlvbnMYAyADKAsyFy5nb29nbGUucHJvdG9idWYuT3B0aW9uEg8KB3ZlcnNp", |
||||
"b24YBCABKAkSNgoOc291cmNlX2NvbnRleHQYBSABKAsyHi5nb29nbGUucHJv", |
||||
"dG9idWYuU291cmNlQ29udGV4dCKsAQoGTWV0aG9kEgwKBG5hbWUYASABKAkS", |
||||
"GAoQcmVxdWVzdF90eXBlX3VybBgCIAEoCRIZChFyZXF1ZXN0X3N0cmVhbWlu", |
||||
"ZxgDIAEoCBIZChFyZXNwb25zZV90eXBlX3VybBgEIAEoCRIaChJyZXNwb25z", |
||||
"ZV9zdHJlYW1pbmcYBSABKAgSKAoHb3B0aW9ucxgGIAMoCzIXLmdvb2dsZS5w", |
||||
"cm90b2J1Zi5PcHRpb25CSAoTY29tLmdvb2dsZS5wcm90b2J1ZkIIQXBpUHJv", |
||||
"dG9QAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IG", |
||||
"cHJvdG8z")); |
||||
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, |
||||
new pbr::FileDescriptor[] { |
||||
global::Google.Protobuf.WellKnownTypes.Proto.SourceContext.Descriptor, |
||||
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 |
||||
|
||||
} |
||||
} |
||||
#region Messages |
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public sealed partial class Api : pb::IMessage<Api> { |
||||
private static readonly pb::MessageParser<Api> _parser = new pb::MessageParser<Api>(() => new Api()); |
||||
public static pb::MessageParser<Api> Parser { get { return _parser; } } |
||||
|
||||
private static readonly string[] _fieldNames = new string[] { "methods", "name", "options", "source_context", "version" }; |
||||
private static readonly uint[] _fieldTags = new uint[] { 18, 10, 26, 42, 34 }; |
||||
public static pbr::MessageDescriptor Descriptor { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Api.Descriptor.MessageTypes[0]; } |
||||
} |
||||
|
||||
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Api.internal__static_google_protobuf_Api__FieldAccessorTable; } |
||||
} |
||||
|
||||
private bool _frozen = false; |
||||
public bool IsFrozen { get { return _frozen; } } |
||||
|
||||
public Api() { |
||||
OnConstruction(); |
||||
} |
||||
|
||||
partial void OnConstruction(); |
||||
|
||||
public Api(Api other) : this() { |
||||
name_ = other.name_; |
||||
methods_ = other.methods_.Clone(); |
||||
options_ = other.options_.Clone(); |
||||
version_ = other.version_; |
||||
SourceContext = other.sourceContext_ != null ? other.SourceContext.Clone() : null; |
||||
} |
||||
|
||||
public Api Clone() { |
||||
return new Api(this); |
||||
} |
||||
|
||||
public void Freeze() { |
||||
if (IsFrozen) { |
||||
return; |
||||
} |
||||
_frozen = true; |
||||
methods_.Freeze(); |
||||
options_.Freeze(); |
||||
if (sourceContext_ != null) SourceContext.Freeze(); |
||||
} |
||||
|
||||
public const int NameFieldNumber = 1; |
||||
private string name_ = ""; |
||||
public string Name { |
||||
get { return name_; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
name_ = value ?? ""; |
||||
} |
||||
} |
||||
|
||||
public const int MethodsFieldNumber = 2; |
||||
private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Method> _repeated_methods_codec |
||||
= 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>(); |
||||
public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Method> Methods { |
||||
get { return methods_; } |
||||
} |
||||
|
||||
public const int OptionsFieldNumber = 3; |
||||
private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Option> _repeated_options_codec |
||||
= 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>(); |
||||
public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> Options { |
||||
get { return options_; } |
||||
} |
||||
|
||||
public const int VersionFieldNumber = 4; |
||||
private string version_ = ""; |
||||
public string Version { |
||||
get { return version_; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
version_ = value ?? ""; |
||||
} |
||||
} |
||||
|
||||
public const int SourceContextFieldNumber = 5; |
||||
private global::Google.Protobuf.WellKnownTypes.SourceContext sourceContext_; |
||||
public global::Google.Protobuf.WellKnownTypes.SourceContext SourceContext { |
||||
get { return sourceContext_; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
sourceContext_ = value; |
||||
} |
||||
} |
||||
|
||||
public override bool Equals(object other) { |
||||
return Equals(other as Api); |
||||
} |
||||
|
||||
public bool Equals(Api other) { |
||||
if (ReferenceEquals(other, null)) { |
||||
return false; |
||||
} |
||||
if (ReferenceEquals(other, this)) { |
||||
return true; |
||||
} |
||||
if (Name != other.Name) return false; |
||||
if(!methods_.Equals(other.methods_)) return false; |
||||
if(!options_.Equals(other.options_)) return false; |
||||
if (Version != other.Version) return false; |
||||
if (!object.Equals(SourceContext, other.SourceContext)) return false; |
||||
return true; |
||||
} |
||||
|
||||
public override int GetHashCode() { |
||||
int hash = 1; |
||||
if (Name.Length != 0) hash ^= Name.GetHashCode(); |
||||
hash ^= methods_.GetHashCode(); |
||||
hash ^= options_.GetHashCode(); |
||||
if (Version.Length != 0) hash ^= Version.GetHashCode(); |
||||
if (sourceContext_ != null) hash ^= SourceContext.GetHashCode(); |
||||
return hash; |
||||
} |
||||
|
||||
public override string ToString() { |
||||
return pb::JsonFormatter.Default.Format(this); |
||||
} |
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) { |
||||
if (Name.Length != 0) { |
||||
output.WriteRawTag(10); |
||||
output.WriteString(Name); |
||||
} |
||||
methods_.WriteTo(output, _repeated_methods_codec); |
||||
options_.WriteTo(output, _repeated_options_codec); |
||||
if (Version.Length != 0) { |
||||
output.WriteRawTag(34); |
||||
output.WriteString(Version); |
||||
} |
||||
if (sourceContext_ != null) { |
||||
output.WriteRawTag(42); |
||||
output.WriteMessage(SourceContext); |
||||
} |
||||
} |
||||
|
||||
public int CalculateSize() { |
||||
int size = 0; |
||||
if (Name.Length != 0) { |
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); |
||||
} |
||||
size += methods_.CalculateSize(_repeated_methods_codec); |
||||
size += options_.CalculateSize(_repeated_options_codec); |
||||
if (Version.Length != 0) { |
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); |
||||
} |
||||
if (sourceContext_ != null) { |
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceContext); |
||||
} |
||||
return size; |
||||
} |
||||
|
||||
public void MergeFrom(Api other) { |
||||
if (other == null) { |
||||
return; |
||||
} |
||||
if (other.Name.Length != 0) { |
||||
Name = other.Name; |
||||
} |
||||
methods_.Add(other.methods_); |
||||
options_.Add(other.options_); |
||||
if (other.Version.Length != 0) { |
||||
Version = other.Version; |
||||
} |
||||
if (other.sourceContext_ != null) { |
||||
if (sourceContext_ == null) { |
||||
sourceContext_ = new global::Google.Protobuf.WellKnownTypes.SourceContext(); |
||||
} |
||||
SourceContext.MergeFrom(other.SourceContext); |
||||
} |
||||
} |
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) { |
||||
uint tag; |
||||
while (input.ReadTag(out tag)) { |
||||
switch(tag) { |
||||
case 0: |
||||
throw pb::InvalidProtocolBufferException.InvalidTag(); |
||||
default: |
||||
if (pb::WireFormat.IsEndGroupTag(tag)) { |
||||
return; |
||||
} |
||||
break; |
||||
case 10: { |
||||
Name = input.ReadString(); |
||||
break; |
||||
} |
||||
case 18: { |
||||
methods_.AddEntriesFrom(input, _repeated_methods_codec); |
||||
break; |
||||
} |
||||
case 26: { |
||||
options_.AddEntriesFrom(input, _repeated_options_codec); |
||||
break; |
||||
} |
||||
case 34: { |
||||
Version = input.ReadString(); |
||||
break; |
||||
} |
||||
case 42: { |
||||
if (sourceContext_ == null) { |
||||
sourceContext_ = new global::Google.Protobuf.WellKnownTypes.SourceContext(); |
||||
} |
||||
input.ReadMessage(sourceContext_); |
||||
break; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public sealed partial class Method : pb::IMessage<Method> { |
||||
private static readonly pb::MessageParser<Method> _parser = new pb::MessageParser<Method>(() => new Method()); |
||||
public static pb::MessageParser<Method> Parser { get { return _parser; } } |
||||
|
||||
private static readonly string[] _fieldNames = new string[] { "name", "options", "request_streaming", "request_type_url", "response_streaming", "response_type_url" }; |
||||
private static readonly uint[] _fieldTags = new uint[] { 10, 50, 24, 18, 40, 34 }; |
||||
public static pbr::MessageDescriptor Descriptor { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Api.Descriptor.MessageTypes[1]; } |
||||
} |
||||
|
||||
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Api.internal__static_google_protobuf_Method__FieldAccessorTable; } |
||||
} |
||||
|
||||
private bool _frozen = false; |
||||
public bool IsFrozen { get { return _frozen; } } |
||||
|
||||
public Method() { |
||||
OnConstruction(); |
||||
} |
||||
|
||||
partial void OnConstruction(); |
||||
|
||||
public Method(Method other) : this() { |
||||
name_ = other.name_; |
||||
requestTypeUrl_ = other.requestTypeUrl_; |
||||
requestStreaming_ = other.requestStreaming_; |
||||
responseTypeUrl_ = other.responseTypeUrl_; |
||||
responseStreaming_ = other.responseStreaming_; |
||||
options_ = other.options_.Clone(); |
||||
} |
||||
|
||||
public Method Clone() { |
||||
return new Method(this); |
||||
} |
||||
|
||||
public void Freeze() { |
||||
if (IsFrozen) { |
||||
return; |
||||
} |
||||
_frozen = true; |
||||
options_.Freeze(); |
||||
} |
||||
|
||||
public const int NameFieldNumber = 1; |
||||
private string name_ = ""; |
||||
public string Name { |
||||
get { return name_; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
name_ = value ?? ""; |
||||
} |
||||
} |
||||
|
||||
public const int RequestTypeUrlFieldNumber = 2; |
||||
private string requestTypeUrl_ = ""; |
||||
public string RequestTypeUrl { |
||||
get { return requestTypeUrl_; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
requestTypeUrl_ = value ?? ""; |
||||
} |
||||
} |
||||
|
||||
public const int RequestStreamingFieldNumber = 3; |
||||
private bool requestStreaming_; |
||||
public bool RequestStreaming { |
||||
get { return requestStreaming_; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
requestStreaming_ = value; |
||||
} |
||||
} |
||||
|
||||
public const int ResponseTypeUrlFieldNumber = 4; |
||||
private string responseTypeUrl_ = ""; |
||||
public string ResponseTypeUrl { |
||||
get { return responseTypeUrl_; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
responseTypeUrl_ = value ?? ""; |
||||
} |
||||
} |
||||
|
||||
public const int ResponseStreamingFieldNumber = 5; |
||||
private bool responseStreaming_; |
||||
public bool ResponseStreaming { |
||||
get { return responseStreaming_; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
responseStreaming_ = value; |
||||
} |
||||
} |
||||
|
||||
public const int OptionsFieldNumber = 6; |
||||
private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Option> _repeated_options_codec |
||||
= 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>(); |
||||
public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> Options { |
||||
get { return options_; } |
||||
} |
||||
|
||||
public override bool Equals(object other) { |
||||
return Equals(other as Method); |
||||
} |
||||
|
||||
public bool Equals(Method other) { |
||||
if (ReferenceEquals(other, null)) { |
||||
return false; |
||||
} |
||||
if (ReferenceEquals(other, this)) { |
||||
return true; |
||||
} |
||||
if (Name != other.Name) return false; |
||||
if (RequestTypeUrl != other.RequestTypeUrl) return false; |
||||
if (RequestStreaming != other.RequestStreaming) return false; |
||||
if (ResponseTypeUrl != other.ResponseTypeUrl) return false; |
||||
if (ResponseStreaming != other.ResponseStreaming) return false; |
||||
if(!options_.Equals(other.options_)) return false; |
||||
return true; |
||||
} |
||||
|
||||
public override int GetHashCode() { |
||||
int hash = 1; |
||||
if (Name.Length != 0) hash ^= Name.GetHashCode(); |
||||
if (RequestTypeUrl.Length != 0) hash ^= RequestTypeUrl.GetHashCode(); |
||||
if (RequestStreaming != false) hash ^= RequestStreaming.GetHashCode(); |
||||
if (ResponseTypeUrl.Length != 0) hash ^= ResponseTypeUrl.GetHashCode(); |
||||
if (ResponseStreaming != false) hash ^= ResponseStreaming.GetHashCode(); |
||||
hash ^= options_.GetHashCode(); |
||||
return hash; |
||||
} |
||||
|
||||
public override string ToString() { |
||||
return pb::JsonFormatter.Default.Format(this); |
||||
} |
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) { |
||||
if (Name.Length != 0) { |
||||
output.WriteRawTag(10); |
||||
output.WriteString(Name); |
||||
} |
||||
if (RequestTypeUrl.Length != 0) { |
||||
output.WriteRawTag(18); |
||||
output.WriteString(RequestTypeUrl); |
||||
} |
||||
if (RequestStreaming != false) { |
||||
output.WriteRawTag(24); |
||||
output.WriteBool(RequestStreaming); |
||||
} |
||||
if (ResponseTypeUrl.Length != 0) { |
||||
output.WriteRawTag(34); |
||||
output.WriteString(ResponseTypeUrl); |
||||
} |
||||
if (ResponseStreaming != false) { |
||||
output.WriteRawTag(40); |
||||
output.WriteBool(ResponseStreaming); |
||||
} |
||||
options_.WriteTo(output, _repeated_options_codec); |
||||
} |
||||
|
||||
public int CalculateSize() { |
||||
int size = 0; |
||||
if (Name.Length != 0) { |
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); |
||||
} |
||||
if (RequestTypeUrl.Length != 0) { |
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestTypeUrl); |
||||
} |
||||
if (RequestStreaming != false) { |
||||
size += 1 + 1; |
||||
} |
||||
if (ResponseTypeUrl.Length != 0) { |
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResponseTypeUrl); |
||||
} |
||||
if (ResponseStreaming != false) { |
||||
size += 1 + 1; |
||||
} |
||||
size += options_.CalculateSize(_repeated_options_codec); |
||||
return size; |
||||
} |
||||
|
||||
public void MergeFrom(Method other) { |
||||
if (other == null) { |
||||
return; |
||||
} |
||||
if (other.Name.Length != 0) { |
||||
Name = other.Name; |
||||
} |
||||
if (other.RequestTypeUrl.Length != 0) { |
||||
RequestTypeUrl = other.RequestTypeUrl; |
||||
} |
||||
if (other.RequestStreaming != false) { |
||||
RequestStreaming = other.RequestStreaming; |
||||
} |
||||
if (other.ResponseTypeUrl.Length != 0) { |
||||
ResponseTypeUrl = other.ResponseTypeUrl; |
||||
} |
||||
if (other.ResponseStreaming != false) { |
||||
ResponseStreaming = other.ResponseStreaming; |
||||
} |
||||
options_.Add(other.options_); |
||||
} |
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) { |
||||
uint tag; |
||||
while (input.ReadTag(out tag)) { |
||||
switch(tag) { |
||||
case 0: |
||||
throw pb::InvalidProtocolBufferException.InvalidTag(); |
||||
default: |
||||
if (pb::WireFormat.IsEndGroupTag(tag)) { |
||||
return; |
||||
} |
||||
break; |
||||
case 10: { |
||||
Name = input.ReadString(); |
||||
break; |
||||
} |
||||
case 18: { |
||||
RequestTypeUrl = input.ReadString(); |
||||
break; |
||||
} |
||||
case 24: { |
||||
RequestStreaming = input.ReadBool(); |
||||
break; |
||||
} |
||||
case 34: { |
||||
ResponseTypeUrl = input.ReadString(); |
||||
break; |
||||
} |
||||
case 40: { |
||||
ResponseStreaming = input.ReadBool(); |
||||
break; |
||||
} |
||||
case 50: { |
||||
options_.AddEntriesFrom(input, _repeated_options_codec); |
||||
break; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
#endregion |
||||
|
||||
} |
||||
|
||||
#endregion Designer generated code |
@ -0,0 +1,196 @@ |
||||
// Generated by the protocol buffer compiler. DO NOT EDIT! |
||||
// source: google/protobuf/duration.proto |
||||
#pragma warning disable 1591, 0612, 3021 |
||||
#region Designer generated code |
||||
|
||||
using pb = global::Google.Protobuf; |
||||
using pbc = global::Google.Protobuf.Collections; |
||||
using pbr = global::Google.Protobuf.Reflection; |
||||
using scg = global::System.Collections.Generic; |
||||
namespace Google.Protobuf.WellKnownTypes { |
||||
|
||||
namespace Proto { |
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public static partial class Duration { |
||||
|
||||
#region Static variables |
||||
internal static pbr::FieldAccessorTable internal__static_google_protobuf_Duration__FieldAccessorTable; |
||||
#endregion |
||||
#region Descriptor |
||||
public static pbr::FileDescriptor Descriptor { |
||||
get { return descriptor; } |
||||
} |
||||
private static pbr::FileDescriptor descriptor; |
||||
|
||||
static Duration() { |
||||
byte[] descriptorData = global::System.Convert.FromBase64String( |
||||
string.Concat( |
||||
"Ch5nb29nbGUvcHJvdG9idWYvZHVyYXRpb24ucHJvdG8SD2dvb2dsZS5wcm90", |
||||
"b2J1ZiIqCghEdXJhdGlvbhIPCgdzZWNvbmRzGAEgASgDEg0KBW5hbm9zGAIg", |
||||
"ASgFQlAKE2NvbS5nb29nbGUucHJvdG9idWZCDUR1cmF0aW9uUHJvdG9QAaAB", |
||||
"AaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJv", |
||||
"dG8z")); |
||||
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, |
||||
new pbr::FileDescriptor[] { |
||||
}); |
||||
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 |
||||
|
||||
} |
||||
} |
||||
#region Messages |
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public sealed partial class Duration : pb::IMessage<Duration> { |
||||
private static readonly pb::MessageParser<Duration> _parser = new pb::MessageParser<Duration>(() => new Duration()); |
||||
public static pb::MessageParser<Duration> Parser { get { return _parser; } } |
||||
|
||||
private static readonly string[] _fieldNames = new string[] { "nanos", "seconds" }; |
||||
private static readonly uint[] _fieldTags = new uint[] { 16, 8 }; |
||||
public static pbr::MessageDescriptor Descriptor { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Duration.Descriptor.MessageTypes[0]; } |
||||
} |
||||
|
||||
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Duration.internal__static_google_protobuf_Duration__FieldAccessorTable; } |
||||
} |
||||
|
||||
private bool _frozen = false; |
||||
public bool IsFrozen { get { return _frozen; } } |
||||
|
||||
public Duration() { |
||||
OnConstruction(); |
||||
} |
||||
|
||||
partial void OnConstruction(); |
||||
|
||||
public Duration(Duration other) : this() { |
||||
seconds_ = other.seconds_; |
||||
nanos_ = other.nanos_; |
||||
} |
||||
|
||||
public Duration Clone() { |
||||
return new Duration(this); |
||||
} |
||||
|
||||
public void Freeze() { |
||||
if (IsFrozen) { |
||||
return; |
||||
} |
||||
_frozen = true; |
||||
} |
||||
|
||||
public const int SecondsFieldNumber = 1; |
||||
private long seconds_; |
||||
public long Seconds { |
||||
get { return seconds_; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
seconds_ = value; |
||||
} |
||||
} |
||||
|
||||
public const int NanosFieldNumber = 2; |
||||
private int nanos_; |
||||
public int Nanos { |
||||
get { return nanos_; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
nanos_ = value; |
||||
} |
||||
} |
||||
|
||||
public override bool Equals(object other) { |
||||
return Equals(other as Duration); |
||||
} |
||||
|
||||
public bool Equals(Duration other) { |
||||
if (ReferenceEquals(other, null)) { |
||||
return false; |
||||
} |
||||
if (ReferenceEquals(other, this)) { |
||||
return true; |
||||
} |
||||
if (Seconds != other.Seconds) return false; |
||||
if (Nanos != other.Nanos) return false; |
||||
return true; |
||||
} |
||||
|
||||
public override int GetHashCode() { |
||||
int hash = 1; |
||||
if (Seconds != 0L) hash ^= Seconds.GetHashCode(); |
||||
if (Nanos != 0) hash ^= Nanos.GetHashCode(); |
||||
return hash; |
||||
} |
||||
|
||||
public override string ToString() { |
||||
return pb::JsonFormatter.Default.Format(this); |
||||
} |
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) { |
||||
if (Seconds != 0L) { |
||||
output.WriteRawTag(8); |
||||
output.WriteInt64(Seconds); |
||||
} |
||||
if (Nanos != 0) { |
||||
output.WriteRawTag(16); |
||||
output.WriteInt32(Nanos); |
||||
} |
||||
} |
||||
|
||||
public int CalculateSize() { |
||||
int size = 0; |
||||
if (Seconds != 0L) { |
||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Seconds); |
||||
} |
||||
if (Nanos != 0) { |
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Nanos); |
||||
} |
||||
return size; |
||||
} |
||||
|
||||
public void MergeFrom(Duration other) { |
||||
if (other == null) { |
||||
return; |
||||
} |
||||
if (other.Seconds != 0L) { |
||||
Seconds = other.Seconds; |
||||
} |
||||
if (other.Nanos != 0) { |
||||
Nanos = other.Nanos; |
||||
} |
||||
} |
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) { |
||||
uint tag; |
||||
while (input.ReadTag(out tag)) { |
||||
switch(tag) { |
||||
case 0: |
||||
throw pb::InvalidProtocolBufferException.InvalidTag(); |
||||
default: |
||||
if (pb::WireFormat.IsEndGroupTag(tag)) { |
||||
return; |
||||
} |
||||
break; |
||||
case 8: { |
||||
Seconds = input.ReadInt64(); |
||||
break; |
||||
} |
||||
case 16: { |
||||
Nanos = input.ReadInt32(); |
||||
break; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
#endregion |
||||
|
||||
} |
||||
|
||||
#endregion Designer generated code |
@ -0,0 +1,141 @@ |
||||
// Generated by the protocol buffer compiler. DO NOT EDIT! |
||||
// source: google/protobuf/empty.proto |
||||
#pragma warning disable 1591, 0612, 3021 |
||||
#region Designer generated code |
||||
|
||||
using pb = global::Google.Protobuf; |
||||
using pbc = global::Google.Protobuf.Collections; |
||||
using pbr = global::Google.Protobuf.Reflection; |
||||
using scg = global::System.Collections.Generic; |
||||
namespace Google.Protobuf.WellKnownTypes { |
||||
|
||||
namespace Proto { |
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public static partial class Empty { |
||||
|
||||
#region Static variables |
||||
internal static pbr::FieldAccessorTable internal__static_google_protobuf_Empty__FieldAccessorTable; |
||||
#endregion |
||||
#region Descriptor |
||||
public static pbr::FileDescriptor Descriptor { |
||||
get { return descriptor; } |
||||
} |
||||
private static pbr::FileDescriptor descriptor; |
||||
|
||||
static Empty() { |
||||
byte[] descriptorData = global::System.Convert.FromBase64String( |
||||
string.Concat( |
||||
"Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1", |
||||
"ZiIHCgVFbXB0eUJKChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3Rv", |
||||
"UAGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnBy", |
||||
"b3RvMw==")); |
||||
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, |
||||
new pbr::FileDescriptor[] { |
||||
}); |
||||
internal__static_google_protobuf_Empty__FieldAccessorTable = |
||||
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.WellKnownTypes.Empty), descriptor.MessageTypes[0], |
||||
new string[] { }, new string[] { }); |
||||
} |
||||
#endregion |
||||
|
||||
} |
||||
} |
||||
#region Messages |
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public sealed partial class Empty : pb::IMessage<Empty> { |
||||
private static readonly pb::MessageParser<Empty> _parser = new pb::MessageParser<Empty>(() => new Empty()); |
||||
public static pb::MessageParser<Empty> Parser { get { return _parser; } } |
||||
|
||||
private static readonly string[] _fieldNames = new string[] { }; |
||||
private static readonly uint[] _fieldTags = new uint[] { }; |
||||
public static pbr::MessageDescriptor Descriptor { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Empty.Descriptor.MessageTypes[0]; } |
||||
} |
||||
|
||||
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Empty.internal__static_google_protobuf_Empty__FieldAccessorTable; } |
||||
} |
||||
|
||||
private bool _frozen = false; |
||||
public bool IsFrozen { get { return _frozen; } } |
||||
|
||||
public Empty() { |
||||
OnConstruction(); |
||||
} |
||||
|
||||
partial void OnConstruction(); |
||||
|
||||
public Empty(Empty other) : this() { |
||||
} |
||||
|
||||
public Empty Clone() { |
||||
return new Empty(this); |
||||
} |
||||
|
||||
public void Freeze() { |
||||
if (IsFrozen) { |
||||
return; |
||||
} |
||||
_frozen = true; |
||||
} |
||||
|
||||
public override bool Equals(object other) { |
||||
return Equals(other as Empty); |
||||
} |
||||
|
||||
public bool Equals(Empty other) { |
||||
if (ReferenceEquals(other, null)) { |
||||
return false; |
||||
} |
||||
if (ReferenceEquals(other, this)) { |
||||
return true; |
||||
} |
||||
return true; |
||||
} |
||||
|
||||
public override int GetHashCode() { |
||||
int hash = 1; |
||||
return hash; |
||||
} |
||||
|
||||
public override string ToString() { |
||||
return pb::JsonFormatter.Default.Format(this); |
||||
} |
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) { |
||||
} |
||||
|
||||
public int CalculateSize() { |
||||
int size = 0; |
||||
return size; |
||||
} |
||||
|
||||
public void MergeFrom(Empty other) { |
||||
if (other == null) { |
||||
return; |
||||
} |
||||
} |
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) { |
||||
uint tag; |
||||
while (input.ReadTag(out tag)) { |
||||
switch(tag) { |
||||
case 0: |
||||
throw pb::InvalidProtocolBufferException.InvalidTag(); |
||||
default: |
||||
if (pb::WireFormat.IsEndGroupTag(tag)) { |
||||
return; |
||||
} |
||||
break; |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
#endregion |
||||
|
||||
} |
||||
|
||||
#endregion Designer generated code |
@ -0,0 +1,160 @@ |
||||
// Generated by the protocol buffer compiler. DO NOT EDIT! |
||||
// source: google/protobuf/field_mask.proto |
||||
#pragma warning disable 1591, 0612, 3021 |
||||
#region Designer generated code |
||||
|
||||
using pb = global::Google.Protobuf; |
||||
using pbc = global::Google.Protobuf.Collections; |
||||
using pbr = global::Google.Protobuf.Reflection; |
||||
using scg = global::System.Collections.Generic; |
||||
namespace Google.Protobuf.WellKnownTypes { |
||||
|
||||
namespace Proto { |
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public static partial class FieldMask { |
||||
|
||||
#region Static variables |
||||
internal static pbr::FieldAccessorTable internal__static_google_protobuf_FieldMask__FieldAccessorTable; |
||||
#endregion |
||||
#region Descriptor |
||||
public static pbr::FileDescriptor Descriptor { |
||||
get { return descriptor; } |
||||
} |
||||
private static pbr::FileDescriptor descriptor; |
||||
|
||||
static FieldMask() { |
||||
byte[] descriptorData = global::System.Convert.FromBase64String( |
||||
string.Concat( |
||||
"CiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxIPZ29vZ2xlLnBy", |
||||
"b3RvYnVmIhoKCUZpZWxkTWFzaxINCgVwYXRocxgBIAMoCUJOChNjb20uZ29v", |
||||
"Z2xlLnByb3RvYnVmQg5GaWVsZE1hc2tQcm90b1ABogIDR1BCqgIeR29vZ2xl", |
||||
"LlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM=")); |
||||
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, |
||||
new pbr::FileDescriptor[] { |
||||
}); |
||||
internal__static_google_protobuf_FieldMask__FieldAccessorTable = |
||||
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.WellKnownTypes.FieldMask), descriptor.MessageTypes[0], |
||||
new string[] { "Paths", }, new string[] { }); |
||||
} |
||||
#endregion |
||||
|
||||
} |
||||
} |
||||
#region Messages |
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public sealed partial class FieldMask : pb::IMessage<FieldMask> { |
||||
private static readonly pb::MessageParser<FieldMask> _parser = new pb::MessageParser<FieldMask>(() => new FieldMask()); |
||||
public static pb::MessageParser<FieldMask> Parser { get { return _parser; } } |
||||
|
||||
private static readonly string[] _fieldNames = new string[] { "paths" }; |
||||
private static readonly uint[] _fieldTags = new uint[] { 10 }; |
||||
public static pbr::MessageDescriptor Descriptor { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.FieldMask.Descriptor.MessageTypes[0]; } |
||||
} |
||||
|
||||
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.FieldMask.internal__static_google_protobuf_FieldMask__FieldAccessorTable; } |
||||
} |
||||
|
||||
private bool _frozen = false; |
||||
public bool IsFrozen { get { return _frozen; } } |
||||
|
||||
public FieldMask() { |
||||
OnConstruction(); |
||||
} |
||||
|
||||
partial void OnConstruction(); |
||||
|
||||
public FieldMask(FieldMask other) : this() { |
||||
paths_ = other.paths_.Clone(); |
||||
} |
||||
|
||||
public FieldMask Clone() { |
||||
return new FieldMask(this); |
||||
} |
||||
|
||||
public void Freeze() { |
||||
if (IsFrozen) { |
||||
return; |
||||
} |
||||
_frozen = true; |
||||
paths_.Freeze(); |
||||
} |
||||
|
||||
public const int PathsFieldNumber = 1; |
||||
private static readonly pb::FieldCodec<string> _repeated_paths_codec |
||||
= pb::FieldCodec.ForString(10); |
||||
private readonly pbc::RepeatedField<string> paths_ = new pbc::RepeatedField<string>(); |
||||
public pbc::RepeatedField<string> Paths { |
||||
get { return paths_; } |
||||
} |
||||
|
||||
public override bool Equals(object other) { |
||||
return Equals(other as FieldMask); |
||||
} |
||||
|
||||
public bool Equals(FieldMask other) { |
||||
if (ReferenceEquals(other, null)) { |
||||
return false; |
||||
} |
||||
if (ReferenceEquals(other, this)) { |
||||
return true; |
||||
} |
||||
if(!paths_.Equals(other.paths_)) return false; |
||||
return true; |
||||
} |
||||
|
||||
public override int GetHashCode() { |
||||
int hash = 1; |
||||
hash ^= paths_.GetHashCode(); |
||||
return hash; |
||||
} |
||||
|
||||
public override string ToString() { |
||||
return pb::JsonFormatter.Default.Format(this); |
||||
} |
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) { |
||||
paths_.WriteTo(output, _repeated_paths_codec); |
||||
} |
||||
|
||||
public int CalculateSize() { |
||||
int size = 0; |
||||
size += paths_.CalculateSize(_repeated_paths_codec); |
||||
return size; |
||||
} |
||||
|
||||
public void MergeFrom(FieldMask other) { |
||||
if (other == null) { |
||||
return; |
||||
} |
||||
paths_.Add(other.paths_); |
||||
} |
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) { |
||||
uint tag; |
||||
while (input.ReadTag(out tag)) { |
||||
switch(tag) { |
||||
case 0: |
||||
throw pb::InvalidProtocolBufferException.InvalidTag(); |
||||
default: |
||||
if (pb::WireFormat.IsEndGroupTag(tag)) { |
||||
return; |
||||
} |
||||
break; |
||||
case 10: { |
||||
paths_.AddEntriesFrom(input, _repeated_paths_codec); |
||||
break; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
#endregion |
||||
|
||||
} |
||||
|
||||
#endregion Designer generated code |
@ -0,0 +1,169 @@ |
||||
// Generated by the protocol buffer compiler. DO NOT EDIT! |
||||
// source: google/protobuf/source_context.proto |
||||
#pragma warning disable 1591, 0612, 3021 |
||||
#region Designer generated code |
||||
|
||||
using pb = global::Google.Protobuf; |
||||
using pbc = global::Google.Protobuf.Collections; |
||||
using pbr = global::Google.Protobuf.Reflection; |
||||
using scg = global::System.Collections.Generic; |
||||
namespace Google.Protobuf.WellKnownTypes { |
||||
|
||||
namespace Proto { |
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public static partial class SourceContext { |
||||
|
||||
#region Static variables |
||||
internal static pbr::FieldAccessorTable internal__static_google_protobuf_SourceContext__FieldAccessorTable; |
||||
#endregion |
||||
#region Descriptor |
||||
public static pbr::FileDescriptor Descriptor { |
||||
get { return descriptor; } |
||||
} |
||||
private static pbr::FileDescriptor descriptor; |
||||
|
||||
static SourceContext() { |
||||
byte[] descriptorData = global::System.Convert.FromBase64String( |
||||
string.Concat( |
||||
"CiRnb29nbGUvcHJvdG9idWYvc291cmNlX2NvbnRleHQucHJvdG8SD2dvb2ds", |
||||
"ZS5wcm90b2J1ZiIiCg1Tb3VyY2VDb250ZXh0EhEKCWZpbGVfbmFtZRgBIAEo", |
||||
"CUJSChNjb20uZ29vZ2xlLnByb3RvYnVmQhJTb3VyY2VDb250ZXh0UHJvdG9Q", |
||||
"AaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJv", |
||||
"dG8z")); |
||||
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, |
||||
new pbr::FileDescriptor[] { |
||||
}); |
||||
internal__static_google_protobuf_SourceContext__FieldAccessorTable = |
||||
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.WellKnownTypes.SourceContext), descriptor.MessageTypes[0], |
||||
new string[] { "FileName", }, new string[] { }); |
||||
} |
||||
#endregion |
||||
|
||||
} |
||||
} |
||||
#region Messages |
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public sealed partial class SourceContext : pb::IMessage<SourceContext> { |
||||
private static readonly pb::MessageParser<SourceContext> _parser = new pb::MessageParser<SourceContext>(() => new SourceContext()); |
||||
public static pb::MessageParser<SourceContext> Parser { get { return _parser; } } |
||||
|
||||
private static readonly string[] _fieldNames = new string[] { "file_name" }; |
||||
private static readonly uint[] _fieldTags = new uint[] { 10 }; |
||||
public static pbr::MessageDescriptor Descriptor { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.SourceContext.Descriptor.MessageTypes[0]; } |
||||
} |
||||
|
||||
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.SourceContext.internal__static_google_protobuf_SourceContext__FieldAccessorTable; } |
||||
} |
||||
|
||||
private bool _frozen = false; |
||||
public bool IsFrozen { get { return _frozen; } } |
||||
|
||||
public SourceContext() { |
||||
OnConstruction(); |
||||
} |
||||
|
||||
partial void OnConstruction(); |
||||
|
||||
public SourceContext(SourceContext other) : this() { |
||||
fileName_ = other.fileName_; |
||||
} |
||||
|
||||
public SourceContext Clone() { |
||||
return new SourceContext(this); |
||||
} |
||||
|
||||
public void Freeze() { |
||||
if (IsFrozen) { |
||||
return; |
||||
} |
||||
_frozen = true; |
||||
} |
||||
|
||||
public const int FileNameFieldNumber = 1; |
||||
private string fileName_ = ""; |
||||
public string FileName { |
||||
get { return fileName_; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
fileName_ = value ?? ""; |
||||
} |
||||
} |
||||
|
||||
public override bool Equals(object other) { |
||||
return Equals(other as SourceContext); |
||||
} |
||||
|
||||
public bool Equals(SourceContext other) { |
||||
if (ReferenceEquals(other, null)) { |
||||
return false; |
||||
} |
||||
if (ReferenceEquals(other, this)) { |
||||
return true; |
||||
} |
||||
if (FileName != other.FileName) return false; |
||||
return true; |
||||
} |
||||
|
||||
public override int GetHashCode() { |
||||
int hash = 1; |
||||
if (FileName.Length != 0) hash ^= FileName.GetHashCode(); |
||||
return hash; |
||||
} |
||||
|
||||
public override string ToString() { |
||||
return pb::JsonFormatter.Default.Format(this); |
||||
} |
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) { |
||||
if (FileName.Length != 0) { |
||||
output.WriteRawTag(10); |
||||
output.WriteString(FileName); |
||||
} |
||||
} |
||||
|
||||
public int CalculateSize() { |
||||
int size = 0; |
||||
if (FileName.Length != 0) { |
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); |
||||
} |
||||
return size; |
||||
} |
||||
|
||||
public void MergeFrom(SourceContext other) { |
||||
if (other == null) { |
||||
return; |
||||
} |
||||
if (other.FileName.Length != 0) { |
||||
FileName = other.FileName; |
||||
} |
||||
} |
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) { |
||||
uint tag; |
||||
while (input.ReadTag(out tag)) { |
||||
switch(tag) { |
||||
case 0: |
||||
throw pb::InvalidProtocolBufferException.InvalidTag(); |
||||
default: |
||||
if (pb::WireFormat.IsEndGroupTag(tag)) { |
||||
return; |
||||
} |
||||
break; |
||||
case 10: { |
||||
FileName = input.ReadString(); |
||||
break; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
#endregion |
||||
|
||||
} |
||||
|
||||
#endregion Designer generated code |
@ -0,0 +1,764 @@ |
||||
// Generated by the protocol buffer compiler. DO NOT EDIT! |
||||
// source: google/protobuf/struct.proto |
||||
#pragma warning disable 1591, 0612, 3021 |
||||
#region Designer generated code |
||||
|
||||
using pb = global::Google.Protobuf; |
||||
using pbc = global::Google.Protobuf.Collections; |
||||
using pbr = global::Google.Protobuf.Reflection; |
||||
using scg = global::System.Collections.Generic; |
||||
namespace Google.Protobuf.WellKnownTypes { |
||||
|
||||
namespace Proto { |
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
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_Struct_FieldsEntry__FieldAccessorTable; |
||||
internal static pbr::FieldAccessorTable internal__static_google_protobuf_Value__FieldAccessorTable; |
||||
internal static pbr::FieldAccessorTable internal__static_google_protobuf_ListValue__FieldAccessorTable; |
||||
#endregion |
||||
#region Descriptor |
||||
public static pbr::FileDescriptor Descriptor { |
||||
get { return descriptor; } |
||||
} |
||||
private static pbr::FileDescriptor descriptor; |
||||
|
||||
static Struct() { |
||||
byte[] descriptorData = global::System.Convert.FromBase64String( |
||||
string.Concat( |
||||
"Chxnb29nbGUvcHJvdG9idWYvc3RydWN0LnByb3RvEg9nb29nbGUucHJvdG9i", |
||||
"dWYihAEKBlN0cnVjdBIzCgZmaWVsZHMYASADKAsyIy5nb29nbGUucHJvdG9i", |
||||
"dWYuU3RydWN0LkZpZWxkc0VudHJ5GkUKC0ZpZWxkc0VudHJ5EgsKA2tleRgB", |
||||
"IAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZToC", |
||||
"OAEi6gEKBVZhbHVlEjAKCm51bGxfdmFsdWUYASABKA4yGi5nb29nbGUucHJv", |
||||
"dG9idWYuTnVsbFZhbHVlSAASFgoMbnVtYmVyX3ZhbHVlGAIgASgBSAASFgoM", |
||||
"c3RyaW5nX3ZhbHVlGAMgASgJSAASFAoKYm9vbF92YWx1ZRgEIAEoCEgAEi8K", |
||||
"DHN0cnVjdF92YWx1ZRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RI", |
||||
"ABIwCgpsaXN0X3ZhbHVlGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLkxpc3RW", |
||||
"YWx1ZUgAQgYKBGtpbmQiMwoJTGlzdFZhbHVlEiYKBnZhbHVlcxgBIAMoCzIW", |
||||
"Lmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSobCglOdWxsVmFsdWUSDgoKTlVMTF9W", |
||||
"QUxVRRAAQk4KE2NvbS5nb29nbGUucHJvdG9idWZCC1N0cnVjdFByb3RvUAGg", |
||||
"AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnBy", |
||||
"b3RvMw==")); |
||||
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, |
||||
new pbr::FileDescriptor[] { |
||||
}); |
||||
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_Struct_FieldsEntry__FieldAccessorTable = |
||||
new pbr::FieldAccessorTable(typeof(global::Google.Protobuf.WellKnownTypes.Struct.Types.FieldsEntry), descriptor.MessageTypes[0].NestedTypes[0], |
||||
new string[] { "Key", "Value", }, 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 |
||||
|
||||
} |
||||
} |
||||
#region Enums |
||||
public enum NullValue { |
||||
NULL_VALUE = 0, |
||||
} |
||||
|
||||
#endregion |
||||
|
||||
#region Messages |
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public sealed partial class Struct : pb::IMessage<Struct> { |
||||
private static readonly pb::MessageParser<Struct> _parser = new pb::MessageParser<Struct>(() => new Struct()); |
||||
public static pb::MessageParser<Struct> Parser { get { return _parser; } } |
||||
|
||||
private static readonly string[] _fieldNames = new string[] { "fields" }; |
||||
private static readonly uint[] _fieldTags = new uint[] { 10 }; |
||||
public static pbr::MessageDescriptor Descriptor { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Struct.Descriptor.MessageTypes[0]; } |
||||
} |
||||
|
||||
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Struct.internal__static_google_protobuf_Struct__FieldAccessorTable; } |
||||
} |
||||
|
||||
private bool _frozen = false; |
||||
public bool IsFrozen { get { return _frozen; } } |
||||
|
||||
public Struct() { |
||||
OnConstruction(); |
||||
} |
||||
|
||||
partial void OnConstruction(); |
||||
|
||||
public Struct(Struct other) : this() { |
||||
fields_ = other.fields_.Clone(); |
||||
} |
||||
|
||||
public Struct Clone() { |
||||
return new Struct(this); |
||||
} |
||||
|
||||
public void Freeze() { |
||||
if (IsFrozen) { |
||||
return; |
||||
} |
||||
_frozen = true; |
||||
fields_.Freeze(); |
||||
} |
||||
|
||||
public const int FieldsFieldNumber = 1; |
||||
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); |
||||
private readonly pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value> fields_ = new pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value>(); |
||||
public pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value> Fields { |
||||
get { return fields_; } |
||||
} |
||||
|
||||
public override bool Equals(object other) { |
||||
return Equals(other as Struct); |
||||
} |
||||
|
||||
public bool Equals(Struct other) { |
||||
if (ReferenceEquals(other, null)) { |
||||
return false; |
||||
} |
||||
if (ReferenceEquals(other, this)) { |
||||
return true; |
||||
} |
||||
if (!Fields.Equals(other.Fields)) return false; |
||||
return true; |
||||
} |
||||
|
||||
public override int GetHashCode() { |
||||
int hash = 1; |
||||
hash ^= Fields.GetHashCode(); |
||||
return hash; |
||||
} |
||||
|
||||
public override string ToString() { |
||||
return pb::JsonFormatter.Default.Format(this); |
||||
} |
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) { |
||||
fields_.WriteTo(output, _map_fields_codec); |
||||
} |
||||
|
||||
public int CalculateSize() { |
||||
int size = 0; |
||||
size += fields_.CalculateSize(_map_fields_codec); |
||||
return size; |
||||
} |
||||
|
||||
public void MergeFrom(Struct other) { |
||||
if (other == null) { |
||||
return; |
||||
} |
||||
fields_.Add(other.fields_); |
||||
} |
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) { |
||||
uint tag; |
||||
while (input.ReadTag(out tag)) { |
||||
switch(tag) { |
||||
case 0: |
||||
throw pb::InvalidProtocolBufferException.InvalidTag(); |
||||
default: |
||||
if (pb::WireFormat.IsEndGroupTag(tag)) { |
||||
return; |
||||
} |
||||
break; |
||||
case 10: { |
||||
fields_.AddEntriesFrom(input, _map_fields_codec); |
||||
break; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
#region Nested types |
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public static partial class Types { |
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public sealed partial class FieldsEntry : pb::IMessage<FieldsEntry> { |
||||
private static readonly pb::MessageParser<FieldsEntry> _parser = new pb::MessageParser<FieldsEntry>(() => new FieldsEntry()); |
||||
public static pb::MessageParser<FieldsEntry> Parser { get { return _parser; } } |
||||
|
||||
private static readonly string[] _fieldNames = new string[] { "key", "value" }; |
||||
private static readonly uint[] _fieldTags = new uint[] { 10, 18 }; |
||||
public static pbr::MessageDescriptor Descriptor { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Struct.Descriptor.NestedTypes[0]; } |
||||
} |
||||
|
||||
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Struct.internal__static_google_protobuf_Struct_FieldsEntry__FieldAccessorTable; } |
||||
} |
||||
|
||||
private bool _frozen = false; |
||||
public bool IsFrozen { get { return _frozen; } } |
||||
|
||||
public FieldsEntry() { |
||||
OnConstruction(); |
||||
} |
||||
|
||||
partial void OnConstruction(); |
||||
|
||||
public FieldsEntry(FieldsEntry other) : this() { |
||||
key_ = other.key_; |
||||
Value = other.value_ != null ? other.Value.Clone() : null; |
||||
} |
||||
|
||||
public FieldsEntry Clone() { |
||||
return new FieldsEntry(this); |
||||
} |
||||
|
||||
public void Freeze() { |
||||
if (IsFrozen) { |
||||
return; |
||||
} |
||||
_frozen = true; |
||||
if (value_ != null) Value.Freeze(); |
||||
} |
||||
|
||||
public const int KeyFieldNumber = 1; |
||||
private string key_ = ""; |
||||
public string Key { |
||||
get { return key_; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
key_ = value ?? ""; |
||||
} |
||||
} |
||||
|
||||
public const int ValueFieldNumber = 2; |
||||
private global::Google.Protobuf.WellKnownTypes.Value value_; |
||||
public global::Google.Protobuf.WellKnownTypes.Value Value { |
||||
get { return value_; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
value_ = value; |
||||
} |
||||
} |
||||
|
||||
public override bool Equals(object other) { |
||||
return Equals(other as FieldsEntry); |
||||
} |
||||
|
||||
public bool Equals(FieldsEntry other) { |
||||
if (ReferenceEquals(other, null)) { |
||||
return false; |
||||
} |
||||
if (ReferenceEquals(other, this)) { |
||||
return true; |
||||
} |
||||
if (Key != other.Key) return false; |
||||
if (!object.Equals(Value, other.Value)) return false; |
||||
return true; |
||||
} |
||||
|
||||
public override int GetHashCode() { |
||||
int hash = 1; |
||||
if (Key.Length != 0) hash ^= Key.GetHashCode(); |
||||
if (value_ != null) hash ^= Value.GetHashCode(); |
||||
return hash; |
||||
} |
||||
|
||||
public override string ToString() { |
||||
return pb::JsonFormatter.Default.Format(this); |
||||
} |
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) { |
||||
if (Key.Length != 0) { |
||||
output.WriteRawTag(10); |
||||
output.WriteString(Key); |
||||
} |
||||
if (value_ != null) { |
||||
output.WriteRawTag(18); |
||||
output.WriteMessage(Value); |
||||
} |
||||
} |
||||
|
||||
public int CalculateSize() { |
||||
int size = 0; |
||||
if (Key.Length != 0) { |
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); |
||||
} |
||||
if (value_ != null) { |
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); |
||||
} |
||||
return size; |
||||
} |
||||
|
||||
public void MergeFrom(FieldsEntry other) { |
||||
if (other == null) { |
||||
return; |
||||
} |
||||
if (other.Key.Length != 0) { |
||||
Key = other.Key; |
||||
} |
||||
if (other.value_ != null) { |
||||
if (value_ == null) { |
||||
value_ = new global::Google.Protobuf.WellKnownTypes.Value(); |
||||
} |
||||
Value.MergeFrom(other.Value); |
||||
} |
||||
} |
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) { |
||||
uint tag; |
||||
while (input.ReadTag(out tag)) { |
||||
switch(tag) { |
||||
case 0: |
||||
throw pb::InvalidProtocolBufferException.InvalidTag(); |
||||
default: |
||||
if (pb::WireFormat.IsEndGroupTag(tag)) { |
||||
return; |
||||
} |
||||
break; |
||||
case 10: { |
||||
Key = input.ReadString(); |
||||
break; |
||||
} |
||||
case 18: { |
||||
if (value_ == null) { |
||||
value_ = new global::Google.Protobuf.WellKnownTypes.Value(); |
||||
} |
||||
input.ReadMessage(value_); |
||||
break; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
} |
||||
#endregion |
||||
|
||||
} |
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public sealed partial class Value : pb::IMessage<Value> { |
||||
private static readonly pb::MessageParser<Value> _parser = new pb::MessageParser<Value>(() => new Value()); |
||||
public static pb::MessageParser<Value> Parser { get { return _parser; } } |
||||
|
||||
private static readonly string[] _fieldNames = new string[] { "bool_value", "list_value", "null_value", "number_value", "string_value", "struct_value" }; |
||||
private static readonly uint[] _fieldTags = new uint[] { 32, 50, 8, 17, 26, 42 }; |
||||
public static pbr::MessageDescriptor Descriptor { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Struct.Descriptor.MessageTypes[1]; } |
||||
} |
||||
|
||||
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Struct.internal__static_google_protobuf_Value__FieldAccessorTable; } |
||||
} |
||||
|
||||
private bool _frozen = false; |
||||
public bool IsFrozen { get { return _frozen; } } |
||||
|
||||
public Value() { |
||||
OnConstruction(); |
||||
} |
||||
|
||||
partial void OnConstruction(); |
||||
|
||||
public Value(Value other) : this() { |
||||
switch (other.KindCase) { |
||||
case KindOneofCase.NullValue: |
||||
NullValue = other.NullValue; |
||||
break; |
||||
case KindOneofCase.NumberValue: |
||||
NumberValue = other.NumberValue; |
||||
break; |
||||
case KindOneofCase.StringValue: |
||||
StringValue = other.StringValue; |
||||
break; |
||||
case KindOneofCase.BoolValue: |
||||
BoolValue = other.BoolValue; |
||||
break; |
||||
case KindOneofCase.StructValue: |
||||
StructValue = other.StructValue.Clone(); |
||||
break; |
||||
case KindOneofCase.ListValue: |
||||
ListValue = other.ListValue.Clone(); |
||||
break; |
||||
} |
||||
|
||||
} |
||||
|
||||
public Value Clone() { |
||||
return new Value(this); |
||||
} |
||||
|
||||
public void Freeze() { |
||||
if (IsFrozen) { |
||||
return; |
||||
} |
||||
_frozen = true; |
||||
if (kind_ is IFreezable) ((IFreezable) kind_).Freeze(); |
||||
} |
||||
|
||||
public const int NullValueFieldNumber = 1; |
||||
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; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
kind_ = value; |
||||
kindCase_ = KindOneofCase.NullValue; |
||||
} |
||||
} |
||||
|
||||
public const int NumberValueFieldNumber = 2; |
||||
public double NumberValue { |
||||
get { return kindCase_ == KindOneofCase.NumberValue ? (double) kind_ : 0D; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
kind_ = value; |
||||
kindCase_ = KindOneofCase.NumberValue; |
||||
} |
||||
} |
||||
|
||||
public const int StringValueFieldNumber = 3; |
||||
public string StringValue { |
||||
get { return kindCase_ == KindOneofCase.StringValue ? (string) kind_ : ""; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
kind_ = value ?? ""; |
||||
kindCase_ = KindOneofCase.StringValue; |
||||
} |
||||
} |
||||
|
||||
public const int BoolValueFieldNumber = 4; |
||||
public bool BoolValue { |
||||
get { return kindCase_ == KindOneofCase.BoolValue ? (bool) kind_ : false; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
kind_ = value; |
||||
kindCase_ = KindOneofCase.BoolValue; |
||||
} |
||||
} |
||||
|
||||
public const int StructValueFieldNumber = 5; |
||||
public global::Google.Protobuf.WellKnownTypes.Struct StructValue { |
||||
get { return kindCase_ == KindOneofCase.StructValue ? (global::Google.Protobuf.WellKnownTypes.Struct) kind_ : null; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
kind_ = value; |
||||
kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.StructValue; |
||||
} |
||||
} |
||||
|
||||
public const int ListValueFieldNumber = 6; |
||||
public global::Google.Protobuf.WellKnownTypes.ListValue ListValue { |
||||
get { return kindCase_ == KindOneofCase.ListValue ? (global::Google.Protobuf.WellKnownTypes.ListValue) kind_ : null; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
kind_ = value; |
||||
kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.ListValue; |
||||
} |
||||
} |
||||
|
||||
private object kind_; |
||||
public enum KindOneofCase { |
||||
None = 0, |
||||
NullValue = 1, |
||||
NumberValue = 2, |
||||
StringValue = 3, |
||||
BoolValue = 4, |
||||
StructValue = 5, |
||||
ListValue = 6, |
||||
} |
||||
private KindOneofCase kindCase_ = KindOneofCase.None; |
||||
public KindOneofCase KindCase { |
||||
get { return kindCase_; } |
||||
} |
||||
|
||||
public void ClearKind() { |
||||
pb::Freezable.CheckMutable(this); |
||||
kindCase_ = KindOneofCase.None; |
||||
kind_ = null; |
||||
} |
||||
|
||||
public override bool Equals(object other) { |
||||
return Equals(other as Value); |
||||
} |
||||
|
||||
public bool Equals(Value other) { |
||||
if (ReferenceEquals(other, null)) { |
||||
return false; |
||||
} |
||||
if (ReferenceEquals(other, this)) { |
||||
return true; |
||||
} |
||||
if (NullValue != other.NullValue) return false; |
||||
if (NumberValue != other.NumberValue) return false; |
||||
if (StringValue != other.StringValue) return false; |
||||
if (BoolValue != other.BoolValue) return false; |
||||
if (!object.Equals(StructValue, other.StructValue)) return false; |
||||
if (!object.Equals(ListValue, other.ListValue)) return false; |
||||
return true; |
||||
} |
||||
|
||||
public override int GetHashCode() { |
||||
int hash = 1; |
||||
if (kindCase_ == KindOneofCase.NullValue) hash ^= NullValue.GetHashCode(); |
||||
if (kindCase_ == KindOneofCase.NumberValue) hash ^= NumberValue.GetHashCode(); |
||||
if (kindCase_ == KindOneofCase.StringValue) hash ^= StringValue.GetHashCode(); |
||||
if (kindCase_ == KindOneofCase.BoolValue) hash ^= BoolValue.GetHashCode(); |
||||
if (kindCase_ == KindOneofCase.StructValue) hash ^= StructValue.GetHashCode(); |
||||
if (kindCase_ == KindOneofCase.ListValue) hash ^= ListValue.GetHashCode(); |
||||
return hash; |
||||
} |
||||
|
||||
public override string ToString() { |
||||
return pb::JsonFormatter.Default.Format(this); |
||||
} |
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) { |
||||
if (kindCase_ == KindOneofCase.NullValue) { |
||||
output.WriteRawTag(8); |
||||
output.WriteEnum((int) NullValue); |
||||
} |
||||
if (kindCase_ == KindOneofCase.NumberValue) { |
||||
output.WriteRawTag(17); |
||||
output.WriteDouble(NumberValue); |
||||
} |
||||
if (kindCase_ == KindOneofCase.StringValue) { |
||||
output.WriteRawTag(26); |
||||
output.WriteString(StringValue); |
||||
} |
||||
if (kindCase_ == KindOneofCase.BoolValue) { |
||||
output.WriteRawTag(32); |
||||
output.WriteBool(BoolValue); |
||||
} |
||||
if (kindCase_ == KindOneofCase.StructValue) { |
||||
output.WriteRawTag(42); |
||||
output.WriteMessage(StructValue); |
||||
} |
||||
if (kindCase_ == KindOneofCase.ListValue) { |
||||
output.WriteRawTag(50); |
||||
output.WriteMessage(ListValue); |
||||
} |
||||
} |
||||
|
||||
public int CalculateSize() { |
||||
int size = 0; |
||||
if (kindCase_ == KindOneofCase.NullValue) { |
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) NullValue); |
||||
} |
||||
if (kindCase_ == KindOneofCase.NumberValue) { |
||||
size += 1 + 8; |
||||
} |
||||
if (kindCase_ == KindOneofCase.StringValue) { |
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue); |
||||
} |
||||
if (kindCase_ == KindOneofCase.BoolValue) { |
||||
size += 1 + 1; |
||||
} |
||||
if (kindCase_ == KindOneofCase.StructValue) { |
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(StructValue); |
||||
} |
||||
if (kindCase_ == KindOneofCase.ListValue) { |
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ListValue); |
||||
} |
||||
return size; |
||||
} |
||||
|
||||
public void MergeFrom(Value other) { |
||||
if (other == null) { |
||||
return; |
||||
} |
||||
switch (other.KindCase) { |
||||
case KindOneofCase.NullValue: |
||||
NullValue = other.NullValue; |
||||
break; |
||||
case KindOneofCase.NumberValue: |
||||
NumberValue = other.NumberValue; |
||||
break; |
||||
case KindOneofCase.StringValue: |
||||
StringValue = other.StringValue; |
||||
break; |
||||
case KindOneofCase.BoolValue: |
||||
BoolValue = other.BoolValue; |
||||
break; |
||||
case KindOneofCase.StructValue: |
||||
StructValue = other.StructValue; |
||||
break; |
||||
case KindOneofCase.ListValue: |
||||
ListValue = other.ListValue; |
||||
break; |
||||
} |
||||
|
||||
} |
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) { |
||||
uint tag; |
||||
while (input.ReadTag(out tag)) { |
||||
switch(tag) { |
||||
case 0: |
||||
throw pb::InvalidProtocolBufferException.InvalidTag(); |
||||
default: |
||||
if (pb::WireFormat.IsEndGroupTag(tag)) { |
||||
return; |
||||
} |
||||
break; |
||||
case 8: { |
||||
kind_ = input.ReadEnum(); |
||||
kindCase_ = KindOneofCase.NullValue; |
||||
break; |
||||
} |
||||
case 17: { |
||||
NumberValue = input.ReadDouble(); |
||||
break; |
||||
} |
||||
case 26: { |
||||
StringValue = input.ReadString(); |
||||
break; |
||||
} |
||||
case 32: { |
||||
BoolValue = input.ReadBool(); |
||||
break; |
||||
} |
||||
case 42: { |
||||
global::Google.Protobuf.WellKnownTypes.Struct subBuilder = new global::Google.Protobuf.WellKnownTypes.Struct(); |
||||
if (kindCase_ == KindOneofCase.StructValue) { |
||||
subBuilder.MergeFrom(StructValue); |
||||
} |
||||
input.ReadMessage(subBuilder); |
||||
StructValue = subBuilder; |
||||
break; |
||||
} |
||||
case 50: { |
||||
global::Google.Protobuf.WellKnownTypes.ListValue subBuilder = new global::Google.Protobuf.WellKnownTypes.ListValue(); |
||||
if (kindCase_ == KindOneofCase.ListValue) { |
||||
subBuilder.MergeFrom(ListValue); |
||||
} |
||||
input.ReadMessage(subBuilder); |
||||
ListValue = subBuilder; |
||||
break; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public sealed partial class ListValue : pb::IMessage<ListValue> { |
||||
private static readonly pb::MessageParser<ListValue> _parser = new pb::MessageParser<ListValue>(() => new ListValue()); |
||||
public static pb::MessageParser<ListValue> Parser { get { return _parser; } } |
||||
|
||||
private static readonly string[] _fieldNames = new string[] { "values" }; |
||||
private static readonly uint[] _fieldTags = new uint[] { 10 }; |
||||
public static pbr::MessageDescriptor Descriptor { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Struct.Descriptor.MessageTypes[2]; } |
||||
} |
||||
|
||||
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Struct.internal__static_google_protobuf_ListValue__FieldAccessorTable; } |
||||
} |
||||
|
||||
private bool _frozen = false; |
||||
public bool IsFrozen { get { return _frozen; } } |
||||
|
||||
public ListValue() { |
||||
OnConstruction(); |
||||
} |
||||
|
||||
partial void OnConstruction(); |
||||
|
||||
public ListValue(ListValue other) : this() { |
||||
values_ = other.values_.Clone(); |
||||
} |
||||
|
||||
public ListValue Clone() { |
||||
return new ListValue(this); |
||||
} |
||||
|
||||
public void Freeze() { |
||||
if (IsFrozen) { |
||||
return; |
||||
} |
||||
_frozen = true; |
||||
values_.Freeze(); |
||||
} |
||||
|
||||
public const int ValuesFieldNumber = 1; |
||||
private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Value> _repeated_values_codec |
||||
= 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>(); |
||||
public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value> Values { |
||||
get { return values_; } |
||||
} |
||||
|
||||
public override bool Equals(object other) { |
||||
return Equals(other as ListValue); |
||||
} |
||||
|
||||
public bool Equals(ListValue other) { |
||||
if (ReferenceEquals(other, null)) { |
||||
return false; |
||||
} |
||||
if (ReferenceEquals(other, this)) { |
||||
return true; |
||||
} |
||||
if(!values_.Equals(other.values_)) return false; |
||||
return true; |
||||
} |
||||
|
||||
public override int GetHashCode() { |
||||
int hash = 1; |
||||
hash ^= values_.GetHashCode(); |
||||
return hash; |
||||
} |
||||
|
||||
public override string ToString() { |
||||
return pb::JsonFormatter.Default.Format(this); |
||||
} |
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) { |
||||
values_.WriteTo(output, _repeated_values_codec); |
||||
} |
||||
|
||||
public int CalculateSize() { |
||||
int size = 0; |
||||
size += values_.CalculateSize(_repeated_values_codec); |
||||
return size; |
||||
} |
||||
|
||||
public void MergeFrom(ListValue other) { |
||||
if (other == null) { |
||||
return; |
||||
} |
||||
values_.Add(other.values_); |
||||
} |
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) { |
||||
uint tag; |
||||
while (input.ReadTag(out tag)) { |
||||
switch(tag) { |
||||
case 0: |
||||
throw pb::InvalidProtocolBufferException.InvalidTag(); |
||||
default: |
||||
if (pb::WireFormat.IsEndGroupTag(tag)) { |
||||
return; |
||||
} |
||||
break; |
||||
case 10: { |
||||
values_.AddEntriesFrom(input, _repeated_values_codec); |
||||
break; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
#endregion |
||||
|
||||
} |
||||
|
||||
#endregion Designer generated code |
@ -0,0 +1,196 @@ |
||||
// Generated by the protocol buffer compiler. DO NOT EDIT! |
||||
// source: google/protobuf/timestamp.proto |
||||
#pragma warning disable 1591, 0612, 3021 |
||||
#region Designer generated code |
||||
|
||||
using pb = global::Google.Protobuf; |
||||
using pbc = global::Google.Protobuf.Collections; |
||||
using pbr = global::Google.Protobuf.Reflection; |
||||
using scg = global::System.Collections.Generic; |
||||
namespace Google.Protobuf.WellKnownTypes { |
||||
|
||||
namespace Proto { |
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public static partial class Timestamp { |
||||
|
||||
#region Static variables |
||||
internal static pbr::FieldAccessorTable internal__static_google_protobuf_Timestamp__FieldAccessorTable; |
||||
#endregion |
||||
#region Descriptor |
||||
public static pbr::FileDescriptor Descriptor { |
||||
get { return descriptor; } |
||||
} |
||||
private static pbr::FileDescriptor descriptor; |
||||
|
||||
static Timestamp() { |
||||
byte[] descriptorData = global::System.Convert.FromBase64String( |
||||
string.Concat( |
||||
"Ch9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvEg9nb29nbGUucHJv", |
||||
"dG9idWYiKwoJVGltZXN0YW1wEg8KB3NlY29uZHMYASABKAMSDQoFbmFub3MY", |
||||
"AiABKAVCUQoTY29tLmdvb2dsZS5wcm90b2J1ZkIOVGltZXN0YW1wUHJvdG9Q", |
||||
"AaABAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IG", |
||||
"cHJvdG8z")); |
||||
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, |
||||
new pbr::FileDescriptor[] { |
||||
}); |
||||
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 |
||||
|
||||
} |
||||
} |
||||
#region Messages |
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
public sealed partial class Timestamp : pb::IMessage<Timestamp> { |
||||
private static readonly pb::MessageParser<Timestamp> _parser = new pb::MessageParser<Timestamp>(() => new Timestamp()); |
||||
public static pb::MessageParser<Timestamp> Parser { get { return _parser; } } |
||||
|
||||
private static readonly string[] _fieldNames = new string[] { "nanos", "seconds" }; |
||||
private static readonly uint[] _fieldTags = new uint[] { 16, 8 }; |
||||
public static pbr::MessageDescriptor Descriptor { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Timestamp.Descriptor.MessageTypes[0]; } |
||||
} |
||||
|
||||
pbr::FieldAccessorTable pb::IReflectedMessage.Fields { |
||||
get { return global::Google.Protobuf.WellKnownTypes.Proto.Timestamp.internal__static_google_protobuf_Timestamp__FieldAccessorTable; } |
||||
} |
||||
|
||||
private bool _frozen = false; |
||||
public bool IsFrozen { get { return _frozen; } } |
||||
|
||||
public Timestamp() { |
||||
OnConstruction(); |
||||
} |
||||
|
||||
partial void OnConstruction(); |
||||
|
||||
public Timestamp(Timestamp other) : this() { |
||||
seconds_ = other.seconds_; |
||||
nanos_ = other.nanos_; |
||||
} |
||||
|
||||
public Timestamp Clone() { |
||||
return new Timestamp(this); |
||||
} |
||||
|
||||
public void Freeze() { |
||||
if (IsFrozen) { |
||||
return; |
||||
} |
||||
_frozen = true; |
||||
} |
||||
|
||||
public const int SecondsFieldNumber = 1; |
||||
private long seconds_; |
||||
public long Seconds { |
||||
get { return seconds_; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
seconds_ = value; |
||||
} |
||||
} |
||||
|
||||
public const int NanosFieldNumber = 2; |
||||
private int nanos_; |
||||
public int Nanos { |
||||
get { return nanos_; } |
||||
set { |
||||
pb::Freezable.CheckMutable(this); |
||||
nanos_ = value; |
||||
} |
||||
} |
||||
|
||||
public override bool Equals(object other) { |
||||
return Equals(other as Timestamp); |
||||
} |
||||
|
||||
public bool Equals(Timestamp other) { |
||||
if (ReferenceEquals(other, null)) { |
||||
return false; |
||||
} |
||||
if (ReferenceEquals(other, this)) { |
||||
return true; |
||||
} |
||||
if (Seconds != other.Seconds) return false; |
||||
if (Nanos != other.Nanos) return false; |
||||
return true; |
||||
} |
||||
|
||||
public override int GetHashCode() { |
||||
int hash = 1; |
||||
if (Seconds != 0L) hash ^= Seconds.GetHashCode(); |
||||
if (Nanos != 0) hash ^= Nanos.GetHashCode(); |
||||
return hash; |
||||
} |
||||
|
||||
public override string ToString() { |
||||
return pb::JsonFormatter.Default.Format(this); |
||||
} |
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) { |
||||
if (Seconds != 0L) { |
||||
output.WriteRawTag(8); |
||||
output.WriteInt64(Seconds); |
||||
} |
||||
if (Nanos != 0) { |
||||
output.WriteRawTag(16); |
||||
output.WriteInt32(Nanos); |
||||
} |
||||
} |
||||
|
||||
public int CalculateSize() { |
||||
int size = 0; |
||||
if (Seconds != 0L) { |
||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Seconds); |
||||
} |
||||
if (Nanos != 0) { |
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Nanos); |
||||
} |
||||
return size; |
||||
} |
||||
|
||||
public void MergeFrom(Timestamp other) { |
||||
if (other == null) { |
||||
return; |
||||
} |
||||
if (other.Seconds != 0L) { |
||||
Seconds = other.Seconds; |
||||
} |
||||
if (other.Nanos != 0) { |
||||
Nanos = other.Nanos; |
||||
} |
||||
} |
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) { |
||||
uint tag; |
||||
while (input.ReadTag(out tag)) { |
||||
switch(tag) { |
||||
case 0: |
||||
throw pb::InvalidProtocolBufferException.InvalidTag(); |
||||
default: |
||||
if (pb::WireFormat.IsEndGroupTag(tag)) { |
||||
return; |
||||
} |
||||
break; |
||||
case 8: { |
||||
Seconds = input.ReadInt64(); |
||||
break; |
||||
} |
||||
case 16: { |
||||
Nanos = input.ReadInt32(); |
||||
break; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
#endregion |
||||
|
||||
} |
||||
|
||||
#endregion Designer generated code |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue