Exemplo n.º 1
0
 def to_message(self):
     return proto.VertexQuery(range=proto.RangeVertexQuery(
         limit=self._limit,
         t=proto.Identifier(value=self._t) if self._t is not None else None,
         start_id=proto.Uuid(value=self._start_id.bytes)
         if self._start_id is not None else None,
     ), )
Exemplo n.º 2
0
 def to_message(self):
     return proto.VertexQuery(pipe=proto.PipeVertexQuery(
         inner=self._inner.to_message(),
         direction=self._direction.value,
         limit=self._limit,
         t=proto.Identifier(value=self._t) if self._t is not None else None,
     ), )
Exemplo n.º 3
0
 def to_message(self):
     return proto.VertexQuery(range=proto.PropertyValueVertexQuery(
         inner=self._inner.to_message(),
         name=proto.Identifier(value=self._name),
         value=json.dumps(self._value),
         equal=self._equal,
     ), )
Exemplo n.º 4
0
 def to_message(self):
     return proto.VertexQuery(specific=proto.SpecificVertexQuery(
         ids=[proto.Uuid(value=i.bytes) for i in self._ids]), )
Exemplo n.º 5
0
 def to_message(self):
     return proto.VertexQuery(range=proto.PipePropertyPresenceVertexQuery(
         inner=self._inner.to_message(),
         name=proto.Identifier(value=self._name),
         exists=self._exists,
     ), )
Exemplo n.º 6
0
 def to_message(self):
     return proto.VertexQuery(range=proto.PropertyValueVertexQuery(
         name=proto.Identifier(value=self._name),
         value=json.dumps(self._value),
     ), )
Exemplo n.º 7
0
 def to_message(self):
     return proto.VertexQuery(range=proto.PropertyPresenceVertexQuery(
         name=proto.Identifier(value=self._name), ), )