public Builder SetId(global::bnet.protocol.EntityId.Builder builderForValue) { pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); result.hasId = true; result.id_ = builderForValue.Build(); return(this); }
public Builder SetGameAccountId(global::bnet.protocol.EntityId.Builder builderForValue) { pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); PrepareBuilder(); result.hasGameAccountId = true; result.gameAccountId_ = builderForValue.Build(); return(this); }
public Builder SetEntity(global::bnet.protocol.EntityId.Builder builderForValue) { pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); PrepareBuilder(); result.hasEntity = true; result.entity_ = builderForValue.Build(); return(this); }
public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { pb::UnknownFieldSet.Builder unknownFields = null; while (true) { uint tag = input.ReadTag(); switch (tag) { case 0: { if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); } 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); break; } case 10: { global::bnet.protocol.EntityId.Builder subBuilder = global::bnet.protocol.EntityId.CreateBuilder(); if (HasId) { subBuilder.MergeFrom(Id); } input.ReadMessage(subBuilder, extensionRegistry); Id = subBuilder.BuildPartial(); break; } case 18: { global::bnet.protocol.attribute.Attribute.Builder subBuilder = global::bnet.protocol.attribute.Attribute.CreateBuilder(); input.ReadMessage(subBuilder, extensionRegistry); AddAttribute(subBuilder.BuildPartial()); break; } } } }
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(_identityFieldNames, field_name, global::System.StringComparer.Ordinal); if (field_ordinal >= 0) { tag = _identityFieldTags[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 10: { global::bnet.protocol.EntityId.Builder subBuilder = global::bnet.protocol.EntityId.CreateBuilder(); if (result.hasAccountId) { subBuilder.MergeFrom(AccountId); } input.ReadMessage(subBuilder, extensionRegistry); AccountId = subBuilder.BuildPartial(); break; } case 18: { global::bnet.protocol.EntityId.Builder subBuilder = global::bnet.protocol.EntityId.CreateBuilder(); if (result.hasGameAccountId) { subBuilder.MergeFrom(GameAccountId); } input.ReadMessage(subBuilder, extensionRegistry); GameAccountId = 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(_recentPlayerFieldNames, field_name, global::System.StringComparer.Ordinal); if (field_ordinal >= 0) { tag = _recentPlayerFieldTags[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 10: { global::bnet.protocol.EntityId.Builder subBuilder = global::bnet.protocol.EntityId.CreateBuilder(); if (result.hasEntity) { subBuilder.MergeFrom(Entity); } input.ReadMessage(subBuilder, extensionRegistry); Entity = subBuilder.BuildPartial(); break; } case 18: { result.hasProgramId = input.ReadString(ref result.programId_); break; } case 25: { result.hasTimestampPlayed = input.ReadFixed64(ref result.timestampPlayed_); break; } case 34: { input.ReadMessageArray(tag, field_name, result.attributes_, global::bnet.protocol.attribute.Attribute.DefaultInstance, extensionRegistry); break; } case 45: { result.hasId = input.ReadFixed32(ref result.id_); break; } case 53: { result.hasCounter = input.ReadFixed32(ref result.counter_); break; } } } if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); }