public void MergeFrom(CalendarMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Operations.CalendarMessageIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.AdditionalInformation.Length != 0)
     {
         AdditionalInformation = other.AdditionalInformation;
     }
     if (other.EventType != 0)
     {
         EventType = other.EventType;
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
 }
        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.CalendarMessageIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

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

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

                case 32: {
                    eventType_ = (global::HOLMS.Types.Operations.CalendarMessageType)input.ReadEnum();
                    break;
                }

                case 42: {
                    if (dateRange_ == null)
                    {
                        dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
                    }
                    input.ReadMessage(dateRange_);
                    break;
                }
                }
            }
        }
 public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.Operations.CalendarMessage> GetById(global::HOLMS.Types.Operations.CalendarMessageIndicator request, ServerCallContext context)
 {
     throw new RpcException(new Status(StatusCode.Unimplemented, ""));
 }
 public virtual AsyncUnaryCall <global::HOLMS.Types.Operations.CalendarMessage> GetByIdAsync(global::HOLMS.Types.Operations.CalendarMessageIndicator request, CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_GetById, null, options, request));
 }
 public virtual AsyncUnaryCall <global::HOLMS.Types.Operations.CalendarMessage> GetByIdAsync(global::HOLMS.Types.Operations.CalendarMessageIndicator request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(GetByIdAsync(request, new CallOptions(headers, deadline, cancellationToken)));
 }
 public virtual global::HOLMS.Types.Operations.CalendarMessage GetById(global::HOLMS.Types.Operations.CalendarMessageIndicator request, CallOptions options)
 {
     return(CallInvoker.BlockingUnaryCall(__Method_GetById, null, options, request));
 }
Esempio n. 7
0
 public virtual global::HOLMS.Types.Operations.CalendarMessage GetById(global::HOLMS.Types.Operations.CalendarMessageIndicator request, grpc::Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(GetById(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }