/** * Creates additional Enums (NullValue) to be added to the Service config. */ // TODO (guptasu): Fix this hack. Find a better way to add the predefined types. // TODO (guptasu): Add them only when required and not in all cases. static Iterable<Enum> createAdditionalServiceEnums() { // TODO (guptasu): Remove this hard coding. Without this, creation of Model from Service throws. // Needs investigation. String fileName = "struct.proto"; List<Enum> additionalEnums = Lists.newArrayList(); additionalEnums.add(TypesBuilderFromDescriptor.createEnum(NullValue.getDescriptor().getFullName(), NullValue.getDescriptor().toProto(), fileName)); return additionalEnums; }
/** * Creates additional Enums (NullValue) to be added to the Service config. */ // TODO (guptasu): Fix this hack. Find a better way to add the predefined types. // TODO (guptasu): Add them only when required and not in all cases. static Iterable<Enum> createAdditionalServiceEnums() { // TODO (guptasu): Remove this hard coding. Without this, creation of Model from Service throws. // Needs investigation. String fileName = "struct.proto"; List<Enum> additionalEnums = Lists.newArrayList(); additionalEnums.add(TypesBuilderFromDescriptor.createEnum(NullValue.getDescriptor().getFullName(), NullValue.getDescriptor().toProto(), fileName)); return additionalEnums; }