public Builder clear() {
   if (fields == null) {
     throw new IllegalStateException("Cannot call clear() after build().");
   }
   fields.clear();
   return this;
 }
示例#2
0
 @Override
 public Builder clear() {
   if (fields.isImmutable()) {
     fields = FieldSet.newFieldSet();
   } else {
     fields.clear();
   }
   unknownFields = UnknownFieldSet.getDefaultInstance();
   return this;
 }