Packages

p

alloy

proto

package proto

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. proto
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class Grpc() extends Product with Serializable

    GRPC protocol as defined by https://grpc.io/

  2. final case class ProtoCompactUUID() extends Product with Serializable
  3. final case class ProtoEnabled() extends Product with Serializable

    This trait can be used to enable protobuf conversion on services or structures that are not a part of a GRPC service.

  4. type ProtoIndex = proto.ProtoIndex.Type

    Marks an explicit index to be used for a structure member when it is interpreted as protobuf.

    Marks an explicit index to be used for a structure member when it is interpreted as protobuf. For example:

    structure Test { @protoIndex(2) str: String }

    Is equivalent to:

    message Test { string str = 2 }

  5. final case class ProtoInlinedOneOf() extends Product with Serializable

    This trait can be used to customize the rendering of an Union shape during the conversion to Protobuf models.

    This trait can be used to customize the rendering of an Union shape during the conversion to Protobuf models. Union in Protobuf are typically encoded using oneOf.

    oneOf can only be used within message and each of their member has an index. This makes them tricky to render. One possible solution is to create a synthetic message to host the oneOf, and then use that message FQN at use site when refering to the Union. There is an alternate encoding where you render the oneOf inside the message where it's used. You can only use this encoding if the Union is used only inside of one structure.

    You can use this trait, along with the validator provided, to implement this encoding.

  6. sealed abstract class ProtoNumType extends Value

    Specifies which type of number signing should be used on integers and longs.

  7. type ProtoReservedFields = proto.ProtoReservedFields.Type

    Marks certain field indexes as unusable by the smithy specification.

    Marks certain field indexes as unusable by the smithy specification. For example, if a range is provided of 1 to 10 then the proto indexes for any fields in that structure must fall outside of that range. Ranges are inclusive.

  8. sealed abstract class ProtoTimestampFormat extends Value

    Specifies which type of timestamp representation should be used PROTOBUF indicates that the default encoding should be used EPOCH_MILLIS indicates that an int64 should be used instead of the default encoding.

  9. final case class ProtoWrapped() extends Product with Serializable
  10. final case class Range(start: Int, end: Int) extends Product with Serializable
  11. sealed trait ReservedFieldsDefinition extends Product with Serializable

Value Members

  1. object Grpc extends Companion[Grpc] with Serializable
  2. object ProtoCompactUUID extends Companion[ProtoCompactUUID] with Serializable
  3. object ProtoEnabled extends Companion[ProtoEnabled] with Serializable
  4. object ProtoIndex extends Newtype[Int]

    Marks an explicit index to be used for a structure member when it is interpreted as protobuf.

    Marks an explicit index to be used for a structure member when it is interpreted as protobuf. For example:

    structure Test { @protoIndex(2) str: String }

    Is equivalent to:

    message Test { string str = 2 }

  5. object ProtoInlinedOneOf extends Companion[ProtoInlinedOneOf] with Serializable
  6. object ProtoNumType extends Enumeration[ProtoNumType] with Companion[ProtoNumType] with Serializable
  7. object ProtoReservedFields extends Newtype[List[ReservedFieldsDefinition]]

    Marks certain field indexes as unusable by the smithy specification.

    Marks certain field indexes as unusable by the smithy specification. For example, if a range is provided of 1 to 10 then the proto indexes for any fields in that structure must fall outside of that range. Ranges are inclusive.

  8. object ProtoTimestampFormat extends Enumeration[ProtoTimestampFormat] with Companion[ProtoTimestampFormat] with Serializable
  9. object ProtoWrapped extends Companion[ProtoWrapped] with Serializable
  10. object Range extends Companion[Range] with Serializable
  11. object ReservedFieldsDefinition extends Companion[ReservedFieldsDefinition] with Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped