Beispiel #1
0
 def from_proto_string(pb_string):
     pb_message = meta_pb2.Store()
     msg_len = pb_message.ParseFromString(pb_string)
     return ErStore.from_proto(pb_message)
Beispiel #2
0
 def to_proto(self):
     return meta_pb2.Store(storeLocator=self._store_locator.to_proto(),
                           partitions=_elements_to_proto(self._partitions),
                           options=_stringify_dict(self._options))