All Downloads are FREE. Search and download functionalities are using the official Maven repository.

alloy.proto.ProtoEnabled.scala Maven / Gradle / Ivy

There is a newer version: 0.19.0-41-91762fb
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy