Ejemplo n.º 1
0
 public void MergeFrom(HotelReconciliation other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ResourceName.Length != 0)
     {
         ResourceName = other.ResourceName;
     }
     if (other.CommissionId.Length != 0)
     {
         CommissionId = other.CommissionId;
     }
     if (other.OrderId.Length != 0)
     {
         OrderId = other.OrderId;
     }
     if (other.HotelCenterId != 0L)
     {
         HotelCenterId = other.HotelCenterId;
     }
     if (other.HotelId.Length != 0)
     {
         HotelId = other.HotelId;
     }
     if (other.CheckInDate.Length != 0)
     {
         CheckInDate = other.CheckInDate;
     }
     if (other.CheckOutDate.Length != 0)
     {
         CheckOutDate = other.CheckOutDate;
     }
     if (other.ReconciledValueMicros != 0L)
     {
         ReconciledValueMicros = other.ReconciledValueMicros;
     }
     if (other.Billed != false)
     {
         Billed = other.Billed;
     }
     if (other.Status != global::Google.Ads.GoogleAds.V9.Enums.HotelReconciliationStatusEnum.Types.HotelReconciliationStatus.Unspecified)
     {
         Status = other.Status;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Ejemplo n.º 2
0
        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
        {
            uint tag;

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

                case 10: {
                    ResourceName = input.ReadString();
                    break;
                }

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

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

                case 32: {
                    HotelCenterId = input.ReadInt64();
                    break;
                }

                case 42: {
                    HotelId = input.ReadString();
                    break;
                }

                case 50: {
                    CheckInDate = input.ReadString();
                    break;
                }

                case 58: {
                    CheckOutDate = input.ReadString();
                    break;
                }

                case 64: {
                    ReconciledValueMicros = input.ReadInt64();
                    break;
                }

                case 72: {
                    Billed = input.ReadBool();
                    break;
                }

                case 80: {
                    Status = (global::Google.Ads.GoogleAds.V9.Enums.HotelReconciliationStatusEnum.Types.HotelReconciliationStatus)input.ReadEnum();
                    break;
                }
                }
            }
        }
Ejemplo n.º 3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
            input.ReadRawMessage(this);
    #else
            uint tag;
            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    ResourceName = input.ReadString();
                    break;
                }

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

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

                case 32: {
                    HotelCenterId = input.ReadInt64();
                    break;
                }

                case 42: {
                    HotelId = input.ReadString();
                    break;
                }

                case 50: {
                    CheckInDate = input.ReadString();
                    break;
                }

                case 58: {
                    CheckOutDate = input.ReadString();
                    break;
                }

                case 64: {
                    ReconciledValueMicros = input.ReadInt64();
                    break;
                }

                case 72: {
                    Billed = input.ReadBool();
                    break;
                }

                case 80: {
                    Status = (global::Google.Ads.GoogleAds.V9.Enums.HotelReconciliationStatusEnum.Types.HotelReconciliationStatus)input.ReadEnum();
                    break;
                }
                }
            }
    #endif
        }