public Builder SetHeader(global::Futu.OpenApi.Pb.TrdCommon.TrdHeader value) { pb::ThrowHelper.ThrowIfNull(value, "value"); PrepareBuilder(); result.hasHeader = true; result.header_ = value; return(this); }
public Builder MergeHeader(global::Futu.OpenApi.Pb.TrdCommon.TrdHeader value) { pb::ThrowHelper.ThrowIfNull(value, "value"); PrepareBuilder(); if (result.hasHeader && result.header_ != global::Futu.OpenApi.Pb.TrdCommon.TrdHeader.DefaultInstance) { result.header_ = global::Futu.OpenApi.Pb.TrdCommon.TrdHeader.CreateBuilder(result.header_).MergeFrom(value).BuildPartial(); } else { result.header_ = value; } result.hasHeader = true; return(this); }