Beispiel #1
0
 public Builder SetSecurity(global::Futu.OpenApi.Pb.QotCommon.Security value)
 {
     pb::ThrowHelper.ThrowIfNull(value, "value");
     PrepareBuilder();
     result.hasSecurity = true;
     result.security_   = value;
     return(this);
 }
Beispiel #2
0
 public Builder MergeSecurity(global::Futu.OpenApi.Pb.QotCommon.Security value)
 {
     pb::ThrowHelper.ThrowIfNull(value, "value");
     PrepareBuilder();
     if (result.hasSecurity &&
         result.security_ != global::Futu.OpenApi.Pb.QotCommon.Security.DefaultInstance)
     {
         result.security_ = global::Futu.OpenApi.Pb.QotCommon.Security.CreateBuilder(result.security_).MergeFrom(value).BuildPartial();
     }
     else
     {
         result.security_ = value;
     }
     result.hasSecurity = true;
     return(this);
 }