Beispiel #1
0
 public Builder SetItem(global::D3.Items.Generator value)
 {
     pb::ThrowHelper.ThrowIfNull(value, "value");
     result.hasItem = true;
     result.item_   = value;
     return(this);
 }
Beispiel #2
0
 public Builder SetItemGranted(global::D3.Items.Generator value)
 {
     pb::ThrowHelper.ThrowIfNull(value, "value");
     PrepareBuilder();
     result.hasItemGranted = true;
     result.itemGranted_   = value;
     return(this);
 }
Beispiel #3
0
 public Builder MergeItem(global::D3.Items.Generator value)
 {
     pb::ThrowHelper.ThrowIfNull(value, "value");
     if (result.hasItem &&
         result.item_ != global::D3.Items.Generator.DefaultInstance)
     {
         result.item_ = global::D3.Items.Generator.CreateBuilder(result.item_).MergeFrom(value).BuildPartial();
     }
     else
     {
         result.item_ = value;
     }
     result.hasItem = true;
     return(this);
 }