// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: circuits_v2/reward_data.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 CircuitsV2.Protobuf {

  /// <summary>Holder for reflection information generated from circuits_v2/reward_data.proto</summary>
  public static partial class RewardDataReflection {

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

    static RewardDataReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "Ch1jaXJjdWl0c192Mi9yZXdhcmRfZGF0YS5wcm90bxILY2lyY3VpdHNfdjIa",
            "FGNvcmUvZ3VpZF9kYXRhLnByb3RvGiZjaXJjdWl0c192Mi9jdXJyZW5jeV9y",
            "ZXdhcmRfZGF0YS5wcm90bxooY2lyY3VpdHNfdjIvY29uc3VtYWJsZV9yZXdh",
            "cmRfZGF0YS5wcm90bxohY2lyY3VpdHNfdjIva2V5X3Jld2FyZF9kYXRhLnBy",
            "b3RvGjFjaXJjdWl0c192Mi9yb29tX2ludmVudG9yeV9pdGVtX3Jld2FyZF9k",
            "YXRhLnByb3RvIuoCCgpSZXdhcmREYXRhEgwKBG5hbWUYASABKAkSEwoLZGVz",
            "Y3JpcHRpb24YAiABKAkSGgoCaWQYAyABKAsyDi5jb3JlLkd1aWREYXRhEhMK",
            "C2ltYWdlX2luZGV4GAQgASgFEhIKCmltYWdlX25hbWUYBSABKAkSOAoPY3Vy",
            "cmVuY3lfcmV3YXJkGAYgASgLMh8uY2lyY3VpdHNfdjIuQ3VycmVuY3lSZXdh",
            "cmREYXRhEjwKEWNvbnN1bWFibGVfcmV3YXJkGAcgASgLMiEuY2lyY3VpdHNf",
            "djIuQ29uc3VtYWJsZVJld2FyZERhdGESLgoKa2V5X3Jld2FyZBgIIAEoCzIa",
            "LmNpcmN1aXRzX3YyLktleVJld2FyZERhdGESTAoacm9vbV9pbnZlbnRvcnlf",
            "aXRlbV9yZXdhcmQYCSABKAsyKC5jaXJjdWl0c192Mi5Sb29tSW52ZW50b3J5",
            "SXRlbVJld2FyZERhdGFCFqoCE0NpcmN1aXRzVjIuUHJvdG9idWZiBnByb3Rv",
            "Mw=="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::RecRoom.Protobuf.Core.GuidDataReflection.Descriptor, global::CircuitsV2.Protobuf.CurrencyRewardDataReflection.Descriptor, global::CircuitsV2.Protobuf.ConsumableRewardDataReflection.Descriptor, global::CircuitsV2.Protobuf.KeyRewardDataReflection.Descriptor, global::CircuitsV2.Protobuf.RoomInventoryItemRewardDataReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::CircuitsV2.Protobuf.RewardData), global::CircuitsV2.Protobuf.RewardData.Parser, new[]{ "Name", "Description", "Id", "ImageIndex", "ImageName", "CurrencyReward", "ConsumableReward", "KeyReward", "RoomInventoryItemReward" }, null, null, null, null)
          }));
    }
    #endregion

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::CircuitsV2.Protobuf.RewardDataReflection.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 RewardData() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public RewardData(RewardData other) : this() {
      name_ = other.name_;
      description_ = other.description_;
      id_ = other.id_ != null ? other.id_.Clone() : null;
      imageIndex_ = other.imageIndex_;
      imageName_ = other.imageName_;
      currencyReward_ = other.currencyReward_ != null ? other.currencyReward_.Clone() : null;
      consumableReward_ = other.consumableReward_ != null ? other.consumableReward_.Clone() : null;
      keyReward_ = other.keyReward_ != null ? other.keyReward_.Clone() : null;
      roomInventoryItemReward_ = other.roomInventoryItemReward_ != null ? other.roomInventoryItemReward_.Clone() : null;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

    /// <summary>Field number for the "name" field.</summary>
    public const int NameFieldNumber = 1;
    private string name_ = "";
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string Name {
      get { return name_; }
      set {
        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "description" field.</summary>
    public const int DescriptionFieldNumber = 2;
    private string description_ = "";
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string Description {
      get { return description_; }
      set {
        description_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "id" field.</summary>
    public const int IdFieldNumber = 3;
    private global::RecRoom.Protobuf.Core.GuidData id_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::RecRoom.Protobuf.Core.GuidData Id {
      get { return id_; }
      set {
        id_ = value;
      }
    }

    /// <summary>Field number for the "image_index" field.</summary>
    public const int ImageIndexFieldNumber = 4;
    private int imageIndex_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int ImageIndex {
      get { return imageIndex_; }
      set {
        imageIndex_ = value;
      }
    }

    /// <summary>Field number for the "image_name" field.</summary>
    public const int ImageNameFieldNumber = 5;
    private string imageName_ = "";
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string ImageName {
      get { return imageName_; }
      set {
        imageName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "currency_reward" field.</summary>
    public const int CurrencyRewardFieldNumber = 6;
    private global::CircuitsV2.Protobuf.CurrencyRewardData currencyReward_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::CircuitsV2.Protobuf.CurrencyRewardData CurrencyReward {
      get { return currencyReward_; }
      set {
        currencyReward_ = value;
      }
    }

    /// <summary>Field number for the "consumable_reward" field.</summary>
    public const int ConsumableRewardFieldNumber = 7;
    private global::CircuitsV2.Protobuf.ConsumableRewardData consumableReward_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::CircuitsV2.Protobuf.ConsumableRewardData ConsumableReward {
      get { return consumableReward_; }
      set {
        consumableReward_ = value;
      }
    }

    /// <summary>Field number for the "key_reward" field.</summary>
    public const int KeyRewardFieldNumber = 8;
    private global::CircuitsV2.Protobuf.KeyRewardData keyReward_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::CircuitsV2.Protobuf.KeyRewardData KeyReward {
      get { return keyReward_; }
      set {
        keyReward_ = value;
      }
    }

    /// <summary>Field number for the "room_inventory_item_reward" field.</summary>
    public const int RoomInventoryItemRewardFieldNumber = 9;
    private global::CircuitsV2.Protobuf.RoomInventoryItemRewardData roomInventoryItemReward_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::CircuitsV2.Protobuf.RoomInventoryItemRewardData RoomInventoryItemReward {
      get { return roomInventoryItemReward_; }
      set {
        roomInventoryItemReward_ = value;
      }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(RewardData other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (Name != other.Name) return false;
      if (Description != other.Description) return false;
      if (!object.Equals(Id, other.Id)) return false;
      if (ImageIndex != other.ImageIndex) return false;
      if (ImageName != other.ImageName) return false;
      if (!object.Equals(CurrencyReward, other.CurrencyReward)) return false;
      if (!object.Equals(ConsumableReward, other.ConsumableReward)) return false;
      if (!object.Equals(KeyReward, other.KeyReward)) return false;
      if (!object.Equals(RoomInventoryItemReward, other.RoomInventoryItemReward)) 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 (Name.Length != 0) hash ^= Name.GetHashCode();
      if (Description.Length != 0) hash ^= Description.GetHashCode();
      if (id_ != null) hash ^= Id.GetHashCode();
      if (ImageIndex != 0) hash ^= ImageIndex.GetHashCode();
      if (ImageName.Length != 0) hash ^= ImageName.GetHashCode();
      if (currencyReward_ != null) hash ^= CurrencyReward.GetHashCode();
      if (consumableReward_ != null) hash ^= ConsumableReward.GetHashCode();
      if (keyReward_ != null) hash ^= KeyReward.GetHashCode();
      if (roomInventoryItemReward_ != null) hash ^= RoomInventoryItemReward.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 (Name.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(Name);
      }
      if (Description.Length != 0) {
        output.WriteRawTag(18);
        output.WriteString(Description);
      }
      if (id_ != null) {
        output.WriteRawTag(26);
        output.WriteMessage(Id);
      }
      if (ImageIndex != 0) {
        output.WriteRawTag(32);
        output.WriteInt32(ImageIndex);
      }
      if (ImageName.Length != 0) {
        output.WriteRawTag(42);
        output.WriteString(ImageName);
      }
      if (currencyReward_ != null) {
        output.WriteRawTag(50);
        output.WriteMessage(CurrencyReward);
      }
      if (consumableReward_ != null) {
        output.WriteRawTag(58);
        output.WriteMessage(ConsumableReward);
      }
      if (keyReward_ != null) {
        output.WriteRawTag(66);
        output.WriteMessage(KeyReward);
      }
      if (roomInventoryItemReward_ != null) {
        output.WriteRawTag(74);
        output.WriteMessage(RoomInventoryItemReward);
      }
      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 (Name.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(Name);
      }
      if (Description.Length != 0) {
        output.WriteRawTag(18);
        output.WriteString(Description);
      }
      if (id_ != null) {
        output.WriteRawTag(26);
        output.WriteMessage(Id);
      }
      if (ImageIndex != 0) {
        output.WriteRawTag(32);
        output.WriteInt32(ImageIndex);
      }
      if (ImageName.Length != 0) {
        output.WriteRawTag(42);
        output.WriteString(ImageName);
      }
      if (currencyReward_ != null) {
        output.WriteRawTag(50);
        output.WriteMessage(CurrencyReward);
      }
      if (consumableReward_ != null) {
        output.WriteRawTag(58);
        output.WriteMessage(ConsumableReward);
      }
      if (keyReward_ != null) {
        output.WriteRawTag(66);
        output.WriteMessage(KeyReward);
      }
      if (roomInventoryItemReward_ != null) {
        output.WriteRawTag(74);
        output.WriteMessage(RoomInventoryItemReward);
      }
      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 (Name.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
      }
      if (Description.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Description);
      }
      if (id_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id);
      }
      if (ImageIndex != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(ImageIndex);
      }
      if (ImageName.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(ImageName);
      }
      if (currencyReward_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrencyReward);
      }
      if (consumableReward_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConsumableReward);
      }
      if (keyReward_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeyReward);
      }
      if (roomInventoryItemReward_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomInventoryItemReward);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(RewardData other) {
      if (other == null) {
        return;
      }
      if (other.Name.Length != 0) {
        Name = other.Name;
      }
      if (other.Description.Length != 0) {
        Description = other.Description;
      }
      if (other.id_ != null) {
        if (id_ == null) {
          Id = new global::RecRoom.Protobuf.Core.GuidData();
        }
        Id.MergeFrom(other.Id);
      }
      if (other.ImageIndex != 0) {
        ImageIndex = other.ImageIndex;
      }
      if (other.ImageName.Length != 0) {
        ImageName = other.ImageName;
      }
      if (other.currencyReward_ != null) {
        if (currencyReward_ == null) {
          CurrencyReward = new global::CircuitsV2.Protobuf.CurrencyRewardData();
        }
        CurrencyReward.MergeFrom(other.CurrencyReward);
      }
      if (other.consumableReward_ != null) {
        if (consumableReward_ == null) {
          ConsumableReward = new global::CircuitsV2.Protobuf.ConsumableRewardData();
        }
        ConsumableReward.MergeFrom(other.ConsumableReward);
      }
      if (other.keyReward_ != null) {
        if (keyReward_ == null) {
          KeyReward = new global::CircuitsV2.Protobuf.KeyRewardData();
        }
        KeyReward.MergeFrom(other.KeyReward);
      }
      if (other.roomInventoryItemReward_ != null) {
        if (roomInventoryItemReward_ == null) {
          RoomInventoryItemReward = new global::CircuitsV2.Protobuf.RoomInventoryItemRewardData();
        }
        RoomInventoryItemReward.MergeFrom(other.RoomInventoryItemReward);
      }
      _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) {
      if ((tag & 7) == 4) {
        // Abort on any end group tag.
        return;
      }
      switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
            break;
          case 10: {
            Name = input.ReadString();
            break;
          }
          case 18: {
            Description = input.ReadString();
            break;
          }
          case 26: {
            if (id_ == null) {
              Id = new global::RecRoom.Protobuf.Core.GuidData();
            }
            input.ReadMessage(Id);
            break;
          }
          case 32: {
            ImageIndex = input.ReadInt32();
            break;
          }
          case 42: {
            ImageName = input.ReadString();
            break;
          }
          case 50: {
            if (currencyReward_ == null) {
              CurrencyReward = new global::CircuitsV2.Protobuf.CurrencyRewardData();
            }
            input.ReadMessage(CurrencyReward);
            break;
          }
          case 58: {
            if (consumableReward_ == null) {
              ConsumableReward = new global::CircuitsV2.Protobuf.ConsumableRewardData();
            }
            input.ReadMessage(ConsumableReward);
            break;
          }
          case 66: {
            if (keyReward_ == null) {
              KeyReward = new global::CircuitsV2.Protobuf.KeyRewardData();
            }
            input.ReadMessage(KeyReward);
            break;
          }
          case 74: {
            if (roomInventoryItemReward_ == null) {
              RoomInventoryItemReward = new global::CircuitsV2.Protobuf.RoomInventoryItemRewardData();
            }
            input.ReadMessage(RoomInventoryItemReward);
            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) {
      if ((tag & 7) == 4) {
        // Abort on any end group tag.
        return;
      }
      switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
            break;
          case 10: {
            Name = input.ReadString();
            break;
          }
          case 18: {
            Description = input.ReadString();
            break;
          }
          case 26: {
            if (id_ == null) {
              Id = new global::RecRoom.Protobuf.Core.GuidData();
            }
            input.ReadMessage(Id);
            break;
          }
          case 32: {
            ImageIndex = input.ReadInt32();
            break;
          }
          case 42: {
            ImageName = input.ReadString();
            break;
          }
          case 50: {
            if (currencyReward_ == null) {
              CurrencyReward = new global::CircuitsV2.Protobuf.CurrencyRewardData();
            }
            input.ReadMessage(CurrencyReward);
            break;
          }
          case 58: {
            if (consumableReward_ == null) {
              ConsumableReward = new global::CircuitsV2.Protobuf.ConsumableRewardData();
            }
            input.ReadMessage(ConsumableReward);
            break;
          }
          case 66: {
            if (keyReward_ == null) {
              KeyReward = new global::CircuitsV2.Protobuf.KeyRewardData();
            }
            input.ReadMessage(KeyReward);
            break;
          }
          case 74: {
            if (roomInventoryItemReward_ == null) {
              RoomInventoryItemReward = new global::CircuitsV2.Protobuf.RoomInventoryItemRewardData();
            }
            input.ReadMessage(RoomInventoryItemReward);
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
