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: { ResourceName = input.ReadString(); break; } case 18: { long?value = _single_id_codec.Read(input); if (id_ == null || value != 0L) { Id = value; } break; } case 24: { Status = (global::Google.Ads.GoogleAds.V2.Enums.BillingSetupStatusEnum.Types.BillingSetupStatus)input.ReadEnum(); break; } case 74: { StartDateTime = _oneof_startDateTime_codec.Read(input); break; } case 80: { startTime_ = input.ReadEnum(); startTimeCase_ = StartTimeOneofCase.StartTimeType; break; } case 90: { string value = _single_paymentsAccount_codec.Read(input); if (paymentsAccount_ == null || value != "") { PaymentsAccount = value; } break; } case 98: { if (paymentsAccountInfo_ == null) { PaymentsAccountInfo = new global::Google.Ads.GoogleAds.V2.Resources.BillingSetup.Types.PaymentsAccountInfo(); } input.ReadMessage(PaymentsAccountInfo); break; } case 106: { EndDateTime = _oneof_endDateTime_codec.Read(input); break; } case 112: { endTime_ = input.ReadEnum(); endTimeCase_ = EndTimeOneofCase.EndTimeType; break; } } } }
public void ClearEndTime() { endTimeCase_ = EndTimeOneofCase.None; endTime_ = null; }