コード例 #1
0
 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);
     }
 }
 public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.Operations.RPC.OutOfOrderRecordDeleteResponse> Delete(global::HOLMS.Types.Operations.OutOfOrder.OutOfOrderRecordIndicator request, ServerCallContext context)
 {
     throw new RpcException(new Status(StatusCode.Unimplemented, ""));
 }
 public virtual AsyncUnaryCall <global::HOLMS.Types.Operations.RPC.OutOfOrderRecordDeleteResponse> DeleteAsync(global::HOLMS.Types.Operations.OutOfOrder.OutOfOrderRecordIndicator request, CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request));
 }
 public virtual AsyncUnaryCall <global::HOLMS.Types.Operations.RPC.OutOfOrderRecordDeleteResponse> DeleteAsync(global::HOLMS.Types.Operations.OutOfOrder.OutOfOrderRecordIndicator request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(DeleteAsync(request, new CallOptions(headers, deadline, cancellationToken)));
 }
 public virtual global::HOLMS.Types.Operations.RPC.OutOfOrderRecordGetByIdResponse GetById(global::HOLMS.Types.Operations.OutOfOrder.OutOfOrderRecordIndicator request, CallOptions options)
 {
     return(CallInvoker.BlockingUnaryCall(__Method_GetById, null, options, request));
 }
 public virtual global::HOLMS.Types.Operations.RPC.OutOfOrderRecordGetByIdResponse GetById(global::HOLMS.Types.Operations.OutOfOrder.OutOfOrderRecordIndicator request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(GetById(request, new CallOptions(headers, deadline, cancellationToken)));
 }
 public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.Operations.RPC.OutOfOrderRecordGetByIdResponse> GetById(global::HOLMS.Types.Operations.OutOfOrder.OutOfOrderRecordIndicator request, grpc::ServerCallContext context)
 {
     throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
 }
 public virtual global::HOLMS.Types.Operations.RPC.OutOfOrderRecordDeleteResponse Delete(global::HOLMS.Types.Operations.OutOfOrder.OutOfOrderRecordIndicator request, grpc::CallOptions options)
 {
     return(CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request));
 }
 public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.Operations.RPC.OutOfOrderRecordGetByIdResponse> GetByIdAsync(global::HOLMS.Types.Operations.OutOfOrder.OutOfOrderRecordIndicator request, grpc::CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_GetById, null, options, request));
 }
コード例 #10
0
        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;
                }
                }
            }
        }