예제 #1
0
 public Builder SetCredential(global::Alachisoft.NosDB.Common.Protobuf.Credential value)
 {
     pb::ThrowHelper.ThrowIfNull(value, "value");
     PrepareBuilder();
     result.hasCredential = true;
     result.credential_   = value;
     return(this);
 }
예제 #2
0
 public Builder MergeCredential(global::Alachisoft.NosDB.Common.Protobuf.Credential value)
 {
     pb::ThrowHelper.ThrowIfNull(value, "value");
     PrepareBuilder();
     if (result.hasCredential &&
         result.credential_ != global::Alachisoft.NosDB.Common.Protobuf.Credential.DefaultInstance)
     {
         result.credential_ = global::Alachisoft.NosDB.Common.Protobuf.Credential.CreateBuilder(result.credential_).MergeFrom(value).BuildPartial();
     }
     else
     {
         result.credential_ = value;
     }
     result.hasCredential = true;
     return(this);
 }