Exemplo n.º 1
0
 @Override
 public Builder clear() {
   if (fields.isImmutable()) {
     fields = FieldSet.newFieldSet();
   } else {
     fields.clear();
   }
   unknownFields = UnknownFieldSet.getDefaultInstance();
   return this;
 }
Exemplo n.º 2
0
 private void ensureIsMutable() {
   if (fields.isImmutable()) {
     fields = fields.clone();
   }
 }