Package io.micronaut.openapi.visitor
Class ProtoUtils
java.lang.Object
io.micronaut.openapi.visitor.ProtoUtils
Protobuf util methods.
- Since:
- 6.8.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<io.micronaut.inject.ast.PropertyElement>
filterProtobufProperties
(io.micronaut.inject.ast.ClassElement classElement, List<io.micronaut.inject.ast.PropertyElement> beanProperties) static boolean
isProtobufGenerated
(io.micronaut.inject.ast.ClassElement type) static boolean
isProtobufMessageClass
(io.micronaut.inject.ast.ClassElement type) static boolean
isProtobufType
(io.micronaut.inject.ast.ClassElement type) static String
normalizePropertyName
(String propertyName, io.micronaut.inject.ast.ClassElement classElement, io.micronaut.inject.ast.ClassElement propertyType) static String
normalizeProtobufClassName
(String className) static io.swagger.v3.oas.models.media.Schema
protobufTypeSchema
(io.micronaut.inject.ast.ClassElement type)
-
Constructor Details
-
ProtoUtils
public ProtoUtils()
-
-
Method Details
-
filterProtobufProperties
-
protobufTypeSchema
public static io.swagger.v3.oas.models.media.Schema protobufTypeSchema(io.micronaut.inject.ast.ClassElement type) -
normalizePropertyName
-
normalizeProtobufClassName
-
isProtobufType
public static boolean isProtobufType(io.micronaut.inject.ast.ClassElement type) -
isProtobufGenerated
public static boolean isProtobufGenerated(io.micronaut.inject.ast.ClassElement type) -
isProtobufMessageClass
public static boolean isProtobufMessageClass(io.micronaut.inject.ast.ClassElement type)
-