// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: FibResponse.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021, 8981
#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 TestEnvoys.Math {

  /// <summary>Holder for reflection information generated from FibResponse.proto</summary>
  public static partial class FibResponseReflection {

    #region Descriptor
    /// <summary>File descriptor for FibResponse.proto</summary>
    public static pbr::FileDescriptor Descriptor {
      get { return descriptor; }
    }
    private static pbr::FileDescriptor descriptor;

    static FibResponseReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChFGaWJSZXNwb25zZS5wcm90bxIETWF0aBoQRmliTnVtYmVycy5wcm90byJt",
            "CgtGaWJSZXNwb25zZRIpCgpmaWJOdW1iZXJzGAIgASgLMhAuTWF0aC5GaWJO",
            "dW1iZXJzSACIAQESFgoJZmliUmVzdWx0GAEgASgRSAGIAQFCDQoLX2ZpYk51",
            "bWJlcnNCDAoKX2ZpYlJlc3VsdEIaCgRNYXRoUAGqAg9UZXN0RW52b3lzLk1h",
            "dGhiBnByb3RvMw=="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::TestEnvoys.Math.FibNumbersReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::TestEnvoys.Math.FibResponse), global::TestEnvoys.Math.FibResponse.Parser, new[]{ "FibNumbers", "FibResult" }, new[]{ "FibNumbers", "FibResult" }, null, null, null)
          }));
    }
    #endregion

  }
  #region Messages
  public sealed partial class FibResponse : pb::IMessage<FibResponse>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<FibResponse> _parser = new pb::MessageParser<FibResponse>(() => new FibResponse());
    private pb::UnknownFieldSet _unknownFields;
    private int _hasBits0;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<FibResponse> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::TestEnvoys.Math.FibResponseReflection.Descriptor.MessageTypes[0]; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public FibResponse() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public FibResponse(FibResponse other) : this() {
      _hasBits0 = other._hasBits0;
      fibNumbers_ = other.fibNumbers_ != null ? other.fibNumbers_.Clone() : null;
      fibResult_ = other.fibResult_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public FibResponse Clone() {
      return new FibResponse(this);
    }

    /// <summary>Field number for the "fibNumbers" field.</summary>
    public const int FibNumbersFieldNumber = 2;
    private global::TestEnvoys.Math.FibNumbers fibNumbers_;
    /// <summary>
    /// The 'fibNumbers' Field.
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::TestEnvoys.Math.FibNumbers FibNumbers {
      get { return fibNumbers_; }
      set {
        fibNumbers_ = value;
      }
    }

    /// <summary>Field number for the "fibResult" field.</summary>
    public const int FibResultFieldNumber = 1;
    private readonly static int FibResultDefaultValue = 0;

    private int fibResult_;
    /// <summary>
    /// The 'fibResult' Field.
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int FibResult {
      get { if ((_hasBits0 & 1) != 0) { return fibResult_; } else { return FibResultDefaultValue; } }
      set {
        _hasBits0 |= 1;
        fibResult_ = value;
      }
    }
    /// <summary>Gets whether the "fibResult" field is set</summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool HasFibResult {
      get { return (_hasBits0 & 1) != 0; }
    }
    /// <summary>Clears the value of the "fibResult" field</summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void ClearFibResult() {
      _hasBits0 &= ~1;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override bool Equals(object other) {
      return Equals(other as FibResponse);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(FibResponse other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (!object.Equals(FibNumbers, other.FibNumbers)) return false;
      if (FibResult != other.FibResult) return false;
      return Equals(_unknownFields, other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override int GetHashCode() {
      int hash = 1;
      if (fibNumbers_ != null) hash ^= FibNumbers.GetHashCode();
      if (HasFibResult) hash ^= FibResult.GetHashCode();
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
      return hash;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override string ToString() {
      return pb::JsonFormatter.ToDiagnosticString(this);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void WriteTo(pb::CodedOutputStream output) {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      output.WriteRawMessage(this);
    #else
      if (HasFibResult) {
        output.WriteRawTag(8);
        output.WriteSInt32(FibResult);
      }
      if (fibNumbers_ != null) {
        output.WriteRawTag(18);
        output.WriteMessage(FibNumbers);
      }
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
    #endif
    }

    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
      if (HasFibResult) {
        output.WriteRawTag(8);
        output.WriteSInt32(FibResult);
      }
      if (fibNumbers_ != null) {
        output.WriteRawTag(18);
        output.WriteMessage(FibNumbers);
      }
      if (_unknownFields != null) {
        _unknownFields.WriteTo(ref output);
      }
    }
    #endif

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int CalculateSize() {
      int size = 0;
      if (fibNumbers_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(FibNumbers);
      }
      if (HasFibResult) {
        size += 1 + pb::CodedOutputStream.ComputeSInt32Size(FibResult);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(FibResponse other) {
      if (other == null) {
        return;
      }
      if (other.fibNumbers_ != null) {
        if (fibNumbers_ == null) {
          FibNumbers = new global::TestEnvoys.Math.FibNumbers();
        }
        FibNumbers.MergeFrom(other.FibNumbers);
      }
      if (other.HasFibResult) {
        FibResult = other.FibResult;
      }
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    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 8: {
            FibResult = input.ReadSInt32();
            break;
          }
          case 18: {
            if (fibNumbers_ == null) {
              FibNumbers = new global::TestEnvoys.Math.FibNumbers();
            }
            input.ReadMessage(FibNumbers);
            break;
          }
        }
      }
    #endif
    }

    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    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 8: {
            FibResult = input.ReadSInt32();
            break;
          }
          case 18: {
            if (fibNumbers_ == null) {
              FibNumbers = new global::TestEnvoys.Math.FibNumbers();
            }
            input.ReadMessage(FibNumbers);
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
