예제 #1
0
 public Builder SetHeader(global::Futu.OpenApi.Pb.TrdCommon.TrdHeader value)
 {
     pb::ThrowHelper.ThrowIfNull(value, "value");
     PrepareBuilder();
     result.hasHeader = true;
     result.header_   = value;
     return(this);
 }
예제 #2
0
 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);
 }