-
Ryan Michela authored
* Fix golint import * Create java project * Create java modules * Add validation protos * Generate empty .java files * Generate empty validation classes * Update vendored libs * Fix build * Generate top-level message functions * Add type-level template references * Implement boolean validation * Fix build * Add type-level template references * Implement numeric validation * string validation * string validation * Fix In/NotIn * Use google RE2J regex lib per spec * bytes validation * bytes validation * update build file * Enum Validation * duration validation * duration validation * required support * fix build file * fix build again * fix pattern escape * timestamp validation * fix timestamp build * fix timestamp build again * Unit tests and formatting * Finish implementing bytes validation * Finish implementing duration validation * Introduce Validator base class * Finish implementing enum values * map validation * any validation * oneof validation * remove unnecessary braces for in and notin * Basic message validation * Code formatting * Restore braces around in/notIn * Refactor required validations * Fix deprecation warnings * Implement index file generation * Implement recursive message validation * Implement message-global validation * Implement oneof required * Added Wrapper Validation Support * Combine accessor and wrappedAccessor functions * Compile Envoy protos as a test case * Fix oneof enum case * Uppercase field name char after number * Respect java class name options * Fix java_multiple_files * Don't generate files for protos that don't use PGV * pvg -> pgv * Fix file name off by one directory * Client and server interceptors * Don't double half-close grpc server calls * Demo program * Fix demo programs * Remove envoy protos * Move constant values to constant fields * Remove gRPC sample * Comment on why file path could be nil * Fix bytes const generator * Refactor java constant validation * Refactor java comparative validation * Refactor java collective validation * Implement repeated validation * Implement test harness * Partially implement range validation * Partially implement range validation * Implemented range validation * Fix numeric constant validation * Empty child messages are valid unless required * Always validate repeated child messages * Fix string format validators * Partially implement KVP validation * Partially implement KVP validation * Add Java to makefile and run all tests * Add Maven to dockerfile * Work around Open-jdk bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911925 * Ensure UTF-8 byte arrays for strings * Include bad values in validation exception messages * Register validators using static initialization Instead of auto-generating GeneratedValidatorIndex once for each package, which would cause name conflicts when using multiple PGV libraries, include it in the runtime PGV Java library. This allows validator classes to register at runtime when they are first loaded. Since Java does lazy loading, the GeneratedValidatorIndex class optimistically attempts to load a validator when it is needed. * Add java_proto_library targets * Add PGV java generation Bazel rules * Add Java build dependencies for Bazel * Add build rules and run Java harness * De-duplicate Bazel Java/C++ rule impls * Ignore more Java stuff * fix compilation in interceptor tests Signed-off-by:
Rama Chavali <rama.rao@salesforce.com> * Fix find command in Java bazel build * Small Makefile tweak for Java * Add harness selection flags * Improve .gitignore * Improve reflection caching * Javadoc * Prep POM for maven releases
a3467349