@CanIgnoreReturnValue
    public Builder setTagSizeBytes(int tagSizeBytes) throws GeneralSecurityException {
      if (tagSizeBytes < 0 || tagSizeBytes > 16) {
        throw new GeneralSecurityException(
            String.format(
                "Invalid tag size in bytes %d; value must be at most 16 bytes", tagSizeBytes));
      }
      this.tagSizeBytes = tagSizeBytes;
      return this;
    }
The tag size accepts values between 0 and 16 bytes. However, some implementation may not
support the full set of parameters at the moment and may restrict the tag size to a fixed
value (i.e. 16 bytes).
java_src/src/main/java/com/google/crypto/tink/aead/AesEaxParameters.java