示例#1
0
 public void MergeFrom(HistoryEvent other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.Order != 0)
     {
         Order = other.Order;
     }
     if (other.staffMember_ != null)
     {
         if (staffMember_ == null)
         {
             staffMember_ = new global::HOLMS.Types.IAM.StaffMember();
         }
         StaffMember.MergeFrom(other.StaffMember);
     }
     if (other.timestamp_ != null)
     {
         if (timestamp_ == null)
         {
             timestamp_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         Timestamp.MergeFrom(other.Timestamp);
     }
     details_.Add(other.details_);
 }
示例#2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    result_ = (global::HOLMS.Types.IAM.RPC.StaffSvcCreateUpdateResult)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (staffMember_ == null)
                    {
                        staffMember_ = new global::HOLMS.Types.IAM.StaffMember();
                    }
                    input.ReadMessage(staffMember_);
                    break;
                }
                }
            }
        }
 public void MergeFrom(OutOfOrderRecord other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Operations.OutOfOrder.OutOfOrderRecordIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.Reason.Length != 0)
     {
         Reason = other.Reason;
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
     if (other.enteredBy_ != null)
     {
         if (enteredBy_ == null)
         {
             enteredBy_ = new global::HOLMS.Types.IAM.StaffMember();
         }
         EnteredBy.MergeFrom(other.EnteredBy);
     }
     if (other.updatedBy_ != null)
     {
         if (updatedBy_ == null)
         {
             updatedBy_ = new global::HOLMS.Types.IAM.StaffMember();
         }
         UpdatedBy.MergeFrom(other.UpdatedBy);
     }
     if (other.updatedAt_ != null)
     {
         if (updatedAt_ == null)
         {
             updatedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdatedAt.MergeFrom(other.UpdatedAt);
     }
     if (other.room_ != null)
     {
         if (room_ == null)
         {
             room_ = new global::HOLMS.Types.Operations.Rooms.Room();
         }
         Room.MergeFrom(other.Room);
     }
 }
示例#4
0
 public void MergeFrom(MailboxEntry other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Operations.Messaging.MailboxEntryIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.Subject.Length != 0)
     {
         Subject = other.Subject;
     }
     if (other.Body.Length != 0)
     {
         Body = other.Body;
     }
     if (other.sender_ != null)
     {
         if (sender_ == null)
         {
             sender_ = new global::HOLMS.Types.IAM.StaffMember();
         }
         Sender.MergeFrom(other.Sender);
     }
     recipients_.Add(other.recipients_);
     if (other.viewedAt_ != null)
     {
         if (viewedAt_ == null)
         {
             viewedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         ViewedAt.MergeFrom(other.ViewedAt);
     }
     if (other.createdAt_ != null)
     {
         if (createdAt_ == null)
         {
             createdAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreatedAt.MergeFrom(other.CreatedAt);
     }
     if (other.MessageId.Length != 0)
     {
         MessageId = other.MessageId;
     }
 }
示例#5
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    Description = input.ReadString();
                    break;
                }

                case 16: {
                    Order = input.ReadInt32();
                    break;
                }

                case 26: {
                    if (staffMember_ == null)
                    {
                        staffMember_ = new global::HOLMS.Types.IAM.StaffMember();
                    }
                    input.ReadMessage(staffMember_);
                    break;
                }

                case 34: {
                    if (timestamp_ == null)
                    {
                        timestamp_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(timestamp_);
                    break;
                }

                case 42: {
                    details_.AddEntriesFrom(input, _repeated_details_codec);
                    break;
                }
                }
            }
        }
示例#6
0
 public void MergeFrom(StaffSvcCreateUpdateResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.staffMember_ != null)
     {
         if (staffMember_ == null)
         {
             staffMember_ = new global::HOLMS.Types.IAM.StaffMember();
         }
         StaffMember.MergeFrom(other.StaffMember);
     }
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (entityId_ == null)
                    {
                        entityId_ = new global::HOLMS.Types.Operations.Messaging.MailboxEntryIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

                case 18: {
                    Subject = input.ReadString();
                    break;
                }

                case 26: {
                    Body = input.ReadString();
                    break;
                }

                case 34: {
                    if (sender_ == null)
                    {
                        sender_ = new global::HOLMS.Types.IAM.StaffMember();
                    }
                    input.ReadMessage(sender_);
                    break;
                }

                case 42: {
                    recipients_.AddEntriesFrom(input, _repeated_recipients_codec);
                    break;
                }

                case 50: {
                    if (viewedAt_ == null)
                    {
                        viewedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(viewedAt_);
                    break;
                }

                case 58: {
                    if (createdAt_ == null)
                    {
                        createdAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(createdAt_);
                    break;
                }
                }
            }
        }
示例#8
0
 public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.Primitive.ServerActionConfirmation> Delete(global::HOLMS.Types.IAM.StaffMember request, grpc::ServerCallContext context)
 {
     throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
 }
示例#9
0
 public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.IAM.RPC.StaffSvcCreateUpdateResponse> Update(global::HOLMS.Types.IAM.StaffMember request, grpc::ServerCallContext context)
 {
     throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
 }
