Beispiel #1
0
 public void MergeFrom(TaskStatus other)
 {
     if (other == null)
     {
         return;
     }
     if (other.AttemptDispatchCount != 0)
     {
         AttemptDispatchCount = other.AttemptDispatchCount;
     }
     if (other.AttemptResponseCount != 0)
     {
         AttemptResponseCount = other.AttemptResponseCount;
     }
     if (other.firstAttemptStatus_ != null)
     {
         if (firstAttemptStatus_ == null)
         {
             firstAttemptStatus_ = new global::Google.Cloud.Tasks.V2Beta2.AttemptStatus();
         }
         FirstAttemptStatus.MergeFrom(other.FirstAttemptStatus);
     }
     if (other.lastAttemptStatus_ != null)
     {
         if (lastAttemptStatus_ == null)
         {
             lastAttemptStatus_ = new global::Google.Cloud.Tasks.V2Beta2.AttemptStatus();
         }
         LastAttemptStatus.MergeFrom(other.LastAttemptStatus);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 8: {
                    AttemptDispatchCount = input.ReadInt32();
                    break;
                }

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

                case 26: {
                    if (firstAttemptStatus_ == null)
                    {
                        firstAttemptStatus_ = new global::Google.Cloud.Tasks.V2Beta2.AttemptStatus();
                    }
                    input.ReadMessage(firstAttemptStatus_);
                    break;
                }

                case 34: {
                    if (lastAttemptStatus_ == null)
                    {
                        lastAttemptStatus_ = new global::Google.Cloud.Tasks.V2Beta2.AttemptStatus();
                    }
                    input.ReadMessage(lastAttemptStatus_);
                    break;
                }
                }
            }
        }