Пример #1
0
 public SnsCommentResponse.Builder SetSnsObject(micromsg.SnsObject value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasSnsObject = true;
     this.result.snsObject_   = value;
     return(this);
 }
Пример #2
0
 public SnsCommentResponse.Builder MergeSnsObject(micromsg.SnsObject value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasSnsObject && (this.result.snsObject_ != micromsg.SnsObject.DefaultInstance))
     {
         this.result.snsObject_ = micromsg.SnsObject.CreateBuilder(this.result.snsObject_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.snsObject_ = value;
     }
     this.result.hasSnsObject = true;
     return(this);
 }