Exemplo n.º 1
0
 public Builder SetAttributes(global::Alachisoft.NosDB.Common.Protobuf.IndexAttributeProto value)
 {
     pb::ThrowHelper.ThrowIfNull(value, "value");
     PrepareBuilder();
     result.hasAttributes = true;
     result.attributes_   = value;
     return(this);
 }
Exemplo n.º 2
0
 public Builder MergeAttributes(global::Alachisoft.NosDB.Common.Protobuf.IndexAttributeProto value)
 {
     pb::ThrowHelper.ThrowIfNull(value, "value");
     PrepareBuilder();
     if (result.hasAttributes &&
         result.attributes_ != global::Alachisoft.NosDB.Common.Protobuf.IndexAttributeProto.DefaultInstance)
     {
         result.attributes_ = global::Alachisoft.NosDB.Common.Protobuf.IndexAttributeProto.CreateBuilder(result.attributes_).MergeFrom(value).BuildPartial();
     }
     else
     {
         result.attributes_ = value;
     }
     result.hasAttributes = true;
     return(this);
 }