Esempio n. 1
0
 public void MergeFrom(DaysOfWeekMaintenanceWindow other)
 {
     if (other == null)
     {
         return;
     }
     days_.Add(other.days_);
     if (other.startTime_ != null)
     {
         if (startTime_ == null)
         {
             StartTime = new global::Google.Type.TimeOfDay();
         }
         StartTime.MergeFrom(other.StartTime);
     }
     if (other.duration_ != null)
     {
         if (duration_ == null)
         {
             Duration = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         Duration.MergeFrom(other.Duration);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Esempio n. 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 10:
                {
                    if (duration_ == null)
                    {
                        Duration = new global::Google.Protobuf.WellKnownTypes.Duration();
                    }
                    input.ReadMessage(Duration);
                    break;
                }

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

                case 26:
                {
                    if (localDate_ == null)
                    {
                        LocalDate = new global::Google.Type.Date();
                    }
                    input.ReadMessage(LocalDate);
                    break;
                }

                case 34:
                {
                    if (localTime_ == null)
                    {
                        LocalTime = new global::Google.Type.TimeOfDay();
                    }
                    input.ReadMessage(LocalTime);
                    break;
                }

                case 40:
                {
                    IsoDayOfWeek = (global::Google.Type.DayOfWeek)input.ReadEnum();
                    break;
                }
                }
            }
        }
Esempio n. 3
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 10: {
                    if (startTime_ == null)
                    {
                        StartTime = new global::Google.Type.TimeOfDay();
                    }
                    input.ReadMessage(StartTime);
                    break;
                }

                case 18: {
                    if (duration_ == null)
                    {
                        Duration = new global::Google.Protobuf.WellKnownTypes.Duration();
                    }
                    input.ReadMessage(Duration);
                    break;
                }
                }
            }
        }
Esempio n. 4
0
 public void MergeFrom(MakeMeOneWithEverything other)
 {
     if (other == null)
     {
         return;
     }
     if (other.duration_ != null)
     {
         if (duration_ == null)
         {
             Duration = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         Duration.MergeFrom(other.Duration);
     }
     if (other.instant_ != null)
     {
         if (instant_ == null)
         {
             Instant = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         Instant.MergeFrom(other.Instant);
     }
     if (other.localDate_ != null)
     {
         if (localDate_ == null)
         {
             LocalDate = new global::Google.Type.Date();
         }
         LocalDate.MergeFrom(other.LocalDate);
     }
     if (other.localTime_ != null)
     {
         if (localTime_ == null)
         {
             LocalTime = new global::Google.Type.TimeOfDay();
         }
         LocalTime.MergeFrom(other.LocalTime);
     }
     if (other.IsoDayOfWeek != global::Google.Type.DayOfWeek.Unspecified)
     {
         IsoDayOfWeek = other.IsoDayOfWeek;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }