// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: SourceFiles/Simplified.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 SpreadsProtos { /// Holder for reflection information generated from SourceFiles/Simplified.proto public static partial class SimplifiedReflection { #region Descriptor /// File descriptor for SourceFiles/Simplified.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static SimplifiedReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChxTb3VyY2VGaWxlcy9TaW1wbGlmaWVkLnByb3RvEipjb20ubWxwLmZpZS5m", "aXJlYmlyZC5tbHMuYXBpLnYyXzEubWVzc2FnZXMiQwoKUGFyYW1ldGVycxIS", "CghJbnN0YW5jZRgKIAEoCUgAEg4KBEFsZ28YPCABKAlIAEIRCg9pbnN0YW5j", "ZU9yR3JvdXAiVAoGU3ByZWFkEkoKCnBhcmFtZXRlcnMYCiABKAsyNi5jb20u", "bWxwLmZpZS5maXJlYmlyZC5tbHMuYXBpLnYyXzEubWVzc2FnZXMuUGFyYW1l", "dGVycyJwCgVPcmRlchIbChNtaW5GaWxsZWRQZXJjZW50YWdlGAogASgBEkoK", "CnBhcmFtZXRlcnMYHiABKAsyNi5jb20ubWxwLmZpZS5maXJlYmlyZC5tbHMu", "YXBpLnYyXzEubWVzc2FnZXMuUGFyYW1ldGVycyJ5CgdSZXF1ZXN0EkQKBmNy", "ZWF0ZRgFIAEoCzIyLmNvbS5tbHAuZmllLmZpcmViaXJkLm1scy5hcGkudjJf", "MS5tZXNzYWdlcy5TcHJlYWRIABIXCg9jbGllbnRSZXF1ZXN0SWQYZCABKAlC", "DwoNbmV3UmVxdWVzdE9wdEIhQg1TcHJlYWRzUHJvdG9zUAGqAg1TcHJlYWRz", "UHJvdG9zYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::SpreadsProtos.Parameters), global::SpreadsProtos.Parameters.Parser, new[]{ "Instance", "Algo" }, new[]{ "InstanceOrGroup" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::SpreadsProtos.Spread), global::SpreadsProtos.Spread.Parser, new[]{ "Parameters" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::SpreadsProtos.Order), global::SpreadsProtos.Order.Parser, new[]{ "MinFilledPercentage", "Parameters" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::SpreadsProtos.Request), global::SpreadsProtos.Request.Parser, new[]{ "Create", "ClientRequestId" }, new[]{ "NewRequestOpt" }, null, null, null) })); } #endregion } #region Messages public sealed partial class Parameters : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Parameters()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::SpreadsProtos.SimplifiedReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Parameters() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Parameters(Parameters other) : this() { switch (other.InstanceOrGroupCase) { case InstanceOrGroupOneofCase.Instance: Instance = other.Instance; break; case InstanceOrGroupOneofCase.Algo: Algo = other.Algo; break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Parameters Clone() { return new Parameters(this); } /// Field number for the "Instance" field. public const int InstanceFieldNumber = 10; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Instance { get { return instanceOrGroupCase_ == InstanceOrGroupOneofCase.Instance ? (string) instanceOrGroup_ : ""; } set { instanceOrGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); instanceOrGroupCase_ = InstanceOrGroupOneofCase.Instance; } } /// Field number for the "Algo" field. public const int AlgoFieldNumber = 60; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Algo { get { return instanceOrGroupCase_ == InstanceOrGroupOneofCase.Algo ? (string) instanceOrGroup_ : ""; } set { instanceOrGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); instanceOrGroupCase_ = InstanceOrGroupOneofCase.Algo; } } private object instanceOrGroup_; /// Enum of possible cases for the "instanceOrGroup" oneof. public enum InstanceOrGroupOneofCase { None = 0, Instance = 10, Algo = 60, } private InstanceOrGroupOneofCase instanceOrGroupCase_ = InstanceOrGroupOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public InstanceOrGroupOneofCase InstanceOrGroupCase { get { return instanceOrGroupCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearInstanceOrGroup() { instanceOrGroupCase_ = InstanceOrGroupOneofCase.None; instanceOrGroup_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Parameters); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Parameters other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Instance != other.Instance) return false; if (Algo != other.Algo) return false; if (InstanceOrGroupCase != other.InstanceOrGroupCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (instanceOrGroupCase_ == InstanceOrGroupOneofCase.Instance) hash ^= Instance.GetHashCode(); if (instanceOrGroupCase_ == InstanceOrGroupOneofCase.Algo) hash ^= Algo.GetHashCode(); hash ^= (int) instanceOrGroupCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (instanceOrGroupCase_ == InstanceOrGroupOneofCase.Instance) { output.WriteRawTag(82); output.WriteString(Instance); } if (instanceOrGroupCase_ == InstanceOrGroupOneofCase.Algo) { output.WriteRawTag(226, 3); output.WriteString(Algo); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (instanceOrGroupCase_ == InstanceOrGroupOneofCase.Instance) { output.WriteRawTag(82); output.WriteString(Instance); } if (instanceOrGroupCase_ == InstanceOrGroupOneofCase.Algo) { output.WriteRawTag(226, 3); output.WriteString(Algo); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (instanceOrGroupCase_ == InstanceOrGroupOneofCase.Instance) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Instance); } if (instanceOrGroupCase_ == InstanceOrGroupOneofCase.Algo) { size += 2 + pb::CodedOutputStream.ComputeStringSize(Algo); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Parameters other) { if (other == null) { return; } switch (other.InstanceOrGroupCase) { case InstanceOrGroupOneofCase.Instance: Instance = other.Instance; break; case InstanceOrGroupOneofCase.Algo: Algo = other.Algo; break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 82: { Instance = input.ReadString(); break; } case 482: { Algo = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 82: { Instance = input.ReadString(); break; } case 482: { Algo = input.ReadString(); break; } } } } #endif } public sealed partial class Spread : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Spread()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::SpreadsProtos.SimplifiedReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Spread() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Spread(Spread other) : this() { parameters_ = other.parameters_ != null ? other.parameters_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Spread Clone() { return new Spread(this); } /// Field number for the "parameters" field. public const int ParametersFieldNumber = 10; private global::SpreadsProtos.Parameters parameters_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::SpreadsProtos.Parameters Parameters { get { return parameters_; } set { parameters_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Spread); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Spread other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Parameters, other.Parameters)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (parameters_ != null) hash ^= Parameters.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (parameters_ != null) { output.WriteRawTag(82); output.WriteMessage(Parameters); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (parameters_ != null) { output.WriteRawTag(82); output.WriteMessage(Parameters); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (parameters_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Parameters); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Spread other) { if (other == null) { return; } if (other.parameters_ != null) { if (parameters_ == null) { Parameters = new global::SpreadsProtos.Parameters(); } Parameters.MergeFrom(other.Parameters); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 82: { if (parameters_ == null) { Parameters = new global::SpreadsProtos.Parameters(); } input.ReadMessage(Parameters); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 82: { if (parameters_ == null) { Parameters = new global::SpreadsProtos.Parameters(); } input.ReadMessage(Parameters); break; } } } } #endif } public sealed partial class Order : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Order()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::SpreadsProtos.SimplifiedReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Order() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Order(Order other) : this() { minFilledPercentage_ = other.minFilledPercentage_; parameters_ = other.parameters_ != null ? other.parameters_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Order Clone() { return new Order(this); } /// Field number for the "minFilledPercentage" field. public const int MinFilledPercentageFieldNumber = 10; private double minFilledPercentage_; /// /// current minimum filled percentage across all legs /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double MinFilledPercentage { get { return minFilledPercentage_; } set { minFilledPercentage_ = value; } } /// Field number for the "parameters" field. public const int ParametersFieldNumber = 30; private global::SpreadsProtos.Parameters parameters_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::SpreadsProtos.Parameters Parameters { get { return parameters_; } set { parameters_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Order); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Order other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MinFilledPercentage, other.MinFilledPercentage)) return false; if (!object.Equals(Parameters, other.Parameters)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (MinFilledPercentage != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MinFilledPercentage); if (parameters_ != null) hash ^= Parameters.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (MinFilledPercentage != 0D) { output.WriteRawTag(81); output.WriteDouble(MinFilledPercentage); } if (parameters_ != null) { output.WriteRawTag(242, 1); output.WriteMessage(Parameters); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (MinFilledPercentage != 0D) { output.WriteRawTag(81); output.WriteDouble(MinFilledPercentage); } if (parameters_ != null) { output.WriteRawTag(242, 1); output.WriteMessage(Parameters); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (MinFilledPercentage != 0D) { size += 1 + 8; } if (parameters_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(Parameters); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Order other) { if (other == null) { return; } if (other.MinFilledPercentage != 0D) { MinFilledPercentage = other.MinFilledPercentage; } if (other.parameters_ != null) { if (parameters_ == null) { Parameters = new global::SpreadsProtos.Parameters(); } Parameters.MergeFrom(other.Parameters); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 81: { MinFilledPercentage = input.ReadDouble(); break; } case 242: { if (parameters_ == null) { Parameters = new global::SpreadsProtos.Parameters(); } input.ReadMessage(Parameters); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 81: { MinFilledPercentage = input.ReadDouble(); break; } case 242: { if (parameters_ == null) { Parameters = new global::SpreadsProtos.Parameters(); } input.ReadMessage(Parameters); break; } } } } #endif } public sealed partial class Request : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Request()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::SpreadsProtos.SimplifiedReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Request() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Request(Request other) : this() { clientRequestId_ = other.clientRequestId_; switch (other.NewRequestOptCase) { case NewRequestOptOneofCase.Create: Create = other.Create.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Request Clone() { return new Request(this); } /// Field number for the "create" field. public const int CreateFieldNumber = 5; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::SpreadsProtos.Spread Create { get { return newRequestOptCase_ == NewRequestOptOneofCase.Create ? (global::SpreadsProtos.Spread) newRequestOpt_ : null; } set { newRequestOpt_ = value; newRequestOptCase_ = value == null ? NewRequestOptOneofCase.None : NewRequestOptOneofCase.Create; } } /// Field number for the "clientRequestId" field. public const int ClientRequestIdFieldNumber = 100; private string clientRequestId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ClientRequestId { get { return clientRequestId_; } set { clientRequestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } private object newRequestOpt_; /// Enum of possible cases for the "newRequestOpt" oneof. public enum NewRequestOptOneofCase { None = 0, Create = 5, } private NewRequestOptOneofCase newRequestOptCase_ = NewRequestOptOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public NewRequestOptOneofCase NewRequestOptCase { get { return newRequestOptCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearNewRequestOpt() { newRequestOptCase_ = NewRequestOptOneofCase.None; newRequestOpt_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Request); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Request other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Create, other.Create)) return false; if (ClientRequestId != other.ClientRequestId) return false; if (NewRequestOptCase != other.NewRequestOptCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (newRequestOptCase_ == NewRequestOptOneofCase.Create) hash ^= Create.GetHashCode(); if (ClientRequestId.Length != 0) hash ^= ClientRequestId.GetHashCode(); hash ^= (int) newRequestOptCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (newRequestOptCase_ == NewRequestOptOneofCase.Create) { output.WriteRawTag(42); output.WriteMessage(Create); } if (ClientRequestId.Length != 0) { output.WriteRawTag(162, 6); output.WriteString(ClientRequestId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (newRequestOptCase_ == NewRequestOptOneofCase.Create) { output.WriteRawTag(42); output.WriteMessage(Create); } if (ClientRequestId.Length != 0) { output.WriteRawTag(162, 6); output.WriteString(ClientRequestId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (newRequestOptCase_ == NewRequestOptOneofCase.Create) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); } if (ClientRequestId.Length != 0) { size += 2 + pb::CodedOutputStream.ComputeStringSize(ClientRequestId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Request other) { if (other == null) { return; } if (other.ClientRequestId.Length != 0) { ClientRequestId = other.ClientRequestId; } switch (other.NewRequestOptCase) { case NewRequestOptOneofCase.Create: if (Create == null) { Create = new global::SpreadsProtos.Spread(); } Create.MergeFrom(other.Create); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 42: { global::SpreadsProtos.Spread subBuilder = new global::SpreadsProtos.Spread(); if (newRequestOptCase_ == NewRequestOptOneofCase.Create) { subBuilder.MergeFrom(Create); } input.ReadMessage(subBuilder); Create = subBuilder; break; } case 802: { ClientRequestId = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 42: { global::SpreadsProtos.Spread subBuilder = new global::SpreadsProtos.Spread(); if (newRequestOptCase_ == NewRequestOptOneofCase.Create) { subBuilder.MergeFrom(Create); } input.ReadMessage(subBuilder); Create = subBuilder; break; } case 802: { ClientRequestId = input.ReadString(); break; } } } } #endif } #endregion } #endregion Designer generated code