public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { PrepareBuilder(); uint tag; string field_name; while (input.ReadTag(out tag, out field_name)) { if (tag == 0 && field_name != null) { int field_ordinal = global::System.Array.BinarySearch(_tCSReceiveZombieMessageFieldNames, field_name, global::System.StringComparer.Ordinal); if (field_ordinal >= 0) { tag = _tCSReceiveZombieMessageFieldTags[field_ordinal]; } else { ParseUnknownField(input, extensionRegistry, tag, field_name); continue; } } switch (tag) { case 0: { throw pb::InvalidProtocolBufferException.InvalidTag(); } default: { if (pb::WireFormat.IsEndGroupTag(tag)) { return(this); } ParseUnknownField(input, extensionRegistry, tag, field_name); break; } case 8: { result.hasGroupId = input.ReadInt64(ref result.groupId_); break; } case 16: { result.hasConfigId = input.ReadInt32(ref result.configId_); break; } case 24: { result.hasZombieInvadeTime = input.ReadInt64(ref result.zombieInvadeTime_); break; } } } return(this); }
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { PrepareBuilder(); pb::UnknownFieldSet.Builder unknownFields = null; uint tag; string field_name; while (input.ReadTag(out tag, out field_name)) { if (tag == 0 && field_name != null) { int field_ordinal = global::System.Array.BinarySearch(_inOutAreaFieldNames, field_name, global::System.StringComparer.Ordinal); if (field_ordinal >= 0) { tag = _inOutAreaFieldTags[field_ordinal]; } else { if (unknownFields == null) { unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); } ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); continue; } } switch (tag) { case 0: { throw pb::InvalidProtocolBufferException.InvalidTag(); } default: { if (pb::WireFormat.IsEndGroupTag(tag)) { if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); } if (unknownFields == null) { unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); } ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); break; } case 8: { result.hasAreaId = input.ReadInt64(ref result.areaId_); break; } case 16: { result.hasInAreaAlarmToDriver = input.ReadBool(ref result.inAreaAlarmToDriver_); break; } case 24: { result.hasInAreaAlarmToPlatform = input.ReadBool(ref result.inAreaAlarmToPlatform_); break; } case 32: { result.hasOutAreaAlarmToDriver = input.ReadBool(ref result.outAreaAlarmToDriver_); break; } case 40: { result.hasOutAreaAlarmToPlatform = input.ReadBool(ref result.outAreaAlarmToPlatform_); break; } case 48: { result.hasBasedTime = input.ReadBool(ref result.basedTime_); break; } case 56: { result.hasIsEveryDay = input.ReadBool(ref result.isEveryDay_); break; } case 64: { result.hasStartDate = input.ReadInt64(ref result.startDate_); break; } case 72: { result.hasEndDate = input.ReadInt64(ref result.endDate_); break; } } } if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); }
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { PrepareBuilder(); pb::UnknownFieldSet.Builder unknownFields = null; uint tag; string field_name; while (input.ReadTag(out tag, out field_name)) { if (tag == 0 && field_name != null) { int field_ordinal = global::System.Array.BinarySearch(_regularDataFieldNames, field_name, global::System.StringComparer.Ordinal); if (field_ordinal >= 0) { tag = _regularDataFieldTags[field_ordinal]; } else { if (unknownFields == null) { unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); } ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); continue; } } switch (tag) { case 0: { throw pb::InvalidProtocolBufferException.InvalidTag(); } default: { if (pb::WireFormat.IsEndGroupTag(tag)) { if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); } if (unknownFields == null) { unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); } ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); break; } case 8: { result.hasTerminalId = input.ReadInt64(ref result.terminalId_); break; } case 16: { object unknown; if (input.ReadEnum(ref result.regularCode_, out unknown)) { result.hasRegularCode = true; } else if (unknown is int) { if (unknownFields == null) { unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); } unknownFields.MergeVarintField(2, (ulong)(int)unknown); } break; } case 24: { result.hasLastModifyDate = input.ReadInt64(ref result.lastModifyDate_); break; } case 34: { global::AeroCloud.Protocol.AreaSpeeding.Builder subBuilder = global::AeroCloud.Protocol.AreaSpeeding.CreateBuilder(); if (result.hasSpeeding) { subBuilder.MergeFrom(Speeding); } input.ReadMessage(subBuilder, extensionRegistry); Speeding = subBuilder.BuildPartial(); break; } case 42: { global::AeroCloud.Protocol.InOutArea.Builder subBuilder = global::AeroCloud.Protocol.InOutArea.CreateBuilder(); if (result.hasInOutArea) { subBuilder.MergeFrom(InOutArea); } input.ReadMessage(subBuilder, extensionRegistry); InOutArea = subBuilder.BuildPartial(); break; } case 50: { global::AeroCloud.Protocol.RouteDriverTime.Builder subBuilder = global::AeroCloud.Protocol.RouteDriverTime.CreateBuilder(); if (result.hasDriverTime) { subBuilder.MergeFrom(DriverTime); } input.ReadMessage(subBuilder, extensionRegistry); DriverTime = subBuilder.BuildPartial(); break; } case 58: { global::AeroCloud.Protocol.DriverNotCard.Builder subBuilder = global::AeroCloud.Protocol.DriverNotCard.CreateBuilder(); if (result.hasDriverNotCard) { subBuilder.MergeFrom(DriverNotCard); } input.ReadMessage(subBuilder, extensionRegistry); DriverNotCard = subBuilder.BuildPartial(); break; } case 66: { global::AeroCloud.Protocol.DoorOpenOutArea.Builder subBuilder = global::AeroCloud.Protocol.DoorOpenOutArea.CreateBuilder(); if (result.hasDoorOpenOutArea) { subBuilder.MergeFrom(DoorOpenOutArea); } input.ReadMessage(subBuilder, extensionRegistry); DoorOpenOutArea = subBuilder.BuildPartial(); break; } case 74: { global::AeroCloud.Protocol.DrivingBan.Builder subBuilder = global::AeroCloud.Protocol.DrivingBan.CreateBuilder(); if (result.hasDrivingBan) { subBuilder.MergeFrom(DrivingBan); } input.ReadMessage(subBuilder, extensionRegistry); DrivingBan = subBuilder.BuildPartial(); break; } } } if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); }
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { PrepareBuilder(); pb::UnknownFieldSet.Builder unknownFields = null; uint tag; string field_name; while (input.ReadTag(out tag, out field_name)) { if (tag == 0 && field_name != null) { int field_ordinal = global::System.Array.BinarySearch(_packetFieldNames, field_name, global::System.StringComparer.Ordinal); if (field_ordinal >= 0) { tag = _packetFieldTags[field_ordinal]; } else { if (unknownFields == null) { unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); } ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); continue; } } switch (tag) { case 0: { throw pb::InvalidProtocolBufferException.InvalidTag(); } default: { if (pb::WireFormat.IsEndGroupTag(tag)) { if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); } if (unknownFields == null) { unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); } ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); break; } case 8: { result.hasId = input.ReadInt64(ref result.id_); break; } case 26: { global::Com.Virtuos.Rocket.NetworkMessage.Message.Builder subBuilder = global::Com.Virtuos.Rocket.NetworkMessage.Message.CreateBuilder(); if (result.hasPayload) { subBuilder.MergeFrom(Payload); } input.ReadMessage(subBuilder, extensionRegistry); Payload = subBuilder.BuildPartial(); break; } } } if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); }
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { PrepareBuilder(); pb::UnknownFieldSet.Builder unknownFields = null; uint tag; string field_name; while (input.ReadTag(out tag, out field_name)) { if (tag == 0 && field_name != null) { int field_ordinal = global::System.Array.BinarySearch(_timeFieldNames, field_name, global::System.StringComparer.Ordinal); if (field_ordinal >= 0) { tag = _timeFieldTags[field_ordinal]; } else { if (unknownFields == null) { unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); } ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); continue; } } switch (tag) { case 0: { throw pb::InvalidProtocolBufferException.InvalidTag(); } default: { if (pb::WireFormat.IsEndGroupTag(tag)) { if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); } if (unknownFields == null) { unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); } ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); break; } case 8: { result.hasSec = input.ReadInt64(ref result.sec_); break; } case 16: { result.hasNsec = input.ReadInt64(ref result.nsec_); break; } } } if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); }
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { PrepareBuilder(); pb::UnknownFieldSet.Builder unknownFields = null; uint tag; string field_name; while (input.ReadTag(out tag, out field_name)) { if (tag == 0 && field_name != null) { int field_ordinal = global::System.Array.BinarySearch(_areaSpeedingFieldNames, field_name, global::System.StringComparer.Ordinal); if (field_ordinal >= 0) { tag = _areaSpeedingFieldTags[field_ordinal]; } else { if (unknownFields == null) { unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); } ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); continue; } } switch (tag) { case 0: { throw pb::InvalidProtocolBufferException.InvalidTag(); } default: { if (pb::WireFormat.IsEndGroupTag(tag)) { if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); } if (unknownFields == null) { unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); } ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); break; } case 8: { result.hasAreaId = input.ReadInt64(ref result.areaId_); break; } case 16: { object unknown; if (input.ReadEnum(ref result.types_, out unknown)) { result.hasTypes = true; } else if (unknown is int) { if (unknownFields == null) { unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); } unknownFields.MergeVarintField(2, (ulong)(int)unknown); } break; } case 24: { result.hasRouteId = input.ReadInt64(ref result.routeId_); break; } case 32: { result.hasMaxSpeed = input.ReadInt32(ref result.maxSpeed_); break; } case 40: { result.hasContinuousTime = input.ReadInt32(ref result.continuousTime_); break; } case 48: { result.hasBasedTime = input.ReadBool(ref result.basedTime_); break; } case 56: { result.hasIsEveryDay = input.ReadBool(ref result.isEveryDay_); break; } case 64: { result.hasStartDate = input.ReadInt64(ref result.startDate_); break; } case 72: { result.hasEndDate = input.ReadInt64(ref result.endDate_); break; } } } if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); }
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { PrepareBuilder(); pb::UnknownFieldSet.Builder unknownFields = null; uint tag; string field_name; while (input.ReadTag(out tag, out field_name)) { if (tag == 0 && field_name != null) { int field_ordinal = global::System.Array.BinarySearch(_storageProviderConfigFieldNames, field_name, global::System.StringComparer.Ordinal); if (field_ordinal >= 0) { tag = _storageProviderConfigFieldTags[field_ordinal]; } else { if (unknownFields == null) { unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); } ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); continue; } } switch (tag) { case 0: { throw pb::InvalidProtocolBufferException.InvalidTag(); } default: { if (pb::WireFormat.IsEndGroupTag(tag)) { if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); } if (unknownFields == null) { unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); } ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); break; } case 8: { result.hasMaxDatabaseSize = input.ReadInt64(ref result.maxDatabaseSize_); break; } case 18: { result.hasProviderTypeString = input.ReadString(ref result.providerTypeString_); break; } case 24: { result.hasIsMultiFileStore = input.ReadBool(ref result.isMultiFileStore_); break; } case 34: { global::Alachisoft.NosDB.Common.Protobuf.LMDBConfig.Builder subBuilder = global::Alachisoft.NosDB.Common.Protobuf.LMDBConfig.CreateBuilder(); if (result.hasLMDBProvider) { subBuilder.MergeFrom(LMDBProvider); } input.ReadMessage(subBuilder, extensionRegistry); LMDBProvider = subBuilder.BuildPartial(); break; } case 42: { global::Alachisoft.NosDB.Common.Protobuf.ESENTConfig.Builder subBuilder = global::Alachisoft.NosDB.Common.Protobuf.ESENTConfig.CreateBuilder(); if (result.hasESENTProvider) { subBuilder.MergeFrom(ESENTProvider); } input.ReadMessage(subBuilder, extensionRegistry); ESENTProvider = subBuilder.BuildPartial(); break; } } } if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); }
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { PrepareBuilder(); pb::UnknownFieldSet.Builder unknownFields = null; uint tag; string field_name; while (input.ReadTag(out tag, out field_name)) { if (tag == 0 && field_name != null) { int field_ordinal = global::System.Array.BinarySearch(_lMDBConfigFieldNames, field_name, global::System.StringComparer.Ordinal); if (field_ordinal >= 0) { tag = _lMDBConfigFieldTags[field_ordinal]; } else { if (unknownFields == null) { unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); } ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); continue; } } switch (tag) { case 0: { throw pb::InvalidProtocolBufferException.InvalidTag(); } default: { if (pb::WireFormat.IsEndGroupTag(tag)) { if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); } if (unknownFields == null) { unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); } ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); break; } case 8: { object unknown; if (input.ReadEnum(ref result.environmentOpenFlags_, out unknown)) { result.hasEnvironmentOpenFlags = true; } else if (unknown is int) { if (unknownFields == null) { unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); } unknownFields.MergeVarintField(1, (ulong)(int)unknown); } break; } case 16: { result.hasMaxReaders = input.ReadInt32(ref result.maxReaders_); break; } case 24: { result.hasMaxTables = input.ReadInt32(ref result.maxTables_); break; } case 32: { result.hasInitialDatabaseSize = input.ReadInt64(ref result.initialDatabaseSize_); break; } case 40: { result.hasExpansionRatio = input.ReadInt64(ref result.expansionRatio_); break; } case 48: { result.hasCurrentDatabaseSize = input.ReadInt64(ref result.currentDatabaseSize_); break; } } } if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); }