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