alloy.proto.ProtoEnabled.scala Maven / Gradle / Ivy
package alloy.proto
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.constant
/** This trait can be used to enable protobuf conversion
* on services or structures that are not a part of a
* GRPC service.
*/
final case class ProtoEnabled()
object ProtoEnabled extends ShapeTag.Companion[ProtoEnabled] {
val id: ShapeId = ShapeId("alloy.proto", "protoEnabled")
val hints: Hints = Hints(
smithy.api.Documentation("This trait can be used to enable protobuf conversion\non services or structures that are not a part of a\nGRPC service."),
smithy.api.Trait(selector = Some(":test(structure, service)"), structurallyExclusive = None, conflicts = None, breakingChanges = None),
).lazily
implicit val schema: Schema[ProtoEnabled] = constant(ProtoEnabled()).withId(id).addHints(hints)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy