code: public static TtlAction fromProtobuf(PTtlAction pTtlAction) {
      if (pTtlAction == null) {
        return TtlAction.DELETE;
      }
      switch (pTtlAction) {
        case DELETE:
          return TtlAction.DELETE;
        case FREE:
          return TtlAction.FREE;
        default:
          throw new IllegalStateException("Unknown protobuf ttl action: " + pTtlAction);
      }
    }
docs: Converts Protobuf type to Wire type.
  
  @param pTtlAction {@link PTtlAction}
  @return {@link TtlAction} equivalent