// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: plm/v1/process_load.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 Messages.Plm.V1 {

  /// <summary>Holder for reflection information generated from plm/v1/process_load.proto</summary>
  public static partial class ProcessLoadReflection {

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

    static ProcessLoadReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChlwbG0vdjEvcHJvY2Vzc19sb2FkLnByb3RvEgZwbG0udjEi0wEKElByb2Nl",
            "c3NMb2FkTWVzc2FnZRIdCgpyZXF1ZXN0X2lkGAEgASgJUglyZXF1ZXN0SWQS",
            "HQoKcHJvY2Vzc19pZBgCIAEoCVIJcHJvY2Vzc0lkEhcKB2xpbmVfaWQYAyAB",
            "KAlSBmxpbmVJZBIZCghvcmRlcl9pZBgEIAEoCVIHb3JkZXJJZBJLChNhbGxv",
            "Y2F0aW9uX3N0cmF0ZWd5GAUgASgOMhoucGxtLnYxLkFsbG9jYXRpb25TdHJh",
            "dGVneVISYWxsb2NhdGlvblN0cmF0ZWd5KlkKEkFsbG9jYXRpb25TdHJhdGVn",
            "eRIjCh9BTExPQ0FUSU9OX1NUUkFURUdZX1VOU1BFQ0lGSUVEEAASHgoaQUxM",
            "T0NBVElPTl9TVFJBVEVHWV9TVEFUSUMQAUKTAQoKY29tLnBsbS52MUIQUHJv",
            "Y2Vzc0xvYWRQcm90b1ABWjFnaXRodWIuY29tL2NvYm90YXIvcHJvdG9jb2wv",
            "bWVzc2FnZXMvcGxtL3YxO3BsbXYxogIDUFhYqgIPTWVzc2FnZXMuUGxtLlYx",
            "ygIGUGxtXFYx4gISUGxtXFYxXEdQQk1ldGFkYXRh6gIHUGxtOjpWMWIGcHJv",
            "dG8z"));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { },
          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Messages.Plm.V1.AllocationStrategy), }, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Messages.Plm.V1.ProcessLoadMessage), global::Messages.Plm.V1.ProcessLoadMessage.Parser, new[]{ "RequestId", "ProcessId", "LineId", "OrderId", "AllocationStrategy" }, null, null, null, null)
          }));
    }
    #endregion

  }
  #region Enums
  public enum AllocationStrategy {
    [pbr::OriginalName("ALLOCATION_STRATEGY_UNSPECIFIED")] Unspecified = 0,
    [pbr::OriginalName("ALLOCATION_STRATEGY_STATIC")] Static = 1,
  }

  #endregion

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

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

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public ProcessLoadMessage(ProcessLoadMessage other) : this() {
      requestId_ = other.requestId_;
      processId_ = other.processId_;
      lineId_ = other.lineId_;
      orderId_ = other.orderId_;
      allocationStrategy_ = other.allocationStrategy_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

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

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

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

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

    /// <summary>Field number for the "allocation_strategy" field.</summary>
    public const int AllocationStrategyFieldNumber = 5;
    private global::Messages.Plm.V1.AllocationStrategy allocationStrategy_ = global::Messages.Plm.V1.AllocationStrategy.Unspecified;
    /// <summary>
    /// TODO: list participating actors?
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Messages.Plm.V1.AllocationStrategy AllocationStrategy {
      get { return allocationStrategy_; }
      set {
        allocationStrategy_ = value;
      }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(ProcessLoadMessage other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (RequestId != other.RequestId) return false;
      if (ProcessId != other.ProcessId) return false;
      if (LineId != other.LineId) return false;
      if (OrderId != other.OrderId) return false;
      if (AllocationStrategy != other.AllocationStrategy) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode();
      if (ProcessId.Length != 0) hash ^= ProcessId.GetHashCode();
      if (LineId.Length != 0) hash ^= LineId.GetHashCode();
      if (OrderId.Length != 0) hash ^= OrderId.GetHashCode();
      if (AllocationStrategy != global::Messages.Plm.V1.AllocationStrategy.Unspecified) hash ^= AllocationStrategy.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 (RequestId.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(RequestId);
      }
      if (ProcessId.Length != 0) {
        output.WriteRawTag(18);
        output.WriteString(ProcessId);
      }
      if (LineId.Length != 0) {
        output.WriteRawTag(26);
        output.WriteString(LineId);
      }
      if (OrderId.Length != 0) {
        output.WriteRawTag(34);
        output.WriteString(OrderId);
      }
      if (AllocationStrategy != global::Messages.Plm.V1.AllocationStrategy.Unspecified) {
        output.WriteRawTag(40);
        output.WriteEnum((int) AllocationStrategy);
      }
      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 (RequestId.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(RequestId);
      }
      if (ProcessId.Length != 0) {
        output.WriteRawTag(18);
        output.WriteString(ProcessId);
      }
      if (LineId.Length != 0) {
        output.WriteRawTag(26);
        output.WriteString(LineId);
      }
      if (OrderId.Length != 0) {
        output.WriteRawTag(34);
        output.WriteString(OrderId);
      }
      if (AllocationStrategy != global::Messages.Plm.V1.AllocationStrategy.Unspecified) {
        output.WriteRawTag(40);
        output.WriteEnum((int) AllocationStrategy);
      }
      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 (RequestId.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId);
      }
      if (ProcessId.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(ProcessId);
      }
      if (LineId.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(LineId);
      }
      if (OrderId.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(OrderId);
      }
      if (AllocationStrategy != global::Messages.Plm.V1.AllocationStrategy.Unspecified) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AllocationStrategy);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(ProcessLoadMessage other) {
      if (other == null) {
        return;
      }
      if (other.RequestId.Length != 0) {
        RequestId = other.RequestId;
      }
      if (other.ProcessId.Length != 0) {
        ProcessId = other.ProcessId;
      }
      if (other.LineId.Length != 0) {
        LineId = other.LineId;
      }
      if (other.OrderId.Length != 0) {
        OrderId = other.OrderId;
      }
      if (other.AllocationStrategy != global::Messages.Plm.V1.AllocationStrategy.Unspecified) {
        AllocationStrategy = other.AllocationStrategy;
      }
      _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: {
            RequestId = input.ReadString();
            break;
          }
          case 18: {
            ProcessId = input.ReadString();
            break;
          }
          case 26: {
            LineId = input.ReadString();
            break;
          }
          case 34: {
            OrderId = input.ReadString();
            break;
          }
          case 40: {
            AllocationStrategy = (global::Messages.Plm.V1.AllocationStrategy) input.ReadEnum();
            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: {
            RequestId = input.ReadString();
            break;
          }
          case 18: {
            ProcessId = input.ReadString();
            break;
          }
          case 26: {
            LineId = input.ReadString();
            break;
          }
          case 34: {
            OrderId = input.ReadString();
            break;
          }
          case 40: {
            AllocationStrategy = (global::Messages.Plm.V1.AllocationStrategy) input.ReadEnum();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
