예제 #1
0
 public Builder mergeFrom(
     com.opera.core.systems.scope.protos.SystemInputProtos.MouseInfo other) {
   if (other
       == com.opera.core.systems.scope.protos.SystemInputProtos.MouseInfo.getDefaultInstance())
     return this;
   if (other.hasX()) {
     setX(other.getX());
   }
   if (other.hasY()) {
     setY(other.getY());
   }
   if (other.hasButton()) {
     setButton(other.getButton());
   }
   if (other.hasNumClicks()) {
     setNumClicks(other.getNumClicks());
   }
   if (other.hasModifier()) {
     setModifier(other.getModifier());
   }
   this.mergeUnknownFields(other.getUnknownFields());
   return this;
 }
예제 #2
0
 public Builder clearModifier() {
   result.hasModifier = false;
   result.modifier_ = 0;
   return this;
 }
예제 #3
0
 public Builder setModifier(int value) {
   result.hasModifier = true;
   result.modifier_ = value;
   return this;
 }
예제 #4
0
 // required uint32 modifier = 5;
 public boolean hasModifier() {
   return result.hasModifier();
 }