Exemplo n.º 1
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;
     }
 }
        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;
                }
                }
            }
        }
Exemplo n.º 3
0
 public virtual global::System.Threading.Tasks.Task <global::Google.Protobuf.WellKnownTypes.Empty> DeleteMessage(global::HOLMS.Types.Operations.Messaging.MailboxEntryIndicator request, grpc::ServerCallContext context)
 {
     throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
 }
Exemplo n.º 4
0
 public virtual grpc::AsyncUnaryCall <global::Google.Protobuf.WellKnownTypes.Empty> DeleteMessageAsync(global::HOLMS.Types.Operations.Messaging.MailboxEntryIndicator request, grpc::CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_DeleteMessage, null, options, request));
 }
Exemplo n.º 5
0
 public virtual grpc::AsyncUnaryCall <global::Google.Protobuf.WellKnownTypes.Empty> DeleteMessageAsync(global::HOLMS.Types.Operations.Messaging.MailboxEntryIndicator request, grpc::Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(DeleteMessageAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }
Exemplo n.º 6
0
 public virtual AsyncUnaryCall <global::Google.Protobuf.WellKnownTypes.Empty> UpdateViewedTimeAsync(global::HOLMS.Types.Operations.Messaging.MailboxEntryIndicator request, CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_UpdateViewedTime, null, options, request));
 }
Exemplo n.º 7
0
 public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateViewedTime(global::HOLMS.Types.Operations.Messaging.MailboxEntryIndicator request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(UpdateViewedTime(request, new CallOptions(headers, deadline, cancellationToken)));
 }