Ejemplo n.º 1
0
 public Builder SetStatistic(global::bnet.protocol.search.Statistic value)
 {
     pb::ThrowHelper.ThrowIfNull(value, "value");
     result.hasStatistic = true;
     result.statistic_   = value;
     return(this);
 }
Ejemplo n.º 2
0
 public Builder MergeStatistic(global::bnet.protocol.search.Statistic value) {
   pb::ThrowHelper.ThrowIfNull(value, "value");
   if (result.HasStatistic &&
       result.statistic_ != global::bnet.protocol.search.Statistic.DefaultInstance) {
       result.statistic_ = global::bnet.protocol.search.Statistic.CreateBuilder(result.statistic_).MergeFrom(value).BuildPartial();
   } else {
     result.statistic_ = value;
   }
   result.hasStatistic = true;
   return this;
 }
Ejemplo n.º 3
0
 public Builder AddStatistics(global::bnet.protocol.search.Statistic value) {
   pb::ThrowHelper.ThrowIfNull(value, "value");
   result.statistics_.Add(value);
   return this;
 }
Ejemplo n.º 4
0
 public Builder SetStatistics(int index, global::bnet.protocol.search.Statistic value) {
   pb::ThrowHelper.ThrowIfNull(value, "value");
   result.statistics_[index] = value;
   return this;
 }