示例#10
0
 public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.Primitive.ServerActionConfirmation> DeleteAsync(global::HOLMS.Types.IAM.StaffMember request, grpc::CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request));
 }
示例#11
0
 public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.IAM.RPC.StaffSvcCreateUpdateResponse> UpdateAsync(global::HOLMS.Types.IAM.StaffMember request, grpc::CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request));
 }
示例#12
0
 public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.IAM.RPC.StaffSvcCreateUpdateResponse> UpdateAsync(global::HOLMS.Types.IAM.StaffMember request, grpc::Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }
示例#13
0
 public virtual global::HOLMS.Types.IAM.RPC.StaffSvcCreateUpdateResponse Create(global::HOLMS.Types.IAM.StaffMember request, grpc::CallOptions options)
 {
     return(CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request));
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (entityId_ == null)
                    {
                        entityId_ = new global::HOLMS.Types.Operations.OutOfOrder.OutOfOrderRecordIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

                case 18: {
                    Reason = input.ReadString();
                    break;
                }

                case 26: {
                    if (dateRange_ == null)
                    {
                        dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
                    }
                    input.ReadMessage(dateRange_);
                    break;
                }

                case 34: {
                    if (enteredBy_ == null)
                    {
                        enteredBy_ = new global::HOLMS.Types.IAM.StaffMember();
                    }
                    input.ReadMessage(enteredBy_);
                    break;
                }

                case 42: {
                    if (updatedBy_ == null)
                    {
                        updatedBy_ = new global::HOLMS.Types.IAM.StaffMember();
                    }
                    input.ReadMessage(updatedBy_);
                    break;
                }

                case 50: {
                    if (updatedAt_ == null)
                    {
                        updatedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(updatedAt_);
                    break;
                }

                case 58: {
                    if (room_ == null)
                    {
                        room_ = new global::HOLMS.Types.Operations.Rooms.Room();
                    }
                    input.ReadMessage(room_);
                    break;
                }
                }
            }
        }
 public void MergeFrom(GroupBookingInvoiceMapping other)
 {
     if (other == null)
     {
         return;
     }
     if (other.groupBookingId_ != null)
     {
         if (groupBookingId_ == null)
         {
             groupBookingId_ = new global::HOLMS.Types.Booking.Indicators.GroupBookingIndicator();
         }
         GroupBookingId.MergeFrom(other.GroupBookingId);
     }
     if (other.InvoiceNumber != 0)
     {
         InvoiceNumber = other.InvoiceNumber;
     }
     if (other.invoiceId_ != null)
     {
         if (invoiceId_ == null)
         {
             invoiceId_ = new global::HOLMS.Types.Primitive.Uuid();
         }
         InvoiceId.MergeFrom(other.InvoiceId);
     }
     if (other.Voided != false)
     {
         Voided = other.Voided;
     }
     if (other.createdBy_ != null)
     {
         if (createdBy_ == null)
         {
             createdBy_ = new global::HOLMS.Types.IAM.StaffMember();
         }
         CreatedBy.MergeFrom(other.CreatedBy);
     }
     if (other.voidedBy_ != null)
     {
         if (voidedBy_ == null)
         {
             voidedBy_ = new global::HOLMS.Types.IAM.StaffMember();
         }
         VoidedBy.MergeFrom(other.VoidedBy);
     }
     if (other.voidedAt_ != null)
     {
         if (voidedAt_ == null)
         {
             voidedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         VoidedAt.MergeFrom(other.VoidedAt);
     }
     if (other.createdAt_ != null)
     {
         if (createdAt_ == null)
         {
             createdAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreatedAt.MergeFrom(other.CreatedAt);
     }
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (groupBookingId_ == null)
                    {
                        groupBookingId_ = new global::HOLMS.Types.Booking.Indicators.GroupBookingIndicator();
                    }
                    input.ReadMessage(groupBookingId_);
                    break;
                }

                case 16: {
                    InvoiceNumber = input.ReadInt32();
                    break;
                }

                case 26: {
                    if (invoiceId_ == null)
                    {
                        invoiceId_ = new global::HOLMS.Types.Primitive.Uuid();
                    }
                    input.ReadMessage(invoiceId_);
                    break;
                }

                case 32: {
                    Voided = input.ReadBool();
                    break;
                }

                case 42: {
                    if (createdBy_ == null)
                    {
                        createdBy_ = new global::HOLMS.Types.IAM.StaffMember();
                    }
                    input.ReadMessage(createdBy_);
                    break;
                }

                case 50: {
                    if (voidedBy_ == null)
                    {
                        voidedBy_ = new global::HOLMS.Types.IAM.StaffMember();
                    }
                    input.ReadMessage(voidedBy_);
                    break;
                }

                case 58: {
                    if (voidedAt_ == null)
                    {
                        voidedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(voidedAt_);
                    break;
                }

                case 66: {
                    if (createdAt_ == null)
                    {
                        createdAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(createdAt_);
                    break;
                }
                }
            }
        }
示例#17
0
 public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.Primitive.ServerActionConfirmation> DeleteAsync(global::HOLMS.Types.IAM.StaffMember request, grpc::Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }