alloy.proto

package alloy.proto

Members list

Type members

Classlikes

final case class Grpc()

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

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

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Grpc extends Companion[Grpc]

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
trait Companion[Grpc]
trait Has[Grpc]
trait ShapeTag[Grpc]
trait HasId
class Object
trait Matchable
class Any
Show all
Self type
Grpc.type
final case class ProtoCompactUUID()

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
trait HasId
class Object
trait Matchable
class Any
Show all
Self type
final case class ProtoEnabled()

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

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

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
trait Has[ProtoEnabled]
trait HasId
class Object
trait Matchable
class Any
Show all
Self type
object ProtoIndex extends Newtype[Int]

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

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 }

Attributes

Supertypes
class Newtype[Int]
trait HasId
class Object
trait Matchable
class Any
Self type
ProtoIndex.type
final case class ProtoInlinedOneOf()

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.

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.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
trait HasId
class Object
trait Matchable
class Any
Show all
Self type
sealed abstract class ProtoNumType(_value: String, _name: String, _intValue: Int, _hints: Hints) extends Value

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

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

Attributes

Companion
object
Supertypes
class Value
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object FIXED.type
object FIXED_SIGNED.type
object SIGNED.type
object UNSIGNED.type

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
trait Has[ProtoNumType]
trait HasId
class Object
trait Matchable
class Any
Show all
Self type

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.

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.

Attributes

Supertypes
trait HasId
class Object
trait Matchable
class Any
Self type
final case class ProtoWrapped()

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
trait Has[ProtoWrapped]
trait HasId
class Object
trait Matchable
class Any
Show all
Self type
final case class Range(start: Int, end: Int)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Range extends Companion[Range]

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
trait Companion[Range]
trait Has[Range]
trait ShapeTag[Range]
trait HasId
class Object
trait Matchable
class Any
Show all
Self type
Range.type

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class NameCase
class NumberCase
class RangeCase
Self type

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
trait HasId
class Object
trait Matchable
class Any
Show all
Self type

Types

type ProtoIndex = Type

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

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 }

Attributes

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.

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.

Attributes