Beispiel #1
0
 public Builder SetDataChunk(global::Alachisoft.NosDB.Common.Protobuf.DataChunk value)
 {
     pb::ThrowHelper.ThrowIfNull(value, "value");
     PrepareBuilder();
     result.hasDataChunk = true;
     result.dataChunk_   = value;
     return(this);
 }
Beispiel #2
0
 public Builder MergeDataChunk(global::Alachisoft.NosDB.Common.Protobuf.DataChunk value)
 {
     pb::ThrowHelper.ThrowIfNull(value, "value");
     PrepareBuilder();
     if (result.hasDataChunk &&
         result.dataChunk_ != global::Alachisoft.NosDB.Common.Protobuf.DataChunk.DefaultInstance)
     {
         result.dataChunk_ = global::Alachisoft.NosDB.Common.Protobuf.DataChunk.CreateBuilder(result.dataChunk_).MergeFrom(value).BuildPartial();
     }
     else
     {
         result.dataChunk_ = value;
     }
     result.hasDataChunk = true;
     return(this);
 }