// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: booking/pricing/price_night.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 HOLMS.Types.Booking.Pricing {

  /// <summary>Holder for reflection information generated from booking/pricing/price_night.proto</summary>
  public static partial class PriceNightReflection {

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

    static PriceNightReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "CiFib29raW5nL3ByaWNpbmcvcHJpY2VfbmlnaHQucHJvdG8SG2hvbG1zLnR5",
            "cGVzLmJvb2tpbmcucHJpY2luZxodcHJpbWl0aXZlL3BiX2xvY2FsX2RhdGUu",
            "cHJvdG8aH3ByaW1pdGl2ZS9tb25ldGFyeV9hbW91bnQucHJvdG8idwoKUHJp",
            "Y2VOaWdodBIzCgdvcHNkYXRlGAEgASgLMiIuaG9sbXMudHlwZXMucHJpbWl0",
            "aXZlLlBiTG9jYWxEYXRlEjQKBXByaWNlGAIgASgLMiUuaG9sbXMudHlwZXMu",
            "cHJpbWl0aXZlLk1vbmV0YXJ5QW1vdW50Qi9aD2Jvb2tpbmcvcHJpY2luZ6oC",
            "G0hPTE1TLlR5cGVzLkJvb2tpbmcuUHJpY2luZ2IGcHJvdG8z"));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::HOLMS.Types.Primitive.PbLocalDateReflection.Descriptor, global::HOLMS.Types.Primitive.MonetaryAmountReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::HOLMS.Types.Booking.Pricing.PriceNight), global::HOLMS.Types.Booking.Pricing.PriceNight.Parser, new[]{ "Opsdate", "Price" }, null, null, null)
          }));
    }
    #endregion

  }
  #region Messages
  public sealed partial class PriceNight : pb::IMessage<PriceNight> {
    private static readonly pb::MessageParser<PriceNight> _parser = new pb::MessageParser<PriceNight>(() => new PriceNight());
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static pb::MessageParser<PriceNight> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::HOLMS.Types.Booking.Pricing.PriceNightReflection.Descriptor.MessageTypes[0]; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public PriceNight() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public PriceNight(PriceNight other) : this() {
      Opsdate = other.opsdate_ != null ? other.Opsdate.Clone() : null;
      Price = other.price_ != null ? other.Price.Clone() : null;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public PriceNight Clone() {
      return new PriceNight(this);
    }

    /// <summary>Field number for the "opsdate" field.</summary>
    public const int OpsdateFieldNumber = 1;
    private global::HOLMS.Types.Primitive.PbLocalDate opsdate_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public global::HOLMS.Types.Primitive.PbLocalDate Opsdate {
      get { return opsdate_; }
      set {
        opsdate_ = value;
      }
    }

    /// <summary>Field number for the "price" field.</summary>
    public const int PriceFieldNumber = 2;
    private global::HOLMS.Types.Primitive.MonetaryAmount price_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public global::HOLMS.Types.Primitive.MonetaryAmount Price {
      get { return price_; }
      set {
        price_ = value;
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override bool Equals(object other) {
      return Equals(other as PriceNight);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public bool Equals(PriceNight other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (!object.Equals(Opsdate, other.Opsdate)) return false;
      if (!object.Equals(Price, other.Price)) return false;
      return true;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override int GetHashCode() {
      int hash = 1;
      if (opsdate_ != null) hash ^= Opsdate.GetHashCode();
      if (price_ != null) hash ^= Price.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 (opsdate_ != null) {
        output.WriteRawTag(10);
        output.WriteMessage(Opsdate);
      }
      if (price_ != null) {
        output.WriteRawTag(18);
        output.WriteMessage(Price);
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int CalculateSize() {
      int size = 0;
      if (opsdate_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Opsdate);
      }
      if (price_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Price);
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void MergeFrom(PriceNight other) {
      if (other == null) {
        return;
      }
      if (other.opsdate_ != null) {
        if (opsdate_ == null) {
          opsdate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
        }
        Opsdate.MergeFrom(other.Opsdate);
      }
      if (other.price_ != null) {
        if (price_ == null) {
          price_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
        }
        Price.MergeFrom(other.Price);
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
        switch(tag) {
          default:
            input.SkipLastField();
            break;
          case 10: {
            if (opsdate_ == null) {
              opsdate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
            }
            input.ReadMessage(opsdate_);
            break;
          }
          case 18: {
            if (price_ == null) {
              price_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
            }
            input.ReadMessage(price_);
            break;
          }
        }
      }
    }

  }

  #endregion

}

#endregion Designer generated code
