com.eharmony.aloha.semantics.compiled.plugin.proto
Construct the semantics, given a prototypical instance of the message type.
Construct the semantics, given a prototypical instance of the message type.
a prototype instance of the type of message to create. For instance, from Java:
final Semantics<UserProto> semantics = new ProtoSemantics<UserProto>(UserProto.getDefaultInstance());
Construct the semantics, given the message's Class object.
Construct the semantics, given the message's Class object.
A Class object of the protocol buffer generated message. For instance, for Java
final Semantics<UserProto> semantics = new ProtoSemantics<UserProto>(UserProto.class);
Construct the semantics, given a prototypical instance of the message type.
Construct the semantics, given a prototypical instance of the message type.
a prototype instance of the type of message to create. For instance, from Java:
final Semantics<UserProto> semantics = new ProtoSemantics<UserProto>(UserProto.getDefaultInstance(), false);
Whether to treat dereferenced list variables as an Option.
Construct the semantics, given the message's Class object.
Construct the semantics, given the message's Class object.
A Class object of the protocol buffer generated message. For instance, for Java
final Semantics<UserProto> semantics = new ProtoSemantics<UserProto>(UserProto.class, false);
Whether to treat dereferenced list variables as an Option.
Whether to treat dereferenced list variables as an Option. If true treat the return value of a dereference operation as an Option. This removes the possibility of a java.lang.IndexOutOfBoundsException being thrown. Instead, it will silently return None. If false, treat the returned value as a required field and don't do any index checking. The default value is true.
Generate the function body given a spec.
Generate the function body given a spec.
a String specification of the feature for which function code should be generated
Whether to treat dereferenced list variables as an Option.
Whether to treat dereferenced list variables as an Option. If true treat the return value of a dereference operation as an Option. This removes the possibility of a java.lang.IndexOutOfBoundsException being thrown. Instead, it will silently return None. If false, treat the returned value as a required field and don't do any index checking. The default value is true.
Note, there are a bunch of equivalent ways to construct the semantics. See below:
a type of generated protocol buffer message.
Whether to treat dereferenced list variables as an Option. If true treat the return value of a dereference operation as an Option. This removes the possibility of a java.lang.IndexOutOfBoundsException being thrown. Instead, it will silently return None. If false, treat the returned value as a required field and don't do any index checking. The default value is true.