Exemplo n.º 1
0
 public Builder SetHirelings(int index, global::D3.Hireling.Info.Builder builderForValue)
 {
     pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
     PrepareBuilder();
     result.hirelings_[index] = builderForValue.Build();
     return(this);
 }
Exemplo n.º 2
0
 public Builder AddHirelings(global::D3.Hireling.Info.Builder builderForValue)
 {
     pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
     PrepareBuilder();
     result.hirelings_.Add(builderForValue.Build());
     return(this);
 }
Exemplo n.º 3
0
            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::D3.Hireling.Info.Builder subBuilder = global::D3.Hireling.Info.CreateBuilder();
                        input.ReadMessage(subBuilder, extensionRegistry);
                        AddHirelings(subBuilder.BuildPartial());
                        break;
                    }

                    case 16: {
                        ActiveHireling = input.ReadUInt32();
                        break;
                    }

                    case 24: {
                        AvailableHirelingsBitfield = input.ReadUInt32();
                        break;
                    }
                    }
                }
            }