ProtoIndex

alloy.proto.ProtoIndex
object ProtoIndex extends Newtype[Int]

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

Graph
Supertypes
class Newtype[Int]
trait HasId
class Object
trait Matchable
class Any
Self type
ProtoIndex.type

Members list

Type members

Inherited classlikes

object hint

Attributes

Inherited from:
Newtype
Supertypes
class Object
trait Matchable
class Any

Inherited types

opaque type Type

Attributes

Inherited from:
Newtype

Value members

Inherited methods

def apply(a: Int): Type

Attributes

Inherited from:
Newtype
def unapply(orig: Type): Some[Int]

Attributes

Inherited from:
Newtype

Concrete fields

val hints: Hints
val id: ShapeId

Extensions

Inherited extensions

extension (orig: Type)
def value: Int

Attributes

Inherited from:
Newtype

Implicits

Implicits

implicit val schema: Schema[ProtoIndex]

Inherited implicits

implicit val asBijection: Bijection[Int, Type]

Attributes

Inherited from:
Newtype
implicit val tag: ShapeTag[Type]

Attributes

Inherited from:
Newtype